hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5e980755aede8846395099a7960ebfb4ac369707
12,677
py
Python
mycity/mycity/intents/trash_intent.py
EndyPremier/voiceapp311
168cf1665bd9a294823f82373e65c6c1d22b8831
[ "MIT" ]
null
null
null
mycity/mycity/intents/trash_intent.py
EndyPremier/voiceapp311
168cf1665bd9a294823f82373e65c6c1d22b8831
[ "MIT" ]
null
null
null
mycity/mycity/intents/trash_intent.py
EndyPremier/voiceapp311
168cf1665bd9a294823f82373e65c6c1d22b8831
[ "MIT" ]
null
null
null
""" Functions for Alexa responses related to trash day """ from mycity.intents.speech_constants.location_speech_constants import \ NOT_IN_BOSTON_SPEECH from mycity.utilities.location_services_utils import \ request_device_address_permission_response, \ get_address_from_user_device, \ is_address_in_city ...
37.285294
80
0.698982
89d96e762fd798966eccddeea5cb056d83133077
702
py
Python
models.py
bwasilewski/cardbox
2eb47cc40d0230e35878be79793b3646a5dcb876
[ "MIT" ]
1
2015-11-07T04:51:27.000Z
2015-11-07T04:51:27.000Z
models.py
bwasilewski/cardbox
2eb47cc40d0230e35878be79793b3646a5dcb876
[ "MIT" ]
null
null
null
models.py
bwasilewski/cardbox
2eb47cc40d0230e35878be79793b3646a5dcb876
[ "MIT" ]
null
null
null
import datetime from flask import url_for from cardbox import db class Card(db.Document): created_at = db.DateTimeField(default=datetime.datetime.now, required=True) name = db.StringField() card_id = db.StringField() url = db.StringField() store_url = db.StringField() types = db.StringField() subtypes = ...
25.071429
77
0.69943
5799c79adcbf8b82e43f6fa282eb81841c679819
2,788
py
Python
abjhelp/users/forms.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
4
2020-08-18T23:41:34.000Z
2020-10-08T21:15:54.000Z
abjhelp/users/forms.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
3
2020-08-31T19:38:46.000Z
2020-08-31T19:39:18.000Z
abjhelp/users/forms.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
1
2020-08-25T18:29:14.000Z
2020-08-25T18:29:14.000Z
"""User forms.""" from django import forms from abjhelp.users.models import HelpRequest, DonorRequest class HelpRequestForm(forms.Form): name = forms.CharField( min_length=2, max_length=50, label='Nombre', error_messages={ 'required': 'Este campo es requerido', ...
25.345455
66
0.523314
d01c749c1f8a594431ebb8f9cb641e24a7a7343e
3,049
py
Python
api/base/authentication/drf.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
api/base/authentication/drf.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
api/base/authentication/drf.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
import itsdangerous from django.utils.translation import ugettext_lazy as _ from rest_framework import authentication from rest_framework.authentication import BasicAuthentication from rest_framework import exceptions from framework.auth import cas from framework.sessions.model import Session from framework.auth.core...
35.870588
103
0.700558
4daa0f7bc70902c3befb0f495203b8f472f1f9d9
377
py
Python
Camera/LineFollower/driverClient.py
maroneal/MircoITS
c83c2a0a4298698edaae181e15514d79ce59e7d0
[ "BSD-2-Clause" ]
null
null
null
Camera/LineFollower/driverClient.py
maroneal/MircoITS
c83c2a0a4298698edaae181e15514d79ce59e7d0
[ "BSD-2-Clause" ]
null
null
null
Camera/LineFollower/driverClient.py
maroneal/MircoITS
c83c2a0a4298698edaae181e15514d79ce59e7d0
[ "BSD-2-Clause" ]
null
null
null
import socket import time import xboxdrv TCP_IP = "127.0.0.1" TCP_PORT = 4200 print "TCP target IP:", TCP_IP print "TCP target port:", TCP_PORT sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) while True: if ord('a') == True: MESSAGE[0] = "1.0000" else: MESSAGE[0] = "0.0000" so...
17.136364
56
0.644562
6821602d3d3fc8ceaa615b81bb4b620cf747213b
3,585
py
Python
art/estimators/keras.py
meghana-sesetti/adversarial-robustness-toolbox
6a5ce9e4142734ad9004e5c093ef8fa754ea6b39
[ "MIT" ]
1
2021-09-09T13:19:34.000Z
2021-09-09T13:19:34.000Z
art/estimators/keras.py
Tikquuss/adversarial-robustness-toolbox
62ffe7c951d8a60d49a9ea6ac7b04aa4432a3fb7
[ "MIT" ]
33
2021-01-18T08:30:34.000Z
2022-03-11T07:05:13.000Z
art/estimators/keras.py
Tikquuss/adversarial-robustness-toolbox
62ffe7c951d8a60d49a9ea6ac7b04aa4432a3fb7
[ "MIT" ]
1
2021-09-09T13:19:35.000Z
2021-09-09T13:19:35.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
42.678571
120
0.691771
1799ca6e02a15d00c49565f6e10fcf659f4d9a70
6,510
py
Python
assists/baremetallinker_xlnx.py
hakonfam/lopper
8aec5c7fbf5bff874c859f2289253db17160b6e0
[ "BSD-3-Clause" ]
null
null
null
assists/baremetallinker_xlnx.py
hakonfam/lopper
8aec5c7fbf5bff874c859f2289253db17160b6e0
[ "BSD-3-Clause" ]
null
null
null
assists/baremetallinker_xlnx.py
hakonfam/lopper
8aec5c7fbf5bff874c859f2289253db17160b6e0
[ "BSD-3-Clause" ]
null
null
null
#/* # * Copyright (c) 2020 Xilinx Inc. All rights reserved. # * # * Author: # * Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> # * # * SPDX-License-Identifier: BSD-3-Clause # */ import struct import sys import types import unittest import os import getopt import re import subprocess import shutil fro...
36.779661
157
0.590783
7bcb5ad832c4d32592a8da0d6abf1106c38d9574
456
py
Python
day1/day1_pt2.py
jwhitex/AdventOfCode2018
e552185f7d6413ccdad824911c66a6590e8de9bb
[ "MIT" ]
null
null
null
day1/day1_pt2.py
jwhitex/AdventOfCode2018
e552185f7d6413ccdad824911c66a6590e8de9bb
[ "MIT" ]
null
null
null
day1/day1_pt2.py
jwhitex/AdventOfCode2018
e552185f7d6413ccdad824911c66a6590e8de9bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python def runSim(fsum, series, fdict): for i in range(0,len(series)): fsum += series[i] if fsum in fdict: return (True, fsum) fdict[fsum] = None return (False, fsum) fin=[] with open("day1.input") as file: for line in file: fin+=[int(line.rstrip(...
19.826087
41
0.567982
523f06fc63a0ee44a4d562447c0677170397f47b
4,847
py
Python
applications/EigenSolversApplication/tests/test_eigen_direct_solver.py
HubertBalcerzak/Kratos
c15689d53f06dabb36dc44c13eeac73d3e183916
[ "BSD-4-Clause" ]
null
null
null
applications/EigenSolversApplication/tests/test_eigen_direct_solver.py
HubertBalcerzak/Kratos
c15689d53f06dabb36dc44c13eeac73d3e183916
[ "BSD-4-Clause" ]
1
2019-10-15T13:11:37.000Z
2019-10-15T13:11:37.000Z
applications/EigenSolversApplication/tests/test_eigen_direct_solver.py
Gaoliu19910601/Kratos
0bac5e132d02061680fc90f1e52d4930b5ed7fa3
[ "BSD-4-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division import os import KratosMultiphysics import KratosMultiphysics.EigenSolversApplication as EigenSolversApplication import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.python_linear_solver_factory import ConstructSolver clas...
40.057851
137
0.727254
e2916551dfc60366cd8e1c49720d1dacfaa96b84
301
py
Python
setup.py
sukovanej/mplispstd
510fba5f3c95fec370665d736e5db5fb6248b3d7
[ "MIT" ]
null
null
null
setup.py
sukovanej/mplispstd
510fba5f3c95fec370665d736e5db5fb6248b3d7
[ "MIT" ]
null
null
null
setup.py
sukovanej/mplispstd
510fba5f3c95fec370665d736e5db5fb6248b3d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup setup( name='mplispstd', version='0.1', packages=[ 'mplispstd', 'mplispstd.io', 'mplispstd.math', 'mplispstd.string', 'mplispstd.env', ], install_requires=[ 'mplisp', ] )
15.842105
32
0.534884
b8adb9ddfde6f4b218b7019e18a354e064b74b38
14,977
py
Python
seqskip_train_seq2eH_in10.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
7
2019-02-15T07:46:27.000Z
2021-09-16T06:31:43.000Z
seqskip_train_seq2eH_in10.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
1
2021-09-16T03:06:16.000Z
2021-09-17T02:08:02.000Z
seqskip_train_seq2eH_in10.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
1
2019-07-07T22:10:30.000Z
2019-07-07T22:10:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 11 00:45:08 2018 seq2eH: seqeunce learning model with separate encoder for support and query, 1stack each - non-autoregressive (not feeding predicted labels) - instance Norm. - G: GLU version - H: Highway-net version - applied more efficient dilate...
45.522796
165
0.584964
537f51557f500c63adfc167d393678bf972d3b56
9,326
py
Python
tick/hawkes/inference/hawkes_sumexpkern_fixeddecay.py
sumau/tick
1b56924a35463e12f7775bc0aec182364f26f2c6
[ "BSD-3-Clause" ]
411
2017-03-30T15:22:05.000Z
2022-03-27T01:58:34.000Z
tick/hawkes/inference/hawkes_sumexpkern_fixeddecay.py
saurabhdash/tick
bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48
[ "BSD-3-Clause" ]
345
2017-04-13T14:53:20.000Z
2022-03-26T00:46:22.000Z
tick/hawkes/inference/hawkes_sumexpkern_fixeddecay.py
saurabhdash/tick
bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48
[ "BSD-3-Clause" ]
102
2017-04-25T11:47:53.000Z
2022-02-15T11:45:49.000Z
# License: BSD 3 clause import numpy as np from tick.base import actual_kwargs from tick.hawkes import (ModelHawkesSumExpKernLeastSq, SimuHawkesSumExpKernels) from tick.hawkes.inference.base import LearnerHawkesParametric from tick.prox import ProxElasticNet, ProxL1, ProxL2Sq, ProxPositive class HawkesSumExpKern(Le...
36.716535
84
0.611087
57dea3b6a9fcbefa44593b129ed848e6bbe893f3
406
py
Python
CTAtool/cache.py
guan27/NTU_NLP_2021Spring
a79451bf1d107a5d75dfa959ecc008b3829becc8
[ "MIT" ]
null
null
null
CTAtool/cache.py
guan27/NTU_NLP_2021Spring
a79451bf1d107a5d75dfa959ecc008b3829becc8
[ "MIT" ]
null
null
null
CTAtool/cache.py
guan27/NTU_NLP_2021Spring
a79451bf1d107a5d75dfa959ecc008b3829becc8
[ "MIT" ]
1
2021-09-29T10:47:14.000Z
2021-09-29T10:47:14.000Z
''' Cached words with lemmas that have been looked up before Use a dictionary lookup if the word is in cache_dict else find the word and add it into the cache_dict ''' import json def init(): global cache_dict cache_dict = {} def save_synonym_dict(): with open('./synonym_dict', 'w', encoding = 'utf-8') as f...
29
66
0.684729
a4be4402db5e8948e7572b20983b2d63d21cfd9c
11,313
py
Python
update.py
Hmaksu/Zoom-Duration-Calculator
118dbc17997b54f398914fb399ca2c882b0d0969
[ "MIT" ]
null
null
null
update.py
Hmaksu/Zoom-Duration-Calculator
118dbc17997b54f398914fb399ca2c882b0d0969
[ "MIT" ]
null
null
null
update.py
Hmaksu/Zoom-Duration-Calculator
118dbc17997b54f398914fb399ca2c882b0d0969
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog from tkinter.ttk import * import os import xlrd import xlsxwriter root = Tk() root.title("CivilCon") root.iconbitmap("CC.ico") root.geometry("500x500") class CivilCon: def __init__(self, master): #First Page self.master = master ...
45.616935
497
0.455847
1cce0638b2241e788a43951c2ed4fa252db27334
3,554
py
Python
wagtail/admin/widgets/datetime.py
wgarlock/wagtail
1bfc13952f5ffc0e40a4435d15a5aefd70984430
[ "BSD-3-Clause" ]
2
2021-03-18T21:41:05.000Z
2021-03-18T21:41:08.000Z
wagtail/admin/widgets/datetime.py
wgarlock/wagtail
1bfc13952f5ffc0e40a4435d15a5aefd70984430
[ "BSD-3-Clause" ]
13
2015-05-08T12:27:10.000Z
2020-01-23T14:45:57.000Z
wagtail/admin/widgets/datetime.py
wgarlock/wagtail
1bfc13952f5ffc0e40a4435d15a5aefd70984430
[ "BSD-3-Clause" ]
1
2021-02-15T18:59:53.000Z
2021-02-15T18:59:53.000Z
import json from django import forms from django.conf import settings from django.forms import widgets from django.utils.formats import get_format from wagtail.admin.datetimepicker import to_datetimepicker_format from wagtail.admin.staticfiles import versioned_static DEFAULT_DATE_FORMAT = '%Y-%m-%d' DEFAULT_DATETIM...
31.451327
87
0.647721
844754bd1e512eea8ba72baf256447ea1ef68a5f
7,863
py
Python
kubernetes/client/models/v1_config_map_node_config_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/client/models/v1_config_map_node_config_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_config_map_node_config_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-06-21T08:03:17.000Z
2020-06-21T08:03:17.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Con...
34.186957
172
0.634109
a78e736afad421de8fdbbede8643e00ba7727de2
36,123
py
Python
saleor/graphql/product/tests/test_category.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/product/tests/test_category.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/product/tests/test_category.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
import os from unittest.mock import Mock, patch import graphene import pytest from django.utils.text import slugify from graphql_relay import to_global_id from ....product.error_codes import ProductErrorCode from ....product.models import Category, Product, ProductChannelListing from ....product.tests.utils import cr...
32.080817
88
0.644575
d41bd3c2551994fa9d6dabe0ff04996d3e737368
14,675
py
Python
ddtrace/profiling/exporter/pprof.py
RobertTownley/dd-trace-py
f5a04c60ed0387268f024ab8cd6d2ac2a1f04eb9
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/profiling/exporter/pprof.py
RobertTownley/dd-trace-py
f5a04c60ed0387268f024ab8cd6d2ac2a1f04eb9
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/profiling/exporter/pprof.py
RobertTownley/dd-trace-py
f5a04c60ed0387268f024ab8cd6d2ac2a1f04eb9
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import collections import itertools import operator import sys try: import tracemalloc except ImportError: tracemalloc = None from ddtrace.vendor import six from ddtrace.profiling import _line2def from ddtrace.profiling import exporter from ddtrace.vendor import attr from ddtrace.profiling.collector import e...
38.925729
118
0.638228
9f6c9d7cb4a629b64e20f2d4d2b437ed82ea8ff7
14,179
py
Python
portfolio/Asset.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
10
2021-03-21T22:05:33.000Z
2022-03-15T18:26:58.000Z
portfolio/Asset.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
2
2021-10-30T15:15:41.000Z
2021-11-11T12:35:02.000Z
portfolio/Asset.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
1
2022-03-16T18:59:36.000Z
2022-03-16T18:59:36.000Z
# Copyright (c) 2021 Open Risk (https://www.openriskmanagement.com) # # 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, co...
64.744292
243
0.640313
ac65babe72679aa6912795fc10f5973f7204c013
3,208
py
Python
artifacts/infodynamics-dist-1.3/demos/python/example4TeContinuousDataKraskov.py
kamir/WikiExplorer.NG
7b56e3d1e638d760fe238dfd66d3775404335ff4
[ "Apache-2.0" ]
null
null
null
artifacts/infodynamics-dist-1.3/demos/python/example4TeContinuousDataKraskov.py
kamir/WikiExplorer.NG
7b56e3d1e638d760fe238dfd66d3775404335ff4
[ "Apache-2.0" ]
7
2020-06-30T23:18:30.000Z
2022-02-01T01:02:32.000Z
artifacts/infodynamics-dist-1.3/demos/python/example4TeContinuousDataKraskov.py
kamir/WikiExplorer.NG
7b56e3d1e638d760fe238dfd66d3775404335ff4
[ "Apache-2.0" ]
null
null
null
## ## Java Information Dynamics Toolkit (JIDT) ## Copyright (C) 2012, Joseph T. Lizier ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at yo...
50.125
138
0.747506
2919c4d6de8fe4758418f7a8055fbf264f667117
307
py
Python
take_snapshot.py
prarthaana123/Project102
58273208e98e7d15183ed6375ac6682bcaeeab94
[ "MIT" ]
null
null
null
take_snapshot.py
prarthaana123/Project102
58273208e98e7d15183ed6375ac6682bcaeeab94
[ "MIT" ]
null
null
null
take_snapshot.py
prarthaana123/Project102
58273208e98e7d15183ed6375ac6682bcaeeab94
[ "MIT" ]
null
null
null
def take_snapshot(): videoCaptureObject = cv2.VideoCapture(0) result = True while(result): ret,frame = videoCaptureObject.read() cv2.imwrite("NewPicture.jpg",frame) result = False videoCaptureObject.release() cv2.destroyAllWindows() take_snapshot()
23.615385
46
0.644951
fa5368b76900762937ce9e6c1a44d4035984c0ed
38,619
py
Python
spearmint/acquisition_functions/PPESMOC_gradients.py
EduardoGarrido90/spearmint_ppesmoc
4c4da9b3858e52c15698f1b401f4a4a5b02517fa
[ "RSA-MD" ]
6
2021-06-29T11:26:49.000Z
2022-01-20T18:12:47.000Z
build/lib.linux-x86_64-2.7/spearmint/acquisition_functions/PPESMOC_gradients.py
EduardoGarrido90/spearmint_ppesmoc
4c4da9b3858e52c15698f1b401f4a4a5b02517fa
[ "RSA-MD" ]
null
null
null
build/lib.linux-x86_64-2.7/spearmint/acquisition_functions/PPESMOC_gradients.py
EduardoGarrido90/spearmint_ppesmoc
4c4da9b3858e52c15698f1b401f4a4a5b02517fa
[ "RSA-MD" ]
3
2021-06-29T14:48:44.000Z
2022-03-28T15:20:04.000Z
from collections import defaultdict import autograd.numpy as np #import numpy as np import autograd.misc.flatten as flatten import autograd.scipy.stats as sps #import scipy.stats as sps from autograd.numpy.linalg import solve #from numpy.linalg import solve from scipy.spatial.distance import cdist import numpy.linalg ...
48.334168
165
0.575106
1f585fd19eccfea1eda7844562b17214f2448a0d
366
py
Python
setup.py
dbogdanov/beets-mpdadd
c6ca520714b0decffb66471188cfe260c89f4cd2
[ "MIT" ]
6
2015-04-02T01:46:24.000Z
2021-10-11T08:23:56.000Z
setup.py
dbogdanov/beets-mpdadd
c6ca520714b0decffb66471188cfe260c89f4cd2
[ "MIT" ]
null
null
null
setup.py
dbogdanov/beets-mpdadd
c6ca520714b0decffb66471188cfe260c89f4cd2
[ "MIT" ]
1
2021-10-09T02:07:23.000Z
2021-10-09T02:07:23.000Z
from setuptools import setup setup( name='beets-mpdadd', version='0.2', description='beets plugin that adds query results to the current MPD playlist', author='Daniel Greve', author_email='danielgreve@users.noreply.github.com', license='MIT', platforms='ALL', packages=['beetsplug'], ...
26.142857
83
0.68306
2827f813979752e4d8bf70c94402c779eabb7757
3,198
py
Python
jobs/models.py
MahmoudSafan/job-seeker
00c0fbbfd05c4ef7f78da87c254fedb51f018cb9
[ "MIT" ]
1
2021-05-22T09:07:44.000Z
2021-05-22T09:07:44.000Z
jobs/models.py
MahmoudSafan/job-seeker
00c0fbbfd05c4ef7f78da87c254fedb51f018cb9
[ "MIT" ]
null
null
null
jobs/models.py
MahmoudSafan/job-seeker
00c0fbbfd05c4ef7f78da87c254fedb51f018cb9
[ "MIT" ]
null
null
null
from django.db import models from django.utils.text import slugify # Create your models here. jobType = ( ("Architecture and Engineering Occupations","Architecture and Engineering Occupations"), ("Arts, Design, Entertainment, Sports, and Media Occupations","Arts, Design, Entertainment, Sports, and Media Occupa...
43.216216
128
0.726079
48510a469f93c17d433e421704706169a0fe4bc0
2,736
py
Python
utils/KTS/cpd_auto.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
17
2020-09-12T03:28:42.000Z
2021-11-15T12:10:31.000Z
utils/KTS/cpd_auto.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
3
2020-10-16T08:52:05.000Z
2022-03-22T02:59:55.000Z
utils/KTS/cpd_auto.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
1
2021-06-02T11:41:12.000Z
2021-06-02T11:41:12.000Z
import numpy as np from KTS.cpd_nonlin import cpd_nonlin def cpd_auto(K, ncp, vmax, desc_rate=1, **kwargs): """Main interface Detect change points automatically selecting their number K - kernel between each pair of frames in video ncp - maximum ncp vmax - special para...
31.448276
80
0.592471
0eeab57c303b999e807e39f73e26981432a52bea
983
py
Python
setup.py
arnaudmiribel/st
85ba1902fe4ebc90662b16d3ef6ed1283781448b
[ "MIT" ]
9
2021-11-22T15:04:26.000Z
2022-01-04T19:57:17.000Z
setup.py
arnaudmiribel/st
85ba1902fe4ebc90662b16d3ef6ed1283781448b
[ "MIT" ]
1
2021-11-23T10:14:14.000Z
2021-12-13T21:52:50.000Z
setup.py
arnaudmiribel/st
85ba1902fe4ebc90662b16d3ef6ed1283781448b
[ "MIT" ]
1
2022-01-02T21:13:59.000Z
2022-01-02T21:13:59.000Z
from setuptools import setup, find_packages with open("requirements.txt") as f: requirements = f.readlines() long_description = "st is a CLI that helps you kick-off a new Streamlit \ project so you can start crafting the app as soon as possible!" setup( name="st-kickoff", version="0.2", author="...
33.896552
78
0.686673
afeffccb29bd40fdea8db2098b9cd49e1f36aaac
1,013
py
Python
tests/kyu_6_tests/test_prize_draw.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
tests/kyu_6_tests/test_prize_draw.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
tests/kyu_6_tests/test_prize_draw.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
import unittest from katas.kyu_6.prize_draw import rank class PrizeDrawTestCase(unittest.TestCase): def test_equals(self): self.assertEqual(rank('Elijah,Chloe,Elizabeth,Matthew,Natalie,Jayden', [1, 3, 5, 5, 3, 6], 2), 'Matthew') def test_equals_2(self): self.ass...
33.766667
79
0.579467
7bfbb1147c2db6cd52afe4a69c365343276f5cf3
4,135
py
Python
selenium/src/py/lib/docutils/parsers/rst/languages/es.py
epall/selenium
273260522efb84116979da2a499f64510250249b
[ "Apache-2.0" ]
4
2015-10-26T01:43:04.000Z
2018-05-12T17:39:32.000Z
selenium/src/py/lib/docutils/parsers/rst/languages/es.py
hugs/selenium
9fa09c04294bd43099aa8461b027148ba81be7b7
[ "Apache-2.0" ]
1
2021-06-18T00:45:52.000Z
2021-06-18T00:45:52.000Z
selenium/src/py/lib/docutils/parsers/rst/languages/es.py
hugs/selenium
9fa09c04294bd43099aa8461b027148ba81be7b7
[ "Apache-2.0" ]
2
2016-07-11T20:19:31.000Z
2018-11-17T22:36:54.000Z
# -*- coding: utf-8 -*- # Author: Marcelo Huerta San Martín # Contact: richieadler@users.sourceforge.net # Revision: $Revision: 4231 $ # Date: $Date: 2005-12-23 03:10:41 +0100 (Fri, 23 Dec 2005) $ # Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new tr...
33.346774
81
0.613543
9f72193fc076927104fe0c024654ffc9fb3894a9
2,262
py
Python
flask_project/campaign_manager/data_providers/_abstract_osmcha_provider.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
24
2018-10-05T06:39:11.000Z
2022-02-22T08:54:37.000Z
flask_project/campaign_manager/data_providers/_abstract_osmcha_provider.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
384
2017-05-17T07:50:02.000Z
2018-09-20T08:18:56.000Z
flask_project/campaign_manager/data_providers/_abstract_osmcha_provider.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
16
2017-05-11T08:52:19.000Z
2018-06-08T06:55:43.000Z
__author__ = 'Irwan Fathurrahman <irwan@kartoza.com>' __date__ = '12/06/17' import json import requests from app_config import Config from urllib.error import HTTPError from campaign_manager.utilities import multi_feature_to_polygon from campaign_manager.data_providers._abstract_data_provider import ( AbstractData...
27.925926
69
0.538904
de20fca174f936a3137ecbb225e01d4fb750597d
2,844
py
Python
openstack/network/v2/rule.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/network/v2/rule.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/network/v2/rule.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# -*- coding:utf-8 -*- # Copyright 2018 Huawei 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...
43.090909
96
0.617089
347df4cd3812e8697c448eb87c32733ee6f8fb18
5,320
py
Python
Incident-Response/Tools/cyphon/cyphon/engines/elasticsearch/results.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/engines/elasticsearch/results.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/engines/elasticsearch/results.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # Cyphon En...
27.142857
77
0.604135
9ace7246eb18ab3d18bfccb6112d2053e208e67b
31,008
py
Python
Cuba/covid19_processing.py
ypriverol/COVID19
7e8ab018f576ef7b67eee4a1a0114dd06c7a82ee
[ "CC0-1.0" ]
1
2020-03-31T00:23:01.000Z
2020-03-31T00:23:01.000Z
Cuba/covid19_processing.py
ypriverol/COVID19
7e8ab018f576ef7b67eee4a1a0114dd06c7a82ee
[ "CC0-1.0" ]
null
null
null
Cuba/covid19_processing.py
ypriverol/COVID19
7e8ab018f576ef7b67eee4a1a0114dd06c7a82ee
[ "CC0-1.0" ]
2
2020-03-31T01:21:10.000Z
2020-03-31T20:50:11.000Z
from covid19_util import * from matplotlib import dates as mdates import pandas as pd import requests import scipy.optimize import scipy.stats from io import StringIO import datetime import geonamescache class Covid19Processing: def __init__(self): self.dataframes = {} gc = geonamescache.Geonames...
51.08402
162
0.568982
f1344a2b3883e50b8e0dde0c7f57e264f2d2c2a5
75
py
Python
futurecashflow/__init__.py
maka89/FutureCashFlow
a240f8efd973854f02394338c390fb7c3432437b
[ "MIT" ]
1
2022-01-11T16:05:20.000Z
2022-01-11T16:05:20.000Z
futurecashflow/__init__.py
maka89/FutureCashFlow
a240f8efd973854f02394338c390fb7c3432437b
[ "MIT" ]
null
null
null
futurecashflow/__init__.py
maka89/FutureCashFlow
a240f8efd973854f02394338c390fb7c3432437b
[ "MIT" ]
null
null
null
from .core_layers import * from .meta_layers import * from .model import *
18.75
26
0.76
420e3996425093c8590924e2ef792dbab2cb2b13
3,848
py
Python
samples/deepbench/conv_overhead_caffe2.py
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
90
2019-01-02T22:49:08.000Z
2022-02-17T21:11:38.000Z
samples/deepbench/conv_overhead_caffe2.py
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
4
2019-02-14T16:19:06.000Z
2022-01-11T17:54:42.000Z
samples/deepbench/conv_overhead_caffe2.py
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
24
2019-01-09T18:09:44.000Z
2022-01-10T13:04:42.000Z
import time import numpy as np from caffe2.proto import caffe2_pb2 from caffe2.python import workspace, core, model_helper, utils, brew import deepbench AVG_OVER = 100 RUNS = 30 device_option = core.DeviceOption(caffe2_pb2.CUDA) # device = core.DeviceOption(caffe2_pb2.CPU) print('############ Convolution ###########...
38.48
142
0.543139
6a26cd48a13e381dc99dfa88325324cdadd050da
1,346
py
Python
perceptron/save_load.py
KSpenko/perceptron
d02f6cb1e9d024156e6db2291a448ccfefaf8219
[ "MIT" ]
null
null
null
perceptron/save_load.py
KSpenko/perceptron
d02f6cb1e9d024156e6db2291a448ccfefaf8219
[ "MIT" ]
null
null
null
perceptron/save_load.py
KSpenko/perceptron
d02f6cb1e9d024156e6db2291a448ccfefaf8219
[ "MIT" ]
1
2021-02-25T22:29:25.000Z
2021-02-25T22:29:25.000Z
import xlsxwriter import openpyxl import numpy as np from perceptron import Perceptron def save_model(model, file_name): """ save model weights and biases in excel format """ workbook = xlsxwriter.Workbook(file_name) for i in range(model.nLayers-1): worksheet = workbook.add_worksheet("Weights "+str(i)) for j ...
32.047619
73
0.700594
df91e15839d7cb5393f83e1989d3d022e989dea7
8,983
py
Python
scripts/filter/gather_filtering_stats.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/filter/gather_filtering_stats.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/filter/gather_filtering_stats.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import os import argparse import numpy as np from RouToolPa.GeneralRoutines import FileRoutines parser = argparse.ArgumentParser() parser.add_argument("-d", "--sample_directory", action="store", dest="samples_dir", required=True, type=lambda s:...
52.841176
127
0.616275
66435ec65114e3ff5c04111d80b01674391bba8c
3,249
py
Python
bopt/test_problems/Exeter_CFD_Problems/pitzdaily.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
2
2020-05-19T15:48:37.000Z
2021-08-16T10:41:49.000Z
bopt/test_problems/Exeter_CFD_Problems/pitzdaily.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
null
null
null
bopt/test_problems/Exeter_CFD_Problems/pitzdaily.py
georgedeath/bomean
0dad35e0d584cf7c46c9a8cb0445f225875cfa86
[ "MIT" ]
null
null
null
try: from data.SnappyHexOptimise import BasicPitzDailyRun except: from .data.SnappyHexOptimise import BasicPitzDailyRun try: from interfaces import ControlPolygonInterface except: from .interfaces import ControlPolygonInterface try: from base_class import Problem except: from .base_class import ...
39.144578
102
0.658972
5c8d4bfd561cff4b101ecad0b2bc21af1525c582
376
py
Python
server/api/services/__init__.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
2
2021-07-13T07:57:48.000Z
2021-11-18T08:20:38.000Z
server/api/services/__init__.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
null
null
null
server/api/services/__init__.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
null
null
null
from .facebook import FacebookService from .reddit import RedditService from .spotify import SpotifyService from .twitter import TwitterService from .ibm_watson import IBMWatsonService from .sagemaker import SagamakerService __all__ = [ "FacebookService", "RedditService", "SpotifyService", "TwitterServ...
23.5
40
0.771277
b6c2e076bc3e25b5b0ec3450fd55a4aed0095c6f
437
py
Python
example_project/example_project/urls.py
holgerd77/django-public-project
0d5684dee9567fe1650ecad6413dd9aef71a8ec2
[ "BSD-3-Clause" ]
13
2015-08-27T08:13:47.000Z
2021-11-08T11:20:29.000Z
example_project/example_project/urls.py
holgerd77/django-public-project
0d5684dee9567fe1650ecad6413dd9aef71a8ec2
[ "BSD-3-Clause" ]
null
null
null
example_project/example_project/urls.py
holgerd77/django-public-project
0d5684dee9567fe1650ecad6413dd9aef71a8ec2
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.contrib import admin admin.autodiscover() import django.views from public_project.urls import urlpatterns urlpatterns += [ url(r'^admin/', include(admin.site.urls)), ] if settings.DEBUG: urlpatterns += [ url(r'^m...
21.85
65
0.677346
3f7dd5e4e73dd0f6aaabfda26d0e716397343ac1
606
py
Python
tests/test_plot.py
resistics/resistics
cba60747803b6c582eaaf1a670a7f455f5724ebd
[ "MIT" ]
38
2019-03-18T09:06:02.000Z
2022-02-18T15:38:54.000Z
tests/test_plot.py
resistics/resistics
cba60747803b6c582eaaf1a670a7f455f5724ebd
[ "MIT" ]
19
2019-08-23T03:57:37.000Z
2022-03-12T01:07:09.000Z
tests/test_plot.py
resistics/resistics
cba60747803b6c582eaaf1a670a7f455f5724ebd
[ "MIT" ]
8
2019-09-26T00:31:57.000Z
2021-09-04T09:28:15.000Z
import pytest from typing import List import numpy as np @pytest.mark.parametrize( "y, max_pts, x_expected, y_expected", [ ([0, 1, 3, 4, 2, 3, 4, 3, 4, 5, 5, 5], 5, [0, 3, 4, 9, 11], [0, 4, 2, 5, 5]), ], ) def test_lttb_downsample( y: List, max_pts: int, x_expected: List, y_expected: List ) ->...
26.347826
85
0.632013
af7faf9d477a2a79f8072443ae2bd8fdd83da94a
20,407
py
Python
sympy/ntheory/tests/test_ntheory.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/ntheory/tests/test_ntheory.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/ntheory/tests/test_ntheory.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
from sympy import Sieve, binomial_coefficients, binomial_coefficients_list, \ multinomial_coefficients, Mul, S, Pow from sympy import factorial as fac from sympy.ntheory import isprime, n_order, is_primitive_root, \ is_quad_residue, legendre_symbol, jacobi_symbol, npartitions, totient, \ factorint, pri...
38.287054
89
0.59803
a1610af0678557c58919054704ed03866fd3419a
2,465
py
Python
tests/basics/Importing.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
1
2019-03-31T09:56:11.000Z
2019-03-31T09:56:11.000Z
tests/basics/Importing.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
tests/basics/Importing.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
23.932039
79
0.688844
3c3b1de536652435f887e53d20b7282f96c09e19
5,098
py
Python
four.py
gto76/n-in-the-row
18291a2a9fee1eb47153cbef9bd4764ed9615d59
[ "MIT" ]
1
2021-05-10T15:18:22.000Z
2021-05-10T15:18:22.000Z
four.py
gto76/n-in-the-row
18291a2a9fee1eb47153cbef9bd4764ed9615d59
[ "MIT" ]
null
null
null
four.py
gto76/n-in-the-row
18291a2a9fee1eb47153cbef9bd4764ed9615d59
[ "MIT" ]
2
2019-02-19T12:02:29.000Z
2019-02-21T10:50:53.000Z
#!/usr/bin/python3 # # Usage: four.py # from enum import Enum import copy SIZE = 6 GOAL = 4 SEARCH_DEPTH = 5 PRUNE_FACTOR = 0.1 class D(Enum): HOR = 0 VER = 1 DIA = 2 DIA2 = 3 class F(Enum): E = 0 X = 1 O = 2 class Board: def __init__(self, size): self.brd = [size*[F....
23.934272
79
0.549235
bca481f94a931fb4fc4b00567b9402e7f78ad0d8
3,084
py
Python
simba/similarities/mcsg.py
babylonhealth/simba
b0124281c0efd59b088520e28add36d1038bce3b
[ "Apache-2.0" ]
18
2019-11-05T10:30:33.000Z
2021-06-04T00:57:38.000Z
simba/similarities/mcsg.py
babylonhealth/simba
b0124281c0efd59b088520e28add36d1038bce3b
[ "Apache-2.0" ]
null
null
null
simba/similarities/mcsg.py
babylonhealth/simba
b0124281c0efd59b088520e28add36d1038bce3b
[ "Apache-2.0" ]
2
2020-06-27T17:44:27.000Z
2021-01-19T00:32:18.000Z
import numpy as np from ..utils.gaussian import aic_spherical, tic, tic_spherical from ..utils.vmf import vmf_aic, vmf_tic def von_mises_correction_aic(Dnew, Dc): """ :param Dnew[nxd matrix]: set 1 :param Dc[mxd matrix]: set 2 :return [float]: semantic similarity measure (approximation of the...
24.870968
62
0.613813
222d8d2eb1e36538c12a7512b906fcdcb63a8436
2,293
py
Python
dummydf/sql/group.py
moriyoshi/dummydf
39d82f0022ea9d072ce56724f16bf363a37b1bbf
[ "MIT" ]
null
null
null
dummydf/sql/group.py
moriyoshi/dummydf
39d82f0022ea9d072ce56724f16bf363a37b1bbf
[ "MIT" ]
null
null
null
dummydf/sql/group.py
moriyoshi/dummydf
39d82f0022ea9d072ce56724f16bf363a37b1bbf
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Moriyoshi Koizumi # # 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, me...
38.216667
80
0.606629
d03de6e76e96ec69f66ea9325eea852d42d3d278
4,233
py
Python
master_thesis/generative_models/wgan/wgan_utils.py
HitLuca/Master-thesis
359d1af662af70c26d1c6babfddf266a75893043
[ "MIT" ]
9
2018-11-27T17:42:53.000Z
2021-04-22T08:29:52.000Z
master_thesis/generative_models/wgan/wgan_utils.py
HitLuca/Master-thesis
359d1af662af70c26d1c6babfddf266a75893043
[ "MIT" ]
2
2019-07-26T14:34:31.000Z
2019-07-26T14:37:32.000Z
master_thesis/generative_models/wgan/wgan_utils.py
jeykang/TimeSeries-WGAN-TF2
81a8d2b5b229530f3e39b1b1d9a2328ea7b819ef
[ "MIT" ]
5
2018-10-26T17:20:41.000Z
2021-01-15T05:09:46.000Z
import keras from keras import Model from keras.layers import * from keras.optimizers import RMSprop from generative_models import utils def build_generator(latent_dim, timesteps): generator_inputs = Input((latent_dim,)) generated = generator_inputs generated = Dense(15)(generated) generated = utils...
36.491379
109
0.733759
527064f97f4234b096bc6c6c6416cd1e406facf8
630
py
Python
manage.py
mohsenamoon1160417237/recipe-API
8eebb20b6b56cc76670985beb89de4556db94a28
[ "MIT" ]
null
null
null
manage.py
mohsenamoon1160417237/recipe-API
8eebb20b6b56cc76670985beb89de4556db94a28
[ "MIT" ]
9
2019-12-04T23:09:28.000Z
2022-02-10T09:27:36.000Z
manage.py
BuilderTron/recipe_app
5a06244d2677a08104df72624008aa8d2f296da8
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'recipe_app.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
8f72224ba525e2ff9036edcc67c6b5c70e3f4e72
1,745
py
Python
core/src/autogluon/core/features/types.py
songqiang/autogluon
529d7cc65fad411622072aa0349215a15e1e901c
[ "Apache-2.0" ]
8
2021-05-17T08:02:05.000Z
2022-03-05T13:03:17.000Z
core/src/autogluon/core/features/types.py
songqiang/autogluon
529d7cc65fad411622072aa0349215a15e1e901c
[ "Apache-2.0" ]
null
null
null
core/src/autogluon/core/features/types.py
songqiang/autogluon
529d7cc65fad411622072aa0349215a15e1e901c
[ "Apache-2.0" ]
2
2021-01-04T21:38:53.000Z
2021-12-10T06:29:54.000Z
# Raw types: Raw data type information grouped into families. # For example: uint8, int8, int16, int32, and int64 features all map to 'int' R_INT = 'int' R_FLOAT = 'float' R_OBJECT = 'object' R_CATEGORY = 'category' R_DATETIME = 'datetime' R_BOOL = 'bool' # TODO: R_BOOL/R_BOOLEAN? # TODO: R_FLOAT_SPARSE/R_INT_SPARSE/...
43.625
146
0.781662
b5bd00b37a33a29065853b426b08c21061df3775
1,235
py
Python
tests/utils.py
nkato/psd-tools2
58838cc0a0274ca11507906f0b39d5faf42f445b
[ "MIT" ]
null
null
null
tests/utils.py
nkato/psd-tools2
58838cc0a0274ca11507906f0b39d5faf42f445b
[ "MIT" ]
null
null
null
tests/utils.py
nkato/psd-tools2
58838cc0a0274ca11507906f0b39d5faf42f445b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import psd_tools.reader import psd_tools.decoder DATA_PATH = os.path.join( os.path.abspath(os.path.dirname(__file__)), 'psd_files') def full_name(filename): return os.path.join(DATA_PATH, filename) def load_psd(filen...
26.847826
78
0.676923
0858df061a0e808578a02cf05a80a3a237545502
3,849
py
Python
3DMatch/trainset_d3feat.py
dahliau/3D-PointCloud
863b8fa27f2c4f350ebcbbc7a44576d662e8bfe7
[ "IJG" ]
691
2020-09-17T04:47:31.000Z
2022-03-31T02:13:42.000Z
3DMatch/trainset_d3feat.py
zhulf0804/Segmentation-Papers
62248f9d1e820ad0a8d23a53e96d21028b6080c3
[ "IJG" ]
3
2021-12-18T07:58:02.000Z
2022-03-14T01:40:49.000Z
3DMatch/trainset_d3feat.py
zhulf0804/Segmentation-Papers
62248f9d1e820ad0a8d23a53e96d21028b6080c3
[ "IJG" ]
99
2020-09-24T07:06:53.000Z
2022-03-29T06:05:50.000Z
import os import numpy as np import open3d as o3d import pickle import random def vis_npys(npys): pcds = [] colors = [[1, 0, 0], [0, 1, 0], [0, 0, 1]] for i, npy in enumerate(npys): pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(npy) if i < 3: c...
32.897436
121
0.633151
6a93a360c6d14d5678b8652336686c341a79c635
327
py
Python
test_area/write-a-function.py
umiphos/python-exercises
a834fb63d3e447e3df096543c0e1850ecc020ffe
[ "Apache-2.0" ]
null
null
null
test_area/write-a-function.py
umiphos/python-exercises
a834fb63d3e447e3df096543c0e1850ecc020ffe
[ "Apache-2.0" ]
null
null
null
test_area/write-a-function.py
umiphos/python-exercises
a834fb63d3e447e3df096543c0e1850ecc020ffe
[ "Apache-2.0" ]
null
null
null
# https://www.hackerrank.com/challenges/write-a-function def is_leap(year): #years=[2100,2400] #for i in range(len(years)): # leap = (years[i]%4==0) and (years[i]%400==0 or years[i]%100!=0) # print leap # Write your logic here leap = (year%4==0) and (year%400==0 or year%100!=0) retur...
27.25
72
0.599388
832d3155a910396c13881bf829f8f818ca2cbd55
7,050
py
Python
Ansible-AWS-Provisioning/collections/ansible_collections/community/aws/plugins/modules/ec2_ami_copy.py
ginigangadharan/ansible-real-life
897c2fc0d05babbb540768b336b6ad399dad5bfa
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Ansible-AWS-Provisioning/collections/ansible_collections/community/aws/plugins/modules/ec2_ami_copy.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
null
null
null
Ansible-AWS-Provisioning/collections/ansible_collections/community/aws/plugins/modules/ec2_ami_copy.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
31.473214
124
0.65844
83bbc77cfd078076cbfd8c5747ba2b325a848b8a
7,488
py
Python
src/smirnoff_hack.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
null
null
null
src/smirnoff_hack.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
6
2021-07-20T00:07:12.000Z
2022-01-14T16:39:25.000Z
src/smirnoff_hack.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
null
null
null
## HACK: Improve the performance of the openff forcefield.create_openmm_system() from openff.toolkit.utils.toolkits import OpenEyeToolkitWrapper, RDKitToolkitWrapper, AmberToolsToolkitWrapper from openff.toolkit.topology.molecule import Molecule # time based on total 540s evaluation # cache for OE find_smarts_matches ...
61.884298
195
0.840812
b41c118beace63fb535b9fe2d17e4a6a3494d68d
10,804
py
Python
model/config.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
87
2019-06-07T18:16:30.000Z
2021-11-27T08:18:45.000Z
model/config.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
11
2019-06-19T20:53:27.000Z
2021-05-07T01:05:01.000Z
model/config.py
qkaren/converse_reading_cmr
d06d981be12930cff8458e2b1b81be4f5df3a329
[ "MIT" ]
17
2019-06-08T01:50:23.000Z
2022-02-16T07:12:15.000Z
# /usr/bin/env python3 import argparse import multiprocessing import torch """ Configuration file """ def model_config(parser): parser.add_argument('--vocab_size', type=int, default=0) parser.add_argument('--wemb_dim', type=int, default=300) parser.add_argument('--covec_on', action='stor...
55.405128
114
0.687153
c52c1009a629571bb04630939f016a8fea775010
2,405
py
Python
python/IECore/CapturingMessageHandler.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
python/IECore/CapturingMessageHandler.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
python/IECore/CapturingMessageHandler.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2008, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
40.762712
78
0.703534
9d637d0ca591a9cdae3ff1f5ab2445741b710389
874
py
Python
test/pytest/Service/test_services.py
michellab/BioSimSpaceCloud
456b146a2131565e354352872d3e75a08c3652d1
[ "Apache-2.0" ]
2
2019-02-15T16:04:19.000Z
2019-02-19T15:42:27.000Z
test/pytest/Service/test_services.py
michellab/BioSimSpaceCloud
456b146a2131565e354352872d3e75a08c3652d1
[ "Apache-2.0" ]
null
null
null
test/pytest/Service/test_services.py
michellab/BioSimSpaceCloud
456b146a2131565e354352872d3e75a08c3652d1
[ "Apache-2.0" ]
null
null
null
import pytest from Acquire.Service import get_remote_service_info skip_slow = True @pytest.mark.slow def test_login_to_service(): if skip_slow: return root_url = "http://130.61.60.88:8080/t" identity_service_url = "%s/identity" % root_url access_service_url = "%s/access" % root_url ac...
24.277778
76
0.741419
2bde139c294b4f2f55cb33466245f210a3e83645
17,271
py
Python
py2neo/admin/install.py
bwmetz/py2neo
93653a2428693cf29ff65647b703c60d763e1808
[ "Apache-2.0" ]
null
null
null
py2neo/admin/install.py
bwmetz/py2neo
93653a2428693cf29ff65647b703c60d763e1808
[ "Apache-2.0" ]
null
null
null
py2neo/admin/install.py
bwmetz/py2neo
93653a2428693cf29ff65647b703c60d763e1808
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Copyright 2011-2018, Nigel Small # # 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 require...
33.086207
99
0.566093
b5f9c9aca52d6b5f8329bf18df3bb3a0460b9b6f
3,584
py
Python
mylinebot/mylinebot/settings.py
tom-lin1128/stocklinebot
e2873e8d21fb4cb98b8776a0fc394b05f228ba04
[ "MIT" ]
null
null
null
mylinebot/mylinebot/settings.py
tom-lin1128/stocklinebot
e2873e8d21fb4cb98b8776a0fc394b05f228ba04
[ "MIT" ]
null
null
null
mylinebot/mylinebot/settings.py
tom-lin1128/stocklinebot
e2873e8d21fb4cb98b8776a0fc394b05f228ba04
[ "MIT" ]
null
null
null
""" Django settings for mylinebot project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathl...
27.358779
202
0.717355
a33898b2e08b6ff1766e0bd884c475d52abc4998
28,490
py
Python
scripts/cascades/cluster_cascades/sensory_cascades_integration_clusters.py
mwinding/connectome_analysis
dbc747290891805863c9481921d8080dc2043d21
[ "MIT" ]
1
2021-06-10T05:48:16.000Z
2021-06-10T05:48:16.000Z
cascades/cluster_cascades/sensory_cascades_integration_clusters.py
mwinding/connectome_tools
0392f6b1e924194299ea7760d8386eb01f3371a3
[ "MIT" ]
2
2022-01-21T11:48:45.000Z
2022-01-21T11:48:45.000Z
scripts/cascades/cluster_cascades/sensory_cascades_integration_clusters.py
mwinding/connectome_analysis
dbc747290891805863c9481921d8080dc2043d21
[ "MIT" ]
1
2022-02-02T15:39:52.000Z
2022-02-02T15:39:52.000Z
#%% import os import sys try: os.chdir('/Volumes/GoogleDrive/My Drive/python_code/connectome_tools/') print(os.getcwd()) except: pass # %% import sys sys.path.append('/Volumes/GoogleDrive/My Drive/python_code/maggot_models/') sys.path.append('/Volumes/GoogleDrive/My Drive/python_code/connectome_tools/') fr...
40.816619
161
0.726079
cffb3cc192da039cb574d4e5f9d4ed0d81b383b5
1,427
py
Python
app/recipe/serializers.py
demirtaserdem/django-rest-adv
a8259fa4308c71dcc80456d9f0266fd40c22480c
[ "MIT" ]
null
null
null
app/recipe/serializers.py
demirtaserdem/django-rest-adv
a8259fa4308c71dcc80456d9f0266fd40c22480c
[ "MIT" ]
null
null
null
app/recipe/serializers.py
demirtaserdem/django-rest-adv
a8259fa4308c71dcc80456d9f0266fd40c22480c
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngredientSerializer(serializers....
26.924528
65
0.641205
3f84670f98832589ea47852a7d369f54dc76c8ed
566
py
Python
rcsystem/migrations/0040_auto_20200831_2100.py
perought/recommender-web-site
ce62c71ca86756cc2810966cacd0e4597918c7dd
[ "MIT" ]
null
null
null
rcsystem/migrations/0040_auto_20200831_2100.py
perought/recommender-web-site
ce62c71ca86756cc2810966cacd0e4597918c7dd
[ "MIT" ]
null
null
null
rcsystem/migrations/0040_auto_20200831_2100.py
perought/recommender-web-site
ce62c71ca86756cc2810966cacd0e4597918c7dd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-08-31 18:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rcsystem', '0039_auto_20200831_2056'), ] operations = [ migrations.AlterField( model_name='moviedatabase', name='vot...
23.583333
51
0.59364
cba1e2ab5d29278fc05617e07688fb57047860d0
196
py
Python
touch_time_test.py
goldang01/Python_Example
f0de3384278762d7935885ca0bc08303346ad5a1
[ "MIT" ]
null
null
null
touch_time_test.py
goldang01/Python_Example
f0de3384278762d7935885ca0bc08303346ad5a1
[ "MIT" ]
null
null
null
touch_time_test.py
goldang01/Python_Example
f0de3384278762d7935885ca0bc08303346ad5a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import datetime import pandas as pd now = datetime.datetime.now() df = pd.DataFrame({ "time":[now] }) df.to_csv("time_test.csv", mode = "a")
13.066667
38
0.637755
119f82b56d2ea87640cd03670ca01ed078091aff
367
py
Python
tests/test_reddit.py
bwlodarski277/reddit-async
c7a54c539eb1b71dc2160e08294ca7f18d66fe32
[ "MIT" ]
null
null
null
tests/test_reddit.py
bwlodarski277/reddit-async
c7a54c539eb1b71dc2160e08294ca7f18d66fe32
[ "MIT" ]
null
null
null
tests/test_reddit.py
bwlodarski277/reddit-async
c7a54c539eb1b71dc2160e08294ca7f18d66fe32
[ "MIT" ]
null
null
null
import pytest from core.reddit import Reddit class TestInit: @pytest.mark.asyncio async def test_invalid_input(self): with pytest.raises(ValueError): reddit = await Reddit.init('', '', '', '') @pytest.mark.asyncio async def test_valid_input(self): reddit = await Reddit.in...
22.9375
54
0.645777
468de0a71f818fd7009b36c60d3996346d2a5a68
1,717
py
Python
wap_mms_message/__init__.py
whardier/wap-mms-message
8c217d9e05ff0338f3cbd8ab910737ea9258a014
[ "MIT" ]
null
null
null
wap_mms_message/__init__.py
whardier/wap-mms-message
8c217d9e05ff0338f3cbd8ab910737ea9258a014
[ "MIT" ]
null
null
null
wap_mms_message/__init__.py
whardier/wap-mms-message
8c217d9e05ff0338f3cbd8ab910737ea9258a014
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2020 Shane R. Spencer <spencersr@gmail.com> # 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 rig...
41.878049
79
0.771112
18e8d395a3da8868f071c5ed0749270bf3c5420b
5,712
py
Python
Agent/Agent.py
OctThe16th/BetterTrainingDataMnist_RL_GAN
fcc75c9ddf768d7c66c9fade3e86973a4c828624
[ "MIT" ]
null
null
null
Agent/Agent.py
OctThe16th/BetterTrainingDataMnist_RL_GAN
fcc75c9ddf768d7c66c9fade3e86973a4c828624
[ "MIT" ]
null
null
null
Agent/Agent.py
OctThe16th/BetterTrainingDataMnist_RL_GAN
fcc75c9ddf768d7c66c9fade3e86973a4c828624
[ "MIT" ]
null
null
null
import os import numba as nb import numpy as np import math import keras.backend as K from PriorityExperienceReplay.PriorityExperienceReplay import Experience import tensorflow as tf from Actor import ActorNetwork from Critic import CriticNetwork from Environnement.Environnement import Environnement os.environ['T...
38.33557
142
0.619398
370db6095ef8c70f32ea1c65e37c09fba4546d28
1,701
py
Python
tests/base.py
vtrbtf/http-prompt
b814f6a36a0c724ce60a21f52ef5c71708d39395
[ "MIT" ]
null
null
null
tests/base.py
vtrbtf/http-prompt
b814f6a36a0c724ce60a21f52ef5c71708d39395
[ "MIT" ]
null
null
null
tests/base.py
vtrbtf/http-prompt
b814f6a36a0c724ce60a21f52ef5c71708d39395
[ "MIT" ]
1
2018-05-03T18:14:01.000Z
2018-05-03T18:14:01.000Z
import os import shutil import sys import tempfile import unittest import six class TempAppDirTestCase(unittest.TestCase): """Set up temporary app data and config directories before every test method, and delete them afterwards. """ def setUp(self): # Create a temp dir that will contain data ...
29.842105
79
0.579071
cfd7f5a623a3f00ebf0656522e04773827883c1c
9,500
py
Python
utils/utils_bbox.py
bubbliiiing/faster-rcnn-tf2
c3982016c7c209a3fa71a30facbe53396e6340ee
[ "MIT" ]
133
2020-11-23T05:43:08.000Z
2022-03-30T08:10:50.000Z
utils/utils_bbox.py
Whale1024/faster-rcnn-tf2
6343860e5d44e8441fa736620762e4c256b27083
[ "MIT" ]
15
2020-12-01T12:07:14.000Z
2021-09-30T02:27:37.000Z
utils/utils_bbox.py
Whale1024/faster-rcnn-tf2
6343860e5d44e8441fa736620762e4c256b27083
[ "MIT" ]
40
2020-11-24T13:01:41.000Z
2022-03-30T08:10:53.000Z
import math import numpy as np import tensorflow as tf import tensorflow.keras.backend as K class BBoxUtility(object): def __init__(self, num_classes, rpn_pre_boxes = 12000, rpn_nms = 0.7, nms_iou = 0.3, min_k = 300): #---------------------------------------------------# # 种类数量 ...
48.969072
150
0.380105
dda6d852e5b6190979d444e0ea78a2263892ef33
20,605
py
Python
tb/test_axis_switch_4x4_64.py
wufubao/verilog-axis
7c6da337b05e5eea675159798aa979f459d89095
[ "MIT" ]
2
2018-08-25T03:10:41.000Z
2018-08-25T22:52:30.000Z
tb/test_axis_switch_4x4_64.py
nqHITSZ/verilog-axis
7c6da337b05e5eea675159798aa979f459d89095
[ "MIT" ]
null
null
null
tb/test_axis_switch_4x4_64.py
nqHITSZ/verilog-axis
7c6da337b05e5eea675159798aa979f459d89095
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2016-2018 Alex Forencich 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,...
33.504065
149
0.663771
77a700343b7a547884d858e3ecd1e416636b7bd3
2,012
py
Python
pyisis/tests/test_parser.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/tests/test_parser.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/tests/test_parser.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
2
2019-11-08T20:51:54.000Z
2021-08-17T23:49:48.000Z
# -*- coding: utf-8 -*- """ File to test Formatting Language Parser """ __created__ = "2008-05-27" __updated__ = "2008-05-26" __author__ = "Rodrigo Senra <rsenra@acm.org>" import tempfile from pyisis.records import MasterRecord from pyisis.lexer import PftLexer from pyisis.parser import PftParser from pyisis.ast im...
24.839506
91
0.668489
5d23324bebbb96bcd86062de4dbb3f8f58d2f232
40
py
Python
bot_facebook/views/__init__.py
lariodiniz/BootPlayGame
1ba40611eb085e2deaff63a36bdb669b594c7c02
[ "MIT" ]
null
null
null
bot_facebook/views/__init__.py
lariodiniz/BootPlayGame
1ba40611eb085e2deaff63a36bdb669b594c7c02
[ "MIT" ]
null
null
null
bot_facebook/views/__init__.py
lariodiniz/BootPlayGame
1ba40611eb085e2deaff63a36bdb669b594c7c02
[ "MIT" ]
null
null
null
from .ativa_bot_view import ativaBotView
40
40
0.9
d6087e3e49d300f1770548713421b41f7906d0a8
5,713
py
Python
arcade/examples/sprite_collect_coins_diff_levels.py
KommentatorForAll/arcade
88343fe87efc1bd619412261a725a8f04de08fc7
[ "MIT" ]
null
null
null
arcade/examples/sprite_collect_coins_diff_levels.py
KommentatorForAll/arcade
88343fe87efc1bd619412261a725a8f04de08fc7
[ "MIT" ]
null
null
null
arcade/examples/sprite_collect_coins_diff_levels.py
KommentatorForAll/arcade
88343fe87efc1bd619412261a725a8f04de08fc7
[ "MIT" ]
null
null
null
""" Sprite Collect Coins with Different Levels Simple program to show basic sprite usage. Artwork from https://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_collect_coins_diff_levels """ import random import arcade import os SPRIT...
28.142857
119
0.605986
135e63503762daca2c8b5e855e2ffd35ebaefde4
809
py
Python
website/cloud_site/twitter_app/urls.py
arshmankhalid/twitter_sentiment_analysis
b67dd3b1dd81b2efd67e1de2d4de289b9987dc28
[ "MIT" ]
null
null
null
website/cloud_site/twitter_app/urls.py
arshmankhalid/twitter_sentiment_analysis
b67dd3b1dd81b2efd67e1de2d4de289b9987dc28
[ "MIT" ]
null
null
null
website/cloud_site/twitter_app/urls.py
arshmankhalid/twitter_sentiment_analysis
b67dd3b1dd81b2efd67e1de2d4de289b9987dc28
[ "MIT" ]
3
2020-05-25T13:38:12.000Z
2020-05-26T01:30:35.000Z
from django.conf.urls import url from . import views app_name = 'twitter_app' urlpatterns = [ url(r'^$', views.HomeTemplateView.as_view(), name='home_page'), url(r'^map/$', views.MapTemplateView.as_view(), name='map_page'), url(r'^team/$', views.TeamTemplateView.as_view(), name='team_page'), url(r...
31.115385
95
0.690977
b1b3ba6737fd921cbef7489aa07d0b5c6891f332
2,725
py
Python
mtp_api/apps/credit/management/commands/send_prisoner_credit_notices.py
ministryofjustice/money-to-prisoners-api
7d86791c24f2cea19dd9ca3f69fad7693c841949
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/credit/management/commands/send_prisoner_credit_notices.py
ministryofjustice/money-to-prisoners-api
7d86791c24f2cea19dd9ca3f69fad7693c841949
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/credit/management/commands/send_prisoner_credit_notices.py
ministryofjustice/money-to-prisoners-api
7d86791c24f2cea19dd9ca3f69fad7693c841949
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
import pathlib import shutil import tempfile from django.core.management import BaseCommand, call_command from mtp_common.tasks import send_email from credit.management.commands.create_prisoner_credit_notices import parsed_date_or_yesterday from prison.models import PrisonerCreditNoticeEmail class Command(BaseComma...
37.328767
99
0.64
718a082d3ed2e87592944ecbf791edcdfbedd4c7
1,551
py
Python
backend/tasks/utils.py
dbauducco/DistributedReplays
07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291
[ "Apache-2.0" ]
69
2018-07-17T19:40:21.000Z
2022-02-25T14:23:53.000Z
backend/tasks/utils.py
dbauducco/DistributedReplays
07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291
[ "Apache-2.0" ]
335
2018-07-25T19:34:55.000Z
2022-02-26T06:04:32.000Z
backend/tasks/utils.py
dbauducco/DistributedReplays
07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291
[ "Apache-2.0" ]
42
2018-07-21T00:04:23.000Z
2022-02-25T14:23:42.000Z
from backend.database.startup import get_strict_redis PRIORITY_SEP = '\x06\x16' DEFAULT_PRIORITY_STEPS = [0, 3, 6, 9] def make_queue_name_for_pri(queue, pri): """Make a queue name for redis Celery uses PRIORITY_SEP to separate different priorities of tasks into different queues in Redis. Each queue-prio...
34.466667
79
0.681496
b81df8793b206a4a3f1ef1db8d3506c983974c4f
3,485
py
Python
nussl/separation/factorization/ica.py
ZhaoJY1/nussl
57aabeabca3b2e75849e1659a522e3c2f77e9172
[ "MIT" ]
259
2016-10-04T19:21:25.000Z
2020-04-15T14:39:54.000Z
nussl/separation/factorization/ica.py
titocaco/nussl
af7d0c50e01d107f4ef3305b89eb130d95d0a7cd
[ "MIT" ]
115
2016-10-26T01:58:04.000Z
2020-04-15T07:53:00.000Z
nussl/separation/factorization/ica.py
titocaco/nussl
af7d0c50e01d107f4ef3305b89eb130d95d0a7cd
[ "MIT" ]
64
2017-04-11T04:10:35.000Z
2020-04-08T11:23:48.000Z
import copy import numpy as np import sklearn from .. import SeparationBase from ... import AudioSignal from ...core import utils class ICA(SeparationBase): """ Separate sources using the Independent Component Analysis, given observations of the audio scene. nussl's ICA is a wrapper for sci-kit learn's...
34.166667
118
0.670301
f162f3c0ca3235cf11da6f3280fa78a64d00294d
98
py
Python
theme_kit/models/__init__.py
agenterpgmbh/misc-addons
27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41
[ "MIT" ]
null
null
null
theme_kit/models/__init__.py
agenterpgmbh/misc-addons
27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41
[ "MIT" ]
1
2020-05-03T04:27:29.000Z
2020-05-03T04:27:29.000Z
theme_kit/models/__init__.py
eneldoserrata/misc-addons
6f3b94d8a71d603d9ad449f96edfc66385e78080
[ "MIT" ]
1
2022-02-04T11:27:12.000Z
2022-02-04T11:27:12.000Z
# License MIT (https://opensource.org/licenses/MIT). from . import theme from . import res_config
24.5
52
0.755102
f5481bedd0e79aa891329306b3c259a798e235cc
843
py
Python
user/emails.py
Ilmanfordinner/registration
d729f9a990d6f63dc29e14c1657dba87c3233971
[ "MIT" ]
null
null
null
user/emails.py
Ilmanfordinner/registration
d729f9a990d6f63dc29e14c1657dba87c3233971
[ "MIT" ]
null
null
null
user/emails.py
Ilmanfordinner/registration
d729f9a990d6f63dc29e14c1657dba87c3233971
[ "MIT" ]
null
null
null
from app import emails def create_verify_email(user, activate_url): c = { 'user': user, 'activate_url': activate_url } return emails.render_mail('mails/verify_email', user.email, c) def create_password_reset_email(user, reset_url): c = { ...
27.193548
86
0.571767
c7cc50d2ba6c162b8d8546cd6263ae75f3c991f2
23,246
py
Python
Lib/site-packages/tensorflow_estimator/python/estimator/keras.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
2
2019-08-04T20:28:14.000Z
2019-10-27T23:26:42.000Z
Lib/site-packages/tensorflow_estimator/python/estimator/keras.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_estimator/python/estimator/keras.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
1
2020-11-04T03:16:29.000Z
2020-11-04T03:16:29.000Z
# Copyright 2015 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 License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.601363
80
0.711004
4f9a96e90e4645ad96c1b598be4e64678c847ff0
3,577
py
Python
chb/x86/opcodes/X86PushRegisters.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86PushRegisters.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86PushRegisters.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "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...
44.160494
80
0.649147
a4a661d0b8ca0871df53e909b8f2f1490ebd600d
5,487
py
Python
khan/pipeline/tests/test_images.py
zachariahmilby/keck-hires-aurora-pipeline
51aae65cc6be396b0ef3de12f76220576248fea9
[ "MIT" ]
null
null
null
khan/pipeline/tests/test_images.py
zachariahmilby/keck-hires-aurora-pipeline
51aae65cc6be396b0ef3de12f76220576248fea9
[ "MIT" ]
null
null
null
khan/pipeline/tests/test_images.py
zachariahmilby/keck-hires-aurora-pipeline
51aae65cc6be396b0ef3de12f76220576248fea9
[ "MIT" ]
null
null
null
import pytest from astropy.io import fits import numpy as np from numpy.testing import assert_array_equal from khan.pipeline.images import parse_mosaic_detector_slice, \ determine_detector_layout, get_mosaic_detector_corner_coordinates, \ reformat_observers, CCDImage np.random.seed(1701) class TestParseMosa...
35.62987
79
0.684892
80ee6d47654abf9c9d5b373f0491dade87360bda
430
py
Python
Corona World Map/Goodle Maps.py
CoderAryanAnand/fun_projects
6891320a373bad539b6e7926ca868d56c560bc20
[ "MIT" ]
null
null
null
Corona World Map/Goodle Maps.py
CoderAryanAnand/fun_projects
6891320a373bad539b6e7926ca868d56c560bc20
[ "MIT" ]
null
null
null
Corona World Map/Goodle Maps.py
CoderAryanAnand/fun_projects
6891320a373bad539b6e7926ca868d56c560bc20
[ "MIT" ]
null
null
null
import pandas as pd import gmaps from IPython.display import display data = pd.read_csv("data.csv") df = pd.DataFrame(data) df.head() print(df.shape) mylist = ["5/27/20"] df2 = df[df[mylist].ne(0).all(1)] print(df2) gmaps.configure(api_key="") locations = df2[['Lat', 'Long']] weights = df2["5/27/20"] fig = gmaps.figu...
22.631579
100
0.718605
56fb58c8e59e3e99af1cb33271fb1afe2510ec1a
17,309
py
Python
redash/tasks/queries.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
null
null
null
redash/tasks/queries.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
4
2020-06-18T15:31:02.000Z
2021-03-25T23:31:41.000Z
redash/tasks/queries.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import signal import time import redis from celery.exceptions import SoftTimeLimitExceeded, TimeLimitExceeded from celery.result import AsyncResult from celery.utils.log import get_task_logger from six import text_type from redash import models, redis_connec...
39.428246
136
0.644462
1e92dc4caef3d76b13ec9a6dc22d1eadbb34d6db
57
py
Python
geochemistrypy/utils/__init__.py
WenyuMolly/geochemistrypy
7127d98eb4b1610769a859dfbfb21457ae8de37c
[ "MIT" ]
13
2021-11-03T05:44:06.000Z
2022-03-27T02:50:45.000Z
geochemistrypy/utils/__init__.py
WenyuMolly/geochemistrypy
7127d98eb4b1610769a859dfbfb21457ae8de37c
[ "MIT" ]
20
2022-02-19T14:06:08.000Z
2022-03-28T10:25:48.000Z
geochemistrypy/utils/__init__.py
WenyuMolly/geochemistrypy
7127d98eb4b1610769a859dfbfb21457ae8de37c
[ "MIT" ]
4
2021-11-03T05:44:12.000Z
2022-03-12T15:14:22.000Z
# -*- coding: utf-8 -*- import sys sys.path.append('..')
14.25
23
0.561404
35419e763cdd6878d443d2421030d1d31eda8330
1,157
py
Python
kubernetes/test/test_v1beta1_custom_resource_definition_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_custom_resource_definition_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_custom_resource_definition_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
1
2018-07-19T16:37:20.000Z
2018-07-19T16:37:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
25.711111
129
0.757995
a9bf1272492e1110917b8864bddcfa05dcec8baa
285
py
Python
database/restclientfactory.py
tomdoel/pyxnatbrowser
573701e34538d6bae488d0a2d2a8864e974e5a8a
[ "BSD-2-Clause" ]
null
null
null
database/restclientfactory.py
tomdoel/pyxnatbrowser
573701e34538d6bae488d0a2d2a8864e974e5a8a
[ "BSD-2-Clause" ]
null
null
null
database/restclientfactory.py
tomdoel/pyxnatbrowser
573701e34538d6bae488d0a2d2a8864e974e5a8a
[ "BSD-2-Clause" ]
null
null
null
# https://github.com/tomdoel/pyxnatbrowser # Author: Tom Doel www.tomdoel.com # Distributed under the Simplified BSD License. from database.restclient import RestClient class RestClientFactory: @staticmethod def create_rest_client(config): return RestClient(config)
23.75
47
0.77193
8c349faa049ad9811cf692eb9d539e322c40efd4
920
py
Python
tools/mo/openvino/tools/mo/front/tf/topk_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/front/tf/topk_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/front/tf/topk_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.ops.topk import TopK from openvino.tools.mo.front.extractor import FrontExtractorOp class TopKExtractor(FrontExtractorOp): op = 'TopK' enabled = True @classmethod def extract(...
28.75
110
0.634783
8e4a741186b9be252c5e00b12492c5484497df50
1,082
py
Python
blibs/timestamps.py
theleftsock/blibs
a4a1b2eacf5bed9ed42e0e7f651f17e9549b34e6
[ "MIT" ]
null
null
null
blibs/timestamps.py
theleftsock/blibs
a4a1b2eacf5bed9ed42e0e7f651f17e9549b34e6
[ "MIT" ]
null
null
null
blibs/timestamps.py
theleftsock/blibs
a4a1b2eacf5bed9ed42e0e7f651f17e9549b34e6
[ "MIT" ]
null
null
null
__author__ = 'biagio' import datetime import time from time import gmtime, strftime def get_ts(mode = 0): date_list = datetime.datetime.now().time() # print "date_list: ", date_list if (mode == 0): # 2015-06-02 09:52 ts = strftime("%Y-%m-%d %H:%M") if (mode == 4): # 2015-06-02 09:52:30 ...
28.473684
92
0.525878
f8f3000de868711e2b03c21f66f0b4d8b848299c
458
py
Python
Python/pico/utils.py
DSeeLP/LXBot9800
a53524b49fedffb3bd7e01d510b0318a602729e4
[ "MIT" ]
null
null
null
Python/pico/utils.py
DSeeLP/LXBot9800
a53524b49fedffb3bd7e01d510b0318a602729e4
[ "MIT" ]
null
null
null
Python/pico/utils.py
DSeeLP/LXBot9800
a53524b49fedffb3bd7e01d510b0318a602729e4
[ "MIT" ]
null
null
null
from machine import Pin, SPI from lib.ST7735 import TFT import utime buzzer = Pin(4, Pin.OUT) def buzz(time_ms: int = 250): buzzer.value(1) utime.sleep_ms(time_ms) buzzer.value(0) spi = SPI(1, baudrate=20000000, polarity=0, phase=0, sck=Pin(10), mosi=Pin(11), miso=None) # def __init__( self, ...
19.083333
52
0.648472
3b5b683f9bd896753ed6835e8df39b02d123cd96
10,260
py
Python
deli/manager/cli/commands/run.py
sandwichcloud/deli
a08bf3da59e435493326ff3c8b435a7a9e762c00
[ "MIT" ]
5
2018-02-07T05:49:09.000Z
2020-03-02T20:33:13.000Z
deli/manager/cli/commands/run.py
sandwichcloud/deli
a08bf3da59e435493326ff3c8b435a7a9e762c00
[ "MIT" ]
2
2018-02-07T01:50:49.000Z
2020-10-27T21:18:04.000Z
deli/manager/cli/commands/run.py
sandwichcloud/deli
a08bf3da59e435493326ff3c8b435a7a9e762c00
[ "MIT" ]
null
null
null
import argparse import datetime import enum import ipaddress import json import os import time import uuid from threading import RLock import arrow import urllib3 from clify.daemon import Daemon from dotenv import load_dotenv from go_defer import with_defer, defer from k8scontroller.election.elector import LeaderElect...
44.034335
120
0.69191
e21c12b439b117cae017d8a3ac1d634ca8690518
616
py
Python
config/celery.py
juusokor/osmcha-django
5daafa015d5e341aa8ad6f847be2b7cc1a204e2b
[ "BSD-2-Clause" ]
27
2015-09-06T00:39:39.000Z
2021-12-09T10:30:52.000Z
config/celery.py
juusokor/osmcha-django
5daafa015d5e341aa8ad6f847be2b7cc1a204e2b
[ "BSD-2-Clause" ]
494
2015-09-10T19:39:38.000Z
2022-03-29T08:07:37.000Z
config/celery.py
juusokor/osmcha-django
5daafa015d5e341aa8ad6f847be2b7cc1a204e2b
[ "BSD-2-Clause" ]
17
2015-08-10T22:58:56.000Z
2021-09-24T17:03:16.000Z
#-*- coding: utf-8 -*- from __future__ import absolute_import import os from django.conf import settings from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') app = Celery('config', backend='rpc://',...
23.692308
72
0.762987
258bce67d8def13a16778a93d09e9a2f1d76bb7a
628
py
Python
examples/titanic/assets/algo_constant/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
examples/titanic/assets/algo_constant/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
examples/titanic/assets/algo_constant/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import pickle import substratools as tools def constant_clf(X): return pd.DataFrame(columns=['Survived'], data=np.zeros(len(X)), dtype=np.int64) class TitanicAlgo(tools.algo.Algo): def train(self, X, y, models, rank): return (constant_clf(X), constant_clf) ...
21.655172
84
0.664013
d42b8ae8b23ffd56028125948fe72c3fc526082a
82
py
Python
utility/GeneralUtility5.py
hkuadithya/general-dynamics-data-analytics
d3bb2fa8abdc0a8d654941794f65abddc5e85cf1
[ "Apache-2.0" ]
1
2017-12-23T20:11:19.000Z
2017-12-23T20:11:19.000Z
utility/GeneralUtility5.py
hkuadithya/general-dynamics-data-analytics
d3bb2fa8abdc0a8d654941794f65abddc5e85cf1
[ "Apache-2.0" ]
null
null
null
utility/GeneralUtility5.py
hkuadithya/general-dynamics-data-analytics
d3bb2fa8abdc0a8d654941794f65abddc5e85cf1
[ "Apache-2.0" ]
null
null
null
# Analysis of First Dataset... import pandas as pd emp_df = pd.read_pickle(../)
13.666667
30
0.695122
628a01ae3a3195e0cbe02733e0432ac7ab2f45c4
406
py
Python
src/supplier/migrations/0002_auto_20190915_2139.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
src/supplier/migrations/0002_auto_20190915_2139.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
src/supplier/migrations/0002_auto_20190915_2139.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0.7 on 2019-09-15 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('supplier', '0001_initial'), ] operations = [ migrations.AlterField( model_name='supplier', name='supplierphonenumber...
21.368421
65
0.603448
c434264d41de2823c4e5d1cbdc7a7a374c2e5ab1
1,340
py
Python
web/model/aclImdb.py
java-lang-programming/web_and_machine_learning
e76109b63f1c6b3a380bb7d4ce6ed132c0cddd1e
[ "Apache-2.0" ]
null
null
null
web/model/aclImdb.py
java-lang-programming/web_and_machine_learning
e76109b63f1c6b3a380bb7d4ce6ed132c0cddd1e
[ "Apache-2.0" ]
null
null
null
web/model/aclImdb.py
java-lang-programming/web_and_machine_learning
e76109b63f1c6b3a380bb7d4ce6ed132c0cddd1e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pickle import os import numpy as np import pandas as pd import sys class Model(): def save_classifier(self, clf, clf_filename): parenr_dir_path = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + '/../') # parent_path = os.path.abspath(os.path.join(os.getcwd(), os...
34.358974
94
0.60597
785a48ad516ec31c41816ed6aa51e585e5498825
1,947
py
Python
label_passages_pkl.py
Louis-udm/Adapting-regulations-for-an-automated-reading-system
4e0ee08397dfed95a1fb4fc4429390291fdb0331
[ "Apache-2.0" ]
2
2019-08-22T19:52:40.000Z
2019-08-22T19:54:11.000Z
label_passages_pkl.py
Louis-udm/Adapting-regulations-for-an-automated-reading-system
4e0ee08397dfed95a1fb4fc4429390291fdb0331
[ "Apache-2.0" ]
null
null
null
label_passages_pkl.py
Louis-udm/Adapting-regulations-for-an-automated-reading-system
4e0ee08397dfed95a1fb4fc4429390291fdb0331
[ "Apache-2.0" ]
null
null
null
#%% import os, pickle from glob import glob from document import Document, Paragraph, Table from utils import * #%% import spacy nlp = spacy.load("en_core_web_lg") from spacy.matcher import Matcher matcher = Matcher(nlp.vocab) #%% roles=['insurance representative', 'representative in insurance of person', 'gr...
34.157895
113
0.625064
7c3edc2f7eb19dee3499d38f3b99731d9d5830f0
43,610
py
Python
client/Clients.py
MarianFr/Split_ECG_Classification
b6ef77a2512ae6119974e20232ce602d17d0c892
[ "MIT" ]
null
null
null
client/Clients.py
MarianFr/Split_ECG_Classification
b6ef77a2512ae6119974e20232ce602d17d0c892
[ "MIT" ]
null
null
null
client/Clients.py
MarianFr/Split_ECG_Classification
b6ef77a2512ae6119974e20232ce602d17d0c892
[ "MIT" ]
1
2022-03-23T11:53:16.000Z
2022-03-23T11:53:16.000Z
import struct import socket import pickle import json from torch.optim import SGD, Adam, AdamW import sys import time import random import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt #import seaborn as sns import torch import torch....
39.359206
213
0.621555
97b9a1329057768c4fde768d1a3502f73041fd46
192
py
Python
Chapter 8/hail2.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
22
2016-06-07T07:52:35.000Z
2021-11-08T13:12:21.000Z
Chapter 8/hail2.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
2
2016-05-23T08:20:54.000Z
2018-07-02T08:21:32.000Z
Chapter 8/hail2.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
27
2016-05-23T08:19:51.000Z
2021-08-31T02:46:00.000Z
def f(n): curr = n tmp = 0 while curr != 1: tmp = tmp + 1 if curr % 2 == 1: curr = 3 * curr + 1 else: curr = curr/2 return tmp
16
31
0.369792
32e324c82d84bc04e7a8035bc2b11e130e7ffb8a
343
py
Python
SRC/Chapter_07-Using-A-Database/02_DB_conn.py
archeranimesh/HeadFirstPython
8e0c84871328a6bf3a8d723341be56298440f29b
[ "MIT" ]
1
2020-12-26T19:37:14.000Z
2020-12-26T19:37:14.000Z
SRC/Chapter_07-Using-A-Database/02_DB_conn.py
archeranimesh/HeadFirstPython
8e0c84871328a6bf3a8d723341be56298440f29b
[ "MIT" ]
null
null
null
SRC/Chapter_07-Using-A-Database/02_DB_conn.py
archeranimesh/HeadFirstPython
8e0c84871328a6bf3a8d723341be56298440f29b
[ "MIT" ]
null
null
null
import mysql.connector dbconfig = { "host": "127.0.0.1", "user": "vsearch", "password": "hello", "database": "vsearchlogDB", } conn = mysql.connector.connect(**dbconfig) cursor = conn.cursor() _SQL = """describe log""" cursor.execute(_SQL) res = cursor.fetchall() for row in res: print(row) curso...
16.333333
42
0.638484
7c65f161dff86f5a66f0ccf7802dc3af6662b40d
70,148
py
Python
tests/test_connector.py
fcomuniz/aiohttp
5f03869652a02b373b9078dcc6e00be60ffa9101
[ "Apache-2.0" ]
null
null
null
tests/test_connector.py
fcomuniz/aiohttp
5f03869652a02b373b9078dcc6e00be60ffa9101
[ "Apache-2.0" ]
null
null
null
tests/test_connector.py
fcomuniz/aiohttp
5f03869652a02b373b9078dcc6e00be60ffa9101
[ "Apache-2.0" ]
null
null
null
# type: ignore # Tests of http client with custom Connector import asyncio import gc import hashlib import platform import socket import ssl import sys import uuid from collections import deque from typing import Any, Optional from unittest import mock import pytest from conftest import needs_unix from yarl import UR...
30.888595
88
0.682728
0f7086441fe4a2382b92f7346c8ec1d001bf2dd8
1,483
py
Python
veros/diagnostics/io_tools/hdf5.py
madsbk/veros
00d2c33e28f0bd098a81bd6ac48436067e7eb8f5
[ "MIT" ]
null
null
null
veros/diagnostics/io_tools/hdf5.py
madsbk/veros
00d2c33e28f0bd098a81bd6ac48436067e7eb8f5
[ "MIT" ]
null
null
null
veros/diagnostics/io_tools/hdf5.py
madsbk/veros
00d2c33e28f0bd098a81bd6ac48436067e7eb8f5
[ "MIT" ]
null
null
null
import threading import contextlib import logging @contextlib.contextmanager def threaded_io(vs, filepath, mode): """ If using IO threads, start a new thread to write the netCDF data to disk. """ import h5py if vs.use_io_threads: _wait_for_disk(vs, filepath) _io_locks[filepath].cle...
25.568966
92
0.65408