hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
2f28f649f77cbd5c0126f3774eef97522633a488
2,110
py
Python
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import Graphic import Core if __name__ == "__main__": # Set xy grid y0 = np.linspace(-0.5, 0.5, 30) x0 = np.linspace(-0.5, 0.5, 30) grid = np.meshgrid(x0, y0, indexing='ij') grid_array = np.stack(grid, axis=-1) Domain = Core.Rectangula...
25.421687
95
0.553555
import numpy as np import matplotlib.pyplot as plt import Graphic import Core class Calculator_legacy: def __init__(self, domain, equation, dt, u0, dtype=None): # iterator self.domain = domain self.dt = dt u0 = domain.to_points(u0) self.PDE = Core.euler(domain, equation,...
1,056
3
157
5e611abbba142d234b552db1e9df1e6e0c79c01b
1,422
py
Python
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
1
2021-07-07T15:46:58.000Z
2021-07-07T15:46:58.000Z
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
5
2021-06-05T14:16:41.000Z
2021-07-10T07:08:28.000Z
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
null
null
null
if __name__=='__main__': main()
30.255319
81
0.400844
def main(): H, W = map(int, input().split()) C = [] for i in range(H): row = list(input()) C.append(row) for i in range(H): for j in range(W): if C[i][j] == "s": sx = i sy = j if C[i][j] == "g": gx = i ...
1,348
0
22
995633d052ff66d8035336436505bc83668e65d6
3,466
py
Python
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
2
2020-03-04T16:29:23.000Z
2020-10-28T09:46:20.000Z
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
null
null
null
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import scipy.sparse as sparse from implicit.nearest_neighbours import bm25_weight, tfidf_weight, normalize def make_matrix(df, count=False): """ Args: plu_column: string. Name of column which contains PLU card_column: string. Name of column which contain...
32.092593
110
0.599827
import pandas as pd import numpy as np import scipy.sparse as sparse from implicit.nearest_neighbours import bm25_weight, tfidf_weight, normalize def make_matrix(df, count=False): """ Args: plu_column: string. Name of column which contains PLU card_column: string. Name of column which contain...
71
0
23
34ec0d74e1250ba23b3d21e4fe0accb28ac7e313
2,721
py
Python
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
1
2020-03-23T10:21:07.000Z
2020-03-23T10:21:07.000Z
import stripe from django.utils.encoding import smart_str from ..models import InvoiceItem def create(customer, amount, description, currency="usd", discountable=False, invoice=None, metadata=None, subscription=None): """ Creates a Stripe invoice item Args: customer: the customer to create the inv...
35.337662
126
0.672547
import stripe from django.utils.encoding import smart_str from ..models import InvoiceItem def create(customer, amount, description, currency="usd", discountable=False, invoice=None, metadata=None, subscription=None): """ Creates a Stripe invoice item Args: customer: the customer to create the inv...
0
0
0
1b45d3d6c3e81e089e85fc867d04f125f3bfba0b
1,685
py
Python
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
null
null
null
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
6
2019-11-25T08:15:05.000Z
2020-02-07T13:05:59.000Z
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
2
2019-11-28T02:58:14.000Z
2019-12-18T11:45:33.000Z
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure import numpy as np from . artists import TemplateSourcePlotManual
25.149254
89
0.693769
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure import numpy as np from . artists import TemplateSourcePlotManual class _Figure(FigureCanvas): def __init__(self, parent=None): self.figure = Figure(dpi=100) ...
1,242
14
190
60bfcc3eacefb477ac40fad83d9817037aa07c17
517
py
Python
rdmo/views/migrations/0020_manager.py
ItsNotYou/rdmo
eba2056b376107e817a4080fc12245095a907429
[ "Apache-2.0" ]
77
2016-08-09T11:40:20.000Z
2022-03-06T11:03:26.000Z
rdmo/views/migrations/0020_manager.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
377
2016-07-01T13:59:36.000Z
2022-03-30T13:53:19.000Z
rdmo/views/migrations/0020_manager.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
47
2016-06-23T11:32:19.000Z
2022-03-01T11:34:37.000Z
# Generated by Django 2.2.2 on 2019-07-01 16:00 from django.db import migrations import django.db.models.manager import rdmo.views.managers
22.478261
64
0.584139
# Generated by Django 2.2.2 on 2019-07-01 16:00 from django.db import migrations import django.db.models.manager import rdmo.views.managers class Migration(migrations.Migration): dependencies = [ ('views', '0019_view_groups'), ] operations = [ migrations.AlterModelManagers( ...
0
352
23
e6e2a46014e874507a5103f1ef3f803c80a4156a
705
py
Python
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
import argparse import sys from emeki.project_setup import setup_project_UI def emeki_main(): """The main function. It may be called directly from the command line when typing `emeki`.""" print("Hoi! This is my personal python library.") # Define argument parser parser = argparse.ArgumentP...
20.735294
85
0.675177
import argparse import sys from emeki.project_setup import setup_project_UI def emeki_main(): """The main function. It may be called directly from the command line when typing `emeki`.""" print("Hoi! This is my personal python library.") # Define argument parser parser = argparse.ArgumentP...
0
0
0
3b7bceb1e738ab4b98c9ed03c3d5320fdb0c27a8
11,533
py
Python
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
null
null
null
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
1
2021-11-09T10:41:16.000Z
2021-11-09T10:41:16.000Z
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
null
null
null
from thstatuses import STATUS, getTextFromStatus from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPixmap from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import Timeou...
34.121302
174
0.633487
from thstatuses import STATUS, getTextFromStatus from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPixmap from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import Timeou...
9,639
-9
384
61618b0a3f01462247caca8c84c8c8136b2f31e1
3,422
py
Python
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
###################Calculating state average of a variable and plotting using shape file####### ##############The shapefile and data file are read; Regions are defined and masked############# ###########Zonal statistics for first state is calculated and plotted########################## ##############Zonal statistics a...
39.333333
194
0.662186
###################Calculating state average of a variable and plotting using shape file####### ##############The shapefile and data file are read; Regions are defined and masked############# ###########Zonal statistics for first state is calculated and plotted########################## ##############Zonal statistics a...
0
0
0
6a32bdeb14738e782503a0157c539763f795251d
104
py
Python
xc/__main__.py
zlrs/xcode-toolbox
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
2
2021-02-13T19:21:36.000Z
2021-09-23T20:45:48.000Z
xc/__main__.py
zlrs/xcode-opener
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
1
2020-09-04T06:25:49.000Z
2020-09-04T06:25:49.000Z
xc/__main__.py
zlrs/xcode-opener
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
null
null
null
# the contents of this file will be executed when the module is run with -m. from .xc import xc xc()
14.857143
76
0.711538
# the contents of this file will be executed when the module is run with -m. from .xc import xc xc()
0
0
0
524cd9c9e8cfd5f5d8618e56a08d2ca49e66d838
532
py
Python
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
2
2021-09-28T19:49:29.000Z
2021-10-04T07:49:04.000Z
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
null
null
null
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
1
2021-11-22T09:27:18.000Z
2021-11-22T09:27:18.000Z
"""Script for data visualization. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def plot_data(data, path, ylabel="y"): """Plot data. """ fig, ax = plt.subplots() im = ax.imshow( data.transpose((-1, 0)), aspect='auto', cmap='hot', origin='l...
20.461538
38
0.588346
"""Script for data visualization. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def plot_data(data, path, ylabel="y"): """Plot data. """ fig, ax = plt.subplots() im = ax.imshow( data.transpose((-1, 0)), aspect='auto', cmap='hot', origin='l...
0
0
0
a77e6b45952f4265c641a9b855e0c8d97d1f2b9f
210
py
Python
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
from TemporaryStorage import TemporaryStorageInstance if __name__ == '__main__': main()
19.090909
60
0.719048
from TemporaryStorage import TemporaryStorageInstance def main(): storage = TemporaryStorageInstance() print(storage.upload(input('Enter path to file: ')).url) if __name__ == '__main__': main()
92
0
23
65752f5fd4bb5058515a14884e24f2e6032a385a
1,949
py
Python
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
2
2019-04-20T03:45:51.000Z
2019-04-27T05:52:10.000Z
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
3
2019-04-21T18:57:32.000Z
2019-04-28T15:14:02.000Z
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
4
2019-04-23T00:32:21.000Z
2019-04-29T22:29:00.000Z
import sys import pymongo import projectmemcached import time if __name__ == "__main__": argv = sys.argv if len(argv) < 2: print("Usage: python3.6 reviewapi.py mongodb_uri <listing_id>") exit(-1) mongodb_uri = argv[1] listing_id = int(argv[2]) db = pymongo.MongoClient(mongodb_...
29.984615
91
0.585428
import sys import pymongo import projectmemcached import time def get_all_reviews(db): pass def get_review_with_listing_id(_id, db): #print("_id",_id) #print("type(_id)",type(_id)) _id = int(_id) rev_lst = [] start_time = time.time() try: reviews = projectmemcached.get_listing_re...
1,505
0
46
93ffbb1aee9821f9b8357a5e05dcea086dace45e
3,825
py
Python
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
import sys from typing import List from enum import Enum, auto from parse_ctl import Parse, CmdType, DatType, BinOp, CmdValue import logging logging.basicConfig() logging.root.setLevel(logging.WARNING) logger = logging.getLogger("TCL_Machine") from tokenizer.Tokenizer import Tokenizer, TT print("Tcl/Forth inspired la...
37.871287
118
0.541699
import sys from typing import List from enum import Enum, auto from parse_ctl import Parse, CmdType, DatType, BinOp, CmdValue import logging logging.basicConfig() logging.root.setLevel(logging.WARNING) logger = logging.getLogger("TCL_Machine") from tokenizer.Tokenizer import Tokenizer, TT print("Tcl/Forth inspired la...
3,029
-3
152
b7100694a0c682daa8ac8cad7068663d92954f0f
58
py
Python
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 debugEnable = False
11.6
21
0.706897
#!/usr/bin/env python # coding=utf-8 debugEnable = False
0
0
0
88e0e1e6e478cb10c72935e6df48bf7cae166f1c
6,176
py
Python
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
import sys sys.path.append('../') import bz2, os import random, string import importlib import _pickle as pickle from datetime import datetime, timedelta # ~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~< # OS & list MANAGEMENT FUNCTIONS <~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<...
35.494253
163
0.560881
import sys sys.path.append('../') import bz2, os import random, string import importlib import _pickle as pickle from datetime import datetime, timedelta # ~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~< # OS & list MANAGEMENT FUNCTIONS <~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<...
197
0
23
5ab0b428ffe78caec226c617c5e0d5aa9f2130ba
6,951
py
Python
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
9
2019-02-28T06:24:08.000Z
2021-05-29T04:43:56.000Z
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
425
2019-04-02T08:07:27.000Z
2021-07-01T18:29:02.000Z
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
10
2019-02-25T08:40:24.000Z
2022-03-08T10:22:57.000Z
import click from deploy_tools.cli import ( auto_nonce_option, connect_to_json_rpc, gas_option, gas_price_option, get_nonce, jsonrpc_option, keystore_option, nonce_option, retrieve_private_key, ) from deploy_tools.deploy import build_transaction_options from deploy_tools.files import...
28.72314
116
0.724212
import click from deploy_tools.cli import ( auto_nonce_option, connect_to_json_rpc, gas_option, gas_price_option, get_nonce, jsonrpc_option, keystore_option, nonce_option, retrieve_private_key, ) from deploy_tools.deploy import build_transaction_options from deploy_tools.files import...
3,736
0
110
e603ea8651f0df354d69df9e51178fe5176e9570
1,452
py
Python
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
2
2016-10-06T21:19:32.000Z
2016-10-06T21:58:04.000Z
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
392
2016-10-06T17:13:30.000Z
2021-01-15T04:15:38.000Z
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit Test: orchard.system_status.formatters.temperature """ import unittest import flask_babel import orchard import orchard.system_status.formatters.temperature as formatter
31.565217
73
0.68595
# -*- coding: utf-8 -*- """ Unit Test: orchard.system_status.formatters.temperature """ import unittest import flask_babel import orchard import orchard.system_status.formatters.temperature as formatter class DataUnitTest(unittest.TestCase): def setUp(self): self.app = orchard.create_app('Testing...
1,100
17
131
0c2ace54d74fa44feb9d1b71e5858f4afa623268
9,057
py
Python
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
from typing import Dict, List, Tuple from collections import defaultdict from django.db import models from django.db.models.fields.related_descriptors import ManyToManyDescriptor from dotdict import DotDict from .sorter import Sorter from .model_importer import ModelImporter from .importer_manager import ImporterMan...
37.42562
122
0.60053
from typing import Dict, List, Tuple from collections import defaultdict from django.db import models from django.db.models.fields.related_descriptors import ManyToManyDescriptor from dotdict import DotDict from .sorter import Sorter from .model_importer import ModelImporter from .importer_manager import ImporterMan...
6,199
2,064
23
81edf04bbd8afc21aabc5f7f2f17e2fde9b2494b
1,566
py
Python
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2021.05.30 # # title: How to add text in a “textbox” to an image? # url: https://stackoverflow.com/questions/67760340/how-to-add-text-in-a-textbox-to-an-image/67762111#67762111 import PIL print('PIL version:', PIL.__version__) from PIL import Image,...
30.705882
110
0.670498
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2021.05.30 # # title: How to add text in a “textbox” to an image? # url: https://stackoverflow.com/questions/67760340/how-to-add-text-in-a-textbox-to-an-image/67762111#67762111 import PIL print('PIL version:', PIL.__version__) from PIL import Image,...
0
0
0
ee607536b5a006e8d7fd92c922671002c72bebac
191
py
Python
rl/configs/PrunerConfig.py
mahkons/Lottery-ticket-hypothesis
96ec399fdfc4138a37feecb24a63b3cdb8e50e1e
[ "MIT" ]
7
2020-10-08T04:59:51.000Z
2021-12-03T06:12:39.000Z
rl/configs/PrunerConfig.py
mahkons/Lottery-ticket-hypothesis
96ec399fdfc4138a37feecb24a63b3cdb8e50e1e
[ "MIT" ]
null
null
null
rl/configs/PrunerConfig.py
mahkons/Lottery-ticket-hypothesis
96ec399fdfc4138a37feecb24a63b3cdb8e50e1e
[ "MIT" ]
null
null
null
from configs.Config import Config
23.875
44
0.727749
from configs.Config import Config class PrunerConfig(Config): def __init__(self, rewind_epochs): super(PrunerConfig, self).__init__() self.rewind_epochs = rewind_epochs
101
6
49
34703d4ae8adcfdfa9e78f969ac9c307e0078834
1,492
py
Python
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
1
2019-03-29T23:32:17.000Z
2019-03-29T23:32:17.000Z
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
null
null
null
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
null
null
null
import sys import pathlib import argparse import gzip import json import requests import datadiff import pysmata.loader as loader import pysmata.files if __name__ == "__main__": main()
27.127273
87
0.718499
import sys import pathlib import argparse import gzip import json import requests import datadiff import pysmata.loader as loader import pysmata.files def main_replay(args): j = pysmata.files.get_replay(args.code) json.dump(j, sys.stdout, indent=2, sort_keys=True) def main_game(args): j = pysmata.files.get_gam...
1,211
0
92
6fa49667616f94e3b064b5a1a114d53fb7594fae
1,100
py
Python
addons/Sprytile-6b68d00/rx/linq/observable/defaultifempty.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
733
2017-08-22T09:47:54.000Z
2022-03-27T23:56:52.000Z
rx/linq/observable/defaultifempty.py
asheraryam/Sprytile
c63be50d14b07192ff134ceab256f0d69b9c4c92
[ "MIT" ]
74
2017-08-16T09:13:05.000Z
2022-03-15T02:31:49.000Z
rx/linq/observable/defaultifempty.py
asheraryam/Sprytile
c63be50d14b07192ff134ceab256f0d69b9c4c92
[ "MIT" ]
77
2017-09-14T16:56:11.000Z
2022-03-27T13:55:16.000Z
from rx import AnonymousObservable, Observable from rx.internal import extensionmethod @extensionmethod(Observable) def default_if_empty(self, default_value=None): """Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty. res = obs = xs.def...
28.947368
76
0.682727
from rx import AnonymousObservable, Observable from rx.internal import extensionmethod @extensionmethod(Observable) def default_if_empty(self, default_value=None): """Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty. res = obs = xs.def...
329
0
27
f83c905388d2f4814f35b649b442f121e5d416f7
1,287
py
Python
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: Fred@gigagantic-server.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import cons3rt from cons3rt.api.test_a...
20.758065
76
0.656566
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: Fred@gigagantic-server.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import cons3rt from cons3rt.api.test_a...
83
0
54
40fd4c60cb4cca19a678c49ecf908843ea31cb34
4,478
py
Python
cidan/GUI/ListWidgets/ClassListModule.py
Mishne-Lab/cidan
3f579b6d5a49e17690e9aa07dfb60d3e8c05e681
[ "MIT" ]
2
2020-11-24T17:47:23.000Z
2021-05-20T16:19:53.000Z
cidan/GUI/ListWidgets/ClassListModule.py
Mishne-Lab/CIDAN
30d1176773e3ad0f236ba342cba48c89492f4e63
[ "MIT" ]
4
2020-08-18T16:42:23.000Z
2020-08-18T20:58:12.000Z
cidan/GUI/ListWidgets/ClassListModule.py
Mishne-Lab/cidan
3f579b6d5a49e17690e9aa07dfb60d3e8c05e681
[ "MIT" ]
1
2020-08-12T18:47:22.000Z
2020-08-12T18:47:22.000Z
from qtpy import QtCore from qtpy.QtGui import * from qtpy.QtWidgets import * from cidan.GUI.ListWidgets.ClassItemModule import ClassItemModule from cidan.GUI.ListWidgets.ClassItemWidget import ClassItemWidget class ClassListModule(QFrame): """ Its the class list in the Class modification tab """ # ...
45.232323
134
0.632649
from qtpy import QtCore from qtpy.QtGui import * from qtpy.QtWidgets import * from cidan.GUI.ListWidgets.ClassItemModule import ClassItemModule from cidan.GUI.ListWidgets.ClassItemWidget import ClassItemWidget class ClassListModule(QFrame): """ Its the class list in the Class modification tab """ de...
3,044
0
81
8df16a862157a8fa6ed02dacc173c36cbbd07708
1,568
py
Python
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
"""Implementation of the replaceitem command.""" from mcipc.rcon.be.types import EntityEquipmentSlot, ReplaceMode from mcipc.rcon.client import Client from mcipc.rcon.proxy import CommandProxy from mcipc.rcon.types import Vec3 __all__ = ['ReplaceitemProxy', 'replaceitem'] class ReplaceitemProxy(CommandProxy): ...
34.086957
79
0.663265
"""Implementation of the replaceitem command.""" from mcipc.rcon.be.types import EntityEquipmentSlot, ReplaceMode from mcipc.rcon.client import Client from mcipc.rcon.proxy import CommandProxy from mcipc.rcon.types import Vec3 __all__ = ['ReplaceitemProxy', 'replaceitem'] class ReplaceitemProxy(CommandProxy): ...
0
0
0
1450d67a870c8a1cdc9b8aaa4fa6ce0512060694
337
py
Python
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': fun_while()
21.0625
56
0.534125
def fun_while(): LIMITE = 1000 contador = 0 potencia2 = 0 while potencia2 < LIMITE: # potencia2 = 2**contador print('2 elevado a la {} es igual a: {}'.format( contador, potencia2 )) contador += 1 potencia2 = 2**contador if __name__ == '__main__': ...
266
0
22
2c46395b0f9145c6036301c0a82f238f32eb53df
141
py
Python
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
87
2019-08-29T06:54:06.000Z
2022-03-14T12:52:59.000Z
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
258
2015-02-02T20:49:11.000Z
2018-10-04T22:04:47.000Z
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
65
2015-02-04T18:48:42.000Z
2018-10-03T18:33:39.000Z
print(df.groupby('station').temperature.min()) print(df.groupby('station').temperature.max()) print(df.groupby('station').temperature.std())
35.25
46
0.744681
print(df.groupby('station').temperature.min()) print(df.groupby('station').temperature.max()) print(df.groupby('station').temperature.std())
0
0
0
fe9c926dbdc24905c23f6e0842291e060954353a
1,446
py
Python
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
import pytest import dependencies import sys sys.path.insert(0, dependencies.program_path) from src import RoomObject as rObject from src import Room as r
24.931034
65
0.674274
import pytest import dependencies import sys sys.path.insert(0, dependencies.program_path) from src import RoomObject as rObject from src import Room as r def test_Room(): r1 = r.Room([]) assert r1.objects == [] r1.AddObject("person_Maria") assert r1.objects[0].GetCategory() == rObject.Category.perso...
1,105
0
184
c582ad7fb26907b8c1e9561889e4123ef92da1ef
3,886
py
Python
results/models.py
lilbex/bitcom
c0d09155b655de3ebe84851f24e5c07ef60da611
[ "MIT" ]
null
null
null
results/models.py
lilbex/bitcom
c0d09155b655de3ebe84851f24e5c07ef60da611
[ "MIT" ]
null
null
null
results/models.py
lilbex/bitcom
c0d09155b655de3ebe84851f24e5c07ef60da611
[ "MIT" ]
null
null
null
from django.db import models
39.252525
81
0.764539
from django.db import models class agentname(models.Model): name_id = models.IntegerField(primary_key=True, editable=False) firstname = models.CharField(max_length=200) lastname = models.CharField(max_length=200) email = models.CharField(max_length=200) phone = models.CharField(max_length=200) ...
0
3,618
230
317a24ac524451ddf8901f319332ad7de660563c
1,043
py
Python
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
r""" Given a positive integer num, write a function which returns True if num is a perfect square else False. Follow up: Do not use any built-in library function such as sqrt. Example 1: Input: num = 16 Output: true Example 2: Input: num = 14 Output: false Constraints: 1 <= num <= 2^31 - 1 """ # Submitted...
21.729167
140
0.716203
r""" Given a positive integer num, write a function which returns True if num is a perfect square else False. Follow up: Do not use any built-in library function such as sqrt. Example 1: Input: num = 16 Output: true Example 2: Input: num = 14 Output: false Constraints: 1 <= num <= 2^31 - 1 """ # Submitted...
215
-6
72
5c76baa9a1b69d9287b8d2666496d2e6d555580f
1,613
py
Python
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2022-01-04T07:04:46.000Z
2022-01-04T07:04:46.000Z
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2020-02-17T19:06:03.000Z
2020-02-17T19:06:03.000Z
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2021-07-08T13:21:04.000Z
2021-07-08T13:21:04.000Z
from django.db import models from ckeditor.fields import RichTextField # Create your models here.
38.404762
87
0.739616
from django.db import models from ckeditor.fields import RichTextField # Create your models here. class MainPageStatisticNumber(models.Model): number = models.IntegerField(null=True, blank=True) description = models.TextField(null=True, blank=True) class Meta: verbose_name_plural = "Физический фа...
82
1,430
69
e9e3d0dfaccedc93d2244086a1da40049b665b0a
122
py
Python
handy/rand/__init__.py
Al3xChen/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
5
2018-04-03T10:24:04.000Z
2020-01-16T08:04:12.000Z
handy/rand/__init__.py
deep2cv/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
1
2021-03-19T10:32:17.000Z
2021-03-19T10:32:17.000Z
handy/rand/__init__.py
Al3xChen/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
1
2021-04-17T19:28:15.000Z
2021-04-17T19:28:15.000Z
from __future__ import absolute_import from .number import randomPN from .gid import calcAge from .passwd import randomPW
24.4
38
0.844262
from __future__ import absolute_import from .number import randomPN from .gid import calcAge from .passwd import randomPW
0
0
0
f68f746b4490e7012216fa20977c4a2123dba0f5
708
py
Python
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import django from django.conf import settings from django.utils.functional import keep_lazy if django.VERSION >= (1, 5): from django.contrib.auth import get_user_model AUTH_USER_MODEL = settings.AUTH_USER_MODEL get_user_model = keep_lazy(AUTH_USER_MODEL)(get_user_model) get_use...
26.222222
80
0.720339
# -*- coding: utf-8 -*- import django from django.conf import settings from django.utils.functional import keep_lazy if django.VERSION >= (1, 5): from django.contrib.auth import get_user_model AUTH_USER_MODEL = settings.AUTH_USER_MODEL get_user_model = keep_lazy(AUTH_USER_MODEL)(get_user_model) get_use...
152
0
77
52a84b721a492c3bd0b98f72e605f1c67fd7fa2c
1,620
py
Python
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
from Membership import sad,memberships import defuzzify import rule import itertools if __name__ == "__main__": x = FLC(70, 15, 30) x.evaluate()
33.061224
108
0.604938
from Membership import sad,memberships import defuzzify import rule import itertools class FLC: def __init__(self, speed, acc, dist): self.s = speed self.a = acc self.d = dist self.s_index = list() self.a_index = list() self.d_index = list() def evaluate(self):...
1,345
-11
130
fa81436141d51179434081ace437db914d9fe621
1,219
py
Python
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
import argparse from FCNetwork import FCNetwork if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "--sizes", default=[ # 3*28*28, # 2*28*28, 14*28], type=list) parser.add_argument( "--labels_path"...
26.5
62
0.563577
import argparse from FCNetwork import FCNetwork if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "--sizes", default=[ # 3*28*28, # 2*28*28, 14*28], type=list) parser.add_argument( "--labels_path"...
0
0
0
9799be4cdc686d4c6b7ef7267ca8ba2df75f05e7
3,315
py
Python
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-14T06:37:42.000Z
2022-01-14T06:37:42.000Z
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
40.426829
133
0.606033
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
2,384
24
77
2af45b14e174784718276ce8d877cc63c22b7a96
7,759
py
Python
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31.412955
80
0.68398
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
5,051
0
425
59348430d1bc124d6f170c7dd6ff5d14cf9955e6
3,386
py
Python
common/datastore_schema.py
isabella232/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
18
2017-03-17T18:10:55.000Z
2022-03-30T17:35:55.000Z
common/datastore_schema.py
google/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
1
2021-06-27T16:01:10.000Z
2021-06-27T16:21:50.000Z
common/datastore_schema.py
isabella232/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
8
2017-03-28T13:34:50.000Z
2021-06-27T15:39:10.000Z
# # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.270833
80
0.625222
# # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
0
0
0
79bb8561dbf903a1cebc082d9f0da06d6ef1208d
855
py
Python
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
null
null
null
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
null
null
null
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
2
2021-01-16T20:45:06.000Z
2021-01-16T20:46:10.000Z
from Hackdavis.ab_recipes import Recipes # name, type, ingredients, url if __name__ == "__main__": s = Simplyrecipes('https://www.simplyrecipes.com/recipes/mexican_red_chili_sauce/') print(s.find_ingredients())
28.5
87
0.540351
from Hackdavis.ab_recipes import Recipes # name, type, ingredients, url class Simplyrecipes(Recipes): def find_name(self): try: name = self.soup.find(class_='entry-title').text return name except: return "Not available" def find_ingredients(self): t...
551
8
76
30de5e50dc9874acb1eb7813b465287c291f649b
672
py
Python
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from zope.interface import alsoProvides from collective.transmogrifier.transmogrifier import Transmogrifier from plone.protect.interfaces import IDisableCSRFProtection from Products.Five.browser import BrowserView
32
67
0.74256
# -*- coding: utf-8 -*- from zope.interface import alsoProvides from collective.transmogrifier.transmogrifier import Transmogrifier from plone.protect.interfaces import IDisableCSRFProtection from Products.Five.browser import BrowserView class ImportViolaReggiocalabria(BrowserView): pipeline = u'parruc.violaregg...
297
112
23
9fb5c9551fa0424e6384ba315ebf13e5d395754e
3,097
py
Python
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
152
2017-04-02T18:13:19.000Z
2022-03-19T18:46:12.000Z
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
19
2017-05-03T13:48:06.000Z
2020-08-18T16:20:25.000Z
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
26
2017-04-19T16:00:51.000Z
2021-06-12T10:07:46.000Z
import logging import re import hashlib from appAux import loadFile, toHex logger = logging.getLogger(__name__)
41.851351
115
0.690991
import logging import re import hashlib from appAux import loadFile, toHex logger = logging.getLogger(__name__) class Ingest(object): # Base class used to encapsulate the logic required to ingest entries in different formats # ingest_type: Iternal ID for the ingest plugin ingest_type = "" # file_name_...
2,420
542
23
df5278adee8bd1b3da5e0fd9be339949166d2c20
1,247
py
Python
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 13 22:07:00 2021 @authors: Ali Kamali Sara Baradaran Mahdi Heidari """ import angr,claripy
31.175
89
0.644747
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 13 22:07:00 2021 @authors: Ali Kamali Sara Baradaran Mahdi Heidari """ import angr,claripy class _strcat_vul(angr.SimProcedure): def run(self,dst_addr, src_addr): strlen = angr.SIM_PROCEDURES['libc']['strlen'] memcp...
1,000
16
49
7f827fcc92f0ecd1d3d92cf6de9698dae4fb638b
805
py
Python
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
null
null
null
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
1
2020-06-25T05:39:08.000Z
2020-06-25T05:39:08.000Z
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
null
null
null
from flask import Flask, request, abort from datetime import datetime import pytz app = Flask(__name__) @app.route('/') if __name__ == '__main__': app.run(ssl_context=("/etc/demo/ssl/blueapron.crt", "/etc/demo/ssl/blueapron.key"), host='0.0.0.0')
25.15625
115
0.657143
from flask import Flask, request, abort from datetime import datetime import pytz app = Flask(__name__) def current_date(): time_zone_NY = pytz.timezone("America/New_York") time_NY = datetime.now(time_zone_NY) return time_NY.strftime("%m:%d:%Y") def current_time(): time_zone_NY = pytz.timezone("Am...
453
0
68
ec36fa7208b79ab9acb4ecd20d30779378007889
552
py
Python
food_map.py
OnayAdams/self-writing-code
e1c2978f7c413a941246ddf30bcc838b98a269ef
[ "MIT" ]
10
2017-01-08T12:21:06.000Z
2021-11-14T17:42:14.000Z
food_map.py
OnayAdams/self-writing-code
e1c2978f7c413a941246ddf30bcc838b98a269ef
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
food_map.py
OnayAdams/self-writing-code
e1c2978f7c413a941246ddf30bcc838b98a269ef
[ "MIT" ]
9
2017-01-25T22:03:45.000Z
2021-11-07T22:14:11.000Z
from probability import with_probability import random
30.666667
76
0.697464
from probability import with_probability import random def create_food_maps(number_of_food_maps): food_maps = [] for _ in range(number_of_food_maps): food_maps.append(create_random_food_map()); return food_maps def create_random_food_map(): food_map = [[0 for x in xrange(10)] for x in xrange...
450
0
46
b2e288dfc0da01282190857b0967f8bebfc3de86
2,389
py
Python
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import os import re from setuptools import find_packages, setup REQUIREMENTS = [] SETUP_REQUIREMENTS = [] TEST_REQUIREMENTS = [] DEV_REQUIREMENTS = ["bumpversion", "pre-commit", "tox"] with open("README.rst") as readme_file: README = readme_f...
35.132353
120
0.654667
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import os import re from setuptools import find_packages, setup REQUIREMENTS = [] SETUP_REQUIREMENTS = [] TEST_REQUIREMENTS = [] DEV_REQUIREMENTS = ["bumpversion", "pre-commit", "tox"] with open("README.rst") as readme_file: README = readme_f...
0
0
0
66a90cc232213d5e817e81dbcb67c0fb9c6ef5e1
16,966
py
Python
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-02-06T22:40:13.000Z
2021-03-26T09:15:34.000Z
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
8
2020-07-11T07:10:51.000Z
2022-03-12T00:39:03.000Z
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-03-26T09:19:42.000Z
2021-07-27T02:38:09.000Z
import torch, cv2 from PIL import Image, ImageDraw import numpy as np from shapely.geometry import Polygon, MultiPoint, MultiPolygon from .boxes import dists_pt2line_numpy, dists2corners_numpy # ref: https://github.com/MhLiao/TextBoxes_plusplus/blob/master/examples/text/nms.py def quads_iou(a, b): """ :param ...
39.547786
134
0.589002
import torch, cv2 from PIL import Image, ImageDraw import numpy as np from shapely.geometry import Polygon, MultiPoint, MultiPolygon from .boxes import dists_pt2line_numpy, dists2corners_numpy # ref: https://github.com/MhLiao/TextBoxes_plusplus/blob/master/examples/text/nms.py def quads_iou(a, b): """ :param ...
0
0
0
1eaa1736e351959928c7d0be66b2f9f3a24452f0
373
py
Python
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
21
2019-05-13T12:54:47.000Z
2022-01-10T19:51:26.000Z
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
19
2018-11-18T20:10:09.000Z
2019-11-16T02:47:38.000Z
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
1
2022-02-23T16:23:06.000Z
2022-02-23T16:23:06.000Z
import re # optional dot, word characters, hyphens allowed tag_regex = "^\.?[-\w]+$" # same but repeated and joined by + multitag_regex = "^(\+?\.?[-\w]+)+$"
24.866667
64
0.576408
import re # optional dot, word characters, hyphens allowed tag_regex = "^\.?[-\w]+$" # same but repeated and joined by + multitag_regex = "^(\+?\.?[-\w]+)+$" def website_from_url(url: str): # idea: reverse url, look from last / to start match = re.match(r"^(?:\w+:\/\/)?(?:www\.)?([\w.]+).*", url) if mat...
190
0
23
3c1848793f7ff12ba55e8bcca96216337aa0bcdd
6,728
py
Python
rorlkit/torch/data.py
DrawZeroPoint/RoRL
90a3eebdca119d00fbb2911d37ca4447cd0450b3
[ "MIT" ]
null
null
null
rorlkit/torch/data.py
DrawZeroPoint/RoRL
90a3eebdca119d00fbb2911d37ca4447cd0450b3
[ "MIT" ]
null
null
null
rorlkit/torch/data.py
DrawZeroPoint/RoRL
90a3eebdca119d00fbb2911d37ca4447cd0450b3
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.utils.data import Dataset, Sampler from torch_geometric.data import Data from rorlkit.torch.data_management import rosbag_data
34.502564
108
0.636296
import numpy as np import torch from torch.utils.data import Dataset, Sampler from torch_geometric.data import Data from rorlkit.torch.data_management import rosbag_data def normalize_image(image): assert image.dtype == np.uint8 return np.float64(image) / 255.0 class ImageDataset(Dataset): def __init...
3,775
2,179
596
d88b4225352fe4d7e6740f9c084907486c08999b
475
py
Python
ulfs/weights_recorder.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
2
2021-07-09T16:32:00.000Z
2022-03-21T17:32:39.000Z
ulfs/weights_recorder.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
null
null
null
ulfs/weights_recorder.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
2
2021-02-25T04:42:14.000Z
2021-02-25T04:43:06.000Z
import copy
29.6875
66
0.698947
import copy class WeightsRecorder(object): def __init__(self, num_timesteps_back): self.num_timesteps_back = num_timesteps_back self.records = [] def record(self, state_dict): self.records.append(copy.deepcopy(state_dict)) if len(self.records) > self.num_timesteps_back: ...
350
9
103
44f39e88718af5489be89e272b4207bab5372b24
2,221
py
Python
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
2
2021-12-09T04:30:19.000Z
2021-12-15T19:13:40.000Z
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
null
null
null
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
1
2021-12-22T04:33:39.000Z
2021-12-22T04:33:39.000Z
import argparse import math import sys import tqdm sys.path.append('/relnet') from relnet.evaluation.experiment_conditions import get_conditions_for_experiment from relnet.evaluation.file_paths import FilePaths from multiprocessing.pool import Pool from psutil import cpu_count if __name__ == "__main__": main()
37.644068
114
0.731202
import argparse import math import sys import tqdm sys.path.append('/relnet') from relnet.evaluation.experiment_conditions import get_conditions_for_experiment from relnet.evaluation.file_paths import FilePaths from multiprocessing.pool import Pool from psutil import cpu_count def main(): parser = argparse.Argu...
1,855
0
46
c048c4809d55f02548ef3bb190e9051e1bd02313
36
py
Python
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
108
2018-03-23T20:06:03.000Z
2022-01-06T19:32:46.000Z
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
18
2019-08-09T21:16:14.000Z
2022-02-14T21:52:06.000Z
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
28
2018-04-28T17:07:33.000Z
2022-02-28T07:22:56.000Z
__all__ = ["composition", "crystal"]
36
36
0.694444
__all__ = ["composition", "crystal"]
0
0
0
db8b76427fa57940c7e70d12ebef6739c9e4fffa
1,193
py
Python
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
import sys from unittest import mock import py import pytest FIX_PROJECT = py.path.local(__file__).dirpath("fixture-project") @pytest.fixture @pytest.fixture
22.509434
74
0.630344
import sys from unittest import mock import py import pytest FIX_PROJECT = py.path.local(__file__).dirpath("fixture-project") class MockConfig: def __init__(self) -> None: self.toxinidir = py.path.local(".") class MockEnvConfig: def __init__(self) -> None: self.config = MockConfig() ...
792
-11
245
5f52e372737abfc8da1ed4ead02ce2226dc01471
7,695
py
Python
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
import typing import colors palette: typing.Mapping[str, typing.Mapping[int, typing.Tuple[int, int, int]]] = { "blueGray": { 50: (248, 250, 252), 100: (241, 245, 249), 200: (226, 232, 240), 300: (203, 213, 225), 400: (148, 163, 184), 500: (100, 116, 139), 60...
25.735786
82
0.402339
import typing import colors palette: typing.Mapping[str, typing.Mapping[int, typing.Tuple[int, int, int]]] = { "blueGray": { 50: (248, 250, 252), 100: (241, 245, 249), 200: (226, 232, 240), 300: (203, 213, 225), 400: (148, 163, 184), 500: (100, 116, 139), 60...
196
0
46
65b8fe24c01930cdaa237dd207eb751c822df4c2
294
py
Python
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
from random import shuffle alunoI = input('Digite o aluno I: ') alunoII = input('Digite o aluno II: ') alunoIII = input('Digite o aluno III: ') alunoIV = input('Digite o aluno IV: ') ordem = [alunoI,alunoII,alunoIII, alunoIV] shuffle(ordem) print('A ordem de apresentação será') print(ordem)
24.5
42
0.717687
from random import shuffle alunoI = input('Digite o aluno I: ') alunoII = input('Digite o aluno II: ') alunoIII = input('Digite o aluno III: ') alunoIV = input('Digite o aluno IV: ') ordem = [alunoI,alunoII,alunoIII, alunoIV] shuffle(ordem) print('A ordem de apresentação será') print(ordem)
0
0
0
94821e65e23247c1926a6c6f887a36e33d13decc
5,432
py
Python
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
132
2018-10-29T14:58:26.000Z
2022-03-04T10:43:26.000Z
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
42
2018-08-31T10:41:43.000Z
2021-08-01T08:19:06.000Z
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
22
2018-12-24T03:42:46.000Z
2022-03-16T04:42:25.000Z
""" Module for various checkers. """ import re import logging from functools import lru_cache from abc import ABCMeta, abstractmethod from .parser import compile_regex from .exceptions import InvalidPatternError log = logging.getLogger(__name__) class Checker(metaclass=ABCMeta): """ Abstract class for Che...
35.272727
113
0.582106
""" Module for various checkers. """ import re import logging from functools import lru_cache from abc import ABCMeta, abstractmethod from .parser import compile_regex from .exceptions import InvalidPatternError log = logging.getLogger(__name__) class Checker(metaclass=ABCMeta): """ Abstract class for Che...
457
0
80
b24c8d9ac3b663fa30e60da8c8048f222b9c35b3
13,149
py
Python
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
1
2019-05-29T09:54:14.000Z
2019-05-29T09:54:14.000Z
# -*- coding: utf-8 -*- import os import sys import urllib,urllib2,cookielib import datetime,time import re import random from bs4 import BeautifulSoup as soup import io text_file = open("amazonreviewlinks.txt", "r") lines = text_file.read().split(',') no = len(lines) #opening product link p...
35.252011
153
0.621188
# -*- coding: utf-8 -*- import os import sys import urllib,urllib2,cookielib import datetime,time import re import random from bs4 import BeautifulSoup as soup import io text_file = open("amazonreviewlinks.txt", "r") lines = text_file.read().split(',') no = len(lines) #opening product link p...
0
0
0
22c86dba31cae5c7c9f834c6ed85a85e8a85587c
15,192
py
Python
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
3
2022-03-18T03:42:49.000Z
2022-03-27T08:24:06.000Z
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
null
null
null
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
1
2022-03-21T09:21:17.000Z
2022-03-21T09:21:17.000Z
# spectral_cluster.py import torch import torch.nn.functional as F import numpy as np import random import time import datetime import os import sklearn from sklearn import metrics from multi_kmeans_pp import MultiKMeans from logger import Logger from scipy.sparse.csgraph import laplacian as csgra...
36.963504
161
0.551474
# spectral_cluster.py import torch import torch.nn.functional as F import numpy as np import random import time import datetime import os import sklearn from sklearn import metrics from multi_kmeans_pp import MultiKMeans from logger import Logger from scipy.sparse.csgraph import laplacian as csgra...
2,934
0
75
aac1f0208610c6af585654ed5ac4f1aedda02003
1,895
py
Python
lib/synthesis.py
msoeken/lhrs-experiments
b1ef4b8f14bdb2dbb9d6e1ef21b4074a5a1e3600
[ "MIT" ]
null
null
null
lib/synthesis.py
msoeken/lhrs-experiments
b1ef4b8f14bdb2dbb9d6e1ef21b4074a5a1e3600
[ "MIT" ]
null
null
null
lib/synthesis.py
msoeken/lhrs-experiments
b1ef4b8f14bdb2dbb9d6e1ef21b4074a5a1e3600
[ "MIT" ]
null
null
null
from timeit import default_timer as timer import revkit
31.065574
70
0.677045
from timeit import default_timer as timer import revkit def lhrs(filename, configuration): revkit.read_aiger(filename = filename) synthesis = revkit.lhrs(**configuration).dict() circuit = revkit.ps(circuit = True, silent = True).dict() revkit.store(clear = True, aig = True, circuit = True) retur...
1,723
0
115
2ad5ea3569bed369f149517b0e04aff6cfd4fe08
1,404
py
Python
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
1
2017-02-08T06:11:30.000Z
2017-02-08T06:11:30.000Z
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
null
null
null
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
4
2017-05-25T13:43:37.000Z
2020-01-15T20:42:03.000Z
# Time: O(n^2) # Space: O(1) # # Given an array S of n integers, # are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # # Note: # Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) # The solution set must not conta...
32.651163
82
0.445157
# Time: O(n^2) # Space: O(1) # # Given an array S of n integers, # are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # # Note: # Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) # The solution set must not conta...
743
-6
49
c670e79abddbb3d682888ceb50de879e7f76af1d
183
py
Python
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
null
null
null
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
null
null
null
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
1
2019-08-11T23:20:39.000Z
2019-08-11T23:20:39.000Z
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() from .core import Word, Meaning, ReviewPlan, AddCounter, ReviewPlanType, ReviewStatus, ReviewStage
30.5
98
0.830601
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() from .core import Word, Meaning, ReviewPlan, AddCounter, ReviewPlanType, ReviewStatus, ReviewStage
0
0
0
d9c41c197bfdea35ed0012e3187fe5f51b07b1d2
4,689
py
Python
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.hazmat.primi...
25.074866
79
0.712519
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.hazmat.primi...
1,379
1,158
421
242fccb201432150d12c550759b599ad5e0cf05a
155
py
Python
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
1
2018-10-01T06:53:32.000Z
2018-10-01T06:53:32.000Z
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
null
null
null
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
5
2015-03-23T21:13:19.000Z
2022-01-03T11:15:39.000Z
""" This module loads all the classes from the VTK Chemistry library into its namespace. This is an optional module.""" from vtkChemistryPython import *
31
73
0.774194
""" This module loads all the classes from the VTK Chemistry library into its namespace. This is an optional module.""" from vtkChemistryPython import *
0
0
0
cfb1f79bab094c9d8297508077bebf63677dc06f
142
py
Python
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
from .spotify import Spotify from .cache import Cache from . import croapi from . import matcher __all__ = [Spotify, Cache, croapi, matcher]
20.285714
43
0.767606
from .spotify import Spotify from .cache import Cache from . import croapi from . import matcher __all__ = [Spotify, Cache, croapi, matcher]
0
0
0
399a55c90e192eccb945e7476953b12c6578ea17
225
py
Python
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
1
2022-03-29T12:49:11.000Z
2022-03-29T12:49:11.000Z
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
null
null
null
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
null
null
null
import json from fastapi.testclient import TestClient from main import my_awesome_api client = TestClient(my_awesome_api) with open("openapi.json", "w") as f: json.dump(client.get("/openapi.json").json(), f, indent=4)
22.5
62
0.746667
import json from fastapi.testclient import TestClient from main import my_awesome_api client = TestClient(my_awesome_api) with open("openapi.json", "w") as f: json.dump(client.get("/openapi.json").json(), f, indent=4)
0
0
0
916034fa07941df429e7ab6cb9e7142147cffcb3
1,429
py
Python
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
3
2019-07-11T08:49:27.000Z
2021-09-07T16:49:15.000Z
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
null
null
null
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
2
2019-07-13T12:45:22.000Z
2021-03-12T08:48:57.000Z
import numpy as np # x = np.array([0.1, 0.8, 0.05, 0.05]) # t = np.array([0.0, 0.1, 0.0, 0.0]) # target probability distribution # x = np.array([0.2, 0.5, 0.2, 0.1]) # t = np.array([0.0, 0.0, 0.1, 0.0]) # target probability distribution # x = np.array([0.05, 0.05, 0.8, 0.1]) # t = np.array([0.0, 0.0, 0.0, 0.1...
23.048387
77
0.602519
import numpy as np # x = np.array([0.1, 0.8, 0.05, 0.05]) # t = np.array([0.0, 0.1, 0.0, 0.0]) # target probability distribution # x = np.array([0.2, 0.5, 0.2, 0.1]) # t = np.array([0.0, 0.0, 0.1, 0.0]) # target probability distribution # x = np.array([0.05, 0.05, 0.8, 0.1]) # t = np.array([0.0, 0.0, 0.0, 0.1...
213
0
92
3f49b7725ef1772d867b5e4dc449c1c433c236a3
738
py
Python
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import io import pickle import pprint data = [] data.append(SimpleObject('pickle')) data.append(SimpleObject('preserve')) data.append(SimpleObject('last')) # Simulate a file. out_s = io.BytesIO() # Write to the stream for o in data: print('WRITING : {} ({})'.format(o.name, o.name_backwards)) pickle.dump(o,...
18.45
63
0.617886
import io import pickle import pprint class SimpleObject: def __init__(self, name): self.name = name self.name_backwards = name[::-1] return data = [] data.append(SimpleObject('pickle')) data.append(SimpleObject('preserve')) data.append(SimpleObject('last')) # Simulate a file. out_s = ...
85
-2
50
e244afda2293f155d28cddd140cfeb8cdd60d08f
359
py
Python
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
6
2021-03-30T12:24:59.000Z
2021-12-20T06:56:07.000Z
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
null
null
null
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This script has been taken from https://github.com/miguelgrinberg/flasky-with-celery. # The github repo above also provided the starting guidelines to # have celery work in factory mode with Flask: I recommend you also look at the repo above! import os from app import celery, create_app app =...
32.636364
91
0.771588
#!/usr/bin/env python # This script has been taken from https://github.com/miguelgrinberg/flasky-with-celery. # The github repo above also provided the starting guidelines to # have celery work in factory mode with Flask: I recommend you also look at the repo above! import os from app import celery, create_app app =...
0
0
0
4277934cb1b1a6b1eabf9c6dc79ecfb849001efc
1,867
py
Python
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import time from pytoion import * if len(sys.argv) == 1: print("Usage: python %s [BLE_DEVICE_ADDRESS]" %(sys.argv[0])) sys.exit() cube = Toio(sys.argv[1]) # sound # see https://toio.github.io/toio-spec/docs/ble_sound try: ...
24.565789
65
0.497054
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import time from pytoion import * if len(sys.argv) == 1: print("Usage: python %s [BLE_DEVICE_ADDRESS]" %(sys.argv[0])) sys.exit() cube = Toio(sys.argv[1]) # sound # see https://toio.github.io/toio-spec/docs/ble_sound try: ...
0
0
0
1ea938bc865bbf2dd9d8b5490123f4c6ff691713
2,086
py
Python
todolist_backend/todo/views.py
ssdemajia/TodoList
02d466a68781c6055c2d3dcf6dd302fab279e915
[ "MIT" ]
null
null
null
todolist_backend/todo/views.py
ssdemajia/TodoList
02d466a68781c6055c2d3dcf6dd302fab279e915
[ "MIT" ]
null
null
null
todolist_backend/todo/views.py
ssdemajia/TodoList
02d466a68781c6055c2d3dcf6dd302fab279e915
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, Http404 from rest_framework import status from rest_framework.decorators import api_view from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.parsers import JSONParser from models import Task f...
32.092308
96
0.652924
from django.shortcuts import render from django.http import HttpResponse, Http404 from rest_framework import status from rest_framework.decorators import api_view from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.parsers import JSONParser from models import Task f...
1,491
146
46
3e1be78b0f2c0c96680e13d60d5cc4fe2412fb5f
1,609
py
Python
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
null
null
null
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
null
null
null
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
1
2018-10-16T12:59:36.000Z
2018-10-16T12:59:36.000Z
#!/usr/local/bin/python3 # # stochastic_hill_climbing.py # src # # Created by Illya Starikov on 10/13/18. # Copyright 2018. Illya Starikov. MIT License. # from random import choice from hill_climber import HillClimber class StochasticHillClimber(HillClimber): """A stochastic steepest-ascent hill-climbing algor...
28.732143
98
0.652579
#!/usr/local/bin/python3 # # stochastic_hill_climbing.py # src # # Created by Illya Starikov on 10/13/18. # Copyright 2018. Illya Starikov. MIT License. # from random import choice from hill_climber import HillClimber class StochasticHillClimber(HillClimber): """A stochastic steepest-ascent hill-climbing algor...
0
0
0
4d4466db3a5f952932ebee7d1437b984df09d96f
365
py
Python
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) l=sorted(l) r=l[::-1] if(n==1 or n==2): print("first") else: p1=r[1]+sum(r[2::2]) p2=sum(l)-p1 if(p1>p2): print("second") elif(p2>p1): print("fi...
20.277778
36
0.405479
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) l=sorted(l) r=l[::-1] if(n==1 or n==2): print("first") else: p1=r[1]+sum(r[2::2]) p2=sum(l)-p1 if(p1>p2): print("second") elif(p2>p1): print("fi...
0
0
0
91cd7c34da1a92709e66ea89223d748404f0eb6c
2,703
py
Python
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys import signal import json import time from urllib.request import urlopen ''' 5130315 https://www.funder.co.il/wsfund.asmx/GetFundTickerm?callback=jQuery111306779790886268987_1621159388408&id=5130315&startDate=2018-05-16&endDate=2021-05-17&_=1621159388411 https://www.funder.co.il/...
25.990385
169
0.622642
#!/usr/bin/python import os import sys import signal import json import time from urllib.request import urlopen class Funder(): def __init__(self, node): self.ClassName = "Funder" self.Node = node def BindHandler(self): # Handlers pass def GetRequest (self, url, with_dealy): try: req = urlopen(ur...
2,123
-6
144
55654168ad31ad2d3218c3453979c7d54561e98d
2,094
py
Python
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
# @param s, a string # @return an integer s = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
91.043478
1,468
0.82617
class Solution: # @param s, a string # @return an integer def minCut(self, s): n = len(s) isPal = [[False]*n for i in range(n)] minCuts = [i for i in range(n)] for j in range(n): for i in reversed(range(j + 1)): if s[i] == s[j] and (j - i <= 1 or i...
482
-6
48
f757cc19f5eb1b50efd6dd829422ab8950d85de4
503
py
Python
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
2
2021-10-31T12:54:04.000Z
2022-03-29T13:52:02.000Z
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
null
null
null
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
3
2017-09-19T19:36:49.000Z
2019-08-10T12:59:14.000Z
from flask import Flask from shellshocker_server.saferproxyfix import SaferProxyFix from raven.contrib.flask import Sentry import os app = Flask(__name__) app.config['SECRET_KEY'] = os.environ['SECRET_KEY'] try: if os.environ['SECRET_KEY'] is not None: app.config['USE_SENTRY'] = True app.config['SENTRY_DSN...
21.869565
59
0.759443
from flask import Flask from shellshocker_server.saferproxyfix import SaferProxyFix from raven.contrib.flask import Sentry import os app = Flask(__name__) app.config['SECRET_KEY'] = os.environ['SECRET_KEY'] try: if os.environ['SECRET_KEY'] is not None: app.config['USE_SENTRY'] = True app.config['SENTRY_DSN...
0
0
0
7dbd2050b8c2fa945cfa9f3646f174bff2ccc706
6,283
py
Python
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
1
2021-03-11T22:53:13.000Z
2021-03-11T22:53:13.000Z
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
""" NYT Download articles """ from nytimesarticle import articleAPI import pandas as pd import time import re api = articleAPI("<PASTE_YOUR_API_KEY>") df = pd.DataFrame() for i in range(1,10): articles = api.search(q="Artificial Intelligence", begin_date=int("20180"+str(i)+"01"), end_date=int...
31.415
92
0.598599
""" NYT Download articles """ from nytimesarticle import articleAPI import pandas as pd import time import re api = articleAPI("<PASTE_YOUR_API_KEY>") df = pd.DataFrame() for i in range(1,10): articles = api.search(q="Artificial Intelligence", begin_date=int("20180"+str(i)+"01"), end_date=int...
0
0
0
aeb1b856fc5e7661e8bd07a913453dbc337f310d
1,709
py
Python
preprocess.py
andreasjansson/music-inpainting-bert
986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f
[ "MIT" ]
1
2021-11-25T22:59:11.000Z
2021-11-25T22:59:11.000Z
preprocess.py
andreasjansson/music-inpainting-bert
986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f
[ "MIT" ]
null
null
null
preprocess.py
andreasjansson/music-inpainting-bert
986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f
[ "MIT" ]
null
null
null
import math from collections import Counter from fractions import Fraction from datatypes import Chord import json
29.465517
85
0.534231
import math from collections import Counter from fractions import Fraction from datatypes import Chord import json def write_pattern_map(songs): frac_cache = {} patterns = Counter() for i, song in enumerate(songs): if i % 100 == 0: print(i) for step in range(12): s...
1,546
0
46
5810d49614749323df43ecc78266790e5466e375
35
py
Python
src/nlpia/data/__init__.py
byukan/nlpia
73c03f651e54e945f9a7eebe4714095dc3e5609a
[ "MIT" ]
532
2016-11-30T03:51:13.000Z
2022-03-29T13:40:43.000Z
src/nlpia/data/__init__.py
byukan/nlpia
73c03f651e54e945f9a7eebe4714095dc3e5609a
[ "MIT" ]
30
2017-12-12T12:18:41.000Z
2022-03-23T14:44:45.000Z
src/nlpia/data/__init__.py
byukan/nlpia
73c03f651e54e945f9a7eebe4714095dc3e5609a
[ "MIT" ]
241
2017-06-20T11:51:31.000Z
2022-03-28T09:42:38.000Z
from nlpia.loaders import * # noqa
35
35
0.742857
from nlpia.loaders import * # noqa
0
0
0
675cb42b1b5a91d70ae27f74440002ab5501679e
9,834
py
Python
mythtv_client/models.py
plumdog/mythtv_client
edc17294f3a894734330225157c3da03af3c1be9
[ "MIT" ]
null
null
null
mythtv_client/models.py
plumdog/mythtv_client
edc17294f3a894734330225157c3da03af3c1be9
[ "MIT" ]
null
null
null
mythtv_client/models.py
plumdog/mythtv_client
edc17294f3a894734330225157c3da03af3c1be9
[ "MIT" ]
null
null
null
import collections from enum import Enum from vtypes import ( VString, VInt, VBool, VUnsignedInt, VDict, VValidatorDict, VList, VDate, VDateTime, VTime, VEnum, Validator, ) class RecordingType(Enum): """From https://github.com/MythTV/mythtv/blob/master/mythtv/libs...
28.504348
99
0.573317
import collections from enum import Enum from vtypes import ( VString, VInt, VBool, VUnsignedInt, VDict, VValidatorDict, VList, VDate, VDateTime, VTime, VEnum, Validator, ) class Props(object): @classmethod def _attrs(cls): return [name for name in dir(...
3,655
5,058
288
3f2f71b73db2287c9da2bda513edff61d9d23b33
830
py
Python
core/commands/reflog.py
jmcollis/GitSavvy
153dca03bfd63db8248c1f9ee03bb6f2ebef545a
[ "MIT" ]
2,058
2015-02-27T19:06:31.000Z
2019-10-17T13:42:11.000Z
core/commands/reflog.py
jmcollis/GitSavvy
153dca03bfd63db8248c1f9ee03bb6f2ebef545a
[ "MIT" ]
1,057
2015-02-11T23:14:56.000Z
2019-10-17T20:17:23.000Z
core/commands/reflog.py
divmain/GitGadget
6452528d22a13c6f3169ad20619471d261e576bf
[ "MIT" ]
180
2015-03-06T14:26:05.000Z
2019-10-12T06:28:21.000Z
import sublime from sublime_plugin import WindowCommand from ..git_command import GitCommand from ..ui_mixins.quick_panel import show_paginated_panel
23.714286
86
0.662651
import sublime from sublime_plugin import WindowCommand from ..git_command import GitCommand from ..ui_mixins.quick_panel import show_paginated_panel class RefLogMixin(object): _limit = 6000 def run(self): sublime.set_timeout_async(self.run_async) def run_async(self): show_paginated_pa...
449
182
46
189ef0f531745ef98e26c905d0cd5e2f696884a1
777
py
Python
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
# -- Description ----------------------------------------------------------------------------- # # Given a function , that returns two random values between 0..1 , calculate the value of Pi # Credits to YT channel Joma Tech # -------------------------------------------------------------------------------------------- #...
29.884615
96
0.507079
# -- Description ----------------------------------------------------------------------------- # # Given a function , that returns two random values between 0..1 , calculate the value of Pi # Credits to YT channel Joma Tech # -------------------------------------------------------------------------------------------- #...
330
0
23
69f514540a4d9c202810aa15d6276cb5f365ca93
1,380
py
Python
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
101
2016-07-24T00:33:12.000Z
2022-03-23T23:51:58.000Z
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
57
2016-07-26T18:12:37.000Z
2022-02-14T04:19:26.000Z
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
30
2016-07-26T22:51:59.000Z
2021-01-15T14:45:42.000Z
from __future__ import division import abc import numpy as np from .utils import psnr class metric(object): """Represents an metric for measuring reconstruction quality """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def _eval(self, v): """Evaluate the metric """ retur...
24.642857
67
0.568841
from __future__ import division import abc import numpy as np from .utils import psnr class metric(object): """Represents an metric for measuring reconstruction quality """ __metaclass__ = abc.ABCMeta def __init__(self, desc, unit, decimals=None): self.desc = desc self.unit = unit ...
325
0
54
e68ef131904ac6c80b41caffc79d1bf9e60d2b08
448
py
Python
pythagoras/tests/test_util_smoke.py
vdesyatka/Pythagoras
e1e87dc45e6bee0747aace073b91426bec9e580f
[ "MIT" ]
null
null
null
pythagoras/tests/test_util_smoke.py
vdesyatka/Pythagoras
e1e87dc45e6bee0747aace073b91426bec9e580f
[ "MIT" ]
null
null
null
pythagoras/tests/test_util_smoke.py
vdesyatka/Pythagoras
e1e87dc45e6bee0747aace073b91426bec9e580f
[ "MIT" ]
null
null
null
from pythagoras import *
34.461538
60
0.618304
from pythagoras import * class TestNeatStr: def test_mem_size(self): assert NeatStr.mem_size(1) == "1 B" assert NeatStr.mem_size(10,"_") == "10_B" assert NeatStr.mem_size(1023,"--") == "1023--B" assert NeatStr.mem_size(1024,"") == "1Kb" assert NeatStr.mem_size(1_048_576) == ...
376
-3
49
67a2a3f603deb6c2198e52e5b9363f4b0dfa349a
435
py
Python
synlib/descriptions/NAND2BXL.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
synlib/descriptions/NAND2BXL.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
synlib/descriptions/NAND2BXL.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
Desc = cellDescClass("NAND2BXL") Desc.properties["cell_footprint"] = "nand2b" Desc.properties["area"] = "13.305600" Desc.properties["cell_leakage_power"] = "540.512676" Desc.pinOrder = ['AN', 'B', 'Y'] Desc.add_arc("AN","Y","combi") Desc.add_arc("B","Y","combi") Desc.add_param("area",13.305600); Desc.add_pin("AN","inpu...
31.071429
52
0.689655
Desc = cellDescClass("NAND2BXL") Desc.properties["cell_footprint"] = "nand2b" Desc.properties["area"] = "13.305600" Desc.properties["cell_leakage_power"] = "540.512676" Desc.pinOrder = ['AN', 'B', 'Y'] Desc.add_arc("AN","Y","combi") Desc.add_arc("B","Y","combi") Desc.add_param("area",13.305600); Desc.add_pin("AN","inpu...
0
0
0
a414f789d67ffbea70610051392e9a0f9df657d2
572
py
Python
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ cherry.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of cheery' exceptions. :copyright: (c) 2018-2019 by Windson Yang :license: MIT License, see LICENSE for more details. """ class CacheNotFoundError(IOError): '''Cache files not found''' class FilesNotFoundError(IOError)...
22.88
52
0.695804
# -*- coding: utf-8 -*- """ cherry.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of cheery' exceptions. :copyright: (c) 2018-2019 by Windson Yang :license: MIT License, see LICENSE for more details. """ class CacheNotFoundError(IOError): '''Cache files not found''' class FilesNotFoundError(IOError)...
0
0
0
f5a95a4ca70b12bc3d8415752e1f856c08aee9ec
990
py
Python
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
15
2016-09-25T12:19:52.000Z
2020-08-29T00:15:22.000Z
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
1
2017-12-18T01:36:48.000Z
2017-12-18T04:57:36.000Z
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
20
2016-09-29T08:50:56.000Z
2021-10-03T19:50:00.000Z
# -*- coding: utf-8 -*- @bot.message_handler(commands=['setlang' , 'Setlang'])
43.043478
136
0.672727
# -*- coding: utf-8 -*- @bot.message_handler(commands=['setlang' , 'Setlang']) def setlang_message(message): userlang = redisserver.get("settings:user:language:" + str(message.from_user.id)) userid = message.from_user.id banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid)) if banlist: ret...
946
0
22
e61f2e45d1fb7ec50cd1f8fc9fde8efaabbdca64
79,458
py
Python
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod import inspect import warnings import re import types class ExecutionNode(object): """Abstract Superclass for all nodes in an execution flow, e.g. parts, molecules Parts are the atomistic instructions in the genetic circuit execution flow | *Attributes:* |...
35.314667
142
0.612122
from abc import ABCMeta, abstractmethod import inspect import warnings import re import types class ExecutionNode(object): """Abstract Superclass for all nodes in an execution flow, e.g. parts, molecules Parts are the atomistic instructions in the genetic circuit execution flow | *Attributes:* |...
14,221
634
1,212
224dcff4a8776b85bffa29a4f113607da705754e
1,261
py
Python
setup.py
Krytic/Takahe
6d6bdf234ae7e3cfe8ef40e48d4621dc9a9a2f6c
[ "MIT" ]
1
2020-12-09T02:34:43.000Z
2020-12-09T02:34:43.000Z
setup.py
Krytic/Takahe
6d6bdf234ae7e3cfe8ef40e48d4621dc9a9a2f6c
[ "MIT" ]
8
2020-03-02T06:22:43.000Z
2020-11-10T03:20:46.000Z
setup.py
Krytic/Takahe
6d6bdf234ae7e3cfe8ef40e48d4621dc9a9a2f6c
[ "MIT" ]
1
2020-05-13T00:41:24.000Z
2020-05-13T00:41:24.000Z
from setuptools import setup, Extension import re description = 'A python library to evolve binary star systems in time.' try: with open('README.md', 'r') as f: long_description = f.read() except FileNotFoundError: long_description = description metadata = {"version": "", "author": "", ...
28.659091
71
0.508327
from setuptools import setup, Extension import re description = 'A python library to evolve binary star systems in time.' try: with open('README.md', 'r') as f: long_description = f.read() except FileNotFoundError: long_description = description metadata = {"version": "", "author": "", ...
0
0
0
5648e164a76184040f4b708a31904d787634afb6
4,260
py
Python
Tensorflow.py
shashikale/Text-Classification
46f4d15f4413819493c531401d396a4e9f8e9548
[ "MIT" ]
1
2019-05-11T02:13:27.000Z
2019-05-11T02:13:27.000Z
Tensorflow.py
caopengau/Text-Classification
46f4d15f4413819493c531401d396a4e9f8e9548
[ "MIT" ]
null
null
null
Tensorflow.py
caopengau/Text-Classification
46f4d15f4413819493c531401d396a4e9f8e9548
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from sklearn.preprocessing import Normalizer from SharedFunctions import get_current_time, fmt, find_accuracy from datetime import datetime from sklearn.feature_extraction.text import TfidfVectorizer, CountVecto...
29.583333
111
0.734977
from __future__ import absolute_import from __future__ import division from __future__ import print_function from sklearn.preprocessing import Normalizer from SharedFunctions import get_current_time, fmt, find_accuracy from datetime import datetime from sklearn.feature_extraction.text import TfidfVectorizer, CountVecto...
3,559
0
69
0d236aa130451e041629624d62f19736b1ddf4e2
178
py
Python
cctbx/covariance/__init__.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
cctbx/covariance/__init__.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
cctbx/covariance/__init__.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function import boost_adaptbx.boost.python as bp bp.import_ext("cctbx_covariance_ext") from cctbx_covariance_ext import *
35.6
64
0.859551
from __future__ import absolute_import, division, print_function import boost_adaptbx.boost.python as bp bp.import_ext("cctbx_covariance_ext") from cctbx_covariance_ext import *
0
0
0
c300e48ec0d74a28b9e7480e71496ab43a47b5d9
1,805
py
Python
araElectra/tf/electra/finetune/scorer.py
HydroxideX/SOQAL
345ae5858f23f06c693148c2e2df8202d09cff6d
[ "MIT" ]
null
null
null
araElectra/tf/electra/finetune/scorer.py
HydroxideX/SOQAL
345ae5858f23f06c693148c2e2df8202d09cff6d
[ "MIT" ]
null
null
null
araElectra/tf/electra/finetune/scorer.py
HydroxideX/SOQAL
345ae5858f23f06c693148c2e2df8202d09cff6d
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
29.590164
82
0.676454
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
427
0
159
dbab89ec2ea219918ed5a064cc7f7163e34ab3b8
284
py
Python
src/pico_code/host/etch.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
15
2021-02-04T02:38:23.000Z
2022-01-20T17:55:15.000Z
src/pico_code/host/etch.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
1
2021-05-06T10:09:51.000Z
2021-05-06T10:09:51.000Z
src/pico_code/host/etch.py
romilly/pico-code
57bbc14e0a5c3e874162fcfb1fcd7cca3a838cce
[ "MIT" ]
2
2021-02-04T20:09:01.000Z
2021-02-18T16:16:22.000Z
from pico_code.host.talker import Talker import turtle talker = Talker() turtle = turtle.Turtle() while True: text = talker.receive() x,y = [convert(text) for text in text.split()] turtle.setx(x) turtle.sety(y)
16.705882
51
0.665493
from pico_code.host.talker import Talker import turtle talker = Talker() turtle = turtle.Turtle() def convert(text): return (int(text)-200)//300 while True: text = talker.receive() x,y = [convert(text) for text in text.split()] turtle.setx(x) turtle.sety(y)
29
0
23
c21caccae34110fa96773fda97871f35b4e9bc09
1,661
py
Python
django_airavata/apps/auth/migrations/0003_default_email_templates.py
sairohithA007/airavata-django-portal
fe18d65802f02c9faf805c8edfdee3341c66e93a
[ "Apache-2.0" ]
19
2017-09-04T00:36:52.000Z
2022-01-24T08:44:22.000Z
django_airavata/apps/auth/migrations/0003_default_email_templates.py
sairohithA007/airavata-django-portal
fe18d65802f02c9faf805c8edfdee3341c66e93a
[ "Apache-2.0" ]
35
2017-10-17T02:36:01.000Z
2022-03-09T04:46:57.000Z
django_airavata/apps/auth/migrations/0003_default_email_templates.py
sairohithA007/airavata-django-portal
fe18d65802f02c9faf805c8edfdee3341c66e93a
[ "Apache-2.0" ]
38
2017-09-15T14:17:42.000Z
2021-12-15T17:11:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-10-29 18:33 from __future__ import unicode_literals from django.db import migrations from django_airavata.apps.auth.models import ( NEW_USER_EMAIL_TEMPLATE, VERIFY_EMAIL_TEMPLATE )
28.637931
75
0.622517
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-10-29 18:33 from __future__ import unicode_literals from django.db import migrations from django_airavata.apps.auth.models import ( NEW_USER_EMAIL_TEMPLATE, VERIFY_EMAIL_TEMPLATE ) def default_templates(apps, schema_editor): EmailTemplate = ...
1,185
175
46
f78825aedd027ea16fb66c8aee8dfe1b35c06ec7
314
py
Python
sleekpromises/__init__.py
MeerkatLabs/sleekpromises
f31d2bf4ae57fa30d77e6aa0c91b146131d599e6
[ "BSD-3-Clause" ]
null
null
null
sleekpromises/__init__.py
MeerkatLabs/sleekpromises
f31d2bf4ae57fa30d77e6aa0c91b146131d599e6
[ "BSD-3-Clause" ]
1
2020-04-10T22:02:55.000Z
2020-04-10T22:02:55.000Z
sleekpromises/__init__.py
MeerkatLabs/sleekpromises
f31d2bf4ae57fa30d77e6aa0c91b146131d599e6
[ "BSD-3-Clause" ]
null
null
null
from sleekxmpp.plugins.base import register_plugin as _register_plugin from sleekpromises.scheduler import sleekpromises_scheduler as _scheduler def register_sleek_promises(): """ Register the sleek promises components for the sleek xmpp framework. :return: """ _register_plugin(_scheduler)
26.166667
73
0.783439
from sleekxmpp.plugins.base import register_plugin as _register_plugin from sleekpromises.scheduler import sleekpromises_scheduler as _scheduler def register_sleek_promises(): """ Register the sleek promises components for the sleek xmpp framework. :return: """ _register_plugin(_scheduler)
0
0
0
58136a3b68669ac63c8de2d87042f1e8150c06ea
1,255
py
Python
src/loadgenerator/sock shop locustfile.py
Ndjanda/microservices-demo-1
4eb84407dc2cc95b464a7d0f26fb7a6e960dbd70
[ "Apache-2.0" ]
null
null
null
src/loadgenerator/sock shop locustfile.py
Ndjanda/microservices-demo-1
4eb84407dc2cc95b464a7d0f26fb7a6e960dbd70
[ "Apache-2.0" ]
null
null
null
src/loadgenerator/sock shop locustfile.py
Ndjanda/microservices-demo-1
4eb84407dc2cc95b464a7d0f26fb7a6e960dbd70
[ "Apache-2.0" ]
null
null
null
# git clone https://github.com/GoogleCloudPlatform/microservices-demo.git # cd microservices-demo/src/loadgenerator # export FRONTEND_ADDR=localhost # rename : sock shop locustfile.py to locustfile.py # ./loadgen.sh # sock shop locustfile.py file # loadgen.sh is using test steps in : locustfile.py for ...
26.702128
80
0.658167
# git clone https://github.com/GoogleCloudPlatform/microservices-demo.git # cd microservices-demo/src/loadgenerator # export FRONTEND_ADDR=localhost # rename : sock shop locustfile.py to locustfile.py # ./loadgen.sh # sock shop locustfile.py file # loadgen.sh is using test steps in : locustfile.py for ...
606
129
79
247c96b2ca0d112c2a551abd8f41b7e1ebea1065
657
py
Python
src/ansibilo/inventory/utils.py
Polyconseil/ansibilo
444397ca8b8dfa64cf34eb0fe0b472fa89d2f7ac
[ "BSD-3-Clause" ]
3
2017-10-28T00:04:17.000Z
2018-01-27T16:12:42.000Z
src/ansibilo/inventory/utils.py
Polyconseil/ansibilo
444397ca8b8dfa64cf34eb0fe0b472fa89d2f7ac
[ "BSD-3-Clause" ]
null
null
null
src/ansibilo/inventory/utils.py
Polyconseil/ansibilo
444397ca8b8dfa64cf34eb0fe0b472fa89d2f7ac
[ "BSD-3-Clause" ]
null
null
null
import ansible.inventory.manager import ansible.constants import ansible.parsing.dataloader
27.375
69
0.701674
import ansible.inventory.manager import ansible.constants import ansible.parsing.dataloader def get_ansible_inventory(inventory_file=None): data_loader = ansible.parsing.dataloader.DataLoader() return ansible.inventory.manager.InventoryManager( loader=data_loader, sources=inventory_file or ans...
517
0
46
5d6cfa581331301ac6ea0ce8cf044ec1f7e587c4
1,069
py
Python
full/digit_downloader.py
PythonDayMX/MLaaS
3a109f1e83edabb4044c47e1cfa2a39c6227685c
[ "MIT" ]
8
2018-11-30T05:05:10.000Z
2021-04-05T07:02:53.000Z
full/digit_downloader.py
PythonDayMX/MLaaS
3a109f1e83edabb4044c47e1cfa2a39c6227685c
[ "MIT" ]
null
null
null
full/digit_downloader.py
PythonDayMX/MLaaS
3a109f1e83edabb4044c47e1cfa2a39c6227685c
[ "MIT" ]
2
2018-11-30T17:09:05.000Z
2018-11-30T19:20:05.000Z
# =============================================================== # Author: Rodolfo Ferro # Email: ferro@cimat.mx # Twitter: @FerroRodolfo # # ABOUT COPYING OR USING PARTIAL INFORMATION: # This script was originally created by Rodolfo Ferro, for # his workshop in PythonDay Mexico 2018 at CUCEA in Gdl, Mx. # Any explici...
26.725
66
0.610851
# =============================================================== # Author: Rodolfo Ferro # Email: ferro@cimat.mx # Twitter: @FerroRodolfo # # ABOUT COPYING OR USING PARTIAL INFORMATION: # This script was originally created by Rodolfo Ferro, for # his workshop in PythonDay Mexico 2018 at CUCEA in Gdl, Mx. # Any explici...
0
0
0
4bdbc50050e1e73ba3391848aba9be8a3f02e1b2
12,527
py
Python
scripts/constitutive_cassette_exons/constitutive_cassette_exon_gtf_filter.py
mikecormier/ConSplice-manuscript
72c994e7b842c8dec79372617bae5482e6c9f9ec
[ "MIT" ]
1
2022-02-28T18:09:47.000Z
2022-02-28T18:09:47.000Z
scripts/constitutive_cassette_exons/constitutive_cassette_exon_gtf_filter.py
mikecormier/ConSplice-manuscript
72c994e7b842c8dec79372617bae5482e6c9f9ec
[ "MIT" ]
null
null
null
scripts/constitutive_cassette_exons/constitutive_cassette_exon_gtf_filter.py
mikecormier/ConSplice-manuscript
72c994e7b842c8dec79372617bae5482e6c9f9ec
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import gzip import io import os import sys from collections import defaultdict from consplice.constraint.utils import get_alternative_gene_symbols from interlap import InterLap # ------------------------------------------------------------------------------------...
34.040761
426
0.53684
from __future__ import print_function import argparse import gzip import io import os import sys from collections import defaultdict from consplice.constraint.utils import get_alternative_gene_symbols from interlap import InterLap # ------------------------------------------------------------------------------------...
6,727
0
46
50431a291b3fa20ba4ea9660c7b85ff5b28d9dc2
109
py
Python
S1/TP6/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP6/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP6/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
print(interversion("Marc Barthet"))
18.166667
49
0.66055
def interversion(s): return " ".join(list(reversed(s.split(" ")))) print(interversion("Marc Barthet"))
49
0
22
60e525affc9aed8e00d0ff7c441bc75b29990131
1,781
py
Python
setup.py
Id791/wagtail-2fa
9ca77c660b783267958c78f4a0d222bd5d5aa360
[ "MIT" ]
null
null
null
setup.py
Id791/wagtail-2fa
9ca77c660b783267958c78f4a0d222bd5d5aa360
[ "MIT" ]
null
null
null
setup.py
Id791/wagtail-2fa
9ca77c660b783267958c78f4a0d222bd5d5aa360
[ "MIT" ]
null
null
null
import re from setuptools import find_packages, setup install_requires = [ 'Django>=1.11.28', 'Wagtail>=2.2', 'django-otp>=0.8.1', 'six>=1.14.0', 'qrcode>=6.1', ] docs_require = [ 'sphinx>=1.4.1', 'sphinx_rtd_theme>=0.4.3', ] tests_require = [ 'coverage==5.0.3', 'pytest==5.3.5', ...
25.084507
79
0.581696
import re from setuptools import find_packages, setup install_requires = [ 'Django>=1.11.28', 'Wagtail>=2.2', 'django-otp>=0.8.1', 'six>=1.14.0', 'qrcode>=6.1', ] docs_require = [ 'sphinx>=1.4.1', 'sphinx_rtd_theme>=0.4.3', ] tests_require = [ 'coverage==5.0.3', 'pytest==5.3.5', ...
0
0
0