Giter VIP home page Giter VIP logo

pavansolapure / opencodez-samples Goto Github PK

View Code? Open in Web Editor NEW
273.0 273.0 893.0 635 KB

The code repository for Opencodez. Here at this git, we are trying to share code for Java, Python, PHP, Oracle and any new technology we try our hands and feel it can add value.

Home Page: https://www.opencodez.com

Java 76.14% CSS 2.12% JavaScript 4.28% HTML 13.68% PLSQL 1.12% Python 2.49% TSQL 0.18%

opencodez-samples's People

Contributors

pavansolapure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencodez-samples's Issues

Ldap

security autentication controll is not working correctly. you can bypass the autentication controll typing index into the browser

Fit the Tokenizer on some data before using tfidf mode

Hi,
I am trying to run your code. However, I am getting the following error. I have fitted the tokenizer as following.

tokenizer.fit_on_texts(train_posts)

print(tokenizer.texts_to_matrix(train_posts, mode='count'))

I am using python 3 with keras 2.2.2 and tensorflow 1.9.0. Can you please help me to fox this issue?

Thanks
----------------- Error -----------------------
Traceback (most recent call last):
File "", line 1, in
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_umd.py", line 194, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/Ahmad/mydevelopment/datasciencePractice/textclassificationwithleras.py", line 99, in
x_train = tokenizer.texts_to_matrix(train_posts, mode='tfidf')
File "/Users/Ahmad/anaconda3/envs/datasciencePractice/lib/python3.6/site-packages/keras_preprocessing/text.py", line 376, in texts_to_matrix
return self.sequences_to_matrix(sequences, mode=mode)
File "/Users/Ahmad/anaconda3/envs/datasciencePractice/lib/python3.6/site-packages/keras_preprocessing/text.py", line 403, in sequences_to_matrix
raise ValueError('Fit the Tokenizer on some data '
ValueError: Fit the Tokenizer on some data before using tfidf mode.

i could not undrestand this line

cTemplate = cTemplate.replace("{{" + entry.getKey() + "}}", entry.getValue());

you want to change the value of every key by new value?
or { 1 -> one} {one}
???

if 1 -> one
2 -> two
the result ???

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 289: invalid start byte

Hi, am getting error while loading the files into dataframe.
Please advice on this.
Here is the code and error:

Read and add data from file to a list

i=0
for f in labelled_files:
data_list.append((f,label_names[label_index[i]],Path(f).read_text()))
i += 1


UnicodeDecodeError Traceback (most recent call last)
in ()
2 i=0
3 for f in labelled_files:
----> 4 data_list.append((f,label_names[label_index[i]],Path(f).read_text()))
5 i += 1

~/anaconda3/lib/python3.6/pathlib.py in read_text(self, encoding, errors)
1195 """
1196 with self.open(mode='r', encoding=encoding, errors=errors) as f:
-> 1197 return f.read()
1198
1199 def write_bytes(self, data):

~/anaconda3/lib/python3.6/codecs.py in decode(self, input, final)
319 # decode input (taking the buffer into account)
320 data = self.buffer + input
--> 321 (result, consumed) = self._buffer_decode(data, self.errors, final)
322 # keep undecoded input until the next call
323 self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 289: invalid start byte

Can't send Email

Nice example.

Why I can't send email with your code?

Is there anything I left or something?

Thanks.

Not Working on Liberty Profile

Server.xml

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
    <featureManager>
        <feature>webProfile-7.0</feature>
    </featureManager>
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9080"
                  httpsPort="9443" />                  
 <applicationManager autoExpand="true"/>
</server>

Added this dependency :

<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.1.0</version>
			<scope>provided</scope>
		</dependency>

When I hit the http://localhost:9080/apache-cxf-ws-0.0.1-SNAPSHOT/services - it gives an error FileNotfound Exception.

Capitalization

Hi Pavan, thanks for sharing this awesome project! I'm running it on Linux and ran into issues with the database references switching between User and USER (I think this might not be an issue on Windows?). For Linux, I named the table "User" and made all references match "User" (first letter capitalized). Also, the totalRecords being part of the userModel seems to be causing an error Unknown column 'user0_.totalrecords'.

I made all references to totalRecords the same capitalization-wise (as "totalRecords") and then I added a "totalRecords" field to the User table as a workaround because "updatable=false, insertable=false" (in the @column annotation for totalRecords in the User class) doesn't seem to be working for me and I get error Unknown column 'user0_.totalRecords' in 'field list' when trying to enter a record. I tried using @transient with the declaration for totalRecords in class User and that worked for insertion but not for looking at the datatables paginated report, since then totalRecords didn't persist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.