hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
2ec2995f108d272af9ac037584f7345c85dce882
1,516
py
Python
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
10
2019-04-14T12:31:42.000Z
2019-04-15T06:33:05.000Z
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
9
2019-12-04T22:39:41.000Z
2022-02-10T09:55:02.000Z
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.shortcuts import HttpResponse from django.core.mail import EmailMessage import subprocess import os PROFILES_DIR = '/code/profiles' def index(request): return render(request, 'index.html') def profile_create(request): if request.method != 'POST': ...
31.583333
114
0.672164
0
0
0
0
0
0
0
0
382
0.251979
2ec2c19a187f653438f9e1dd5d0899ca5f849f6b
2,922
py
Python
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
import sys import os import cv2 import numpy as np from matplotlib import pyplot as plt import hed curdir = os.path.abspath(os.path.curdir) sys.path.append(os.path.join(os.path.dirname(curdir), 'tf_pose')) from pycocotools.coco import COCO dataset_path = '/home/artia/prj/datasets/coco' coco = COCO(os.path.join(dataset...
36.525
110
0.718686
0
0
0
0
0
0
0
0
1,003
0.343258
2ec499bb950023d24ccdaccc92a4dd5817fc95b5
174
py
Python
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
29
2019-03-25T09:35:12.000Z
2022-01-08T22:09:03.000Z
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
null
null
null
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
4
2020-05-19T21:18:12.000Z
2021-05-18T12:49:21.000Z
dict1 = {"a": 1, "b": 2} dict2 = {"b": 3, "c": 4, 3: 9} dict3 = {"a": 2} dict4 = {"d": 8, "e": 1} print("Result of merging dict 1-4:", {**dict1, **dict2, **dict3, **dict4})
24.857143
74
0.471264
0
0
0
0
0
0
0
0
50
0.287356
2ec532c0146facd913a1b49703627fa105784fd7
1,742
py
Python
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
null
null
null
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
1
2021-03-04T08:48:38.000Z
2021-03-04T08:48:38.000Z
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
2
2020-08-26T06:36:51.000Z
2021-03-04T08:08:34.000Z
import os import time import subprocess from DIRAC import gLogger class MergeFile(object): def __init__(self): self._directlyRead = False self._localValidation = True def merge(self, fileList, outputDir, mergeName, mergeExt, mergeMaxSize, mergeCallback): allFileSize = self.__getAllFileSize(fileList)...
27.650794
115
0.644087
1,672
0.959816
0
0
0
0
0
0
141
0.080941
2ec5bb2ae4b37f160ab9e0941f0b6024ab25a311
5,727
py
Python
dojo/finding_group/views.py
alles-klar/django-DefectDojo
83630437f7259fdbe633ac21cf5715685ffa7eab
[ "BSD-3-Clause" ]
null
null
null
dojo/finding_group/views.py
alles-klar/django-DefectDojo
83630437f7259fdbe633ac21cf5715685ffa7eab
[ "BSD-3-Clause" ]
48
2021-04-14T13:02:43.000Z
2021-07-06T03:08:36.000Z
dojo/finding_group/views.py
Hijerboa/django-DefectDojo
3aea3bc3406f860c0842b0bf8800efe2c86bf81b
[ "BSD-3-Clause" ]
null
null
null
# # findings from dojo.utils import Product_Tab from dojo.forms import DeleteFindingGroupForm from dojo.notifications.helper import create_notification from django.contrib import messages from django.contrib.admin.utils import NestedObjects from django.db.utils import DEFAULT_DB_ALIAS from django.http.response import ...
41.201439
165
0.640475
0
0
0
0
5,009
0.874629
0
0
1,441
0.251615
2ec603a6f9e4717583739386a5137cf37166725f
899
py
Python
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import tempfile from pathlib import Path from yt.data_objects.time_series import get_filenames_from_glob_pattern from yt.testing import assert_raises def test_pattern_expansion(): file_list = ["fake_data_file_{}".format(str(i).zfill(4)) for i in range(10)] with tempfile.TemporaryDirectory() as tmp...
32.107143
80
0.719689
0
0
0
0
0
0
0
0
55
0.061179
2ec66dedba0a3ea331f1648a84344fc949e5d2d8
1,561
py
Python
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
9
2020-01-07T06:05:58.000Z
2020-07-03T12:24:31.000Z
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Any, Callable, Optional import torch from decouple import Module from torch import nn from .events import ( ModelForwardStartEvent, ModelForwardEndEvent, ModelInitEvent) from ..loader import LoaderProcessBatchStartEvent from ..runner import RunnerStartEvent class InferManager(Module): ...
30.607843
83
0.659193
1,269
0.81294
0
0
0
0
0
0
7
0.004484
2ec6e351dbc729dce4e6093ba50a29cd08481843
1,757
py
Python
src/mainLogging.py
madsmcmillan/banner
3af13f9f98f82a76a35fa0710b2d91e8f5700f68
[ "MIT" ]
1
2018-02-16T00:07:53.000Z
2018-02-16T00:07:53.000Z
src/mainLogging.py
npeirson/banner
111fab25186218616154427aa89cb760da27856f
[ "MIT" ]
null
null
null
src/mainLogging.py
npeirson/banner
111fab25186218616154427aa89cb760da27856f
[ "MIT" ]
1
2018-09-13T03:07:29.000Z
2018-09-13T03:07:29.000Z
############################################################################## ## Project Banner: Sensor Data Logging ## Created: 07-11-2016 by Madeline McMillan and Nate Peirson ## Texas A&M University, Department of Aerospace Engineering ## High Altitude Balloon Club ## Sensor data points are taken by this script ...
45.051282
269
0.659078
0
0
0
0
0
0
0
0
1,029
0.585657
2ec8dec92401e9edf634f58ca9898bb731b42c37
1,064
py
Python
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
# Send SMS message on WM6 phone from Python 2 # Silas S. Brown - public domain import ctypes import ctypes.wintypes as wintypes def send_SMS_message(number, unicode_text, confirm_delivery=True): print "Sending to "+number+"..." handle = wintypes.DWORD() ret = ctypes.cdll.sms.SmsOpen(u"Microsoft Text SMS Protocol...
39.407407
66
0.706767
129
0.121241
0
0
0
0
0
0
272
0.255639
2ec8fa8c17f427ed5b596ab0b26621b33bf8f593
3,861
py
Python
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
#coding=utf-8 from __future__ import print_function try: import numpy as np except: pass try: from hyperopt import Trials, STATUS_OK, tpe except: pass try: from keras.datasets import mnist except: pass try: from keras.layers.core import Dense, Dropout, Activation except: pass try: ...
23.833333
83
0.668998
0
0
0
0
0
0
0
0
1,234
0.319606
2ecac107d81b614bc0d2dcd0fc9f423d25ba08b6
4,313
py
Python
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
# # Example python script to generate a BOM from a KiCad generic netlist # # Example: Sorted and Grouped HTML BOM with advanced grouping # """ @package Generate a HTML BOM list. Components are sorted and grouped by value Fields are (if exist) Ref, Quantity, Value, Part, Footprint, Description, Vend...
33.176923
79
0.646882
0
0
0
0
0
0
0
0
2,711
0.628565
2ecb0816be05abed47d0b45283c0a0ba32a21fef
7,908
py
Python
line_extract/model_v3.py
hoslo/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
4
2019-05-27T10:23:55.000Z
2020-01-19T10:03:14.000Z
line_extract/model_v3.py
dun933/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
null
null
null
line_extract/model_v3.py
dun933/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
3
2019-08-16T18:24:02.000Z
2020-05-15T06:35:45.000Z
import os from keras.models import * from keras.layers import * from keras.optimizers import Adam import tensorflow as tf import keras import itertools import numpy as np from keras.callbacks import Callback from sklearn.metrics import confusion_matrix, f1_score, precision_score, recall_score import tensorflow as tf fr...
45.976744
113
0.68083
828
0.104704
0
0
0
0
0
0
2,323
0.293753
2ecbc23da4493780a4b43db3b26245823e15d32e
5,925
py
Python
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
3
2019-06-12T17:19:12.000Z
2022-01-07T02:10:06.000Z
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
null
null
null
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
null
null
null
''' This package comes from https://github.com/xianghuzhao/paradag It can also be installed by "pip install paradag" ''' import random class DagVertexNotFoundError(Exception): pass class DagEdgeNotFoundError(Exception): pass class DagCycleError(Exception): pass class DagData(object): def __init__...
27.430556
102
0.649451
4,164
0.702785
0
0
0
0
0
0
372
0.062785
2eccbc156b4505de0db85d95b51443c5f217b8c1
33,547
py
Python
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
55
2020-11-18T07:03:46.000Z
2022-03-29T02:47:10.000Z
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
11
2020-11-18T16:43:43.000Z
2022-02-22T20:02:22.000Z
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
11
2020-11-19T04:34:36.000Z
2022-03-01T23:48:57.000Z
import numpy as np from tqdm import tqdm from pensa.features import * from pensa.statesinfo import * # -- Functions to calculate SSI statistics across paired ensembles -- def ssi_ensemble_analysis(features_a, features_b, all_data_a, all_data_b, torsions=None, pocket_occupancy=None, pbc=True, ...
44.551129
150
0.590455
0
0
0
0
0
0
0
0
11,303
0.33693
2ecdb4a48fe7a624c03288fdd20c3df4771fcc1e
16,582
py
Python
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
import os import logging import time import unittest import urllib.parse import xml.etree.ElementTree as ElementTree from streamsx.topology.tester import Tester from streamsx.topology.context import ConfigParams, JobConfig from streamsx.build import BuildService from streamsx.rest_primitives import * logger = loggin...
40.842365
126
0.641298
15,132
0.912556
0
0
15,351
0.925763
0
0
4,822
0.290797
2ecf85b27afc09640a82b97f465143a5ec26f976
1,730
py
Python
core/rewrite.py
DCZYewen/NullDCZHFS
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
1
2020-05-13T15:54:36.000Z
2020-05-13T15:54:36.000Z
core/rewrite.py
DCZYewen/NullcatServer
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
null
null
null
core/rewrite.py
DCZYewen/NullcatServer
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
null
null
null
import asyncio from .config import conf from .logger import main_logger from .web import HTTPRequest, http301, WebHandler log = main_logger.get_logger() target_port = conf.get("https", "port") class Redirect_Handler(WebHandler): async def get(self): if self.request.head.get("X-Local"): return ...
34.6
109
0.631792
507
0.293064
0
0
0
0
1,482
0.856647
318
0.183815
2ecfa0d95f020f2b485feb32481f32e2baf2f0f3
3,619
py
Python
writing/scripts/QD-other-metrics.py
johanere/qflow
5453cd5c3230ad7f082adf9ec1aea63ab0a4312a
[ "MIT" ]
5
2019-07-24T21:46:24.000Z
2021-06-11T18:18:24.000Z
writing/scripts/QD-other-metrics.py
johanere/qflow
5453cd5c3230ad7f082adf9ec1aea63ab0a4312a
[ "MIT" ]
22
2019-02-19T10:49:26.000Z
2019-07-18T09:42:13.000Z
writing/scripts/QD-other-metrics.py
bsamseth/FYS4411
72b879e7978364498c48fc855b5df676c205f211
[ "MIT" ]
2
2020-11-04T15:17:24.000Z
2021-11-03T16:37:38.000Z
import time from datetime import timedelta import numpy as np from qflow.wavefunctions import ( JastrowPade, SimpleGaussian, WavefunctionProduct, Dnn, InputSorter, ) from qflow.wavefunctions.nn.layers import DenseLayer from qflow.wavefunctions.nn.activations import tanh, exponential from qflow.hami...
28.273438
84
0.727273
0
0
0
0
0
0
0
0
375
0.10362
2ed116d59c2b0c901b520091f0adae6d5dd2c1e7
2,721
py
Python
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
# CON_TC28_ManyArticle: Ismételt és sorozatos adatbevitel adatforrásból # a szükséges csomagok, modulok betöltése from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager import time import csv def test_CON_TC28_ManyArticle(): # webdriver konfiguráció, tesztelt oldal megnyitása ...
35.337662
83
0.642411
0
0
0
0
0
0
0
0
826
0.29895
2ed2120ed3b51f8f3b66f633df4e04159fd5c611
2,943
py
Python
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
from flask_discord_interactions import CommandOptionType, Context, Member def test_subcommand(discord, client): group = discord.command_group("group") @group.command() def sub_one(ctx): return "sub one" @group.command() def sub_two(ctx): return "sub two" assert client.run("g...
29.138614
77
0.53245
0
0
0
0
1,649
0.560313
0
0
731
0.248386
2ed237d4467097a51db0627eb2ded835cad1f51c
783
py
Python
Chatbot_Model/Time_Convert/setup.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
8
2019-08-12T12:38:35.000Z
2022-02-21T03:25:04.000Z
Chatbot_Model/Time_Convert/setup.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
null
null
null
Chatbot_Model/Time_Convert/setup.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
5
2020-01-08T15:30:38.000Z
2022-02-15T02:39:46.000Z
#-*- coding:utf-8 _*- """ @author:charlesXu @file: setup.py @desc: 设置 @time: 2019/05/23 """ from setuptools import setup setup( name="TimeConverter", version="1.1.0", keywords=("time", "nlp"), description="...", long_description="...", license="MIT Licence", url="http://test.com", auth...
23.727273
52
0.556833
0
0
0
0
0
0
0
0
374
0.475222
2ed2d64e061c92079cee2868a26ed1b0890a057c
6,963
py
Python
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
1
2020-01-24T16:15:31.000Z
2020-01-24T16:15:31.000Z
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
null
null
null
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
null
null
null
class SudokuSolver: def __init__(self, query_string, rows = 'ABCDEFGHI', columns = '123456789'): """ Initializing the various variables required here """ self.query_string = query_string self.rows = rows # The Rows are labeled from A to Z self.colu...
42.981481
144
0.564268
6,965
1
0
0
0
0
0
0
2,655
0.381192
2ed3ab82046ebfee2aac3079195285f7716ed549
4,599
py
Python
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
5
2022-01-28T20:30:34.000Z
2022-03-17T09:26:52.000Z
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
9
2022-01-27T03:50:28.000Z
2022-02-08T18:42:17.000Z
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
2
2022-02-03T17:32:43.000Z
2022-03-24T16:38:49.000Z
import numpy as np import pytest from dnnv.verifiers.common.reductions.iopolytope import * from dnnv.verifiers.common.reductions.iopolytope import Variable def setup_function(): Variable._count = 0 def test_update_constraint_single_index(): v = Variable((1, 3, 2, 2)) hspoly = HyperRectangle(v) var...
27.538922
87
0.607088
0
0
0
0
0
0
0
0
225
0.048924
2ed7a7df06cc4cee499aace6ba6f51568d3566d0
615
py
Python
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
null
null
null
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
null
null
null
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
1
2022-03-18T06:50:55.000Z
2022-03-18T06:50:55.000Z
# Copyright (c) 2022, Rabie Moses Santillan and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class PawnTicketJewelry(Document): def before_save(self): if frappe.db.exists('Pawn Ticket Jewelry', self.name) == None: settings = frappe.get_d...
32.368421
64
0.756098
443
0.720325
0
0
0
0
0
0
166
0.269919
2ed7cd4779677abe2c51e5cf328f96abc94a57d9
346
py
Python
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
null
null
null
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
null
null
null
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
1
2022-03-28T17:26:46.000Z
2022-03-28T17:26:46.000Z
import matplotlib.pyplot as plt # Example plot X = range(-5, 5) # Note the missing +5! Y = [pow(x, 2) for x in X] plt.plot(X, Y) plt.show() plt.xlabel('X', color='fuchsia', fontweight='bold') plt.ylabel('f(x)') plt.plot(X, Y, 'o-', label='squared') # other styles: '--', ':' plt.legend(loc="upper left") plt.savefig...
21.625
63
0.632948
0
0
0
0
0
0
0
0
132
0.381503
2ed935028fe8c43b6cd7752c0576990680836a21
1,866
py
Python
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
null
null
null
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
5
2021-03-19T02:24:29.000Z
2022-02-10T13:19:13.000Z
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
null
null
null
from .analyser import Analyser from project.bots.response.response_answer import ResponseAnswer from project.bots.response.response import BotResponse from project.bots.response.unknown_response import UnknownResponse from project.bots.documents import MessagesDocument from project.bots.models import Messages class E...
35.884615
87
0.65702
1,558
0.832265
0
0
0
0
0
0
192
0.102564
2ed98896d9e5eef596d50440a0d845385714e30d
1,258
py
Python
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
from pathlib import Path import json class Settings: def __init__(self): self.config = {} self.path_settings_file = Path.home().joinpath('.breefkase') self.breefkase_dir = None self.load() def load(self): f = self.path_settings_file try: with open(f...
34.944444
87
0.569952
1,218
0.968203
0
0
0
0
0
0
303
0.240859
2eda6e2c94adaa4ac4b0c55924f01d3dee45cd41
244
py
Python
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
# _*_ coding:utf-8 _*_ # 作者:hungryboy # @Time: 2021/1/28 # @File: class01.py print("欢迎来到hungryboy的python世界!") def test(): print("这是一个函数,在Demo类外面") class Demo: print("this is a demo") def demo(self): print("这是Demo类中的方法!")
16.266667
32
0.631148
106
0.348684
0
0
0
0
0
0
205
0.674342
2edb23164b8db38139af3fd55a1813a6f7890fb5
4,751
py
Python
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
38.942623
115
0.733109
3,537
0.738259
0
0
2,816
0.587769
0
0
1,169
0.243999
2edbbcc4cbccb7869b9b3a5ffedc9be2301ea298
371
py
Python
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
14
2017-03-20T02:37:18.000Z
2022-01-23T05:36:39.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
7
2021-03-31T20:12:05.000Z
2022-03-12T00:55:06.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
21
2017-03-06T08:55:24.000Z
2021-12-17T04:32:39.000Z
import unittest from data_cube_utilities import dc_coastal_change class TestCoastalChange(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_compute_coastal_change(self): pass def test_mask_mosaic_with_coastlines(self): pass def test_m...
16.863636
51
0.703504
301
0.811321
0
0
0
0
0
0
0
0
2edbc9f51c11e70b2a76fe52fbaa4aafdb7938e5
502
py
Python
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
1
2020-09-22T13:04:58.000Z
2020-09-22T13:05:23.000Z
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/AEs-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
import argparse from joblib import Parallel, delayed from scripts.ssc.TopoAE_ext.config_libraries.swissroll import swissroll_run1 from src.models.WitnessComplexAE.train_engine import simulator_TopoAE_ext def parse_input(): parser = argparse.ArgumentParser() parser.add_argument("--threads", default=30, help=...
29.529412
90
0.788845
0
0
0
0
0
0
0
0
40
0.079681
2edc331bf07f9da06321e3e15ed10feb5f3f2966
27
py
Python
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem363(): pass
9
17
0.62963
0
0
0
0
0
0
0
0
0
0
2edc3f792e182de7dfa82061e009b428d2e09ffd
41,666
py
Python
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
3
2020-10-22T13:28:00.000Z
2022-03-24T19:57:22.000Z
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
null
null
null
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
1
2020-10-22T13:29:51.000Z
2020-10-22T13:29:51.000Z
# -*- coding: utf-8 -*- from nlplingo.common.utils import DEPREL_TO_ID # ==> from nlplingo.oregon.event_models.uoregon.models.pipeline._01.local_constants import * from fairseq.models.roberta import XLMRModel from nlplingo.oregon.event_models.uoregon.tools.utils import * from nlplingo.oregon.event_models.uoregon.layer...
52.875635
167
0.47672
38,621
0.926919
0
0
0
0
0
0
27,757
0.666179
2edc62a2e3c3d4664ec1267a615b4c63d54b1f65
3,203
py
Python
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
# ref: https://www.tensorflow.org/guide/keras/rnn # ref: https://www.tensorflow.org/tutorials/structured_data/time_series from __future__ import absolute_import, division, print_function, unicode_literals import collections import matplotlib.pyplot as plt import numpy as np import pandas as pd import tensorflow as tf ...
31.097087
107
0.674056
0
0
0
0
0
0
0
0
775
0.240161
2ede893a1fd4b8b59efb44450c5f33e55ff0017c
436
py
Python
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
1
2021-06-18T16:29:49.000Z
2021-06-18T16:29:49.000Z
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
null
null
null
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
null
null
null
import os import requests # export FASTAPI_ROOT="http://fastapi-micro-service:8000" FASTAPI_ROOT = os.environ.get("FASTAPI_ROOT") def test_hello_world(): endpoint_url = f"{FASTAPI_ROOT}/" response = requests.get(endpoint_url) assert response.status_code == 200 response_json = response.json() asse...
27.25
57
0.731651
0
0
0
0
0
0
0
0
110
0.252294
2ee26b71fd2072fa05c57d9cb340d3820903a6ac
221
py
Python
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
null
null
null
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
1
2018-11-20T16:17:03.000Z
2018-11-20T16:17:03.000Z
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
3
2018-09-18T00:00:02.000Z
2018-12-05T17:16:30.000Z
from cloudmesh.burn.image import Image import os i = Image() os.system("touch ~/.cloudmesh/cmburn/images/junk.img") os.system("touch ~/.cloudmesh/cmburn/images/junk.zip") r = i.ls() print (r) r = i.clear() print (r)
14.733333
54
0.687783
0
0
0
0
0
0
0
0
86
0.38914
2ee2e6731a1c9e2346795ca28318bd107b7a7619
2,963
py
Python
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
""" * Assignment: Sequence Slice Train/Test * Required: yes * Complexity: easy * Lines of code: 4 lines * Time: 8 min English: 1. Divide `data` into two lists: a. `train`: 60% - training data b. `test`: 40% - testing data 2. Calculate split point: a. `data` length multiplied by percent ...
31.860215
78
0.577118
0
0
0
0
0
0
0
0
2,555
0.857958
2ee382ef7e4e52fef0695c81d210f8710fbaae22
26,869
py
Python
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from dateutil import tz import pytz from datetime import date from django.core.validators import MinValueValidator from django.db import transaction from profil.models import KioskUser from django.db import connection from django.conf import settings from ...
37.526536
354
0.737318
24,859
0.925193
0
0
15,473
0.575868
0
0
6,667
0.24813
2ee40da39bd2d751bdd4296c97d932bca4108462
910
py
Python
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
import sqlite3 import re from sys import prefix conn = sqlite3.connect('orgdb.sqlite') cur = conn.cursor() cur.execute('DROP TABLE IF EXISTS Counts') cur.execute(''' CREATE TABLE Counts (org TEXT, count INTEGER)''') prefix='../file/' fname = input('Enter file name: ') if (len(fname) < 1): fname = 'mbox-short.tx...
21.162791
69
0.627473
0
0
0
0
0
0
0
0
342
0.375824
2ee7c94defef9b021d96821b4fb3f10b7d2d409d
694
py
Python
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
1
2021-05-13T15:08:12.000Z
2021-05-13T15:08:12.000Z
from django.db import models from profiles.models import Profile # Create your models here. class Group(models.Model): users = models.ManyToManyField(Profile, blank=True, related_name='groups') owner = models.ForeignKey( Profile, on_delete=models.CASCADE, related_name='+') name = models.CharField...
34.7
85
0.724784
598
0.861671
0
0
0
0
0
0
141
0.20317
2ee7fb23d90df230952beef9e9b26c2d9645d6d2
7,111
py
Python
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import sys from torch.utils.data import DataLoader import argparse import copy sys.path.append("../utils/") import matplotlib.pyplot as plt import numpy as np from models import * from social_utils import * import yaml parse...
39.071429
487
0.696527
0
0
0
0
0
0
0
0
1,970
0.272438
2ee7fd84d8fa002e0d13f33ba310cdac5cb3d3f4
3,386
py
Python
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
import copy import json def process_template(template, params): new_template = copy.deepcopy(template) status = 'success' for name, resource in template['Resources'].items(): if 'Count' in resource: #Get the number of times to multiply the resource count = new_template['Res...
46.383562
138
0.674247
0
0
0
0
0
0
0
0
1,298
0.383343
2ee9442cf0b747887f56ef399cd05098b20a5c95
176,065
py
Python
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
1
2019-09-06T11:55:29.000Z
2019-09-06T11:55:29.000Z
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
null
null
null
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
null
null
null
MWZWSmMhtUsRrINuSTzFrxaxjBTBJqSWKuKnGWRXkqWQJqFZtHcGtyMgFWrExRGweSHLOCtzbXotCELvYZdsUDmsxKLYPEnCGzbpsNkLrKPigaoVayVePBGtbjfjhKyb=""" \x23\x20\x2d\x2a\x2d\x20\x63\x6f\x64\x69\x6e\x67\x3a\x20\x75\x74\x66\x2d\x38\x20\x2d\x2a\x2d\x0a \x69\x6d\x70\x6f\x72\x74\x20\x64\x61\x74\x65\x74\x69\x6d\x65\x0a \x53\x4b\x4f\x47\x5a\x7a\...
912.253886
1,172
0.749513
0
0
0
0
0
0
0
0
175,800
0.998495
2ee971f0a382fe6fbd625d25b5631b8db3539cec
8,745
py
Python
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requi...
31.010638
100
0.641624
0
0
0
0
0
0
0
0
1,756
0.2008
2ee978484eedfa6f0ee35b6d2e588d59022d7378
461
py
Python
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
# t210.py from machine import Pin from simp_py import tft count=0 def counting(v): global count, show, p5 if p5.value()==0: count+=1 else: count-=1 btnA= Pin(39,Pin.IN) a = Pin(5, Pin.IN,Pin.PULL_UP) b = Pin(2, Pin.IN,Pin.PULL_UP) a.irq(counting,trigger=Pin.IRQ_RISING| Pin.IRQ_FALLING) pcount=-1 while 1: ...
20.043478
55
0.646421
0
0
0
0
0
0
0
0
23
0.049892
2ee9b23e78afb82a590a362f8bb474641574a4b8
2,876
py
Python
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import datetime import logging import pytz from django.utils import timezone from django.utils.dateparse import parse_date, parse_datetime logger = logging.getLogger(__name__) Y2K = datetime.datetime(2000, 1, 1) def formated_timedelta(total_seconds): """ Format time delta as H:M:S\ :param total_secon...
27.132075
92
0.638039
0
0
0
0
0
0
0
0
896
0.311544
2eeba743b811e114065608b85445aefb3e686e15
297
py
Python
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
1
2022-03-24T21:44:59.000Z
2022-03-24T21:44:59.000Z
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
null
null
null
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
null
null
null
"""Contains structure parsers.""" __all__ = [ "alarms", "device_parameters", "frame_versions", "lambda_", "mixer_parameters", "mixers", "modules", "output_flags", "outputs", "statuses", "temperatures", "thermostats", "uid", "var_string", ]
15.631579
33
0.56229
0
0
0
0
0
0
0
0
197
0.6633
2eecd8b51024630d653e89416e0c7dd612ac554f
2,805
py
Python
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
24
2021-04-14T11:57:42.000Z
2022-03-23T17:09:12.000Z
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
9
2021-04-23T08:44:13.000Z
2021-09-15T13:37:42.000Z
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
15
2021-04-14T11:53:58.000Z
2022-02-28T16:45:47.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # Licensed under the Apache License, Version 2.0 https://aws.amazon.com/apache-2-0/ from api.connector import AWSConnector import os import json import time import argparse try: client_config_file = os...
28.622449
99
0.671301
0
0
0
0
0
0
0
0
941
0.335472
2eee783f48eb0a497623c6955f7e5e7628fdc3db
1,745
py
Python
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
import random #setting variables ranwins = 0 conwins = 0 ties = 0 takes = 1000 for quiz in range (0, takes): rancorrect=0 ranincorrect=0 concorrect=0 conincorrect=0 revisions=1000 possible = 4 # the consistent variable remains constant through the entire sequence # and is compared to the same s...
35.612245
118
0.65788
0
0
0
0
0
0
0
0
771
0.441834
2eee9d309fd7f5c6301b77cefb4ea94494b674f4
901
py
Python
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
null
null
null
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
1
2021-06-01T23:52:57.000Z
2021-06-01T23:52:57.000Z
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
null
null
null
import threading import time from typing import Callable, List, Dict class Scheduler(): def __init__(self, interval:int, function:Callable, *args, **kwargs) -> None: self._timer = None self.interval = interval self.function = function self.args = args self.kwargs = kwargs ...
29.064516
81
0.584906
831
0.922309
0
0
0
0
0
0
0
0
2ef0ae28dcfa3b8a86e8b20eea0bb85319cef17d
356
py
Python
polyglotdb/query/discourse/query.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
25
2016-01-28T20:47:07.000Z
2021-11-29T16:13:07.000Z
polyglotdb/query/discourse/query.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
120
2016-04-07T17:55:09.000Z
2022-03-24T18:30:10.000Z
polyglotdb/query/discourse/query.py
PhonologicalCorpusTools/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
10
2015-12-03T20:06:58.000Z
2021-02-11T03:02:48.000Z
from ..base import BaseQuery from .attributes import DiscourseNode class DiscourseQuery(BaseQuery): """ Class for generating a Cypher query over discourses """ def __init__(self, corpus): to_find = DiscourseNode(corpus=corpus.corpus_name, hierarchy=corpus.hierarchy) super(DiscourseQue...
27.384615
86
0.730337
285
0.800562
0
0
0
0
0
0
67
0.188202
2ef23bdc25e698b08ae27de75aab909449244e12
5,166
py
Python
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
null
null
null
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
null
null
null
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
1
2021-01-09T18:27:23.000Z
2021-01-09T18:27:23.000Z
import pymysql as mdb import sys class App(object): def __init__(self, ip, user, passwd, db): # Menú de la interfaz de texto self.mainMenu='''\n Videoclub: ------------------ 0: Salir. 1: Dar de alta un socio. 2: Dar de baja un socio. 3: Cerrar un alquiler. 4: Consultar DVDs para una película. 5: Con...
30.210526
139
0.578784
4,968
0.958149
0
0
0
0
0
0
1,963
0.378592
2ef25b45df51b2f3ee20981837c4f8427530bc4f
2,533
py
Python
pymc3/plots/energyplot.py
rsumner31/pymc3-2
e824294ddfb45610536cad07394b8c290904c38d
[ "Apache-2.0" ]
1
2019-03-01T06:05:48.000Z
2019-03-01T06:05:48.000Z
pymc3/plots/energyplot.py
shunanzhang/pymc3
fde52a4a69be1b0887a2f7861801fb48c941bbe6
[ "Apache-2.0" ]
null
null
null
pymc3/plots/energyplot.py
shunanzhang/pymc3
fde52a4a69be1b0887a2f7861801fb48c941bbe6
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np try: import matplotlib.pyplot as plt except ImportError: # mpl is optional pass from .kdeplot import kdeplot def energyplot(trace, kind='kde', figsize=None, ax=None, legend=True, shade=0.35, bw=4.5, frame=True, kwargs_shade=None, **kwargs): """Plot energ...
28.460674
99
0.620213
0
0
0
0
0
0
0
0
1,292
0.510067
2ef3c2563763d28a137338103321c672c4fc64a8
6,852
py
Python
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, SubmitField, BooleanField, FieldList, TextAreaField, IntegerField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from wtforms.fields.html5...
42.559006
113
0.627116
6,383
0.931553
0
0
0
0
0
0
1,030
0.150321
2ef74fe559909b6050f7a7dd49867a660fe27a5c
14,986
py
Python
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
from imutils.object_detection import non_max_suppression from imutils import paths, resize import numpy as np import argparse import imutils import cv2 from math import cos, sin, atan import time def find_body_part(mask, ratio_y, ratio_x): bodyPartAverage = 0 bodyPart = np.zeros( (int(mask.shape[0] / ...
37.465
133
0.61117
0
0
0
0
0
0
0
0
2,252
0.150274
2ef86256c31b8117ad52ae4437715bf8e3b2b1af
2,027
py
Python
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from __future__ import print_function import argparse import traceback import sys from . import io from . import utl def main(): parser = argparse.ArgumentParser(description="convert between zeke dump files and directory structures") parser.add_argument("-f", "--file", metavar="DUMP", he...
38.245283
112
0.587074
0
0
0
0
0
0
0
0
571
0.281697
2ef8ca77af067b0f173acd5d082a652fd6a6e7d5
5,470
py
Python
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import os from pathlib import Path from typing import Optional import click from clin.clinfile import calculate_scope from clin.config import ConfigurationError, load_config from clin.nakadi import Nakadi, NakadiError from clin.processor import Processor, ProcessingError from cli...
28.195876
88
0.635466
0
0
0
0
4,931
0.901463
0
0
1,181
0.215905
2ef9edaf1fc48d11773cf0a061364a9a10b3eee7
13,668
py
Python
movo_common/movo_ros/src/movo/movo_control_marker.py
zkytony/kinova-movo
37d7454b2dc589d44133f3913f567b9cc321a66d
[ "BSD-3-Clause" ]
1
2021-06-24T19:20:01.000Z
2021-06-24T19:20:01.000Z
movo_common/movo_ros/src/movo/movo_control_marker.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
null
null
null
movo_common/movo_ros/src/movo/movo_control_marker.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
1
2020-01-21T11:05:24.000Z
2020-01-21T11:05:24.000Z
"""-------------------------------------------------------------------- Copyright (c) 2017, Kinova Robotics 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: * Redistributions of source code mus...
44.090323
117
0.631694
11,313
0.8277
0
0
0
0
0
0
2,849
0.208443
2efbe656bc169d6f0a48e304d2e05f7b7b7fd9bb
412
py
Python
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
null
null
null
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
62
2021-03-23T18:40:32.000Z
2022-01-18T22:34:47.000Z
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
null
null
null
# Copyright (c) 2021 EcoFOCIpy """Setup script for installing EcoFOCIpy.""" import sys from setuptools import setup if sys.version_info[0] < 3: error = """ EcoFOCIpy requires the Python 3.8 or above, but will install on all versions of python3. Python {py} detected. """.format(py='.'.join([str(v...
20.6
67
0.65534
0
0
0
0
0
0
0
0
224
0.543689
2efdf97fa86eb1016906f47bfcb322cf41ba7f62
288
py
Python
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
2
2021-05-06T11:11:33.000Z
2021-06-15T19:15:38.000Z
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
9
2021-04-07T13:47:23.000Z
2021-06-28T16:08:52.000Z
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
2
2021-11-05T20:35:09.000Z
2021-12-04T14:38:17.000Z
from nltk.corpus import stopwords # Remove stop words stop_words = set(stopwords.words("english")) def remove_stop_words(sentence): filtered_sentence = [] for w in sentence: if w not in stop_words: filtered_sentence.append(w) return filtered_sentence
19.2
44
0.701389
0
0
0
0
0
0
0
0
28
0.097222
2efdff39a69d773c8b9c3618b0312529b55b1b03
3,781
py
Python
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
1
2022-03-22T14:59:01.000Z
2022-03-22T14:59:01.000Z
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
import os import torch import random import numpy as np import math import torch.distributions as pyd import psutil import datetime class TanhTransform(pyd.transforms.Transform): domain = pyd.constraints.real codomain = pyd.constraints.interval(-1.0, 1.0) bijective = True sign = +1 def __init__(s...
25.375839
137
0.633166
2,260
0.597725
0
0
207
0.054747
0
0
634
0.167681
2c004e45ea18286ed9625f6273b5024c69f28852
7,374
py
Python
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
null
null
null
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
null
null
null
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
2
2017-02-06T15:30:38.000Z
2019-03-05T15:01:40.000Z
def downloader(year, month, day, week): #downloads the data from Nordpool from download import download from jsonhandler import importJSON, writeJSON time = str("{:4d}-{:02d}-{:02d}".format(year, month,day)) data = importJSON("tasklists/tasklist.json") if time != data["downloader_time"]: ...
34.138889
157
0.527122
0
0
0
0
0
0
0
0
1,778
0.239881
2c0089beb61c511d6d88942a670bc8195c3371e1
4,213
py
Python
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import base64 import json import random from unittest.mock import create_autospec import pytest from pytest import fixture from bai_kafka_utils.executors.descriptor import BenchmarkDescriptor, DescriptorError from transpiler.bai_knowledge import ( BaiKubernetesObjectBuilder, SingleRunBenchmarkKubernetesObject...
31.676692
115
0.751484
0
0
0
0
211
0.050083
0
0
292
0.069309
2c01ab269b47c91f4b509f0f33edc7280032fd38
393
py
Python
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
3,592
2017-03-12T19:44:07.000Z
2022-03-30T16:03:33.000Z
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,648
2017-03-12T23:44:34.000Z
2022-03-31T15:28:38.000Z
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,736
2017-03-13T14:01:28.000Z
2022-03-31T08:14:24.000Z
from CTFd.constants import RawEnum class FreezeTimes(str, RawEnum): NOT_STARTED = "2017-10-3" # Tuesday, October 3, 2017 STARTED = "2017-10-5" # Thursday, October 5, 2017 ENDED = "2017-10-7" # Saturday, October 7, 2017 START = "1507089600" # Wednesday, October 4, 2017 12:00:00 AM GMT-04:00 DST ...
39.3
80
0.666667
355
0.903308
0
0
0
0
0
0
242
0.615776
2c02adf446921c10d0ddaf0fd8239df8c3089858
1,050
py
Python
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases import os class CheckAssetsPath(Task): description = 'Checking whether the assets path exist' phase = phases.preparation @classmethod def run(cls, info): from bootstrapvz.common.exceptions import TaskError assets = info.manifest.plugins[...
26.923077
89
0.746667
959
0.913333
0
0
652
0.620952
0
0
227
0.21619
2c068286183dd2c4b572929f61ede382d5ddfb4a
295
py
Python
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-17 20:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comms', '0011_auto_20170606_1731'), ('comms', '0011_auto_20170217_2039'), ] operations = [ ]
17.352941
48
0.623729
184
0.623729
0
0
0
0
0
0
135
0.457627
2c06caf4f37892f4a59ced3cc2b2789dc5ebd2dd
370
py
Python
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
18
2017-12-19T07:55:17.000Z
2020-03-12T11:07:45.000Z
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
1
2019-04-18T10:31:41.000Z
2019-05-23T06:47:24.000Z
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
5
2018-06-06T00:51:48.000Z
2020-03-12T11:07:46.000Z
import resnet3 as net import numpy as np import cv2 img = cv2.imread('9_1.jpg') res1 = net.eval(img.reshape([-1,128,128,3])) img = cv2.imread('10_1.jpg') res2 = net.eval(img.reshape([-1,128,128,3])) res1 = res1/np.linalg.norm(res1) res2 = res2/np.linalg.norm(res2) cosres = res1*res2 cosres = cosres.sum() print(...
20.555556
44
0.681081
0
0
0
0
0
0
0
0
35
0.094595
2c07a21caf70e36b4396fdb8399d6c1facb5f0c6
2,988
py
Python
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2015 Google 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 by applicable law or ag...
36.888889
79
0.710843
2,039
0.682396
0
0
311
0.104083
0
0
1,807
0.604752
2c07c0573397722d3a10b277c708abff836c1571
1,161
py
Python
snekomatic/db.py
wgwz/snekomatic
316f5c096aad7011953433324829e4614c283cd9
[ "Apache-2.0", "MIT" ]
1
2021-07-07T14:36:06.000Z
2021-07-07T14:36:06.000Z
snekomatic/db.py
wgwz/snekomatic
316f5c096aad7011953433324829e4614c283cd9
[ "Apache-2.0", "MIT" ]
1
2021-06-02T02:37:16.000Z
2021-06-02T02:37:16.000Z
snekomatic/db.py
webknjaz/snekomatic
3dbd84155aee5b485c7626ff2e471b949e971616
[ "Apache-2.0", "MIT" ]
null
null
null
import os import psycopg2 class PersistentStringSet: def __init__(self, name): self._table_name = f"persistent_set_{name}" def _conn(self): conn = psycopg2.connect(os.environ["DATABASE_URL"]) cursor = conn.cursor() cursor.execute( f""" CREATE TABLE IF N...
25.8
71
0.459087
1,132
0.975022
0
0
0
0
0
0
391
0.336779
2c08732fa0a75fdc2e73479ce826dbcb4dc29a51
71
py
Python
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
10
2016-06-09T08:23:10.000Z
2017-07-31T01:26:06.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
11
2016-06-14T14:07:44.000Z
2017-05-24T12:49:34.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
2
2018-03-14T02:14:03.000Z
2019-06-06T06:54:13.000Z
# -*- coding: utf-8 -*- class RateExceededError(Exception): pass
11.833333
35
0.633803
44
0.619718
0
0
0
0
0
0
23
0.323944
2c0874ebe77cdf2687aca06582ce38fe6c2c0b1e
2,193
py
Python
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
192
2018-04-18T16:11:41.000Z
2022-03-29T07:22:20.000Z
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
88
2018-03-24T17:30:27.000Z
2019-06-01T00:20:39.000Z
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
43
2018-04-21T07:38:37.000Z
2020-06-14T11:01:08.000Z
from online_net import OnlineNet import utils import printer import asyncio # 领取银瓜子 async def GetAward(): temp = await OnlineNet().req('get_time_about_silver') # print (temp['code']) #宝箱领完返回的code为-10017 if temp['code'] == -10017: printer.info(["# 今日宝箱领取完毕"]) else: time_start = temp[...
34.265625
85
0.564523
0
0
0
0
0
0
2,274
0.947105
629
0.261974
2c0aca15167ff5ae1f5d402750c284f46ad21e27
1,585
py
Python
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
from keras import backend as K from skimage.transform import resize import tensorflow as tf K.set_image_data_format('channels_last') def true_pos(y_true, y_pred): return K.sum(y_true * K.round(y_pred)) def false_pos(y_true, y_pred): return K.sum(y_true * (1. - K.round(y_pred))) def false_neg(y_true, y_pred...
32.346939
86
0.68265
0
0
0
0
0
0
0
0
492
0.31041
2c0c97ce7d6fee1a7e7c8b3b3c48cdc6e87f84af
1,968
py
Python
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
2
2022-01-23T11:03:37.000Z
2022-02-26T10:54:10.000Z
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-06 23:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0009_auto_20210806_2012'), ] operations = [ migrations.RemoveField( model_name='device',...
32.8
110
0.569106
1,842
0.935976
0
0
0
0
0
0
385
0.19563
2c0ca091ba8017a6ea07dedf32869a44838d16fc
537
py
Python
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
1
2020-06-09T09:49:02.000Z
2020-06-09T09:49:02.000Z
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
null
null
null
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
null
null
null
split_string = "This string has been \nsplit over\nseveral\nlines" print(split_string) tabbed_string = "1\t2\t3\t" print(tabbed_string) print('Hello what\'s the situation like. He\'s is not responding') print("Hello what's the situation like. He's is not responding") print("""Hello what's the situation like. He's is ...
23.347826
68
0.713222
0
0
0
0
0
0
0
0
402
0.748603
2c0ca4433555acb470f71744f8f25a30302d9742
299
py
Python
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
from app.helpers.uuid_helper import is_valid_uuid from app.libs.utils import convert_tx_id def test_convert_tx_id(): tx_id_to_convert = "bc26d5ef-8475-4710-ac82-753a0a150708" assert is_valid_uuid(tx_id_to_convert) assert convert_tx_id(tx_id_to_convert) == "BC26 - D5EF - 8475 - 4710"
29.9
73
0.782609
0
0
0
0
0
0
0
0
65
0.217391
2c0d77717e0ceda03134bdd343f10e5c508f5d65
2,381
py
Python
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
"""csi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
49.604167
99
0.726585
0
0
0
0
0
0
0
0
1,308
0.549349
2c0dcca26a8379d174630dc910c5bb9b01b371c9
1,179
py
Python
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
1
2018-01-15T14:44:36.000Z
2018-01-15T14:44:36.000Z
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
null
null
null
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-21 06:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cryptographer', '0001_cryptographer_user'), ('challen...
31.026316
115
0.614928
990
0.839695
0
0
0
0
0
0
305
0.258694
2c0e286930dd876ebcf8ffacab4cb8d169bb79d5
1,219
py
Python
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
1
2020-04-30T07:09:43.000Z
2020-04-30T07:09:43.000Z
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
null
null
null
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
1
2020-05-14T22:33:31.000Z
2020-05-14T22:33:31.000Z
import pdb import argparse from config.load_config import load_config load_config() class CommandOptions: dmcheckuserscreenname = None class Migration: def __init__(self): #tested self.cmd_options = CommandOptions() def read_command(self): #tested parser = argparse.Argumen...
32.945946
100
0.725185
993
0.814602
0
0
0
0
0
0
160
0.131255
2c0f7bcba9525064478def51911f22f43bace868
2,055
py
Python
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.test.client import Client from django.utils import unittest from django.test import TestCase from django.test.utils import override_settings class J...
35.431034
121
0.686618
1,590
0.773723
0
0
472
0.229684
0
0
541
0.26326
2c0ffd20ed5cf644e56c8cdc6baf64027cec15dd
4,034
py
Python
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
7
2019-07-15T08:49:38.000Z
2019-11-30T01:09:12.000Z
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
10
2019-07-17T00:00:29.000Z
2022-03-11T23:50:36.000Z
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
3
2019-08-02T09:06:32.000Z
2021-07-06T11:49:55.000Z
import os import subprocess import argparse import utils as ut import time """ A simple script for running prediction on a multiple sessions, fusing the resulting point clouds, and then uploading the results to sketchfab, as well as copying them to a more convenient location on the file system. """ def write_results...
47.458824
141
0.658899
0
0
0
0
0
0
0
0
1,414
0.350521
2c10c32184214d224d14e5d351cf14cf93695fa6
349
py
Python
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
1
2021-01-06T22:12:30.000Z
2021-01-06T22:12:30.000Z
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
print(f'{"CÁLCULO DE PROGRESSÃO ARITMÉTICA":=^60}') print() a1 = int(input('Digite o primeiro termo da PA: ')) r = int(input('Digite a razão da PA: ')) an = a1 + 10 * r # Cálculo termo geral da PA, para saber qual o último termo da PA, "10" são a quantidade de termos # da PA for c in range(a1, an, r): print(f"{c...
29.083333
116
0.630372
0
0
0
0
0
0
0
0
230
0.646067
2c11e850d2be5882a095619304bc91ffdaa33b4e
7,176
py
Python
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
null
null
null
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
6
2021-02-08T12:34:15.000Z
2021-07-29T15:24:02.000Z
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
null
null
null
"""Portall's GeoDataFrame wrappers.""" from __future__ import annotations import geopandas as gpd from typing import Optional from pydantic.types import UUID4 from pydantic import BaseModel, Field from pyportall.api.engine.core import APIClient, ENDPOINT_DATAFRAMES from pyportall.api.models.geojson import FeatureColl...
49.489655
340
0.659978
6,776
0.944259
0
0
2,446
0.340858
0
0
2,832
0.394649
2c12cfc4f635d942cbbcdbe4cf123e812f07caf7
6,778
py
Python
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
13
2017-08-21T13:52:30.000Z
2021-11-25T14:38:28.000Z
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
4
2017-08-17T11:41:06.000Z
2021-03-26T09:10:58.000Z
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
7
2015-11-25T14:52:12.000Z
2021-11-25T14:38:29.000Z
import numpy as np class Configuration: """ A :any:`Configuration` describes a specific arrangement of objects in the vector space of possible positions. Objects are represented by integers, with indistinguishable objects denoted by identical integers. This class subclasses `numpy.matrix <https://docs....
34.232323
165
0.614045
6,645
0.980378
0
0
697
0.102833
0
0
4,352
0.642077
2c145760ea5951c02b26879a5fcb13eca0255cc1
29
py
Python
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
427
2017-02-22T11:59:59.000Z
2022-03-18T11:46:55.000Z
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
1
2018-06-13T02:15:10.000Z
2019-09-26T23:50:30.000Z
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
94
2017-03-29T02:59:20.000Z
2022-03-23T01:09:45.000Z
from . import test_generators
29
29
0.862069
0
0
0
0
0
0
0
0
0
0
2c14b2e0a56bed2d4d83e59bf655df2bd19c3e4d
853
py
Python
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
1
2019-12-11T14:21:59.000Z
2019-12-11T14:21:59.000Z
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
31
2019-12-11T12:29:46.000Z
2022-03-12T00:20:52.000Z
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
null
null
null
from multiclass_model import MulticlassMultiLabelModel """ Classify a single image file from the filesystem. """ parser = ArgumentParser() parser.add_argument('--runname', '-n', dest='run_name', type=str, help='Name for this run, will otherwise not try to load model.') parser.a...
34.12
132
0.645955
0
0
0
0
0
0
0
0
314
0.368113
2c1614ff444bb3635f1507d1bf14312b36ddae29
621
py
Python
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
dhairyashah1/Eklavya20-CatchPracticeBot
60434bf5e280d7495eab75b21566bd1eb3bbd14e
[ "Unlicense" ]
6
2021-03-29T10:25:39.000Z
2021-06-03T18:13:57.000Z
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
meshtag/Eklavya20-CatchPracticeBot
f0e625768aa49cd43df9fec379c8d7919be784b9
[ "Unlicense" ]
null
null
null
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
meshtag/Eklavya20-CatchPracticeBot
f0e625768aa49cd43df9fec379c8d7919be784b9
[ "Unlicense" ]
1
2021-01-27T13:03:06.000Z
2021-01-27T13:03:06.000Z
import numpy as np import cv2 img = cv2.imread("opencv-template-matching-python-tutorial[1].jpg") template = cv2.imread("opencv-template-for-matching[1].jpg",0) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) w,h = template.shape[::-1] #w=width h=height res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED) ...
34.5
67
0.731079
0
0
0
0
0
0
0
0
212
0.341385
2c161b21a5968da51d04494428932de95cf1e1b0
1,958
py
Python
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
3
2017-12-31T02:41:34.000Z
2018-02-18T23:56:44.000Z
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
null
null
null
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
null
null
null
from enum import IntEnum from enum import Enum class Player: """Player Class""" name = "" MaxHP = 0 hp = 0 Strength = 0 Defense = 0 gold = 0 MaxExp = 100 exp = 0 lvl = 1 Pclass = "" uniqueId = 0 Inventory = dict() Equipment = dict() def __init__(self, playe...
18.826923
102
0.542901
1,890
0.965271
0
0
0
0
0
0
153
0.078141
2c16360d424581c214b60779daa9baad492484f7
2,311
py
Python
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
37.885246
78
0.320208
0
0
0
0
0
0
0
0
1,530
0.662051
2c169222381a9f7e35114a43d60f96fa4293bf26
1,481
py
Python
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
import sys import time import threading from baseplatform import BasePlatform class DesktopPlatform(BasePlatform): def __init__(self, config): super(DesktopPlatform, self).__init__(config) self.__config = config self.__pconfig = config['platforms']['common'] self.__pconfig.update(config['platforms']['desk...
21.779412
77
0.741391
1,396
0.942606
0
0
0
0
0
0
195
0.131668
2c16ce8056608e7cc7b6acf8f32232a293b97088
425
py
Python
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
from tradedoubler_api_client import Tradedoubler import pprint if __name__ == '__main__': pp = pprint.PrettyPrinter(indent=4, compact=True, sort_dicts=False) td = Tradedoubler('credentials.json') report = td.reporting().get_transactions(fromDate='20210601', toDate='20210610') report.filter_sales() ...
28.333333
84
0.729412
0
0
0
0
0
0
0
0
57
0.134118
2c16d47b41feddc992dbdd6379a059841d159bb5
4,107
py
Python
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
24
2019-07-24T23:37:10.000Z
2022-03-30T20:40:40.000Z
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
null
null
null
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
11
2019-03-14T13:47:04.000Z
2022-03-31T15:47:27.000Z
""" Vorticity and tangential velocity for a 2D inviscid vortex patch See: [1] Chapter 33, p.402, Branlard - Wind turbine aerodynamics and vorticity based methods, Springer 2017 """ import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from vortilib.tools.colors import fColrs from vortilib.tool...
32.338583
106
0.685415
0
0
0
0
0
0
0
0
910
0.221573
2c17cc77f2646b8be82a171526ec121e5aa52c9c
7,771
py
Python
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
33.49569
81
0.641745
3,938
0.506756
0
0
1,092
0.140522
0
0
3,146
0.404839
2c17df50a8d83000fd4e766f46fb4bd0e6305963
755
py
Python
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
null
null
null
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
3
2021-08-02T13:25:46.000Z
2022-03-27T11:17:59.000Z
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
null
null
null
""" Test models with requiring a db connection """ import pytest from timelink.mhk.models import base # noqa from timelink.mhk.models.entity import Entity # noqa from timelink.mhk.models.pom_som_mapper import PomSomMapper from timelink.mhk.models.base_class import Base from timelink.mhk.models.db import TimelinkDB...
25.166667
65
0.711258
80
0.10596
0
0
0
0
0
0
136
0.180132
2c1890bcbe415de6b707f1f914bd82dec46e3744
218
py
Python
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
129
2018-10-14T17:52:29.000Z
2022-01-29T15:45:57.000Z
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
2
2019-11-30T23:28:23.000Z
2020-01-03T16:30:32.000Z
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
60
2019-02-21T09:18:31.000Z
2022-03-25T21:01:04.000Z
"""This problem was asked by Twitter. Given a list of numbers, create an algorithm that arranges them in order to form the largest possible integer. For example, given [10, 7, 76, 415], you should return 77641510."""
54.5
111
0.752294
0
0
0
0
0
0
0
0
218
1
2c1930976901fb8aedd4548bfb8d6c15eb67bbc4
533
py
Python
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/engboustani/Documents/3d-printer-arm/catkin_ws/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/engboustani/Documents/3d-printer...
88.833333
273
0.742964
0
0
0
0
0
0
0
0
370
0.694184
2c1997660877b65834f3fc00d39a51db4387c509
11,188
py
Python
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
1
2021-01-27T19:05:03.000Z
2021-01-27T19:05:03.000Z
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
null
null
null
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
1
2021-04-26T14:01:15.000Z
2021-04-26T14:01:15.000Z
# # LAMMPS.py # # Interface to LAMMPS (http://lammps.sandia.gov) # # Copyright (c) 2017 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # import numpy as np ...
30.568306
87
0.517876
0
0
0
0
0
0
0
0
1,462
0.130676
2c19bea1407933bda4ea01581f3e0b456aadbfa3
4,550
py
Python
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
5
2021-08-03T01:40:40.000Z
2021-09-14T12:07:28.000Z
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
null
null
null
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
11
2021-08-03T02:48:49.000Z
2021-11-08T06:47:11.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 16 11:53:02 2019 @author: uqcleon4 """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm class WaveEquationFD: def __init__(self, N, D, Mx, My): self.N = N self.D = D self.M...
29.354839
95
0.466593
4,146
0.911209
0
0
0
0
0
0
551
0.121099
2c1b8264dccf5b44e3002c9c34d2872c3ff19377
234
py
Python
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
3
2019-08-18T19:08:48.000Z
2019-12-04T18:14:29.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
6
2018-06-25T02:17:53.000Z
2020-12-08T01:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class SpiritCommentConfig(AppConfig): name = 'spirit.comment' verbose_name = "Spirit Comment" label = 'spirit_comment'
18
39
0.722222
131
0.559829
0
0
0
0
0
0
71
0.303419
2c1bea01e54768ccbaecf68a5c46e239fa4bb01f
11,443
py
Python
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
""" Functions and classes for heif images to read. """ import builtins import pathlib from functools import partial from warnings import warn from _pillow_heif_cffi import ffi, lib from .constants import ( HeifFiletype, HeifColorProfileType, HeifChroma, HeifChannel, HeifColorspace, HeifBrand,...
37.765677
117
0.682339
1,885
0.16473
0
0
0
0
0
0
2,465
0.215416
2c1c62eb125d9e8057ff9e4f7249cfb02c4192e5
58,113
py
Python
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
2
2020-12-03T21:13:39.000Z
2022-03-13T09:12:43.000Z
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
null
null
null
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
1
2021-02-05T16:51:34.000Z
2021-02-05T16:51:34.000Z
import time from collections import OrderedDict import pickle import numpy as np import gym import os import tensorflow as tf from flow.controllers.imitation_learning.utils import * from flow.utils.registry import make_create_env from flow.controllers.imitation_learning.imitating_controller import ImitatingController f...
48.630126
231
0.650698
15,908
0.273743
0
0
0
0
0
0
46,995
0.808683
2c208d59b07ff9834de306f19efb98e51d775ac7
660
py
Python
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
annual_salary = float(input("Enter your annual salary")) portion_saved = float(input("Enter the percent of your salary to save, as a decimal")) total_cost = float(input("Enter the cost of your dream home")) semi_annual_raise = float(input("Enter the semi­annual raise, as a decimal")) portion_down_payment = 0.25 * tota...
34.736842
86
0.716667
0
0
0
0
0
0
0
0
199
0.293078