hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
a84446811ddd2fcd31d215c89f5cde7eb0de5d7e
1,739
py
Python
Company Questions/Amazon/Delete_Node_Without_HeadPointer.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
4
2020-09-11T18:22:32.000Z
2022-01-05T20:36:29.000Z
Company Questions/Amazon/Delete_Node_Without_HeadPointer.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
null
null
null
Company Questions/Amazon/Delete_Node_Without_HeadPointer.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
3
2020-09-27T17:26:10.000Z
2021-01-10T16:06:47.000Z
myList = LinkedList() print (myList.getSize()) print ("______*Inserting*_______") myList.addNode(5) myList.addNode(10) myList.addNode(15) myList.addNode(20) myList.addNode(25) print ("printing") myList.printNode() print ("Deleting") myList.deleteNode(10) myList.deleteNode(20) myList.deleteNode(...
22.012658
56
0.537665
class Node(object): def __init__(self,dataVal,nextNode=None): self.data = dataVal self.next = nextNode def getData(self): return (self.data) def setData(self,val): self.data = val def getNextNode(self): return (self.next) def setNex...
0
0
0
1,279
0
0
0
0
53
a97536d787d87512e905d4dd9de3bce5e61dcd93
974
py
Python
detector/demo.py
andrejPP/MTCNN-detekcia-znaciek
45cff155f6b007c2361c2f77721d7a653d4c1485
[ "MIT" ]
null
null
null
detector/demo.py
andrejPP/MTCNN-detekcia-znaciek
45cff155f6b007c2361c2f77721d7a653d4c1485
[ "MIT" ]
null
null
null
detector/demo.py
andrejPP/MTCNN-detekcia-znaciek
45cff155f6b007c2361c2f77721d7a653d4c1485
[ "MIT" ]
null
null
null
import os from mtcnn import MTCNN from image import draw_boxes, show_image, image_load def detection(image_name): """ Run detector on single image """ detector = MTCNN() try: return detector.detect(image_name) except ValueError: print("No sign detected") return [] def...
23.756098
94
0.582136
import os from mtcnn import MTCNN from image import draw_boxes, show_image, image_load def detection(image_name): """ Run detector on single image """ detector = MTCNN() try: return detector.detect(image_name) except ValueError: print("No sign detected") return [] def...
0
0
0
0
0
0
0
0
0
6fe26e7c99eacd30302735b92d6a13fe894c4831
1,671
py
Python
arrays/questions/merge-k-lists.py
devclassio/algorithms
ab6a41f3399d8ae58acf0aebb285ca6de744433c
[ "MIT" ]
5
2021-01-18T03:27:44.000Z
2021-06-22T16:22:35.000Z
arrays/questions/merge-k-lists.py
devclassio/algorithms
ab6a41f3399d8ae58acf0aebb285ca6de744433c
[ "MIT" ]
null
null
null
arrays/questions/merge-k-lists.py
devclassio/algorithms
ab6a41f3399d8ae58acf0aebb285ca6de744433c
[ "MIT" ]
null
null
null
''' ## Problem You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. **Example 1** `Input: lists = [[1,4,5],[1,3,4],[2,6]]` `Output: [1,1,2,3,4,4,5,6]` _Explanation_ The linked-lists are: ``` [ 1->4->5, ...
19.892857
94
0.544584
''' ## Problem 🤔 You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. **Example 1** `Input: lists = [[1,4,5],[1,3,4],[2,6]]` `Output: [1,1,2,3,4,4,5,6]` _Explanation_ The linked-lists are: ``` [ 1->4->5...
4
0
0
890
0
0
0
0
69
86a45d51d12123b753bccebb3980b960f3811f76
475
py
Python
inheritance/need_for_speed/project/main.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
inheritance/need_for_speed/project/main.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
inheritance/need_for_speed/project/main.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
from project.family_car import FamilyCar from project.vehicle import Vehicle vehicle = Vehicle(50, 150) print(Vehicle.DEFAULT_FUEL_CONSUMPTION) print(FamilyCar.DEFAULT_FUEL_CONSUMPTION) print(vehicle.fuel) print(vehicle.horse_power) print(vehicle.fuel_consumption) vehicle.drive(100) print(vehicle.fuel) family_car = Fa...
27.941176
49
0.835789
from project.family_car import FamilyCar from project.vehicle import Vehicle vehicle = Vehicle(50, 150) print(Vehicle.DEFAULT_FUEL_CONSUMPTION) print(FamilyCar.DEFAULT_FUEL_CONSUMPTION) print(vehicle.fuel) print(vehicle.horse_power) print(vehicle.fuel_consumption) vehicle.drive(100) print(vehicle.fuel) family_car = Fa...
0
0
0
0
0
0
0
0
0
def587dbaf531948a4e42a31d3f1a21ce871510b
70
py
Python
ganutils/api/github/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
1
2019-12-26T20:46:48.000Z
2019-12-26T20:46:48.000Z
ganutils/api/github/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
10
2019-12-26T06:43:38.000Z
2020-05-30T06:40:46.000Z
ganutils/api/github/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
null
null
null
# This directory is a Python package
23.333333
36
0.814286
# This directory is a Python package from .client import GithubClient
0
0
0
0
0
0
0
11
22
8107250d4c57bed8b569b2c07f7d4c01d40720cb
15,022
py
Python
nova/tests/matchers.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
3
2015-06-01T18:32:50.000Z
2015-11-05T01:07:01.000Z
nova/tests/matchers.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
null
null
null
nova/tests/matchers.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2012 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the L...
33.161148
78
0.579151
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2012 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the L...
0
0
0
13,724
0
0
0
1
460
797e5223d6b3dfa36faa975c79f2b9c9ab6961c5
530
py
Python
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
# Flask interface setup from flask import Flask app = Flask(__name__)
17.666667
44
0.698113
# Flask interface setup from flask import Flask, render_template app = Flask(__name__) @app.route('/') @app.route('/index.htm') def index(): return render_template("index.htm") @app.route('/individual.htm') def individual(): return render_template("individual.htm") @app.route('/group.htm') def group(): ...
0
323
0
0
0
0
0
17
115
17639bcae8a79cfa1a1ec2b57241d835cc70b8a3
9,098
py
Python
venv/Lib/site-packages/django_hashedfilenamestorage/tests.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
1
2020-03-31T22:09:34.000Z
2020-03-31T22:09:34.000Z
venv/Lib/site-packages/django_hashedfilenamestorage/tests.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
8
2021-03-30T14:20:10.000Z
2022-03-12T00:52:03.000Z
venv/Lib/site-packages/django_hashedfilenamestorage/tests.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
null
null
null
from contextlib import contextmanager import os import shutil import warnings try: from warnings import catch_warnings except ImportError: from django.conf import settings from django.core.files.base import ContentFile from django.test import TestCase from django.utils.functional import LazyObject from django_h...
37.134694
82
0.555287
from contextlib import contextmanager import os import shutil import warnings try: from warnings import catch_warnings except ImportError: def catch_warnings(): original_filters = warnings.filters try: yield finally: warnings.filters = original_filters from dja...
0
1,276
0
6,994
140
94
0
7
164
2eecc1ffd65821cd6237cce40bb622ce9c91d239
2,764
py
Python
lcm/lcm/nf_pm/serializers/threshold_crossed_notification.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2019-04-02T03:15:20.000Z
2019-04-02T03:15:20.000Z
lcm/lcm/nf_pm/serializers/threshold_crossed_notification.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
null
null
null
lcm/lcm/nf_pm/serializers/threshold_crossed_notification.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2021-10-15T15:26:47.000Z
2021-10-15T15:26:47.000Z
# Copyright (c) 2019, CMCC Technologies Co., Ltd. # # 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 ...
64.27907
109
0.651954
# Copyright (c) 2019, CMCC Technologies Co., Ltd. # # 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 ...
0
0
0
1,997
0
0
0
78
91
54b6dacdb1c04b343214c6141156979332c73ba3
4,761
py
Python
code/util/mean_shift.py
goldleaf3i/declutter-reconstruct
954b755a1eced34af50d31ee2e3938a0b751cc4d
[ "MIT" ]
2
2022-03-14T07:37:45.000Z
2022-03-25T09:01:48.000Z
code/util/mean_shift.py
goldleaf3i/declutter-reconstruct
954b755a1eced34af50d31ee2e3938a0b751cc4d
[ "MIT" ]
1
2022-03-24T07:34:16.000Z
2022-03-27T11:20:27.000Z
code/util/mean_shift.py
goldleaf3i/declutter-reconstruct
954b755a1eced34af50d31ee2e3938a0b751cc4d
[ "MIT" ]
1
2022-03-08T05:37:22.000Z
2022-03-08T05:37:22.000Z
from __future__ import division
34.5
135
0.743961
from __future__ import division from object import Segment as sg import math def mean_shift(h, min_offset, walls): # compute center_clusters with mean-shift. The radian inclinations of the walls are clustered # for each wall set the inclination for wall in walls: direction = sg.radiant_inclination(wall.x1, wall....
0
0
0
0
0
4,516
0
1
205
d82fba9580b949c4938d552b83f5be1243b78270
2,642
py
Python
samuroi/util/mask_generator/ilastik_functions.py
aolsux/SamuROI
ee909dcab2313099d79af3b089a031aa8c630705
[ "MIT" ]
16
2017-08-14T22:48:49.000Z
2022-02-17T02:41:37.000Z
samuroi/util/mask_generator/ilastik_functions.py
samuroi/SamuROI
ee909dcab2313099d79af3b089a031aa8c630705
[ "MIT" ]
16
2017-03-07T18:04:05.000Z
2020-10-28T18:24:24.000Z
samuroi/util/mask_generator/ilastik_functions.py
samuroi/SamuROI
ee909dcab2313099d79af3b089a031aa8c630705
[ "MIT" ]
6
2017-03-25T23:36:21.000Z
2021-01-19T08:09:13.000Z
__author__ = 'stephenlenzi' import os import h5py import numpy as np import tempfile import subprocess """These are for running ilastik in headless mode within Python""" def ilastik_segment(data, ilastik_path, ilastik_project_path): """ Convert image data into a segmentation using ilastik. It requires that...
37.211268
114
0.704391
__author__ = 'stephenlenzi' import os import h5py import numpy as np import tempfile import subprocess """These are for running ilastik in headless mode within Python""" def ilastik_segment(data, ilastik_path, ilastik_project_path): """ Convert image data into a segmentation using ilastik. It requires that...
0
0
0
0
0
114
0
0
23
f7f3e02f1a7e2e2553d2bc80d28a8f17f4fb5da5
18,716
py
Python
model/__init__.py
schrodit/cc-utils
db46303b1299b8816014daedf17cb6b8180bb491
[ "BSD-3-Clause" ]
null
null
null
model/__init__.py
schrodit/cc-utils
db46303b1299b8816014daedf17cb6b8180bb491
[ "BSD-3-Clause" ]
null
null
null
model/__init__.py
schrodit/cc-utils
db46303b1299b8816014daedf17cb6b8180bb491
[ "BSD-3-Clause" ]
null
null
null
import dataclasses dc = dataclasses.dataclass empty_list = dataclasses.field(default_factory=list) ''' Configuration model and retrieval handling. Users of this module will most likely want to create an instance of `ConfigFactory` and use it to create `ConfigurationSet` instances. Configuration sets are factories t...
33.008818
101
0.62476
import dataclasses import functools import json import os import pkgutil import sys import typing import urllib.parse import dacite import deprecated import yaml from model.base import ( ConfigElementNotFoundError, ModelValidationError, NamedModelElement, ) from ci.util import ( existing_dir, not_...
0
4,524
0
12,712
0
308
0
92
473
32eaa4292fd87ee66b25b3eb5b511d7f7e70303a
7,803
py
Python
tests/test_cpu_stream.py
hecmay/heterocl
e91eb4841f09385f676615cd246642744d08dd7c
[ "Apache-2.0" ]
5
2019-11-09T14:30:47.000Z
2020-10-30T04:47:47.000Z
tests/test_cpu_stream.py
hecmay/heterocl
e91eb4841f09385f676615cd246642744d08dd7c
[ "Apache-2.0" ]
null
null
null
tests/test_cpu_stream.py
hecmay/heterocl
e91eb4841f09385f676615cd246642744d08dd7c
[ "Apache-2.0" ]
2
2019-10-01T18:01:09.000Z
2020-09-15T02:36:59.000Z
import heterocl.tvm as tvm
26.906897
61
0.496604
import heterocl as hcl import heterocl.tvm as tvm import numpy as np def test_two_stages(): hcl.init() A = hcl.placeholder((10,), "A") B = hcl.placeholder((10,), "B") C = hcl.placeholder((10,), "C") def kernel(A, B, C): @hcl.def_([A.shape, B.shape]) def M1(A, B): with ...
0
1,787
0
0
0
5,808
0
-2
182
67a6128f81a99ab7499cebf0f189223d14735ab1
2,457
py
Python
rubikscubelookuptables/builder222.py
dwalton76/rubiks-cube-lookup-tables
fd6cba7af333cb3fd37e16c6633b483df07c3c74
[ "MIT" ]
1
2018-07-11T01:51:10.000Z
2018-07-11T01:51:10.000Z
rubikscubelookuptables/builder222.py
dwalton76/rubiks-cube-lookup-tables
fd6cba7af333cb3fd37e16c6633b483df07c3c74
[ "MIT" ]
null
null
null
rubikscubelookuptables/builder222.py
dwalton76/rubiks-cube-lookup-tables
fd6cba7af333cb3fd37e16c6633b483df07c3c74
[ "MIT" ]
1
2021-12-17T14:16:33.000Z
2021-12-17T14:16:33.000Z
# standard libraries import logging # rubiks cube libraries log = logging.getLogger(__name__)
31.5
58
0.490435
# standard libraries import logging # rubiks cube libraries from rubikscubelookuptables.buildercore import BFS log = logging.getLogger(__name__) class StartingStatesBuild222Ultimate(BFS): def __init__(self): BFS.__init__( self, "2x2x2-ultimate", (), "2x2x2...
0
0
0
2,262
0
0
0
29
68
b630e0fcf687277107bf6731a45e6661e8c34d16
1,927
py
Python
plots/docplot.py
damonge/SNELL
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-05-07T03:22:37.000Z
2021-02-19T14:34:42.000Z
plots/docplot.py
damonge/SNELL
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-04-28T11:13:10.000Z
2021-06-08T12:20:25.000Z
plots/docplot.py
damonge/GWSN
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-05-07T03:22:43.000Z
2021-12-05T15:41:05.000Z
import healpy as hp import numpy as np import schnell as snl import matplotlib.pyplot as plt from matplotlib import rc rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']}) rc('text', usetex=True) t_obs = 1 f_ref = 63 nside = 64 obs_time = t_obs*365*24*3600. freqs = np.linspace(10., 1010., ...
34.410714
76
0.614946
import healpy as hp import numpy as np import schnell as snl import matplotlib.pyplot as plt from matplotlib import rc rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']}) rc('text', usetex=True) t_obs = 1 f_ref = 63 nside = 64 obs_time = t_obs*365*24*3600. freqs = np.linspace(10., 1010., ...
0
0
0
0
0
0
0
0
0
1bedec724507d4467641edfd007ad80ee83487a1
228
py
Python
tempo/utils.py
majolo/tempo
516b7df0beaf36d69366e8e759ce00a362225278
[ "Apache-2.0" ]
75
2021-02-15T09:49:02.000Z
2022-03-31T02:06:38.000Z
tempo/utils.py
majolo/tempo
516b7df0beaf36d69366e8e759ce00a362225278
[ "Apache-2.0" ]
106
2021-02-13T09:25:19.000Z
2022-03-25T16:18:00.000Z
tempo/utils.py
majolo/tempo
516b7df0beaf36d69366e8e759ce00a362225278
[ "Apache-2.0" ]
21
2021-02-12T17:12:50.000Z
2022-03-04T02:09:26.000Z
logger = _get_logger()
13.411765
39
0.657895
import logging import os def _get_logger(): logger = logging.getLogger("tempo") logger.setLevel(logging.INFO) return logger def _get_env(): if os.environ.get("a", None): pass logger = _get_logger()
0
0
0
0
0
130
0
-19
90
643862b702b1c4d4d4ef624879cf3c4b9c6aec7c
5,320
py
Python
otcextensions/tests/unit/sdk/kms/v1/test_proxy.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/tests/unit/sdk/kms/v1/test_proxy.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/tests/unit/sdk/kms/v1/test_proxy.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
29.88764
75
0.575188
# 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 # distributed under t...
0
0
0
4,378
0
0
0
142
249
33e63f668ebafc5248bbc87ef7e5ce2d31501039
1,425
py
Python
__init__.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
13
2021-12-11T11:52:32.000Z
2022-03-11T12:58:56.000Z
__init__.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2021-12-19T19:15:29.000Z
2021-12-26T14:09:16.000Z
__init__.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2022-01-10T15:01:04.000Z
2022-01-10T15:01:04.000Z
# Copyright 2021 dimfred.1337@web.de # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, dis...
45.967742
87
0.784561
# Copyright 2021 dimfred.1337@web.de # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, dis...
0
0
0
0
0
0
0
84
67
671bdca4dcc88d2670523ab9386ad959165e1bf4
1,876
py
Python
symphony/cli/graphql_compiler/tests/test_utils_codegen.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
1
2020-06-05T09:01:40.000Z
2020-06-05T09:01:40.000Z
symphony/cli/graphql_compiler/tests/test_utils_codegen.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
14
2019-11-15T12:01:18.000Z
2019-12-12T14:37:42.000Z
symphony/cli/graphql_compiler/tests/test_utils_codegen.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
3
2019-11-15T15:56:25.000Z
2019-11-21T10:34:59.000Z
#!/usr/bin/env python3
24.363636
73
0.537846
#!/usr/bin/env python3 from .base_test import BaseTest from fbc.symphony.cli.graphql_compiler.gql.utils_codegen import CodeChunk class TestRendererDataclasses(BaseTest): def test_codegen_write_simple_strings(self): gen = CodeChunk() gen.write('def sum(a, b):') gen.indent() gen.wri...
0
0
0
1,722
0
0
0
62
68
4b1f487bd92522c4ddaa253422d7c94fd8644cdd
1,430
py
Python
setup.py
GDGSNF/tartiflette
973ec713e7ee24234147d5ce1f90d95ff5e79cae
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
setup.py
GDGSNF/tartiflette
973ec713e7ee24234147d5ce1f90d95ff5e79cae
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
setup.py
GDGSNF/tartiflette
973ec713e7ee24234147d5ce1f90d95ff5e79cae
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
from setuptools import setup setup( cmdclass={"build_ext": BuildExtCmd, "build_py": BuildPyCmd}, ext_modules=[LibGraphQLParserExtension()], )
24.655172
96
0.711189
import os import subprocess import sys from setuptools import Extension, setup from setuptools.command.build_ext import build_ext from setuptools.command.build_py import build_py def _find_libgraphqlparser_artifact(): if os.path.exists("./libgraphqlparser/libgraphqlparser.so"): return "./libgraphqlparser...
0
0
0
245
0
762
0
40
225
37c2294f6956fa0935876fe5fd1822f9128b115d
745
py
Python
_unittests/ut_re2/test_missing.py
sdpython/wrapclib
41212ec526f3eaef29333e8947c8d6ca9816362d
[ "MIT" ]
null
null
null
_unittests/ut_re2/test_missing.py
sdpython/wrapclib
41212ec526f3eaef29333e8947c8d6ca9816362d
[ "MIT" ]
4
2019-03-15T10:42:36.000Z
2021-01-09T12:06:27.000Z
_unittests/ut_re2/test_missing.py
sdpython/wrapclib
41212ec526f3eaef29333e8947c8d6ca9816362d
[ "MIT" ]
null
null
null
""" @brief test log(time=3s) """ import unittest if __name__ == "__main__": unittest.main()
22.575758
46
0.616107
""" @brief test log(time=3s) """ import unittest from pyquickhelper.pycode import ExtTestCase from wrapclib import re2 class TestMissing(ExtTestCase): def test_search(self): m = re2.search('abc', 'abc') self.assertIsNotNone(m) self.assertEqual(m.start(), 0) def test_search_endpo...
0
0
0
548
0
0
0
26
67
6b4a509f988c27ee1309bf4316d55c934db5f733
1,219
py
Python
clean_file.py
saraPicc/bigrams_processing
6a62367ff21d143b4dfe01d93875478b08716c1d
[ "MIT" ]
1
2022-02-24T14:07:44.000Z
2022-02-24T14:07:44.000Z
clean_file.py
saraPicc/bigrams_processing
6a62367ff21d143b4dfe01d93875478b08716c1d
[ "MIT" ]
null
null
null
clean_file.py
saraPicc/bigrams_processing
6a62367ff21d143b4dfe01d93875478b08716c1d
[ "MIT" ]
null
null
null
import os #stabilisce il path locale in cui sit rova il file os.chdir(os.path.dirname(os.path.abspath(__file__))) ##DOPO SCRIPT ROBERTO e prima ahah #print(sentences("de_cv_dev.txt")) rows = sentences('de_cv_dev.txt') mega_list = [] frasi = list_sentences(sentences) for el in frasi: for el1 in el: word...
25.93617
97
0.657916
from typing import Text import pandas as pd import os #stabilisce il path locale in cui sit rova il file os.chdir(os.path.dirname(os.path.abspath(__file__))) ##DOPO SCRIPT ROBERTO e prima ahah def sentences(file_text): # load dataframe and ignoring initial spaces df_ID_sent = pd.read_csv(file_text, sep='|',...
0
0
0
0
0
566
0
0
89
d9f01b10cb9158759f479a8ac49d48f788f50a68
653
py
Python
tests/algorithms/test_rna_transcription.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/algorithms/test_rna_transcription.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/algorithms/test_rna_transcription.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
26.12
73
0.718224
import unittest from algorithms.rna_transcription import to_rna class DNATests(unittest.TestCase): def test_transcribes_guanine_to_cytosine(self): self.assertEqual("C", to_rna("G")) def test_transcribes_cytosine_to_guanine(self): self.assertEqual("G", to_rna("C")) def test_transcribes_t...
0
0
0
515
0
0
0
26
46
b7f613f8b795019ab30a36c273f52f3db1807f36
2,963
py
Python
schevo/decorator.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
1
2020-09-05T00:47:50.000Z
2020-09-05T00:47:50.000Z
schevo/decorator.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
schevo/decorator.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
"""Method decorators for Schevo.""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. import sys from schevo.lib import optimize def with_label(label, plural=None): """Return a decorator that assigns a label and an optional plural label to a function.""" return label_decorator ...
26.693694
72
0.636517
"""Method decorators for Schevo.""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. import sys from schevo.lib import optimize class _labelable_classmethod(object): _label = None _marker = None def __init__(self, fn): self.fn = fn setattr(fn, self.marker, True) ...
0
0
0
2,332
0
128
0
0
118
fea2b3ad211b9070a9afbe2987d1449f44d819d5
1,786
py
Python
zeeguu_core/model/localized_topic.py
C0DK/Zeeguu-Core
55b6a7ce1223f368614fb7e5dd9e53d4e46ae69e
[ "MIT" ]
1
2018-03-22T12:29:49.000Z
2018-03-22T12:29:49.000Z
zeeguu_core/model/localized_topic.py
C0DK/Zeeguu-Core
55b6a7ce1223f368614fb7e5dd9e53d4e46ae69e
[ "MIT" ]
82
2017-12-09T16:15:02.000Z
2020-11-12T11:34:09.000Z
zeeguu_core/model/localized_topic.py
C0DK/Zeeguu-Core
55b6a7ce1223f368614fb7e5dd9e53d4e46ae69e
[ "MIT" ]
9
2017-11-25T11:32:05.000Z
2020-10-26T15:50:13.000Z
import zeeguu_core db = zeeguu_core.db
27.90625
100
0.663494
from sqlalchemy.orm import relationship import zeeguu_core from sqlalchemy import Column, Integer, String, ForeignKey, and_ db = zeeguu_core.db class LocalizedTopic(db.Model): """ A localized topic is a localized version of a topic, it is the same topic but translated and with the adde...
0
98
0
1,517
0
0
0
61
68
a86c1419b3316d0ab76f5cd0bfc37cfcc0c9caf3
264
py
Python
python/2.OOP/4.Exception/8.throw_div.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/2.OOP/4.Exception/8.throw_div.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
null
null
null
python/2.OOP/4.Exception/8.throw_div.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
# if __name__ == '__main__': main()
13.894737
40
0.590909
# 抛出自定义异常 class DntException(BaseException): pass def get_age(num): if num <= 0: raise DntException("num must>0") else: print(num) def main(): get_age(-1) get_age(22) # 程序崩了,这句话不会被执行了 if __name__ == '__main__': main()
63
0
0
22
0
109
0
0
68
d9b88a40d68f7de8e9ed0750e4c3bf140da8f626
891
py
Python
src/app/services/db.py
jtprogru/todoister
7db767efad8f9de79974b86464f485bb9365f84e
[ "MIT" ]
1
2021-08-11T23:31:51.000Z
2021-08-11T23:31:51.000Z
src/app/services/db.py
jtprogru/todoister
7db767efad8f9de79974b86464f485bb9365f84e
[ "MIT" ]
7
2021-08-15T19:15:45.000Z
2021-10-11T04:13:50.000Z
src/app/services/db.py
jtprogru/todoister
7db767efad8f9de79974b86464f485bb9365f84e
[ "MIT" ]
null
null
null
""" ."""
21.214286
65
0.618406
"""Сервисный модуль для базы данных.""" from app.core import Base, SessionLocal, engine class DatabaseException(Exception): """Класс исключений.""" def with_traceback(self, tb) -> str: """Возврат трейсбека. Args: tb: трейсбек Returns: str: форматированная стр...
312
0
373
230
0
0
0
26
91
978eb0bebf106d04b01f0e8b5c287a391c2ba221
1,329
py
Python
Python3/402.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/402.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/402.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 32 ms submission # # @lc app=leetcode id=402 lang=python3 # # [402] Remove K Digits # __________________________________________________________________________________________________ sample 13060 kb submission __...
30.906977
98
0.537998
__________________________________________________________________________________________________ sample 32 ms submission # # @lc app=leetcode id=402 lang=python3 # # [402] Remove K Digits # class Solution: def removeKdigits(self, num: str, k: int) -> str: out = [] for c in num: while k...
0
0
0
868
0
0
0
0
44
4237566f38ba6b630a6df4db5278fbe1bbfdfd4b
9,302
py
Python
lib/getadusers.py
Exhorder6/PurpleSpray
913e8c88e59c0378a25806c9abe19d0c8108dc12
[ "BSD-3-Clause" ]
46
2019-04-28T02:51:43.000Z
2021-08-07T19:20:01.000Z
lib/getadusers.py
Exhorder6/PurpleSpray
913e8c88e59c0378a25806c9abe19d0c8108dc12
[ "BSD-3-Clause" ]
1
2019-05-08T02:36:06.000Z
2019-05-08T02:36:06.000Z
lib/getadusers.py
Exhorder6/PurpleSpray
913e8c88e59c0378a25806c9abe19d0c8108dc12
[ "BSD-3-Clause" ]
7
2019-04-28T13:49:21.000Z
2022-01-05T14:25:16.000Z
#!/usr/bin/env python # SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: # Alberto Solino (@agsolino) # # Description...
42.669725
199
0.606644
#!/usr/bin/env python # SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: # Alberto Solino (@agsolino) # # Description...
0
87
0
7,922
0
0
0
101
244
1abb984be26584dec42d93fa385975200825c641
474
py
Python
src/factiva/news/__init__.py
lonly7star/factiva-news-python
763b178fe7fd3716e5542cf098600ef56c6fbd62
[ "MIT" ]
10
2020-05-02T15:37:04.000Z
2021-11-08T09:07:11.000Z
src/factiva/news/__init__.py
lonly7star/factiva-news-python
763b178fe7fd3716e5542cf098600ef56c6fbd62
[ "MIT" ]
5
2021-07-28T10:44:24.000Z
2022-02-02T09:50:49.000Z
src/factiva/news/__init__.py
lonly7star/factiva-news-python
763b178fe7fd3716e5542cf098600ef56c6fbd62
[ "MIT" ]
7
2021-01-10T22:21:03.000Z
2022-01-26T14:51:52.000Z
""" Init file for news module. """ __all__ = ['snapshot', 'stream', 'bulknews', 'taxonomy', 'Snapshot', 'SnapshotQuery', 'SnapshotFiles', 'Stream', 'Listener', 'Subscription', 'Taxonomy', 'SnapshotFiles'] from .__version__ import __version__ from .snapshot import (Snapshot, SnapshotQuery, SnapshotFiles) f...
29.625
62
0.740506
""" Init file for news module. """ __all__ = ['snapshot', 'stream', 'bulknews', 'taxonomy', 'Snapshot', 'SnapshotQuery', 'SnapshotFiles', 'Stream', 'Listener', 'Subscription', 'Taxonomy', 'SnapshotFiles'] from .__version__ import __version__ from .snapshot import (Snapshot, SnapshotQuery, SnapshotFiles) f...
0
0
0
0
0
0
0
0
0
a02399986b527a785afd29bafb11ab2c584857cb
10,259
py
Python
tests/test_models.py
frankwirgit/exercise-flask-rest
3ec3fdab9785b93626a3c421a8aaeaee4b818956
[ "Apache-2.0" ]
null
null
null
tests/test_models.py
frankwirgit/exercise-flask-rest
3ec3fdab9785b93626a3c421a8aaeaee4b818956
[ "Apache-2.0" ]
null
null
null
tests/test_models.py
frankwirgit/exercise-flask-rest
3ec3fdab9785b93626a3c421a8aaeaee4b818956
[ "Apache-2.0" ]
null
null
null
# License info goes here. """ Test cases for Model Test cases can be run with: nosetests coverage report -m While debugging just these tests it's convinient to use this: nosetests --stop tests/test_models.py:TestPatModel """ import os import json #from .factories import PatFactory #read the sample jaso...
38.423221
291
0.595477
# License info goes here. """ Test cases for Model Test cases can be run with: nosetests coverage report -m While debugging just these tests it's convinient to use this: nosetests --stop tests/test_models.py:TestPatModel """ import os import logging import unittest from datetime import datetime import j...
0
299
0
9,001
0
0
0
58
154
04bac257b498d38d005866a80b1f007b37d88519
1,041
py
Python
seedcoatmap/cubemap.py
markbasham/SeedCoatMap
800e1a9674075977e8742e00bd481c0060154874
[ "Apache-2.0" ]
null
null
null
seedcoatmap/cubemap.py
markbasham/SeedCoatMap
800e1a9674075977e8742e00bd481c0060154874
[ "Apache-2.0" ]
null
null
null
seedcoatmap/cubemap.py
markbasham/SeedCoatMap
800e1a9674075977e8742e00bd481c0060154874
[ "Apache-2.0" ]
null
null
null
''' Created on 29 Mar 2019 @author: ssg37927 '''
29.742857
83
0.540826
''' Created on 29 Mar 2019 @author: ssg37927 ''' from numpy import meshgrid, linspace, concatenate, zeros_like, sqrt def build_cubemap_vector_array(mesh_size=10): # create the tiles to build the x, y and z xt, yt = meshgrid(linspace(-1.0, 1.0, mesh_size), linspace(-1.0, 1.0, mesh_size)...
0
0
0
0
0
899
0
46
46
e1fbddab0f0b8c5bb5a41e1545d4b5f67944c0cc
1,503
py
Python
Final Exam/GUI.py
Fallinqqq/ITP-100-01-Course-Projects
09c2a5d9d94fd4d68aac161acbc475850784abaa
[ "MIT" ]
null
null
null
Final Exam/GUI.py
Fallinqqq/ITP-100-01-Course-Projects
09c2a5d9d94fd4d68aac161acbc475850784abaa
[ "MIT" ]
null
null
null
Final Exam/GUI.py
Fallinqqq/ITP-100-01-Course-Projects
09c2a5d9d94fd4d68aac161acbc475850784abaa
[ "MIT" ]
null
null
null
# Grace Foster # ITP 100-01 # Program 03 - GUI # GUI.py # ------------------------------------------------- main()
26.839286
93
0.59481
# Grace Foster # ITP 100-01 # Program 03 - GUI # GUI.py # ------------------------------------------------- from tkinter import * from tkinter import ttk class GUI: def __init__(self, rootWindow): self.buttonsEnabled = IntVar() self.buttonsEnabled.set(1) self.label = ttk.Checkbutton(root...
0
0
0
1,209
0
82
0
2
91
63d04f41156ac3f365ad97cd11bda8710d70d221
9,187
py
Python
neutronclient/tests/unit/test_cli20_subnetpool.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/test_cli20_subnetpool.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/test_cli20_subnetpool.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation. # All Rights Reserved # # 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 requ...
44.381643
78
0.604659
# Copyright 2015 OpenStack Foundation. # All Rights Reserved # # 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 requ...
0
0
0
8,349
0
0
0
64
136
ef77e2f1dc6537ebe41b29679b2ee191826b7122
1,527
py
Python
src/plot_grid.py
effaeff/distributed-sampling-py
d882d11af8f9a1c166ff161d6403c2d7247209fd
[ "MIT" ]
null
null
null
src/plot_grid.py
effaeff/distributed-sampling-py
d882d11af8f9a1c166ff161d6403c2d7247209fd
[ "MIT" ]
null
null
null
src/plot_grid.py
effaeff/distributed-sampling-py
d882d11af8f9a1c166ff161d6403c2d7247209fd
[ "MIT" ]
null
null
null
"""Method for grid plotting""" from matplotlib import patches, pyplot as plt def plot_grid(grid, width=1, height=1, primitive=True): """ Method for plotting grids. Simple numpy arrays can also be plotted of primitive is True """ nb_rows = len(grid) nb_cols = len(grid[0]) __, axs = plt.sub...
28.277778
64
0.477407
"""Method for grid plotting""" from matplotlib import patches, pyplot as plt def plot_grid(grid, width=1, height=1, primitive=True): """ Method for plotting grids. Simple numpy arrays can also be plotted of primitive is True """ nb_rows = len(grid) nb_cols = len(grid[0]) __, axs = plt.sub...
0
0
0
0
0
0
0
0
0
60ef4ebf2d8adb77233257450737f684348e2d02
582
py
Python
solutions/day1/results.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
1
2020-12-04T17:57:24.000Z
2020-12-04T17:57:24.000Z
solutions/day1/results.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
null
null
null
solutions/day1/results.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
null
null
null
from functools import reduce from operator import mul from ..aoc_util import get_data if __name__ == '__main__': num_list = get_data(1) nums = sum_finder(num_list) print(f'Part 1: {reduce(mul, nums)}') nums = sum_finder(num_list, num_factors=3) print(f'Part 2: {reduce(mul, nums)}')
20.785714
52
0.675258
from functools import reduce from operator import mul from ..aoc_util import get_data import itertools import os def sum_finder(num_list, num_factors=2): in_data = [num_list for _ in range(num_factors)] options = list(itertools.product(*in_data)) for option in options: if sum(option) == 2020: ...
0
0
0
0
0
223
0
-17
68
3c171232519fe54cb74b1f341b53259c28d883dc
14,448
py
Python
src/v5.1/resources/swagger_client/models/tpdm_staff_extension.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/models/tpdm_staff_extension.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/models/tpdm_staff_extension.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
38.323607
482
0.679679
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
0
8,062
0
5,605
0
0
0
2
128
308315ac5624c0359b9ed77381fa55c07298af53
5,428
py
Python
mss/postprocessing/separate.py
DiegoLigtenberg/Workspace-MasterThesis-MSS
e8183031b6223051049f48e0da2bc2824e60239e
[ "MIT" ]
null
null
null
mss/postprocessing/separate.py
DiegoLigtenberg/Workspace-MasterThesis-MSS
e8183031b6223051049f48e0da2bc2824e60239e
[ "MIT" ]
null
null
null
mss/postprocessing/separate.py
DiegoLigtenberg/Workspace-MasterThesis-MSS
e8183031b6223051049f48e0da2bc2824e60239e
[ "MIT" ]
null
null
null
''' For each track in track_input 1) Load track - load IRMAS DATABASE - load MUSDB DATABASE 2) preprocess the track - preprocess IRMAS DATABASE - (MUSDB already preprocessed) 3) Model the track - convert preprocessed data into waveforms (track wise) - name the generated tracks according to original track...
39.911765
137
0.625645
from mss.utils.dataloader import natural_keys, atof from mss.postprocessing.generator_c import * from mss.preprocessing.preprocesssing_main import * from tqdm import tqdm import glob import os import pickle ''' For each track in track_input 1) Load track - load IRMAS DATABASE - load MUSDB DATABASE 2) preprocess ...
0
0
0
4,624
0
90
0
53
231
36a847f24025ac3a1c0572ca970dfe8d154b3c53
1,535
py
Python
mote/weather_mood.py
C-D-Lewis/mote-examples
30fdfe0f4dc4661632f896d5cb887328e4088cb5
[ "Apache-2.0" ]
null
null
null
mote/weather_mood.py
C-D-Lewis/mote-examples
30fdfe0f4dc4661632f896d5cb887328e4088cb5
[ "Apache-2.0" ]
null
null
null
mote/weather_mood.py
C-D-Lewis/mote-examples
30fdfe0f4dc4661632f896d5cb887328e4088cb5
[ "Apache-2.0" ]
null
null
null
# python3 weather_mood.py # OpenWeatherMap API key API_KEY = '6fdf8b1f9b3c4b3916e57166631c363d' # Current latitude LATITUDE = 51.577392 # Current longitude LONGITUDE = 0.179766 # Update interval INTERVAL = 1000 * 60 * 15 # Get a color suited to the current conditions string # # conditions - Weather conditions string ...
23.984375
117
0.700326
# python3 weather_mood.py import leds import requests import time # OpenWeatherMap API key API_KEY = '6fdf8b1f9b3c4b3916e57166631c363d' # Current latitude LATITUDE = 51.577392 # Current longitude LONGITUDE = 0.179766 # Update interval INTERVAL = 1000 * 60 * 15 # Get a color suited to the current conditions string # ...
0
0
0
0
0
1,001
0
-26
133
1c56e21d5702d304a32beffe9a81d2e8907e8b8e
6,772
py
Python
RNA.py
JK19/Python-Neural-Networks
acfde4087dfc0dcf7cd67ee2dd93bfb4096bd280
[ "MIT" ]
null
null
null
RNA.py
JK19/Python-Neural-Networks
acfde4087dfc0dcf7cd67ee2dd93bfb4096bd280
[ "MIT" ]
null
null
null
RNA.py
JK19/Python-Neural-Networks
acfde4087dfc0dcf7cd67ee2dd93bfb4096bd280
[ "MIT" ]
null
null
null
if __name__ == '__main__': red = RNA(entradas=2, alpha=0.5, arquitectura=[2, 1], permitir_logs=True) red.generar() XOR_in_samples = [ [0, 0], [0, 1], [1, 0], [1, 1] ] XOR_out_samples = [ [0],...
30.642534
117
0.514471
import random import math class RNA(object): def __init__(self, entradas=3, arquitectura=[2, 1], alpha=0.5, aleatoria=None, permitir_logs=False): self.red = [] self.arquitectura = arquitectura ...
0
0
0
5,166
0
0
0
-18
71
aa56f5c784c3050c99af864cc23b309f74340831
1,113
py
Python
webapp/smartdoor.py
mrpjevans/smartdoor
954f1ca6baf399bbdec98da95a119d4a1e568915
[ "MIT" ]
6
2018-12-27T16:14:21.000Z
2021-04-27T05:45:19.000Z
webapp/smartdoor.py
mrpjevans/smartdoor
954f1ca6baf399bbdec98da95a119d4a1e568915
[ "MIT" ]
3
2019-01-07T12:43:45.000Z
2019-02-05T08:54:44.000Z
webapp/smartdoor.py
mrpjevans/smartdoor
954f1ca6baf399bbdec98da95a119d4a1e568915
[ "MIT" ]
2
2019-02-13T14:30:34.000Z
2019-02-15T10:31:37.000Z
import os from flask import Flask app = Flask(__name__) # What are we running on? isRPi = False if os.uname()[4][:3] == 'arm': isRPi = True # Our default homepage # Grab a still from the camera # Stream video from the camera # Door activity log # Letterbox activity log # Show previous video # Unlock ...
18.55
49
0.686433
import os import time from flask import Flask, render_template, jsonify app = Flask(__name__) # What are we running on? isRPi = False if os.uname()[4][:3] == 'arm': import automationhat # pylint: disable=all isRPi = True # Our default homepage @app.route('/') def index(): return render_template('index....
0
452
0
0
0
0
0
15
225
46a21f6c05c52278118ca5e086dee724f6c1e828
5,082
py
Python
chb/graphics/DotCallgraph.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/graphics/DotCallgraph.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/graphics/DotCallgraph.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020 Henny Si...
38.5
85
0.56769
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020 Henny Si...
0
0
0
3,396
0
0
0
68
114
da093bdf6ddafa309a1c591823ee2797e27bc99f
856
py
Python
scripts/test.py
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
scripts/test.py
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
scripts/test.py
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
# def main(): # stream = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) # stream.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # stream.bind("/etc/orion/container.sock") # stream.listen(1) # connection, client_address = stream.accept() # stream.send('{"sender": 23,"receiver": 23...
23.777778
84
0.601636
import socket import time # def main(): # stream = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) # stream.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # stream.bind("/etc/orion/container.sock") # stream.listen(1) # connection, client_address = stream.accept() # stream.send('{"...
0
0
0
0
0
387
0
-18
67
dd256b2c5e82c9cad1fcad105a0666675b07c678
2,409
py
Python
stale_major_or_above_rule.py
sjwiesman/flink-jira-bot
37190da20dd8586b277be0b13face6632706fdc1
[ "Apache-2.0" ]
null
null
null
stale_major_or_above_rule.py
sjwiesman/flink-jira-bot
37190da20dd8586b277be0b13face6632706fdc1
[ "Apache-2.0" ]
null
null
null
stale_major_or_above_rule.py
sjwiesman/flink-jira-bot
37190da20dd8586b277be0b13face6632706fdc1
[ "Apache-2.0" ]
null
null
null
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
48.18
120
0.673724
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
0
0
0
1,384
0
0
0
20
46
c6d75898dc9387a8177fb232cf5165344a353ff3
32,540
py
Python
dashboard/views.py
kwarodom/bemoss_web_ui_1.2
332e3ef307cec146fdc3141169a4a64998b3fc20
[ "Unlicense" ]
null
null
null
dashboard/views.py
kwarodom/bemoss_web_ui_1.2
332e3ef307cec146fdc3141169a4a64998b3fc20
[ "Unlicense" ]
null
null
null
dashboard/views.py
kwarodom/bemoss_web_ui_1.2
332e3ef307cec146fdc3141169a4a64998b3fc20
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Authors: Kruthika Rathinavel # Version: 1.2.1 # Email: kruthika@vt.edu # Created: "2014-10-13 18:45:40" # Updated: "2015-02-13 15:06:41" # Copyright 2014 by Virginia Polytechnic Institute and State University # All rights reserved # # Virginia Polytechnic Institute and State University (Vir...
46.552217
156
0.629318
# -*- coding: utf-8 -*- # Authors: Kruthika Rathinavel # Version: 1.2.1 # Email: kruthika@vt.edu # Created: "2014-10-13 18:45:40" # Updated: "2015-02-13 15:06:41" # Copyright © 2014 by Virginia Polytechnic Institute and State University # All rights reserved # # Virginia Polytechnic Institute and State University (Vi...
2
28,172
0
0
0
455
0
230
791
1b42dc7b07b1ea2048e6783c0b5f876228ae3450
1,659
py
Python
setup.py
wangsha/Flask-MailGun
5406dfc39bc71712c8073896b3f9f336116e6408
[ "MIT" ]
null
null
null
setup.py
wangsha/Flask-MailGun
5406dfc39bc71712c8073896b3f9f336116e6408
[ "MIT" ]
null
null
null
setup.py
wangsha/Flask-MailGun
5406dfc39bc71712c8073896b3f9f336116e6408
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Flask-MailGun Flask extension to use the Mailgun email parsing service for sending and receving emails """ from io import open try: from setuptools import setup except ImportError: from distutils.core import setup with open('Version', encoding='utf-8') as f: ...
26.758065
76
0.646775
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Flask-MailGun Flask extension to use the Mailgun email parsing service for sending and receving emails """ from io import open try: from setuptools import setup except ImportError: from distutils.core import setup with open('Version', encoding='utf-8') as f: ...
0
0
0
0
0
0
0
0
0
3593b41c4546bcde2651b0d94d1c02fccc9f3f65
648
py
Python
Chapter02/TensorFlow_basic_operations/Variable_init.py
tongni1975/Deep-Learning-with-TensorFlow-Second-Edition
6964bf3bf11c1b38113a0459b4d1a9dac416ed39
[ "MIT" ]
54
2018-04-01T21:25:55.000Z
2021-12-04T02:45:45.000Z
Chapter02/TensorFlow_basic_operations/Variable_init.py
tongni1975/Deep-Learning-with-TensorFlow-Second-Edition
6964bf3bf11c1b38113a0459b4d1a9dac416ed39
[ "MIT" ]
3
2019-04-14T03:15:36.000Z
2020-07-03T12:05:03.000Z
Chapter02/TensorFlow_basic_operations/Variable_init.py
tongni1975/Deep-Learning-with-TensorFlow-Second-Edition
6964bf3bf11c1b38113a0459b4d1a9dac416ed39
[ "MIT" ]
51
2018-04-10T12:25:40.000Z
2022-02-15T07:36:17.000Z
import tensorflow as tf import os from tensorflow.python.framework import ops import warnings warnings.filterwarnings("ignore") os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' ops.reset_default_graph() #value = tf.Variable(0, name="value") value = tf.get_variable("value", shape=[], dtype=tf.int32, initializer=None, regular...
27
128
0.739198
import tensorflow as tf import os from tensorflow.python.framework import ops import warnings warnings.filterwarnings("ignore") os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' ops.reset_default_graph() #value = tf.Variable(0, name="value") value = tf.get_variable("value", shape=[], dtype=tf.int32, initializer=None, regular...
0
0
0
0
0
0
0
0
0
ff45cb389786761a57c646493f8b8b71ecdd48f0
20,087
py
Python
src/speech_commands_custom/input_data.py
JaneliaSciComp/SongExplorer
b1f58cff6b075f6f97bcb37979356a42945ea468
[ "BSD-3-Clause" ]
5
2020-11-24T13:27:45.000Z
2022-03-07T07:33:18.000Z
src/speech_commands_custom/input_data.py
JaneliaSciComp/SongExplorer
b1f58cff6b075f6f97bcb37979356a42945ea468
[ "BSD-3-Clause" ]
2
2020-11-28T22:36:19.000Z
2021-03-25T14:53:37.000Z
src/speech_commands_custom/input_data.py
JaneliaSciComp/SongExplorer
b1f58cff6b075f6f97bcb37979356a42945ea468
[ "BSD-3-Clause" ]
4
2020-11-25T00:55:15.000Z
2021-07-19T04:47:38.000Z
#This file, originally from the TensorFlow speech recognition tutorial, #has been heavily modified for use by SongExplorer. # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
47.263529
110
0.681734
#This file, originally from the TensorFlow speech recognition tutorial, #has been heavily modified for use by SongExplorer. # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
0
0
0
15,957
0
0
0
58
326
869898e54c40b5b63dcf7cc0ba1ef07ac1d216f9
49,379
py
Python
grinder/instance.py
gridcentric/grinder
fb0fb52c0690a9c80ca0704cf7231b407482d793
[ "MIT" ]
1
2018-06-11T01:36:46.000Z
2018-06-11T01:36:46.000Z
grinder/instance.py
gridcentric/grinder
fb0fb52c0690a9c80ca0704cf7231b407482d793
[ "MIT" ]
null
null
null
grinder/instance.py
gridcentric/grinder
fb0fb52c0690a9c80ca0704cf7231b407482d793
[ "MIT" ]
null
null
null
# Copyright 2013 GridCentric Inc. # All Rights Reserved. # # 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...
40.708162
123
0.608153
# Copyright 2013 GridCentric Inc. # All Rights Reserved. # # 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...
0
14,301
0
33,242
0
274
0
-46
353
0e2d457014f41d7104abdffd2489b5fa7f01e555
4,029
py
Python
jdk_8_maven/cs/rest/original/languagetool/languagetool-language-modules/sr/src/main/resources/org/languagetool/resource/sr/script/pos2lt.py
EMResearch/EMB
5f81fa65daf463cb7aec43a7b22ccafdf653479b
[ "Apache-2.0" ]
11
2017-06-11T14:13:30.000Z
2022-02-21T13:45:34.000Z
LanguageTool/LanguageTool-4.3/org/languagetool/resource/sr/script/pos2lt.py
lflage/ASAP-Essay
139d1eae2514a31ccb092256ec82c32bb11df2ae
[ "MIT" ]
9
2018-12-20T10:45:45.000Z
2022-03-08T12:12:56.000Z
LanguageTool/LanguageTool-4.3/org/languagetool/resource/sr/script/pos2lt.py
lflage/ASAP-Essay
139d1eae2514a31ccb092256ec82c32bb11df2ae
[ "MIT" ]
6
2018-08-16T15:11:20.000Z
2022-03-31T06:53:00.000Z
#!/usr/bin/env python3 # coding: utf-8 """ Program reads input file line by line, matching PoS tags. Each is replaced by an LT tag. LT tags are provided by function srptagging.get_tag - """ _args_ = None _logger_ = None _out_file_ = None LOG_FORMAT = '%(asctime)-15s %(levelname)s %(message)s' DIST_TAGS = [] # Ch...
33.297521
123
0.600645
#!/usr/bin/env python3 # coding: utf-8 """ Program reads input file line by line, matching PoS tags. Each is replaced by an LT tag. LT tags are provided by function srptagging.get_tag - """ import argparse import logging import os import sys import srptagging _args_ = None _logger_ = None _out_file_ = None LOG_FORM...
0
0
0
0
0
3,282
0
-40
271
a57b1eca1e01ee9cd702147336f2860fe3606acc
1,453
py
Python
examples/a3_looping.py
leonh/pyelements
eb8f6fd948bf2272219d69aa8e43a86df79bb946
[ "MIT" ]
null
null
null
examples/a3_looping.py
leonh/pyelements
eb8f6fd948bf2272219d69aa8e43a86df79bb946
[ "MIT" ]
null
null
null
examples/a3_looping.py
leonh/pyelements
eb8f6fd948bf2272219d69aa8e43a86df79bb946
[ "MIT" ]
null
null
null
from examples.a1_code_blocks import line #looping over sequences, 'for' statement is more like 'forEach' # 'in' acts more like an assignment operator in this context li = range(0, 10) print(line(), len(li), list(li)) def is_even(num): """ is an int is even or not """ if num % 2 == 0: return ...
23.819672
105
0.640055
from examples.a1_code_blocks import line #looping over sequences, 'for' statement is more like 'forEach' # 'in' acts more like an assignment operator in this context li = range(0, 10) print(line(), len(li), list(li)) def is_even(num): """ is an int is even or not """ if num % 2 == 0: return ...
0
0
0
0
0
0
0
0
0
832d695fa51397a52cf55b1b2bcc474d8f8874a2
10,694
py
Python
Code/InnoSchedule/modules/schedule/source.py
Eng-MFQ/InnoCalendar
06837d689027428d91a7c5fe8923a26b14aadffd
[ "MIT" ]
null
null
null
Code/InnoSchedule/modules/schedule/source.py
Eng-MFQ/InnoCalendar
06837d689027428d91a7c5fe8923a26b14aadffd
[ "MIT" ]
null
null
null
Code/InnoSchedule/modules/schedule/source.py
Eng-MFQ/InnoCalendar
06837d689027428d91a7c5fe8923a26b14aadffd
[ "MIT" ]
1
2019-11-28T10:55:37.000Z
2019-11-28T10:55:37.000Z
""" Module allows to set user's groups and get information about current and next lesson, lessons at some day of week or get link to official google doc Also may provide information about friend's current and next lessons by his alias Authors: @Nmikriukov @thedownhill """
46.094828
121
0.674864
from datetime import datetime import telebot from modules.schedule import controller, permanent from modules.core.source import bot, log, main_markup from modules.electives_schedule.permanent import MESSAGE_FREE_DAY_ELECTIVE from modules.electives_schedule.controller import get_day_elective_lessons """ Module allows...
6
4,677
0
0
0
5,414
0
168
157
0cb57eac2eed0b5d27cafb3e142a765ac9deb528
2,924
py
Python
main.py
me0l/twitter_otstuk
f8bea9fd25ca8cf8029985e4b634f41196bfd872
[ "Apache-2.0" ]
null
null
null
main.py
me0l/twitter_otstuk
f8bea9fd25ca8cf8029985e4b634f41196bfd872
[ "Apache-2.0" ]
null
null
null
main.py
me0l/twitter_otstuk
f8bea9fd25ca8cf8029985e4b634f41196bfd872
[ "Apache-2.0" ]
null
null
null
from os import path from threading import Thread from re import compile find_urls = compile(r"\b((?:https?://)?(?:(?:www\.)?(?:[\da-z\.-]+)\.(?:[a-z]{2,6})|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:(?:[0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,7}:...
44.984615
1,008
0.530438
import twint from os import path from threading import Thread from re import compile from telebot import TeleBot from requests import head find_urls = compile(r"\b((?:https?://)?(?:(?:www\.)?(?:[\da-z\.-]+)\.(?:[a-z]{2,6})|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:(...
224
0
0
0
0
1,023
0
1
114
1617b3bb2cca8d699d263d1e59ead7d53cc75581
403
py
Python
pyboggler/cli.py
prince-mishra/pyboggler
bd908ecffe9727503c51a220ab6779c60dd40c90
[ "MIT" ]
null
null
null
pyboggler/cli.py
prince-mishra/pyboggler
bd908ecffe9727503c51a220ab6779c60dd40c90
[ "MIT" ]
null
null
null
pyboggler/cli.py
prince-mishra/pyboggler
bd908ecffe9727503c51a220ab6779c60dd40c90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for pyboggler.""" import sys if __name__ == "__main__": sys.exit(main()) # pragma: no cover
20.15
40
0.62531
# -*- coding: utf-8 -*- """Console script for pyboggler.""" import sys import click from bogglesolver import BoggleSolver @click.option('--grid', prompt='grid', help='.') @click.command() def main(grid): """Console script for pyboggler.""" bs = BoggleSolver(grid) for w in bs.solve():print w ...
0
187
0
0
0
0
0
7
67
7c649c12bf172bfa96a992dcd26893a0975f2f7c
7,293
py
Python
examples/AtmosphericFlight/Hypersonic3DOF/planarto3dof.py
Rapid-Design-of-Systems-Laboratory/beluga
2799dd231db7fd9cfcc66d3f8986e9774775c7a6
[ "MIT" ]
20
2017-10-02T13:09:58.000Z
2022-03-28T20:50:35.000Z
examples/AtmosphericFlight/Hypersonic3DOF/planarto3dof.py
Rapid-Design-of-Systems-Laboratory/beluga
2799dd231db7fd9cfcc66d3f8986e9774775c7a6
[ "MIT" ]
187
2018-02-04T20:35:03.000Z
2021-01-27T15:04:18.000Z
examples/AtmosphericFlight/Hypersonic3DOF/planarto3dof.py
msparapa/beluga
2799dd231db7fd9cfcc66d3f8986e9774775c7a6
[ "MIT" ]
12
2018-01-19T04:00:09.000Z
2022-03-28T16:44:17.000Z
""" References ---------- .. [1] Vinh, Nguyen X., Adolf Busemann, and Robert D. Culp. "Hypersonic and planetary entry flight mechanics." NASA STI/Recon Technical Report A 81 (1980). """ import beluga import logging import matplotlib.pyplot as plt ''' Begin the planar portion of the solution process. ''' ocp = be...
32.558036
110
0.624297
""" References ---------- .. [1] Vinh, Nguyen X., Adolf Busemann, and Robert D. Culp. "Hypersonic and planetary entry flight mechanics." NASA STI/Recon Technical Report A 81 (1980). """ from math import * import beluga import logging import matplotlib.pyplot as plt ''' Begin the planar portion of the solution p...
0
0
0
0
0
0
0
-3
23
9f639953698ec9bf98b5ca3df700fbde673489ac
488
py
Python
frameworks/tensorflow/perf_tests/broadcast.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
132
2020-09-04T08:17:23.000Z
2022-03-29T13:24:10.000Z
frameworks/tensorflow/perf_tests/broadcast.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
9
2020-09-21T04:38:14.000Z
2022-03-04T14:23:14.000Z
frameworks/tensorflow/perf_tests/broadcast.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
27
2020-09-08T07:48:01.000Z
2022-01-24T12:33:09.000Z
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import tensorflow as tf from tensorflow.contrib import antares if tf.version.VERSION.startswith('2.'): tf = tf.compat.v1 tf.disable_eager_execution() x = create_variable([1024, 64], dtype=tf.float32) compare_ops( ...
22.181818
72
0.702869
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import tensorflow as tf from tensorflow.contrib import antares if tf.version.VERSION.startswith('2.'): tf = tf.compat.v1 tf.disable_eager_execution() from _common import * x = create_variable([1024, 64], dtype=tf.fl...
0
0
0
0
0
0
0
0
23
4634bb909856aabaa33dbe8d16a4eace8e850811
1,003
py
Python
sknetwork/hierarchy/tests/test_algos.py
HerrZYZ/scikit-network
fa2b684ee37c90679ed3d0a48426d3f4baceb70d
[ "BSD-3-Clause" ]
457
2018-07-24T12:42:14.000Z
2022-03-31T08:30:39.000Z
sknetwork/hierarchy/tests/test_algos.py
HerrZYZ/scikit-network
fa2b684ee37c90679ed3d0a48426d3f4baceb70d
[ "BSD-3-Clause" ]
281
2018-07-13T05:01:19.000Z
2022-03-31T14:13:43.000Z
sknetwork/hierarchy/tests/test_algos.py
HerrZYZ/scikit-network
fa2b684ee37c90679ed3d0a48426d3f4baceb70d
[ "BSD-3-Clause" ]
58
2019-04-22T09:04:32.000Z
2022-03-30T12:43:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on March 2020 @author: Quentin Lutz <qlutz@enst.fr> @author: Thomas Bonald <tbonald@enst.fr> """
34.586207
99
0.676969
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on March 2020 @author: Quentin Lutz <qlutz@enst.fr> @author: Thomas Bonald <tbonald@enst.fr> """ import unittest from sknetwork.data.test_graphs import * from sknetwork.embedding import Spectral from sknetwork.hierarchy import LouvainHierarchy, Paris class ...
0
0
0
667
0
0
0
66
113
add174e5cbeb11fc9b4b84a4e466d0581d4fb724
4,068
py
Python
build_gspread.py
trackit/s3-acl-viewer
9c9938b690e780e2a38b476b2f07770cc00a035a
[ "MIT" ]
10
2018-03-07T16:44:40.000Z
2021-04-07T03:46:59.000Z
build_gspread.py
trackit/s3-acl-viewer
9c9938b690e780e2a38b476b2f07770cc00a035a
[ "MIT" ]
null
null
null
build_gspread.py
trackit/s3-acl-viewer
9c9938b690e780e2a38b476b2f07770cc00a035a
[ "MIT" ]
3
2018-03-09T01:23:13.000Z
2022-03-28T21:37:03.000Z
import os from oauth2client import client from oauth2client import tools from oauth2client.file import Storage # If modifying these scopes, delete your previously saved credentials # at ~/.credentials/sheets.googleapis.com-python-quickstart.json SCOPES = 'https://www.googleapis.com/auth/drive' CLIENT_SECRET_FILE = 'cl...
36.981818
127
0.65413
import httplib2 import os import collections from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Storage from sheets import * # If modifying these scopes, delete your previously saved credentials # at ~/.credentials/sheets.googleapis.com-python...
0
0
0
0
0
2,407
0
0
159
4c201af7d47ce8f1fe2dd948a8207cb7633b5417
1,496
py
Python
tests/test_geodesic_metric.py
dan-armstrong/amrrt
84d063a45adafc317c141bbad7306aa1dbca9b69
[ "Apache-2.0" ]
2
2021-07-15T09:49:02.000Z
2022-03-27T07:44:20.000Z
tests/test_geodesic_metric.py
dan-armstrong/amrrt
84d063a45adafc317c141bbad7306aa1dbca9b69
[ "Apache-2.0" ]
null
null
null
tests/test_geodesic_metric.py
dan-armstrong/amrrt
84d063a45adafc317c141bbad7306aa1dbca9b69
[ "Apache-2.0" ]
1
2022-03-03T13:42:59.000Z
2022-03-03T13:42:59.000Z
#Copyright (c) 2020 Ocado. All Rights Reserved. import sys, os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)))
51.586207
136
0.72393
#Copyright (c) 2020 Ocado. All Rights Reserved. import sys, os import numpy as np sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))) from amrrt.metrics import GeodesicMetric def test_distance_geodesic(maze_environment_info, maze_distance_matrix): space = maze_...
0
0
0
0
0
1,220
0
16
90
04a6aa1d9aee15a28c8c9e971ec1ec65dce5b6ea
4,630
py
Python
setup.py
cuihantao/Maui-Smart-Grid
28539f6cf07cf2cdf9d8913cdb3c1c1d53ee90c2
[ "BSD-3-Clause" ]
10
2016-10-14T04:51:55.000Z
2021-06-10T16:02:10.000Z
setup.py
Hawaii-Smart-Energy-Project/Maui-Smart-Grid
28539f6cf07cf2cdf9d8913cdb3c1c1d53ee90c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
Hawaii-Smart-Energy-Project/Maui-Smart-Grid
28539f6cf07cf2cdf9d8913cdb3c1c1d53ee90c2
[ "BSD-3-Clause" ]
5
2016-11-28T01:26:24.000Z
2021-09-23T08:36:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup script for MSG Data Processing and Operations. Additional file-based inclusions can be found in MANIFEST.in. The distribution archive is created as a source distribution, http://docs.python.org/2/distutils/sourcedist.html, using python setup.py sdist Inst...
44.519231
80
0.557883
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup script for MSG Data Processing and Operations. Additional file-based inclusions can be found in MANIFEST.in. The distribution archive is created as a source distribution, http://docs.python.org/2/distutils/sourcedist.html, using python setup.py sdist Inst...
18
0
0
0
0
0
0
0
0
6de6fe9acbbdc63e0cb9956033e0268121072bb8
1,400
py
Python
scripts/postgresql_upload/ptree_test/test.py
CCLab/RS_ref
cf0a5baad5d25ca6129b7e3070f5afb182acb8cf
[ "BSD-3-Clause" ]
null
null
null
scripts/postgresql_upload/ptree_test/test.py
CCLab/RS_ref
cf0a5baad5d25ca6129b7e3070f5afb182acb8cf
[ "BSD-3-Clause" ]
null
null
null
scripts/postgresql_upload/ptree_test/test.py
CCLab/RS_ref
cf0a5baad5d25ca6129b7e3070f5afb182acb8cf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2 import psycopg2 as ps import psycopg2.extras as pse import random import time import collections import sys visited = {} start = time.time() d_cur = ps.connect("host='localhost' dbname='rs_ref'").cursor( cursor_factory=pse.RealDictCursor ) t_cur = ps.connect("host='localhost' dbname='rs_ref'").cur...
26.415094
98
0.631429
#!/usr/bin/python2 import psycopg2 as ps import psycopg2.extras as pse import random import time import collections import sys def flatten( x ): if isinstance( x, collections.Iterable ): return { a for i in x for a in flatten( i ) } elif x == None: return {} else: return { x } vis...
0
0
0
0
0
165
0
0
23
a9bcd8ba163269ab5d3d3d6e517db6d0c9ffb158
6,279
py
Python
excel_2021-01-25_14-53-04.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
excel_2021-01-25_14-53-04.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
excel_2021-01-25_14-53-04.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
# This code is generated automatically by ClointFusion BOT Builder Tool. import ClointFusion as cf import time cf.window_show_desktop() cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2)) cf.key_write_enter('ote',key='') time.sleep(0) cf.key_press('enter') time.sleep(1) cf.key_write_enter('hi',key='') ti...
32.703125
270
0.775442
# This code is generated automatically by ClointFusion BOT Builder Tool. import ClointFusion as cf import time cf.window_show_desktop() cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2)) cf.key_write_enter('ote',key='') time.sleep(0) cf.key_press('enter') time.sleep(1) cf.key_write_enter('hi',key='') ti...
0
0
0
0
0
0
0
0
0
6ee7af30e40a2ad3a99e5265e189899d37cdd501
5,389
py
Python
noronha/cli/movers.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
43
2021-04-14T00:41:15.000Z
2022-01-02T23:32:58.000Z
noronha/cli/movers.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
19
2021-04-14T00:35:21.000Z
2022-01-12T14:24:48.000Z
noronha/cli/movers.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
8
2021-04-14T00:31:02.000Z
2022-01-02T23:33:08.000Z
# -*- coding: utf-8 -*- # Copyright Noronha Development Team # # 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 applica...
38.219858
120
0.686213
# -*- coding: utf-8 -*- # Copyright Noronha Development Team # # 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 applica...
0
4,333
0
0
0
0
0
76
272
5fdcb7f8d22ffa50a1a62131580157a5940c1205
21,714
py
Python
pykitopen/search.py
the16thpythonist/pykitopen
7e4a588c3cf958729b14730ac4bb62a89bc64120
[ "MIT" ]
null
null
null
pykitopen/search.py
the16thpythonist/pykitopen
7e4a588c3cf958729b14730ac4bb62a89bc64120
[ "MIT" ]
null
null
null
pykitopen/search.py
the16thpythonist/pykitopen
7e4a588c3cf958729b14730ac4bb62a89bc64120
[ "MIT" ]
null
null
null
""" The module, which contains all the classes which are directly concerned with the search action. This includes the classes SearchResult, SearchBatch, SearchOptions and the batching strategies """ # INTERFACES AND ABSTRACT CLASSES # ############################### # DIFFERENT BATCHING STRATEGIES # ##########...
36.371859
119
0.61762
""" The module, which contains all the classes which are directly concerned with the search action. This includes the classes SearchResult, SearchBatch, SearchOptions and the batching strategies """ import os import csv import json import datetime from collections import deque from typing import Tuple, Type, List, Un...
0
2,527
0
18,275
0
0
0
142
428
7ed6584eb9a6d50919a629a57606d1e61836896a
16,852
py
Python
plugins/General/wxRavenErrorLogConsoleLogic.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
11
2021-12-20T15:32:17.000Z
2022-03-16T03:54:02.000Z
plugins/General/wxRavenErrorLogConsoleLogic.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
156
2021-12-31T21:01:31.000Z
2022-03-20T21:57:31.000Z
plugins/General/wxRavenErrorLogConsoleLogic.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
3
2022-01-21T14:52:43.000Z
2022-02-12T05:32:19.000Z
''' Created on 15 dc. 2021 @author: slinux ''' import wx.lib as lib import wx.lib.mixins.listctrl as listmix
33.304348
134
0.56112
''' Created on 15 déc. 2021 @author: slinux ''' from .wxRavenGeneralDesign import * import wx.lib as lib import wx.lib.mixins.listctrl as listmix import wx.aui import wx.lib.mixins.listctrl as listmix class RavenErrorLogConsole(wxRavenErrorLogConsolePanel, listmix.ColumnSorterMixin): ''' classdocs...
2
0
0
16,494
0
0
0
25
93
a06deb9b4d432eec603f688ff0a2703495202115
615
py
Python
PhysicsTools/PatAlgos/python/patSequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/PatAlgos/python/patSequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/PatAlgos/python/patSequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # make patCandidates # make selectedPatCandidates # make cleanPatCandidates # count cleanPatCandidates (including total number of leptons) patDefaultSequence = cms.Sequence( patCandidates * selectedPatCandidates * cleanPatCandidates * countPatCandidates )
29.285714
77
0.837398
import FWCore.ParameterSet.Config as cms # make patCandidates from PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff import * # make selectedPatCandidates from PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff import * # make cleanPatCandidates from PhysicsTools.PatAlgos.cleaningLayer1.cleanPatCa...
0
0
0
0
0
0
0
209
88
ba63e0ad223f237ee7ddb07cbe457525139fd8ca
1,537
py
Python
server.py
AlexxSandbox/Messenger
12e4aa1a0d358710455522025d28769fc61ac8e6
[ "BSD-2-Clause" ]
null
null
null
server.py
AlexxSandbox/Messenger
12e4aa1a0d358710455522025d28769fc61ac8e6
[ "BSD-2-Clause" ]
null
null
null
server.py
AlexxSandbox/Messenger
12e4aa1a0d358710455522025d28769fc61ac8e6
[ "BSD-2-Clause" ]
null
null
null
# python server.py # localhost:5000 import time from flask import Flask app = Flask(__name__) db = [ { 'name': 'Jack', 'text': 'Hello all', 'time': time.time() }, { 'name': 'Mick', 'text': 'Hello Jack', 'time': time.time() } ] app.run()
19.2125
79
0.545218
# python server.py # localhost:5000 import time from flask import Flask, request, abort from datetime import datetime as dt app = Flask(__name__) db = [ { 'name': 'Jack', 'text': 'Hello all', 'time': time.time() }, { 'name': 'Mick', 'text': 'Hello Jack', 'ti...
82
1,043
0
0
0
0
0
30
114
4b93229e20ee8c32974329bb901868a62153d2e3
1,498
py
Python
api/select.py
liu-jian/seos1.0
8213945c72b63ceac60ed4e59f54f33dc2da88b6
[ "Apache-2.0" ]
2
2018-09-12T09:46:30.000Z
2018-12-28T04:00:58.000Z
api/select.py
liu-jian/seos1.0
8213945c72b63ceac60ed4e59f54f33dc2da88b6
[ "Apache-2.0" ]
null
null
null
api/select.py
liu-jian/seos1.0
8213945c72b63ceac60ed4e59f54f33dc2da88b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8
38.410256
93
0.579439
#!/usr/bin/env python #coding:utf-8 from flask import Flask, request from . import app,jsonrpc import utils from auth import auth_login import json,time,traceback @jsonrpc.method('selected.get') @auth_login def selected(auth_info,**kwargs): if auth_info['code'] == 1: return json.dumps(auth_info) usern...
0
1,309
0
0
0
0
0
18
133
871012b51302d7e987a22cc5d5ae68032648a341
1,505
py
Python
database.py
MainSilent/instaAds
3a6f03768b68eea7eb172b6d2e10f58da433916c
[ "MIT" ]
null
null
null
database.py
MainSilent/instaAds
3a6f03768b68eea7eb172b6d2e10f58da433916c
[ "MIT" ]
null
null
null
database.py
MainSilent/instaAds
3a6f03768b68eea7eb172b6d2e10f58da433916c
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('Data.db') c = conn.cursor()
25.508475
140
0.535548
import sqlite3 conn = sqlite3.connect('Data.db') c = conn.cursor() class DataBase: def __init__(self,username,uID,send): self.username = username self.uID = uID self.send = send @classmethod def GetFromDB(self): with conn: c.execute("SELECT * FROM Users") ...
0
913
0
502
0
0
0
0
23
b897964feb55964e02030956435fe9f49a0504db
1,645
py
Python
integration_test/conftest.py
locationlabs/docker-rotate
be5f7fb7dde22abfe617df5aed8234990ea967f9
[ "Apache-2.0" ]
11
2016-02-02T19:57:47.000Z
2021-06-30T07:20:03.000Z
integration_test/conftest.py
locationlabs/docker-rotate
be5f7fb7dde22abfe617df5aed8234990ea967f9
[ "Apache-2.0" ]
5
2016-02-01T22:17:52.000Z
2016-12-24T03:17:36.000Z
integration_test/conftest.py
locationlabs/docker-rotate
be5f7fb7dde22abfe617df5aed8234990ea967f9
[ "Apache-2.0" ]
7
2016-02-02T19:34:57.000Z
2021-09-08T09:38:41.000Z
""" Contains pytest fixtures to be used by tests. """
27.416667
89
0.71307
""" Contains pytest fixtures to be used by tests. """ from docker import Client from docker.utils import kwargs_from_env import pytest from dockerrotate.main import main as docker_rotate_main from imagetools import ImageFactory from containertools import ContainerFactory def pytest_addoption(parser): parser.addo...
0
1,101
0
0
0
151
0
86
248
ba2c48e2c891d394c366270d5ca25dd0e20d570b
93
py
Python
settings.py
anuran-roy/Im2SQL-api
7cbbc4772ccc7b06367bea51070798ed8f9f9ab4
[ "MIT" ]
1
2021-11-14T16:06:31.000Z
2021-11-14T16:06:31.000Z
settings.py
anuran-roy/Im2SQL-api
7cbbc4772ccc7b06367bea51070798ed8f9f9ab4
[ "MIT" ]
1
2022-03-12T01:03:03.000Z
2022-03-12T01:03:03.000Z
settings.py
anuran-roy/Im2SQL-api
7cbbc4772ccc7b06367bea51070798ed8f9f9ab4
[ "MIT" ]
null
null
null
import os BASE_DIR: str = os.getcwd() MEDIA_DIR: str = os.path.join(BASE_DIR, 'media/temp/')
23.25
54
0.709677
import os BASE_DIR: str = os.getcwd() MEDIA_DIR: str = os.path.join(BASE_DIR, 'media/temp/')
0
0
0
0
0
0
0
0
0
1e8804a91b067fe0df166a2b6183ff225faba8ff
126
py
Python
ListsRangesTuples/iteratorchallenge.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
ListsRangesTuples/iteratorchallenge.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
ListsRangesTuples/iteratorchallenge.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
my_list = [0, 1, 2, 3, 4, 5, 6] my_iterator = iter(my_list) for char in range(len(my_list)): print(next(my_iterator))
25.2
33
0.634921
my_list = [0, 1, 2, 3, 4, 5, 6] my_iterator = iter(my_list) for char in range(len(my_list)): print(next(my_iterator))
0
0
0
0
0
0
0
0
0
9699aaa9f27b774726ccf98521360252626dc902
2,473
py
Python
src/python/cargo/numpy.py
borg-project/cargo
79e5ac3a6f267dcdc2179fc1a7c49504bafb6e0f
[ "MIT" ]
1
2015-06-17T15:55:22.000Z
2015-06-17T15:55:22.000Z
src/python/cargo/numpy.py
borg-project/cargo
79e5ac3a6f267dcdc2179fc1a7c49504bafb6e0f
[ "MIT" ]
null
null
null
src/python/cargo/numpy.py
borg-project/cargo
79e5ac3a6f267dcdc2179fc1a7c49504bafb6e0f
[ "MIT" ]
null
null
null
""" @author: Bryan Silverthorn <bcs@cargo-cult.org> """ from __future__ import absolute_import import numpy def tolist_deeply(value): """ Fully convert a numpy object into a list. """ if isinstance(value, numpy.ndarray): return map(tolist_deeply, value.tolist()) elif isinstance(value, li...
26.880435
98
0.634856
""" @author: Bryan Silverthorn <bcs@cargo-cult.org> """ from __future__ import absolute_import import numpy import contextlib def tolist_deeply(value): """ Fully convert a numpy object into a list. """ if isinstance(value, numpy.ndarray): return map(tolist_deeply, value.tolist()) elif is...
0
154
0
0
0
206
0
-4
114
131f94c84a5cc0cf8dc1bf4ac3a4cb7ecb0ee9fd
284
py
Python
app/src/main/python/myscript.py
BingolSTEM/andOpenCV_YuzTanima
04f2b71ce96ee8f85311692309b042f25e6d5f71
[ "MIT" ]
null
null
null
app/src/main/python/myscript.py
BingolSTEM/andOpenCV_YuzTanima
04f2b71ce96ee8f85311692309b042f25e6d5f71
[ "MIT" ]
null
null
null
app/src/main/python/myscript.py
BingolSTEM/andOpenCV_YuzTanima
04f2b71ce96ee8f85311692309b042f25e6d5f71
[ "MIT" ]
1
2022-03-09T10:27:47.000Z
2022-03-09T10:27:47.000Z
from turkishnlp import detector obj = detector.TurkishNLP() obj.download() obj.create_word_set()
21.846154
48
0.739437
from turkishnlp import detector obj = detector.TurkishNLP() obj.download() obj.create_word_set() def main(text): lwords = obj.list_words(text) corrected_words = obj.auto_correct(lwords) corrected_string = " ".join(corrected_words) return "Sonuc="+corrected_string
0
0
0
0
0
163
0
0
23
71b403dab776439c19c0c4d898abe6d5b2e08c3d
3,593
py
Python
sagas/corpus/mondly_corpus.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/corpus/mondly_corpus.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/corpus/mondly_corpus.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
if __name__ == '__main__': import fire fire.Fire(MondlyCorpus)
33.268519
99
0.572502
import json import json_utils def convert_list(lst): res_dct = {lst[i]: lst[i + 1] for i in range(0, len(lst), 2)} return res_dct def load_assocs(): import json_utils data=json_utils.read_json_file("./data/corpus/mondly_assocs.json") return data def load_verbs(): import json_utils data=js...
0
0
0
3,072
0
326
0
-14
136
19fff9f3db1fe7bcbc4c1bc5ff732aeb90368092
574
py
Python
hw1/plotData.py
chenyuw1/coursera-ml-hw
0858ab8845d37fc596f83cf7070697cbc462e0b6
[ "MIT" ]
null
null
null
hw1/plotData.py
chenyuw1/coursera-ml-hw
0858ab8845d37fc596f83cf7070697cbc462e0b6
[ "MIT" ]
null
null
null
hw1/plotData.py
chenyuw1/coursera-ml-hw
0858ab8845d37fc596f83cf7070697cbc462e0b6
[ "MIT" ]
null
null
null
# import data text_file = open('ex1data1.txt', 'r') # data = [ text_file.readline() for i in range len(text_file.readlines()) ] data = text_file.readlines() data2 = [] with open ('ex1data1.txt') as file: for line in file: data2.append(line) file.close x = [] y = [] for item in data: x.append(item.spli...
20.5
75
0.635889
# import data text_file = open('ex1data1.txt', 'r') # data = [ text_file.readline() for i in range len(text_file.readlines()) ] data = text_file.readlines() data2 = [] with open ('ex1data1.txt') as file: for line in file: data2.append(line) file.close x = [] y = [] for item in data: x.append(item.spli...
0
0
0
0
0
0
0
0
0
ec930b3cd918b47080ac73ca31eb8e6bceb8ed6a
270
py
Python
snake-pygame/constants.py
ivteplo/snake-pygame
8b014e57c99af24ed674f89c294b49f63d05c332
[ "Apache-2.0" ]
null
null
null
snake-pygame/constants.py
ivteplo/snake-pygame
8b014e57c99af24ed674f89c294b49f63d05c332
[ "Apache-2.0" ]
null
null
null
snake-pygame/constants.py
ivteplo/snake-pygame
8b014e57c99af24ed674f89c294b49f63d05c332
[ "Apache-2.0" ]
null
null
null
# Block size BLOCK_SIZE = 20 X_MIN = 0 X_MAX = 24 Y_MIN = 0 Y_MAX = 24 # Screen size constants SCREEN_WIDTH = BLOCK_SIZE * (X_MAX - X_MIN + 1) SCREEN_HEIGHT = BLOCK_SIZE * (Y_MAX - Y_MIN + 1) SNAKE_COLOR = (30, 150, 30) APPLE_COLOR = (200, 50, 50)
15.882353
50
0.625926
# Block size BLOCK_SIZE = 20 X_MIN = 0 X_MAX = 24 Y_MIN = 0 Y_MAX = 24 # Screen size constants SCREEN_WIDTH = BLOCK_SIZE * (X_MAX - X_MIN + 1) SCREEN_HEIGHT = BLOCK_SIZE * (Y_MAX - Y_MIN + 1) SNAKE_COLOR = (30, 150, 30) APPLE_COLOR = (200, 50, 50)
0
0
0
0
0
0
0
0
0
a178802cf6e84aa7e1e24a75303fc144bb3de8e9
4,633
py
Python
gurucommunication/sender.py
AppointmentGuru/GuruComunication
7fbbffbedb2a09c088f45307b6058e2ac20ad5b8
[ "MIT" ]
null
null
null
gurucommunication/sender.py
AppointmentGuru/GuruComunication
7fbbffbedb2a09c088f45307b6058e2ac20ad5b8
[ "MIT" ]
null
null
null
gurucommunication/sender.py
AppointmentGuru/GuruComunication
7fbbffbedb2a09c088f45307b6058e2ac20ad5b8
[ "MIT" ]
null
null
null
# work in progress. This will become the preferred way to send messages: def send_template(to, sender, template_id, context, template_owner): ''' usage: send_template( to=Recipient.from_user(user), sender=Sender.from_user(sender_user), template_id='hello-world', context={},...
32.173611
100
0.64796
from django.conf import settings from django.utils.module_loading import import_string from django.template.loader import render_to_string from django.core import mail from django.template import engines from .models import MessageTemplate class Sender: phone=None email=None app_id=None name=None ...
0
572
0
3,119
0
0
0
108
225
c1dfec221ea3f92e9eb4b18b1afbf9402e0b2cd8
187
py
Python
APMlogParser.py
jburdy/APM-Log-Toolkit
6ef6b3f6ba8ddd04e76eff2208e811dc98b9e5f1
[ "MIT" ]
1
2018-10-10T23:35:33.000Z
2018-10-10T23:35:33.000Z
APMlogParser.py
jburdy/APM-Log-Toolkit
6ef6b3f6ba8ddd04e76eff2208e811dc98b9e5f1
[ "MIT" ]
null
null
null
APMlogParser.py
jburdy/APM-Log-Toolkit
6ef6b3f6ba8ddd04e76eff2208e811dc98b9e5f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": # Pour les tests... import sys print Parse(sys.argv[1])
14.384615
28
0.534759
#!/usr/bin/env python def Parse(logBinFilePath): return [('', {})] if __name__ == "__main__": # Pour les tests... import sys print Parse(sys.argv[1])
0
0
0
0
0
28
0
0
23
03505ef1f55172482c27323cdb9cdf32ae66eebb
1,913
py
Python
loadAndConvert.py
PhilHaf/pythonHelpers
c1287462cfb994b27e49a43bd814bfd1540b98b7
[ "MIT" ]
null
null
null
loadAndConvert.py
PhilHaf/pythonHelpers
c1287462cfb994b27e49a43bd814bfd1540b98b7
[ "MIT" ]
null
null
null
loadAndConvert.py
PhilHaf/pythonHelpers
c1287462cfb994b27e49a43bd814bfd1540b98b7
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
18.219048
81
0.613696
import os import posixpath import csv import array as arr import sys def main(): path = sys.argv[1] abspath = os.path.abspath(path) raw = readFile(abspath) converted = convertFile(raw) #print(converted) newArr = calcFile(converted) newCsv = createCsv(newArr) writeFile(newCsv) def writeFile(...
0
0
0
0
0
1,642
0
-41
267
9491785f5843edade9ff6c276358ed5d23d11458
42
py
Python
connect_extras/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
null
null
null
connect_extras/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
null
null
null
connect_extras/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
null
null
null
"""Tests for 3rd party Connect helpers"""
21
41
0.714286
"""Tests for 3rd party Connect helpers"""
0
0
0
0
0
0
0
0
0
a8480eeaa6c397f8882c9642b024760d8402233d
771
py
Python
python/closures-and-decorators/standardize-mobile-number-using-decorators.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
python/closures-and-decorators/standardize-mobile-number-using-decorators.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
python/closures-and-decorators/standardize-mobile-number-using-decorators.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
""" Standardize Mobile Number Using Decorators https://www.hackerrank.com/challenges/standardize-mobile-number-using-decorators/problem """ if __name__ == '__main__': l = [input() for _ in range(int(input()))] sort_phone(l)
26.586207
88
0.518807
""" Standardize Mobile Number Using Decorators https://www.hackerrank.com/challenges/standardize-mobile-number-using-decorators/problem """ def wrapper(f): def fun(l): # complete the function for i, n in enumerate(l): if len(n) == 10: n= "+91" + n elif len(n) == 11 and n.st...
0
38
0
0
0
451
0
0
46
f7a587097c3c014472a70c0d2836dddc92efa246
12,134
py
Python
task_ddi/run_ddi.py
Meteor-han/ReLMole
ec8f2d3ec7b8edb6cd34aede36a980bab3dc35c2
[ "MIT" ]
1
2022-02-19T03:12:21.000Z
2022-02-19T03:12:21.000Z
task_ddi/run_ddi.py
Meteor-han/ReLMole
ec8f2d3ec7b8edb6cd34aede36a980bab3dc35c2
[ "MIT" ]
null
null
null
task_ddi/run_ddi.py
Meteor-han/ReLMole
ec8f2d3ec7b8edb6cd34aede36a980bab3dc35c2
[ "MIT" ]
null
null
null
import os, sys, time import torch.nn as nn import torch.optim as optim sys.path.append('..') args = parse_args() start_time = time.time() output_dir = args.gnn+'_dim'+str(args.emb_dim) output_dir = os.path.join(args.output_dir, args.dataset, output_dir, 'margin'+str(args.margin) + '_lr0_...
48.536
139
0.64414
import os, sys, argparse, time import json from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch_geometric.data import DataLoader from tensorboardX import SummaryWriter sys.path.append('..') from models.ddi_predictor import DDIPredictor from mode...
0
0
0
0
0
11,036
0
88
334
e2382db5f490ac351f7c1515c071d6c54f271dcd
5,124
py
Python
animations/dcylon.py
Furikuda/dcfurs-badge-dc27
f6b49d9bc3ca07b1dced3b39c23a32c79d9bbb83
[ "MIT" ]
22
2019-07-04T22:32:40.000Z
2022-03-30T22:48:50.000Z
animations/dcylon.py
Furikuda/dcfurs-badge-dc27
f6b49d9bc3ca07b1dced3b39c23a32c79d9bbb83
[ "MIT" ]
3
2019-08-14T17:46:29.000Z
2020-01-04T06:12:39.000Z
animations/dcylon.py
Furikuda/dcfurs-badge-dc27
f6b49d9bc3ca07b1dced3b39c23a32c79d9bbb83
[ "MIT" ]
9
2019-06-24T01:22:11.000Z
2022-01-04T14:49:19.000Z
## DranoTheCat's Cylon ## ## Boop to change colors ## ##
31.826087
84
0.567525
## DranoTheCat's Cylon ## ## Boop to change colors ## ## from random import randrange import emote import dcfurs import badge import utime class dcylon: def __init__(self): dcfurs.clear() self.interval=20 self.rows=18 self.columns=7 self.center_x = 9 self.center_y = 3 self.eye_radius = 3...
0
0
0
4,961
0
0
0
-28
134
b55790dde5844ce2a58d7bfcefd3a7915ecfd6a0
2,507
py
Python
processing.py
Holly-Jiang/QCTSA
b90136b9df18fc21ae53b431f1e5e0c6ef786fae
[ "MIT" ]
null
null
null
processing.py
Holly-Jiang/QCTSA
b90136b9df18fc21ae53b431f1e5e0c6ef786fae
[ "MIT" ]
null
null
null
processing.py
Holly-Jiang/QCTSA
b90136b9df18fc21ae53b431f1e5e0c6ef786fae
[ "MIT" ]
null
null
null
import sys start_index = 0 end_index = 0 N = 999999 if __name__ == '__main__': if len(sys.argv) == 3: start_index = int(sys.argv[1]) end_index = int(sys.argv[2]) process(start_index, end_index)
28.816092
87
0.59633
import sys, os from base.Level import Level from base.Translate import Translate from qct_tools.utils.FileUtils import FileUtils start_index = 0 end_index = 0 N = 999999 def translatesingle(path, ss, linecount): if os.path.isdir(path) or path.endswith('.zip'): return file = open(path, 'r') tower ...
0
0
0
0
0
2,071
0
52
158
548dc8b55622d8e6a8142d11e2d17c938cc8f318
13,402
py
Python
nsvision/image_utils.py
nsembleai/nsvision
b57d674f9c269a1f451dfca57685890fd7fbaa3f
[ "MIT" ]
8
2020-04-02T14:26:08.000Z
2021-07-13T16:31:46.000Z
nsvision/image_utils.py
Nsemble/nsvision
b57d674f9c269a1f451dfca57685890fd7fbaa3f
[ "MIT" ]
8
2020-07-16T02:53:43.000Z
2021-09-16T09:51:15.000Z
nsvision/image_utils.py
nsembleai/nsvision
b57d674f9c269a1f451dfca57685890fd7fbaa3f
[ "MIT" ]
2
2021-06-19T18:45:13.000Z
2021-07-18T17:52:12.000Z
from io import BytesIO from warnings import warn from re import sub from base64 import b64encode, b64decode from pathlib import Path # Specify which functions to be imported to be used with nv as nv.__functionname__() # Functions included in __all__ will be imported on calling "from nsvision.image_utils import *" # Wh...
33.338308
125
0.626772
from io import BytesIO from warnings import warn from re import sub from base64 import b64encode, b64decode from pathlib import Path # Specify which functions to be imported to be used with nv as nv.__functionname__() # Functions included in __all__ will be imported on calling "from nsvision.image_utils import *" # Wh...
0
0
0
0
0
0
0
0
0
035014a2d1744f76f42bdd08ad267b446247ed85
2,159
py
Python
artClassifierApp/app/__init__.py
sjesupaul/paintingClassifier
7c8f157beeb086d23e9df7c72d263eba00ad4a93
[ "MIT" ]
5
2016-09-16T05:30:13.000Z
2021-04-06T00:43:21.000Z
artClassifierApp/app/__init__.py
sjesupaul/paintingClassifier
7c8f157beeb086d23e9df7c72d263eba00ad4a93
[ "MIT" ]
null
null
null
artClassifierApp/app/__init__.py
sjesupaul/paintingClassifier
7c8f157beeb086d23e9df7c72d263eba00ad4a93
[ "MIT" ]
1
2021-04-06T00:43:23.000Z
2021-04-06T00:43:23.000Z
from flask import Flask #---------- URLS AND WEB PAGES -------------# # Initialize the app app = Flask(__name__) image_path = 'ethan.jpg' # Get an example and return it's score from the predictor model #--------- RUN WEB APP SERVER ------------# # Start the app server if __name__ == '__main__': app.run(host='...
32.712121
116
0.632237
from flask import Flask, jsonify, request, render_template from sklearn.linear_model import LogisticRegression import numpy as np import pandas as pd import tensorflow as tf import os def get_image_score(image_path): full_path = os.getcwd()+'/app/static/images/'+image_path image_data = tf.gfile.FastGFile(full...
0
440
0
0
0
1,160
0
50
156
ce8a30a3fb9111df62eab5a8c39aea34cc63a645
19,108
py
Python
appengine/swarming/server/task_to_run.py
Slayo2008/New2
3fa4c520dddd82ed190152709e0a54b35faa3bae
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/swarming/server/task_to_run.py
Slayo2008/New2
3fa4c520dddd82ed190152709e0a54b35faa3bae
[ "Apache-2.0" ]
null
null
null
appengine/swarming/server/task_to_run.py
Slayo2008/New2
3fa4c520dddd82ed190152709e0a54b35faa3bae
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Task entity that describe when a task is to be scheduled. This module doesn't do the scheduling itself. It only describes the t...
36.326996
80
0.705987
# coding=utf-8 # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Task entity that describe when a task is to be scheduled. This module doesn't do the scheduling itself. It only describes the t...
0
251
0
2,286
5,401
0
0
-3
183
15ef0f348b7700c65b5445ddfbd77eae69a6b4b1
2,591
py
Python
3commas-api-experiment.py
0anton/pnl-analysis
7db97f0afc953f7250fa62678260e06276f22883
[ "Apache-2.0" ]
null
null
null
3commas-api-experiment.py
0anton/pnl-analysis
7db97f0afc953f7250fa62678260e06276f22883
[ "Apache-2.0" ]
null
null
null
3commas-api-experiment.py
0anton/pnl-analysis
7db97f0afc953f7250fa62678260e06276f22883
[ "Apache-2.0" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- from py3cw.request impor...
30.845238
214
0.703975
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- from py3cw.request impor...
0
0
0
0
0
0
0
0
0
e161ff03cde93ff00d480f400eb2de26a7492eab
165
py
Python
Tdl_Hooks/hook-tdl.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
1
2017-12-12T15:34:54.000Z
2017-12-12T15:34:54.000Z
Tdl_Hooks/hook-tdl.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
null
null
null
Tdl_Hooks/hook-tdl.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
null
null
null
##IT IS NEEDED IN CASE OF PYINSTALLER ONLY #!!! DO NOT MODIFY THIS FILE !!! from PyInstaller.utils.hooks import collect_data_files datas = collect_data_files('tdl')
33
54
0.769697
##IT IS NEEDED IN CASE OF PYINSTALLER ONLY #!!! DO NOT MODIFY THIS FILE !!! from PyInstaller.utils.hooks import collect_data_files datas = collect_data_files('tdl')
0
0
0
0
0
0
0
0
0
3b6f7d64d2f6e08a23190808adf39a4d3b4b5c1c
1,046
py
Python
dali/gallery/admin/base.py
varikin/dali
07229a59c577431980588a3ee75cdbf80fc72da6
[ "Apache-2.0" ]
1
2016-05-08T11:45:54.000Z
2016-05-08T11:45:54.000Z
dali/gallery/admin/base.py
varikin/dali
07229a59c577431980588a3ee75cdbf80fc72da6
[ "Apache-2.0" ]
null
null
null
dali/gallery/admin/base.py
varikin/dali
07229a59c577431980588a3ee75cdbf80fc72da6
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from dali.gallery.models import Gallery, Picture admin.site.register(Gallery, GalleryAdmin) admin.site.register(Picture, PictureAdmin)
41.84
79
0.67782
from django.contrib import admin from dali.gallery.models import Gallery, Picture class GalleryAdmin(admin.ModelAdmin): list_display = ('name', 'slug', 'order', 'picture_count', 'parent_gallery', 'date_created', 'date_modified', 'published') list_editable = ('slug', 'order', 'parent_gallery', 'publishe...
0
0
0
831
0
0
0
0
46
24e947af6555480e5db5aa09d95320b6e7dc801f
1,788
py
Python
core/src/main/python/synapse/ml/explainers/ICETransformer.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
869
2021-08-24T00:56:08.000Z
2022-03-31T06:13:58.000Z
core/src/main/python/synapse/ml/explainers/ICETransformer.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
277
2021-08-23T21:29:28.000Z
2022-03-31T23:54:46.000Z
core/src/main/python/synapse/ml/explainers/ICETransformer.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
120
2021-08-24T15:49:14.000Z
2022-03-30T20:42:24.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information.
37.25
96
0.587808
# Copyright (C) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. from synapse.ml.explainers._ICETransformer import _ICETransformer from pyspark.ml.common import inherit_doc from typing import List, Dict, Union @inherit_doc class ICETransformer(...
0
1,481
0
0
0
0
0
79
90
defceefdf47ce58a28257adedc27ee51a25f3926
493
py
Python
website/migrations/0005_alter_review_sto.py
Hodik/sto-system
2f84c3c372c2482d1ff941c3d9c08ffcc9128ab4
[ "MIT" ]
null
null
null
website/migrations/0005_alter_review_sto.py
Hodik/sto-system
2f84c3c372c2482d1ff941c3d9c08ffcc9128ab4
[ "MIT" ]
null
null
null
website/migrations/0005_alter_review_sto.py
Hodik/sto-system
2f84c3c372c2482d1ff941c3d9c08ffcc9128ab4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-23 18:27
24.65
127
0.64503
# Generated by Django 3.2.9 on 2021-11-23 18:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0004_auto_20211123_1727'), ] operations = [ migrations.AlterField( model_name='revie...
0
0
0
346
0
0
0
30
68
a374792ef257f7794a7b6b4123b2697626cb6bab
17,031
py
Python
source/decomposer.py
saties/cov_decomposition_admm
f34b0db8a14b687a090cffc1a8a80d8d03f78fc3
[ "MIT" ]
null
null
null
source/decomposer.py
saties/cov_decomposition_admm
f34b0db8a14b687a090cffc1a8a80d8d03f78fc3
[ "MIT" ]
null
null
null
source/decomposer.py
saties/cov_decomposition_admm
f34b0db8a14b687a090cffc1a8a80d8d03f78fc3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 28 16:39:43 2018 Covariance Matrix Decomposition @author: Satie """
28.33777
110
0.428219
# -*- coding: utf-8 -*- """ Created on Sun Jan 28 16:39:43 2018 Covariance Matrix Decomposition @author: Satie """ import numpy as np from numpy.linalg import matrix_rank from multiprocessing import Pool class Decomposer(object): def __init__(self, data, preavg, delta)...
0
0
0
16,764
0
0
0
23
98
e90f3a55a05cbcf0795cfa13c945e9914e0196b0
541
py
Python
mangrove/utils/test_utils/dummy_location_tree.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/test_utils/dummy_location_tree.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/test_utils/dummy_location_tree.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
TEST_LAT=-12 TEST_LONG=60 TEST_LOCATION_HIERARCHY_FOR_GEO_CODE=['madagascar']
30.055556
64
0.720887
TEST_LAT=-12 TEST_LONG=60 TEST_LOCATION_HIERARCHY_FOR_GEO_CODE=['madagascar'] class DummyLocationTree(object): def get_location_hierarchy_for_geocode(self, lat, long ): return TEST_LOCATION_HIERARCHY_FOR_GEO_CODE def get_centroid(self, location_name, level): if location_name=="jalgaon" and lev...
0
0
0
439
0
0
0
0
23
82a282a9f252cc90fb9a680ef2f0a0ef04a10502
1,388
py
Python
string/0005_Longest_Palindromic_Substring.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
string/0005_Longest_Palindromic_Substring.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
string/0005_Longest_Palindromic_Substring.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
''' Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Example 3: Input: s = "a" Output: "a" Example 4: Input: s = "ac" Output: "a" Constraints: 1 <= s.length <= 1000 s con...
22.031746
173
0.556196
''' Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Example 3: Input: s = "a" Output: "a" Example 4: Input: s = "ac" Output: "a" Constraints: 1 <= s.length <= 1000 s con...
0
0
0
895
0
0
0
-3
44
fe5755b1152cd7f82243239218867ab15cff1001
25,864
py
Python
Historic-Legacy/Private_TriArbBot.py
ThomasJRooney/Cryptocurrency-Trading-Bots-Python-Beginner-Advance
6cd9f639ac7f9d914d556738ca3aeeef53618146
[ "MIT" ]
959
2018-06-01T10:06:01.000Z
2022-03-29T14:02:48.000Z
Historic-Legacy/Private_TriArbBot.py
ThomasJRooney/Cryptocurrency-Trading-Bots-Python-Beginner-Advance
6cd9f639ac7f9d914d556738ca3aeeef53618146
[ "MIT" ]
46
2018-07-05T14:10:13.000Z
2022-02-20T16:26:57.000Z
Historic-Legacy/Private_TriArbBot.py
ThomasJRooney/Cryptocurrency-Trading-Bots-Python-Beginner-Advance
6cd9f639ac7f9d914d556738ca3aeeef53618146
[ "MIT" ]
412
2018-06-03T22:07:21.000Z
2022-03-29T08:09:13.000Z
""" The Purpose of the PrivateBinance Arbitrage Bot (based on RoibalBot) Python Program is to create an automated trading bot (functionality) on Binance Utilized Python-Binance ( https://github.com/sammchardy/python-binance ) Advanced-Version capable of all exchanges, all coins (using cctx) This 'bot' will run a ...
46.517986
185
0.550998
""" The Purpose of the PrivateBinance Arbitrage Bot (based on RoibalBot) Python Program is to create an automated trading bot (functionality) on Binance Utilized Python-Binance ( https://github.com/sammchardy/python-binance ) Advanced-Version capable of all exchanges, all coins (using cctx) This 'bot' will run a ...
0
0
0
573
0
23,000
0
24
456
e01099fba63f5df8355deb2170270b8ee9da3874
19,295
py
Python
src/oic/utils/http_util.py
chengweilun/pyoidc
99baf58f44daa5c9239c2870b8d874af08002248
[ "Apache-2.0" ]
null
null
null
src/oic/utils/http_util.py
chengweilun/pyoidc
99baf58f44daa5c9239c2870b8d874af08002248
[ "Apache-2.0" ]
null
null
null
src/oic/utils/http_util.py
chengweilun/pyoidc
99baf58f44daa5c9239c2870b8d874af08002248
[ "Apache-2.0" ]
null
null
null
from future.backports.http.cookies import SimpleCookie from future.backports.urllib.parse import quote import base64 import cgi import hashlib import hmac import logging import os import time from jwkest import safe_str_cmp from six import binary_type from six import text_type from oic.utils.aes import AEAD from oic.u...
29.96118
98
0.610573
from future.backports.http.cookies import SimpleCookie from future.backports.urllib.parse import quote import base64 import cgi import hashlib import hmac import logging import os import time from jwkest import as_unicode from jwkest import safe_str_cmp from six import PY2 from six import binary_type from six import ...
0
0
0
7,472
0
2,407
0
76
685
57d40fd36e3c17675bec58fab83bf066d35ebd45
22,391
py
Python
volatility/volatility/plugins/mac/threads.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
2
2018-07-16T13:30:40.000Z
2018-07-17T12:02:05.000Z
volatility/volatility/plugins/mac/threads.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
volatility/volatility/plugins/mac/threads.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 as # published by the Free Software Foundation. You may not use, modify or # distribu...
50.091723
197
0.457863
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 as # published by the Free Software Foundation. You may not use, modify or # distribu...
0
0
0
12,887
0
0
0
74
158
fee78f513c0c37f460a05547687402f9b1a463ed
1,155
py
Python
sentimental_analysis/realworld/utilityFunctions.py
ianyehwork/SE_Project1
a8ff34150379cf98549945a1260420232c6ca021
[ "MIT" ]
null
null
null
sentimental_analysis/realworld/utilityFunctions.py
ianyehwork/SE_Project1
a8ff34150379cf98549945a1260420232c6ca021
[ "MIT" ]
19
2020-10-01T19:31:11.000Z
2020-10-27T01:25:13.000Z
sentimental_analysis/realworld/utilityFunctions.py
ianyehwork/SE_Project1
a8ff34150379cf98549945a1260420232c6ca021
[ "MIT" ]
2
2020-12-10T16:44:50.000Z
2021-09-01T16:43:44.000Z
from nltk.sentiment.vader import SentimentIntensityAnalyzer linkPattern = ( "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+" )
25.666667
86
0.729004
import re import string from datetime import datetime import nltk from nltk.corpus import stopwords from nltk.sentiment.vader import SentimentIntensityAnalyzer from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer linkPattern = ...
0
0
0
0
0
600
0
69
314