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
05167a6a94f7c83fc6497eed1db4333dd9bd4308
12,980
py
Python
weibospider.py
Chiang97912/WeiboSpider
2c426d2dfa8c6d418b66bd54002c292194872c88
[ "MIT" ]
null
null
null
weibospider.py
Chiang97912/WeiboSpider
2c426d2dfa8c6d418b66bd54002c292194872c88
[ "MIT" ]
null
null
null
weibospider.py
Chiang97912/WeiboSpider
2c426d2dfa8c6d418b66bd54002c292194872c88
[ "MIT" ]
1
2021-05-07T06:35:22.000Z
2021-05-07T06:35:22.000Z
# -*- coding: UTF-8 -*- import os import json import time import rsa import base64 import urllib import binascii import traceback import requests import pandas as pd from lxml import etree from datetime import datetime class NoResultException(Exception): def __init__(self): super().__init__() def __...
39.938462
170
0.469106
11,800
0.886152
0
0
0
0
0
0
3,565
0.267723
0516e5d4fd543c80d6f16ba01f4a7586b969a893
3,783
py
Python
spoty/commands/get_second_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
2
2022-02-01T16:49:32.000Z
2022-03-02T18:30:31.000Z
spoty/commands/get_second_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
spoty/commands/get_second_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
from spoty.commands.first_list_commands import \ count_command, \ export_command, \ print_command from spoty.commands.second_list_commands import \ filter_second_group, \ find_duplicates_second_command,\ find_deezer_second_group, \ find_spotify_second_group from spoty.commands import get_gro...
50.44
187
0.641819
0
0
0
0
2,990
0.790378
0
0
1,410
0.37272
05195432ec2c13cb2bd586385c70cb0f3fcc21ab
19,804
py
Python
jenkins_job_wrecker/modules/triggers.py
romanek-adam/jenkins-job-wrecker
db9379d852afe8b621c7688d34fd057d916de8f2
[ "MIT" ]
1
2020-06-05T06:36:50.000Z
2020-06-05T06:36:50.000Z
jenkins_job_wrecker/modules/triggers.py
romanek-adam/jenkins-job-wrecker
db9379d852afe8b621c7688d34fd057d916de8f2
[ "MIT" ]
15
2020-05-18T07:37:06.000Z
2020-08-24T09:16:08.000Z
jenkins_job_wrecker/modules/triggers.py
romanek-adam/jenkins-job-wrecker
db9379d852afe8b621c7688d34fd057d916de8f2
[ "MIT" ]
null
null
null
# encoding=utf8 import jenkins_job_wrecker.modules.base from jenkins_job_wrecker.helpers import get_bool, Mapper class Triggers(jenkins_job_wrecker.modules.base.Base): component = 'triggers' def gen_yml(self, yml_parent, data): triggers = [] for child in data: object_name = child...
51.572917
119
0.569683
362
0.018279
0
0
0
0
0
0
6,048
0.305393
051d3484ddd9be778a5ba470d36fedfb5de63393
4,097
py
Python
tools/clean-parallel.py
ZJaume/clean
0c3c6bab8bf173687ec0bba6908097ef7bc38db2
[ "MIT" ]
1
2021-06-02T03:08:32.000Z
2021-06-02T03:08:32.000Z
tools/clean-parallel.py
ZJaume/clean
0c3c6bab8bf173687ec0bba6908097ef7bc38db2
[ "MIT" ]
1
2021-05-30T22:55:44.000Z
2021-06-02T08:47:56.000Z
tools/clean-parallel.py
ZJaume/clean
0c3c6bab8bf173687ec0bba6908097ef7bc38db2
[ "MIT" ]
2
2021-06-01T19:07:43.000Z
2021-06-03T11:03:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import regex import argparse # The variables below need to be adjusted for a language pair and dataset. # To add a new language, define the list of alpha characters in the dict below. MIN_LENGTH = 1 # minimum number of words in a sentence MAX_L...
32.515873
96
0.640469
0
0
0
0
0
0
0
0
2,253
0.486294
051e064cf78fe1b3efaa1e563322f576984f94e9
24,624
py
Python
rubika/client.py
Bahman-Ahmadi/rubika
924e82434f9468cadf481af7b29695f642af7e99
[ "MIT" ]
23
2021-12-06T09:54:01.000Z
2022-03-31T19:44:29.000Z
rubika/client.py
Bahman-Ahmadi/rubika
924e82434f9468cadf481af7b29695f642af7e99
[ "MIT" ]
4
2022-01-08T19:27:40.000Z
2022-03-30T13:18:23.000Z
rubika/client.py
Bahman-Ahmadi/rubika
924e82434f9468cadf481af7b29695f642af7e99
[ "MIT" ]
13
2021-12-08T14:18:39.000Z
2022-03-30T13:20:37.000Z
from pathlib import Path from requests import post from random import randint from json import loads, dumps import random, datetime, rubika.encryption # because should be exist ! adminsAccess = { "pin":"PinMessages", "newAdmin":"SetAdmin", "editInfo":"ChangeInfo", "banMember":"BanMember", "changeLink":"SetJoinLin...
29.349225
2,034
0.634665
24,079
0.977788
0
0
211
0.008568
0
0
11,272
0.457728
051f4dab5a5f1bed25333ea9cb6d58c8c48a834b
424
py
Python
lpyHardway/logic/ex2.py
oreanroy/learn_modules
fb1debc612940b65c409d8f5b35a3b4e16e67494
[ "MIT" ]
null
null
null
lpyHardway/logic/ex2.py
oreanroy/learn_modules
fb1debc612940b65c409d8f5b35a3b4e16e67494
[ "MIT" ]
17
2019-12-01T16:56:29.000Z
2022-03-02T04:49:51.000Z
lpyHardway/logic/ex2.py
oreanroy/learn_modules
fb1debc612940b65c409d8f5b35a3b4e16e67494
[ "MIT" ]
1
2019-09-28T00:43:54.000Z
2019-09-28T00:43:54.000Z
people = 30 cars = 40 buses = 15 if cars > people: print "We should take the cars." elif cars < people: print "we should not take the cars." else: print "we can't decide." if buses > cars: print " That's too many buses" elif buses < cars: print " Maybe we could take the bus." else: print "we stil can't decide."...
17.666667
38
0.676887
0
0
0
0
0
0
0
0
212
0.5
0520b1fd12c6c807e99e2585c0ad990c4a9c1185
3,001
py
Python
undercrawler/crazy_form_submitter.py
abael/ScrapyGenericCrawler
9d210fb862a7fddd58c548847d8f5c2d72eae5c1
[ "MIT" ]
88
2016-04-07T18:41:19.000Z
2022-01-03T12:18:44.000Z
undercrawler/crazy_form_submitter.py
shekar9160/generic_scraper
e5104dca5a5d9fe4b9ddd085c7b0935a712ea74d
[ "MIT" ]
61
2016-04-06T18:31:45.000Z
2021-07-15T12:10:23.000Z
undercrawler/crazy_form_submitter.py
shekar9160/generic_scraper
e5104dca5a5d9fe4b9ddd085c7b0935a712ea74d
[ "MIT" ]
31
2016-04-14T07:49:49.000Z
2021-08-08T17:07:36.000Z
import logging import random import string from scrapy.http.request.form import _get_inputs as get_form_data logger = logging.getLogger(__name__) SEARCH_TERMS = list(string.ascii_lowercase) + list('123456789 *%.?') def search_form_requests(url, form, meta, search_terms=None, extra_search_terms=None): ...
40.554054
78
0.638121
0
0
1,927
0.642119
0
0
0
0
455
0.151616
0520c8a0308bb129120ec328a9eacba21da937c0
277
py
Python
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt pid_file = open("pid.txt", "w") x = np.linspace(0, 2 * np.pi, 100) print x pid_file.write(x) y1, y2 = np.sin(x), np.cos(x) plt.plot(x, y1, label='y = sin(x)') plt.plot(x, y2, label='y = cos(x)') plt.legend() plt.show()
16.294118
35
0.624549
0
0
0
0
0
0
0
0
36
0.129964
0524ab92ab97c6f8922dd3dd0c03bf3b79b8a0ee
921
py
Python
libs/libssh2/libssh2.py
simont77/craft-blueprints-kde
3c0a40923c7c8e0341ad08afde22f86bb1517ddf
[ "BSD-2-Clause" ]
null
null
null
libs/libssh2/libssh2.py
simont77/craft-blueprints-kde
3c0a40923c7c8e0341ad08afde22f86bb1517ddf
[ "BSD-2-Clause" ]
1
2020-01-10T01:06:16.000Z
2020-01-10T01:06:16.000Z
libs/libssh2/libssh2.py
simont77/craft-blueprints-kde
3c0a40923c7c8e0341ad08afde22f86bb1517ddf
[ "BSD-2-Clause" ]
2
2020-01-02T18:22:12.000Z
2020-08-05T13:39:21.000Z
# -*- coding: utf-8 -*- import info class subinfo(info.infoclass): def setTargets( self ): self.svnTargets['master'] = 'https://github.com/libssh2/libssh2.git||libssh2-1.8.0' self.targets['1.8.0'] = "https://www.libssh2.org/download/libssh2-1.8.0.tar.gz" self.targetInstSrc['1.8.0'] = "libss...
38.375
108
0.667752
840
0.912052
0
0
0
0
0
0
348
0.37785
05260b29fa65b53dc965a1c89ebcef95a1a96d54
396
py
Python
test/config_generator_test.py
jnohlgard/projector-installer
52aeaa936aa21d9fa6aee109d78e209fa068821b
[ "Apache-2.0" ]
null
null
null
test/config_generator_test.py
jnohlgard/projector-installer
52aeaa936aa21d9fa6aee109d78e209fa068821b
[ "Apache-2.0" ]
null
null
null
test/config_generator_test.py
jnohlgard/projector-installer
52aeaa936aa21d9fa6aee109d78e209fa068821b
[ "Apache-2.0" ]
null
null
null
"""Test config_generator.py module""" from unittest import TestCase from projector_installer.config_generator import token_quote class ConfigGeneratorTest(TestCase): """Test config_generator.py module""" def test_token_quote(self) -> None: """The token_quote method must return the same token in quot...
30.461538
73
0.739899
263
0.664141
0
0
0
0
0
0
167
0.421717
05273ebf4b8d4eb6302f146e1b519e163f850d92
5,289
py
Python
tooling/maven.py
AntonisGkortzis/Vulnerabilities-in-Reused-Software
16b2087cb595b48446dadda8cae75dad6ef1433b
[ "MIT" ]
3
2020-11-24T20:30:59.000Z
2021-05-26T02:33:53.000Z
tooling/maven.py
AntonisGkortzis/Vulnerabilities-in-Reused-Software
16b2087cb595b48446dadda8cae75dad6ef1433b
[ "MIT" ]
null
null
null
tooling/maven.py
AntonisGkortzis/Vulnerabilities-in-Reused-Software
16b2087cb595b48446dadda8cae75dad6ef1433b
[ "MIT" ]
null
null
null
import os import re import logging import zipfile logger = logging.getLogger(__name__) class MvnArtifact: """ Class representing a fully defined maven artifact (e.g., <groupId>:<artifactId>:<type>:<version>[:<dep_type>]) """ __elem_re = re.compile(r'^(.+?):(.+?):(.+?):(.+?)((:)(.+))?$') def __...
33.687898
156
0.560219
3,650
0.690112
125
0.023634
664
0.125544
0
0
948
0.17924
0527ccd6baf873620f163e0b3ed2a44bfa92eff6
1,812
py
Python
ptsites/sites/hares.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
null
null
null
ptsites/sites/hares.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
null
null
null
ptsites/sites/hares.py
kbnq/flexget_qbittorrent_mod
e52d9726b80aab94cf3d9ee6c382b6721b757d3b
[ "MIT" ]
null
null
null
from ..schema.nexusphp import Attendance from ..schema.site_base import Work, SignState from ..utils.net_utils import NetUtils class MainClass(Attendance): URL = 'https://club.hares.top/' USER_CLASSES = { 'downloaded': [8796093022208], 'share_ratio': [5.5], 'days': [364] } def...
29.225806
82
0.400662
1,756
0.931071
0
0
0
0
0
0
498
0.264051
05299930cfe175dfdd505fa507a88544ad0e95c1
716
py
Python
tests/garage/sampler/test_rl2_worker.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
1,500
2018-06-11T20:36:24.000Z
2022-03-31T08:29:01.000Z
tests/garage/sampler/test_rl2_worker.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
2,111
2018-06-11T04:10:29.000Z
2022-03-26T14:41:32.000Z
tests/garage/sampler/test_rl2_worker.py
blacksph3re/garage
b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507
[ "MIT" ]
309
2018-07-24T11:18:48.000Z
2022-03-30T16:19:48.000Z
from garage.envs import GymEnv from garage.tf.algos.rl2 import RL2Worker from tests.fixtures import TfGraphTestCase from tests.fixtures.envs.dummy import DummyBoxEnv from tests.fixtures.policies import DummyPolicy class TestRL2Worker(TfGraphTestCase): def test_rl2_worker(self): env = GymEnv(DummyBoxEnv(...
32.545455
50
0.655028
498
0.695531
0
0
0
0
0
0
0
0
052a76693b3fb6c307548d396e0accbc369737c8
660
py
Python
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
#Uche Ogbuji exercises format-number on Brad Marshall's behalf from Xml.Xslt import test_harness sheet_1 = """\ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match = "/"> <xsl:value-of select='format-number(10000000000.75 + 10000000000.50, "##.##"...
24.444444
84
0.671212
0
0
0
0
0
0
0
0
387
0.586364
052bebc9ce249268deadd50cd183873b6f1a799a
2,697
py
Python
tests/test_connection.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
6
2021-10-08T10:20:37.000Z
2022-03-30T08:56:10.000Z
tests/test_connection.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
2
2021-11-11T11:44:29.000Z
2022-03-08T06:54:54.000Z
tests/test_connection.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
1
2022-03-04T14:43:22.000Z
2022-03-04T14:43:22.000Z
import typing as t import pytest as pt from fastapi_mailman import BadHeaderError, EmailMessage if t.TYPE_CHECKING: from fastapi_mailman import Mail @pt.mark.anyio async def test_send_message(mail: "Mail"): mail.backend = "locmem" msg = EmailMessage( subject="testing", to=["to@example.c...
28.389474
102
0.629218
0
0
0
0
2,520
0.934372
2,415
0.895439
304
0.112718
052c8a3287a40e2446164e87ba133bbda46f1779
294
py
Python
Workshops/enBuyukSayi.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
Workshops/enBuyukSayi.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
Workshops/enBuyukSayi.py
brkyydnmz/Python
8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- sayi1 = int(input("1. Sayı:")) sayi2 = int(input("2. Sayı:")) sayi3 = int(input("3. Sayı:")) if (sayi1>=sayi2) and (sayi1>=sayi3): enBuyuk = sayi1 elif(sayi2>=sayi1) and (sayi2>=sayi3): enBuyuk = sayi2 else: enBuyuk = sayi3 print("En Büyük Sayı:",enBuyuk)
21
38
0.608844
0
0
0
0
0
0
0
0
75
0.25
052d317538142bae7b508c18b4e71450d9b3e276
399
py
Python
08/seven-segment_part1.py
ReinprechtStefan/AdventOfCode2021
a2750c5fbcc7fc927d710f4db6926d015a2fb673
[ "Apache-2.0" ]
null
null
null
08/seven-segment_part1.py
ReinprechtStefan/AdventOfCode2021
a2750c5fbcc7fc927d710f4db6926d015a2fb673
[ "Apache-2.0" ]
null
null
null
08/seven-segment_part1.py
ReinprechtStefan/AdventOfCode2021
a2750c5fbcc7fc927d710f4db6926d015a2fb673
[ "Apache-2.0" ]
null
null
null
with open('input.txt') as f: lines = f.readlines() counter = 0 for line in lines: right_part = line.split(" | ")[1] for segment in right_part.strip().split(" "): #print(segment, len(segment)) if len(segment) in [2,3,4,7]: counter += 1 #e...
22.166667
53
0.491228
0
0
0
0
0
0
0
0
90
0.225564
052ffb78d4e1a7b366b635d756b5d2bbba48de18
7,605
py
Python
main/gui.py
MBmasher/weighted-object
eaaf25338240873b7c4197097b2bb73be256b702
[ "MIT" ]
null
null
null
main/gui.py
MBmasher/weighted-object
eaaf25338240873b7c4197097b2bb73be256b702
[ "MIT" ]
null
null
null
main/gui.py
MBmasher/weighted-object
eaaf25338240873b7c4197097b2bb73be256b702
[ "MIT" ]
null
null
null
import Tkinter import weighted_objects import tkFileDialog import time import ttk import numpy import sys while True: # Ask user for file dialog. Tkinter.Tk().withdraw() osu_file_path = tkFileDialog.askopenfilename(title="Select an osu file", filetypes=(("osu files", "*.osu"),)) # Calcula...
39.201031
118
0.598028
0
0
0
0
0
0
0
0
1,807
0.237607
05311a2863ffbf10e5b4872464958a44b018f474
2,929
py
Python
src/benchmark/probe_training_wrapper.py
dumpmemory/PEARL_v1
df46be5ed86ba7850486b578a8926aa151e7bf87
[ "MIT" ]
24
2021-06-10T04:09:00.000Z
2021-11-02T11:23:35.000Z
src/benchmark/probe_training_wrapper.py
dumpmemory/PEARL_v1
df46be5ed86ba7850486b578a8926aa151e7bf87
[ "MIT" ]
1
2021-06-08T15:27:38.000Z
2021-06-08T15:41:05.000Z
src/benchmark/probe_training_wrapper.py
dumpmemory/PEARL_v1
df46be5ed86ba7850486b578a8926aa151e7bf87
[ "MIT" ]
4
2021-06-10T02:28:12.000Z
2021-08-24T13:00:14.000Z
from .probe import ProbeTrainer # train using embeddings def train_embeddings(encoder, probe_type, num_epochs, lr, patience, wandb, save_dir, batch_size, tr_episodes, val_episodes, tr_labels, val_labels, test_episodes, test_labels, use_encoder=False, save_interval=100): if use_encoder: enc...
46.492063
148
0.635712
0
0
0
0
0
0
0
0
143
0.048822
0531675b4efb814c0c0505cc13c93cd557315404
1,310
py
Python
grr/server/grr_response_server/blob_stores/db_blob_store.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/blob_stores/db_blob_store.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/blob_stores/db_blob_store.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python """REL_DB blobstore implementation.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from grr_response_server import blob_store from grr_response_server import data_store class DbBlobStore(blob_store.BlobStore): """A REL_DB-bas...
31.190476
79
0.79084
1,047
0.799237
0
0
69
0.052672
0
0
320
0.244275
053268be449fba403f273951c902bae23a8253b1
333
py
Python
tests/ut_repytests_loose-testnetmessportreuse.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
1
2021-08-18T05:58:17.000Z
2021-08-18T05:58:17.000Z
tests/ut_repytests_loose-testnetmessportreuse.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
3
2015-11-17T21:01:03.000Z
2016-07-14T09:08:04.000Z
tests/ut_repytests_loose-testnetmessportreuse.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
5
2015-07-02T13:29:23.000Z
2021-09-25T07:48:30.000Z
#pragma out #pragma repy restrictions.loose def foo(ip,port,mess, ch): print ip,port,mess,ch stopcomm(ch) def noop(a,b,c,d): pass if callfunc == 'initialize': ip = getmyip() noopch = recvmess(ip,<messport>,noop) recvmess(ip,<messport1>,foo) sleep(.1) sendmess(ip,<messport1>,'hi',ip,<messport>) stop...
18.5
45
0.678679
0
0
0
0
0
0
0
0
58
0.174174
05343aca0c5c82c59e3358b3b9d65dce1ef6b0de
806
py
Python
pyzfscmds/check.py
johnramsden/pyzfscmds
b5d430ffd0454bc6b09e256aeea67164714d9809
[ "BSD-3-Clause" ]
9
2018-07-08T20:01:33.000Z
2022-03-29T11:31:51.000Z
pyzfscmds/check.py
johnramsden/pyzfscmds
b5d430ffd0454bc6b09e256aeea67164714d9809
[ "BSD-3-Clause" ]
1
2019-07-10T12:16:53.000Z
2019-07-10T12:16:53.000Z
pyzfscmds/check.py
johnramsden/pyzfscmds
b5d430ffd0454bc6b09e256aeea67164714d9809
[ "BSD-3-Clause" ]
5
2018-06-04T02:33:43.000Z
2020-05-25T22:48:58.000Z
""" Startup checks """ import subprocess import pyzfscmds.system.agnostic as zfssys def is_root_on_zfs(): """Check if running root on ZFS""" system = zfssys.check_valid_system() if system is None: raise RuntimeError(f"System is not yet supported by pyzfscmds\n") root_dataset = None if z...
23.705882
77
0.66005
0
0
0
0
0
0
0
0
177
0.219603
0536d3d2cb26fae2a4bb43f1a3c0258c006ca24c
2,015
py
Python
dist.py
dladustn95/Dialogue_generator
004fa49e3140e6c7ceb14448604c8aa45966f70d
[ "MIT" ]
4
2020-09-03T03:39:53.000Z
2021-08-25T03:53:41.000Z
dist.py
dladustn95/Dialogue_generator
004fa49e3140e6c7ceb14448604c8aa45966f70d
[ "MIT" ]
null
null
null
dist.py
dladustn95/Dialogue_generator
004fa49e3140e6c7ceb14448604c8aa45966f70d
[ "MIT" ]
1
2020-09-04T07:04:50.000Z
2020-09-04T07:04:50.000Z
import sys def distinct_1(path): inFile = open(path, mode="r", encoding="utf8") char_set = set() all_unigram_count = 0 for line in inFile.readlines(): line = line.strip().split(" ") for word in line: char_set.add(word) all_unigram_count += len(line) distinct_unig...
34.152542
79
0.655583
0
0
0
0
0
0
0
0
188
0.0933
0537e1ab85799850e99a5e3c6bb0f22f481e1ab8
5,036
py
Python
Scripts/plot_PolarVortexStrength_PDFs.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
4
2019-11-23T19:44:21.000Z
2020-02-20T16:54:45.000Z
Scripts/plot_PolarVortexStrength_PDFs.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
null
null
null
Scripts/plot_PolarVortexStrength_PDFs.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
2
2019-06-21T19:27:55.000Z
2021-02-12T19:13:22.000Z
""" Calculate PDFs for polar vortex response Notes ----- Author : Zachary Labe Date : 25 June 2019 """ ### Import modules import numpy as np import matplotlib.pyplot as plt import datetime import read_MonthlyData as MO import calc_Utilities as UT import cmocean import scipy.stats as sts ### Define director...
34.027027
79
0.53475
0
0
0
0
0
0
0
0
1,931
0.383439
053869e3d79166cc0d895c117eef19a63bd977af
906
py
Python
test/test_airtunnel/operators/test_sql_helpers.py
joerg-schneider/airflow-bootstrap
bbed0a2d5addd0dd6221b75c06982f47e0d837d4
[ "MIT" ]
23
2019-09-30T15:22:58.000Z
2021-04-09T10:53:23.000Z
test/test_airtunnel/operators/test_sql_helpers.py
joerg-schneider/airflow-bootstrap
bbed0a2d5addd0dd6221b75c06982f47e0d837d4
[ "MIT" ]
1
2019-11-24T18:37:56.000Z
2019-11-24T18:37:56.000Z
test/test_airtunnel/operators/test_sql_helpers.py
joerg-schneider/airflow-bootstrap
bbed0a2d5addd0dd6221b75c06982f47e0d837d4
[ "MIT" ]
4
2020-01-14T03:31:34.000Z
2021-05-07T21:34:22.000Z
import pytest from airtunnel.operators.sql import sql_helpers TEST_SCRIPT = "ddl/test_schema/test_table.sql" @pytest.mark.parametrize( argnames=("sql_path",), argvalues=((TEST_SCRIPT,), ("/" + TEST_SCRIPT,), ((TEST_SCRIPT,),)), ) def test_load_sql_script(sql_path: str): # load with a single relative pat...
26.647059
74
0.728477
0
0
0
0
277
0.30574
0
0
124
0.136865
053914ae8ca6bed144522d26cba1f2a52c6014f5
2,582
py
Python
EE475/Ch6P13.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
EE475/Ch6P13.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
EE475/Ch6P13.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt ## softmax: 0.1 600 ## perceptron: 0.05 550 def readData(csvname): data = np.loadtxt(csvname, delimiter=',') x = data[:-1, :] y = data[-1:, :] return x, y def softmaxCostFunc(x, y, w): cost = np.sum(np.log(1 + np.exp(-y*np.transpose(np.dot(np.t...
29.011236
82
0.573199
0
0
0
0
0
0
0
0
208
0.080558
05399638e32621d9f8eab1ecc185a769af934b80
416
py
Python
square.py
Formalhalt/Phyton-Calculators
25f686e45a8333e9a141568c8f695350bde36bc6
[ "CC0-1.0" ]
null
null
null
square.py
Formalhalt/Phyton-Calculators
25f686e45a8333e9a141568c8f695350bde36bc6
[ "CC0-1.0" ]
null
null
null
square.py
Formalhalt/Phyton-Calculators
25f686e45a8333e9a141568c8f695350bde36bc6
[ "CC0-1.0" ]
null
null
null
height = float(input("Enter height of the square: ")) width = float(input("Enter width of the Square: ")) perimeter = (2 * height) + (2 * width) area = height * height print("The perimeter of the square is", perimeter) print("The area of the square is", area) close = input("Press X to exit") #...
23.111111
96
0.663462
0
0
0
0
0
0
0
0
231
0.555288
053b161da791d51b0f7c77d904ccb2a6a0472da3
6,492
py
Python
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
import numpy as np from common.util import im2col from collections import OrderedDict from common.layers import * from common.gradient import numerical_gradient ## 4차원 배열 ## x = np.random.rand(10, 1, 28, 28) # (m, c, h, w) print(x.shape) x[0].shape # data 1개 x[0, 0] # 첫 data의 channel 공간 x1 = np.random.rand(1, 3, 7, ...
31.211538
95
0.518792
3,852
0.548562
0
0
0
0
0
0
2,127
0.302905
053b82076a707b4cf23d2d9a676fce87856d471c
17,136
py
Python
tests/test_crawler.py
jacopoabbate/datavault-api-python-client
70c3113b56db77de3835b4210dd7bffb22b34c9f
[ "MIT" ]
null
null
null
tests/test_crawler.py
jacopoabbate/datavault-api-python-client
70c3113b56db77de3835b4210dd7bffb22b34c9f
[ "MIT" ]
null
null
null
tests/test_crawler.py
jacopoabbate/datavault-api-python-client
70c3113b56db77de3835b4210dd7bffb22b34c9f
[ "MIT" ]
null
null
null
import datetime import pytest import requests from datavault_api_client import crawler from datavault_api_client.data_structures import DiscoveredFileInfo class TestCleanRawFilename: @pytest.mark.parametrize( "datavault_assigned_name, expected_cleaned_filename", [ ("WATCHLIST_username_676_20...
36.69379
100
0.623424
16,955
0.989437
0
0
967
0.056431
0
0
4,246
0.247782
053c288fde8eaacd236f5d1f96f0de4ba7806a4f
2,976
py
Python
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
2
2015-06-09T16:07:09.000Z
2015-07-28T10:06:31.000Z
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
3
2020-07-22T15:14:55.000Z
2021-12-13T19:35:06.000Z
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Michael Meisinger' import gevent import random from pyon.datastore.datastore import DatastoreManager from pyon.public import IonObject import ooi.timer """ from prototype.couch.couch_concurrent import runcc runcc(dict(num_obj=100000, num_read=2000, num_thread=3)) """ class Couc...
30.680412
109
0.652218
2,483
0.834341
0
0
0
0
0
0
954
0.320565
053c773f4e711f1e0bdb6a424915109fb1e18820
2,226
py
Python
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : 2020-04-06 23:45:54 # @Author : Racter Liu (racterub) (racterub@gmail.com) # @Link : https://racterub.me # @License : MIT from flask import Flask, render_template, request, url_for, redirect, session, send_from_directory, send_file, make_response app = F...
24.195652
124
0.612309
0
0
0
0
1,632
0.733154
0
0
738
0.331536
053ff9d6d078fd3f1bdb31f203cc1982c89849c7
4,067
py
Python
api/list_bp.py
kziovas/practise-todolist
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
2
2021-07-27T08:38:35.000Z
2021-08-03T10:00:58.000Z
api/list_bp.py
kziovas/practise-sanic-rest-api-to-do-list
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
null
null
null
api/list_bp.py
kziovas/practise-sanic-rest-api-to-do-list
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
null
null
null
from sanic.response import json from sanic import Blueprint from service import ListService from injector import inject, singleton from logging import Logger from sanic import Sanic @singleton class ListController: @inject def __init__(self, logger: Logger, list_service : ListService): self.logger = l...
37.311927
157
0.715761
1,840
0.452422
0
0
3,573
0.878535
2,956
0.726826
309
0.075977
0541032df78b9eac36f755de81be4a580d936532
5,223
py
Python
src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
9
2021-12-31T20:13:03.000Z
2022-03-05T07:05:06.000Z
src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
1
2022-01-25T08:35:04.000Z
2022-01-29T00:07:00.000Z
src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
null
null
null
""" Author: Darren Date: 02/05/2021 Solving https://adventofcode.com/2015/day/24 We require three bags of equal weight. Bag 1 in the passenger compartment, needs to have fewest packages. Bags 2 and 3 to either side. Solution: Use subset sum function to work out which combinations of packages adds up to...
34.589404
103
0.681409
0
0
607
0.116217
0
0
0
0
2,759
0.52824
0541425822ca873cc1104abcaddefbf0b86d3c05
8,946
py
Python
artap/algorithm_bayesopt.py
tamasorosz/artap
e8df160bfc9c378c3fc96b0b86e92d75d89cf26b
[ "MIT" ]
5
2021-06-13T17:04:37.000Z
2022-03-04T17:16:06.000Z
artap/algorithm_bayesopt.py
tamasorosz/artap
e8df160bfc9c378c3fc96b0b86e92d75d89cf26b
[ "MIT" ]
null
null
null
artap/algorithm_bayesopt.py
tamasorosz/artap
e8df160bfc9c378c3fc96b0b86e92d75d89cf26b
[ "MIT" ]
8
2021-03-11T18:23:47.000Z
2022-02-22T11:13:23.000Z
from .problem import Problem from .algorithm import Algorithm from .config import artap_root import time import numpy as np import os import sys sys.path.append(artap_root + os.sep + "lib" + os.sep) import bayesopt from multiprocessing import Process, Pipe, Queue, Manager # from multiprocessing.managers import Base...
31.611307
127
0.59099
8,198
0.916387
0
0
403
0.045048
0
0
2,654
0.296669
0543197cdee0aacdb12b0d10810f263f61b2c8d7
538
py
Python
Sorting/ShortBubbleSort.py
sonivaibhv/Algo
ea53d61a17687ef08bb2a7dbfd9331fd10f49ea8
[ "MIT" ]
1
2017-05-06T13:05:35.000Z
2017-05-06T13:05:35.000Z
Sorting/ShortBubbleSort.py
CuriousLearner/Algorithms
e44a04b3a0797da36a9de18c116a48241ce59d9d
[ "MIT" ]
null
null
null
Sorting/ShortBubbleSort.py
CuriousLearner/Algorithms
e44a04b3a0797da36a9de18c116a48241ce59d9d
[ "MIT" ]
null
null
null
def Short_Bubble_Sort(alist): ''' Sorting alist using Short Bubble Sort ''' passnum = len(alist) - 1 exchangesDone = True while passnum > 0 and exchangesDone: exchangesDone = False for i in range(passnum): if alist[i] > alist[i+1]: exchangesDone = True...
25.619048
59
0.565056
0
0
0
0
0
0
0
0
53
0.098513
0543991c023c828b9777016230758b911a5898f1
5,997
py
Python
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-09-15T08:13:27.000Z
2021-09-15T08:13:27.000Z
# This file was created by a source code generator: # genxml2wrap.py # Do not modify. Change the definition and # run the generator again! # # (c) 2010 Mathias Hoffmann, GFZ Potsdam # # import datetime class _TrackedObject(object): def __init__(self): self.__dict__['last_modified'] = datetime.datetime(1970, 1, 1, ...
18.395706
73
0.691346
5,137
0.856595
0
0
0
0
0
0
1,246
0.207771
05461bddcd3bd1546efdbcd5e16d6aa27b51efe8
7,754
py
Python
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
32.995745
181
0.607557
7,387
0.95267
0
0
4,563
0.58847
0
0
4,685
0.604204
054f8d75e59fcecffb5d9b04254a41c1dbff6742
1,118
py
Python
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
import time import sys class Loadingstatus: def __init__(self, barlength = 20): self.loading = 0 self.lastCall = self.getMilliSeconds() self.barlength = barlength def getMilliSeconds(self): return int(time.time() * 1000) def updatePending(self): newCall = self.getM...
31.055556
75
0.584079
1,093
0.977639
0
0
0
0
0
0
58
0.051878
0552a237d536bb49e4a74fe8039eabfd37370524
1,596
py
Python
main.py
WillyHHsu/rest
1adba475579cb2c0f9b8690b7f822c02b483146a
[ "MIT" ]
null
null
null
main.py
WillyHHsu/rest
1adba475579cb2c0f9b8690b7f822c02b483146a
[ "MIT" ]
null
null
null
main.py
WillyHHsu/rest
1adba475579cb2c0f9b8690b7f822c02b483146a
[ "MIT" ]
null
null
null
import os from fastapi import FastAPI from fastapi_sqlalchemy import DBSessionMiddleware from fastapi_sqlalchemy import db from dotenv import load_dotenv from sqlalchemy import schema from db import models as db_model from schemas import models as schema load_dotenv() POSTGRES_USER = os.getenv('POSTGRES_USER') POSTG...
29.555556
107
0.759398
0
0
0
0
849
0.531955
0
0
393
0.246241
05546175c9355e358802def95353b9059d638d79
866
py
Python
src/compas_blender/utilities/data.py
KEERTHANAUDAY/compas
4d1101cf302f95a4472a01a1265cc64eaec6aa4a
[ "MIT" ]
null
null
null
src/compas_blender/utilities/data.py
KEERTHANAUDAY/compas
4d1101cf302f95a4472a01a1265cc64eaec6aa4a
[ "MIT" ]
null
null
null
src/compas_blender/utilities/data.py
KEERTHANAUDAY/compas
4d1101cf302f95a4472a01a1265cc64eaec6aa4a
[ "MIT" ]
null
null
null
import bpy __all__ = [ "delete_all_data", ] def delete_all_data(): """Delete all collections, mesh and curve objects, meshes, curves, materials.""" for collection in bpy.data.collections: bpy.data.collections.remove(collection) for obj in bpy.data.objects: if obj.type == 'MESH': ...
27.0625
84
0.51963
0
0
0
0
0
0
0
0
286
0.330254
055668b6a61ba32a80522c93f3aa4dbcf035bb7b
2,335
py
Python
teams_to_tsv.py
FSU-ACM-OSSG/Contest-Server
f9aabd9742a6aa78cbefc685fd2760a1f83d7721
[ "MIT" ]
8
2019-01-13T21:57:53.000Z
2021-11-29T12:32:48.000Z
teams_to_tsv.py
FSU-ACM-OSSG/Contest-Server
f9aabd9742a6aa78cbefc685fd2760a1f83d7721
[ "MIT" ]
73
2018-02-13T00:58:39.000Z
2022-02-10T11:59:53.000Z
teams_to_tsv.py
FSU-ACM-OSSG/Contest-Server
f9aabd9742a6aa78cbefc685fd2760a1f83d7721
[ "MIT" ]
4
2018-02-08T18:56:54.000Z
2019-02-13T19:01:53.000Z
############## # team_to_tsv script # Creates two tsv files for importing into domjudge # Team info gets stored inside teams.tsv in the following format # <team_id(int)> <external_id> <category_id> <team_name> # Account info gets stored inside acccounts.tsv in the following format # team <team-name> <use...
36.484375
77
0.614561
0
0
0
0
0
0
0
0
1,426
0.610707
05573cc8d3a341c5de3d72784bf092562a5a2e63
1,848
py
Python
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe import filetype """ NEED IMPORT LOCAL LANG FROM FRAPPE """ def attach_print(doctype, name, file_name=None, print_format=None, style=None, html=None, doc=None, lang=None, encrypt=False, password=None, print_letterhead=True): from frappe.utils import scrub_urls ...
34.222222
165
0.67803
0
0
0
0
0
0
0
0
433
0.234307
055a29385d9e76d3a424d3a90ed95bbdc4015019
4,906
py
Python
cleverapi/clever_api.py
oncecreated/cleverapi
39b41860604a909d3e5262c1c795c0741570a653
[ "MIT" ]
13
2018-06-30T14:16:42.000Z
2020-03-04T20:23:47.000Z
cleverapi/clever_api.py
oncecreated/cleverapi
39b41860604a909d3e5262c1c795c0741570a653
[ "MIT" ]
11
2018-09-09T09:54:27.000Z
2019-04-15T13:40:19.000Z
cleverapi/clever_api.py
oncecreated/cleverapi
39b41860604a909d3e5262c1c795c0741570a653
[ "MIT" ]
14
2018-07-24T17:38:56.000Z
2020-03-04T20:24:12.000Z
import hashlib import json import uuid import requests import aiohttp from .exceptions import ApiResponseError from .action import Action class BaseCleverApi(): def __init__(self, access_token, version="5.73"): self.access_token = access_token self.api_version = version self.device_id = ...
28.858824
91
0.584183
4,763
0.969666
0
0
0
0
617
0.125611
878
0.178746
055ac96948dda92e22c15b66cc5f914681a2cae3
5,350
py
Python
blagging/views.py
androiddrew/blag-fork
249144c9a017581a6c5e387f5d86f33421d82ae3
[ "MIT" ]
null
null
null
blagging/views.py
androiddrew/blag-fork
249144c9a017581a6c5e387f5d86f33421d82ae3
[ "MIT" ]
7
2017-01-03T15:34:30.000Z
2017-07-13T15:27:08.000Z
blagging/views.py
androiddrew/blag-fork
249144c9a017581a6c5e387f5d86f33421d82ae3
[ "MIT" ]
null
null
null
from datetime import datetime as dt from flask import render_template, redirect, request, url_for, abort from flask_login import login_user, logout_user, login_required, current_user, login_url from . import app, db, login_manager from .models import Post, Tag, Author, tags as Post_Tag from .forms import LoginForm, Pos...
33.647799
119
0.65271
0
0
0
0
4,900
0.915888
0
0
837
0.156449
055b1e351a5242b821e047dfcb5c1f7591a3c693
509
py
Python
id.py
txkodo/pyDatapack
f647e0043d09e3d456a8019fb00cb945c0d6b6a7
[ "MIT" ]
null
null
null
id.py
txkodo/pyDatapack
f647e0043d09e3d456a8019fb00cb945c0d6b6a7
[ "MIT" ]
null
null
null
id.py
txkodo/pyDatapack
f647e0043d09e3d456a8019fb00cb945c0d6b6a7
[ "MIT" ]
null
null
null
import string import secrets def gen_objective_id(): return ''.join(secrets.choice(string.ascii_lowercase + string.digits) for _ in range(16)) def gen_scoreholder_id(): return ''.join(secrets.choice(string.ascii_lowercase + string.digits) for _ in range(16)) def gen_function_id(): return ''.join(secr...
36.357143
92
0.740668
0
0
0
0
0
0
0
0
8
0.015717
055c22d5891f38a9238c8713208320ff8c57d8d5
185
py
Python
bot/states/states.py
amtp1/ubi-4
bbfa07f0936960058d7f282b1c83be7150494dc1
[ "BSD-3-Clause" ]
null
null
null
bot/states/states.py
amtp1/ubi-4
bbfa07f0936960058d7f282b1c83be7150494dc1
[ "BSD-3-Clause" ]
null
null
null
bot/states/states.py
amtp1/ubi-4
bbfa07f0936960058d7f282b1c83be7150494dc1
[ "BSD-3-Clause" ]
null
null
null
from aiogram.dispatcher.filters.state import StatesGroup, State class Attack(StatesGroup): set_phone_call = State() class Mailing(StatesGroup): set_mailing_text_call = State()
26.428571
63
0.783784
118
0.637838
0
0
0
0
0
0
0
0
055c45d3bc0e2eb761a389c587de2205205755a0
255
py
Python
apps/user/urls.py
dimastbk/x-one_test
aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc
[ "MIT" ]
1
2020-08-10T11:46:17.000Z
2020-08-10T11:46:17.000Z
apps/user/urls.py
dimastbk/x-one_test
aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc
[ "MIT" ]
null
null
null
apps/user/urls.py
dimastbk/x-one_test
aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from apps.user.views import AuthViewSet, UserViewSet router = DefaultRouter() router.register("", AuthViewSet, basename="auth") router.register("", UserViewSet, basename="user") urlpatterns = router.urls
28.333333
52
0.796078
0
0
0
0
0
0
0
0
16
0.062745
055c91bef8da3c2b5ab9913ec9ae41927e8fef83
1,514
py
Python
evkit/utils/misc.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
120
2019-04-22T04:45:28.000Z
2022-03-23T01:53:17.000Z
evkit/utils/misc.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
14
2019-06-12T08:21:21.000Z
2021-08-25T15:36:58.000Z
evkit/utils/misc.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
19
2019-06-19T07:00:36.000Z
2022-03-24T07:18:30.000Z
import collections import torch import pprint import string remove_whitespace = str.maketrans('', '', string.whitespace) def cfg_to_md(cfg, uuid): ''' Because tensorboard uses markdown''' return uuid + "\n\n " + pprint.pformat((cfg)).replace("\n", " \n").replace("\n \'", "\n \'") + "" def is_interac...
22.939394
110
0.579921
302
0.199472
0
0
0
0
0
0
264
0.174373
055cc455230997c5276c879e8d734a4e3c932b7e
1,652
py
Python
g13gui/g13/manager_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
3
2021-10-16T01:28:24.000Z
2021-12-07T21:49:54.000Z
g13gui/g13/manager_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
12
2021-05-09T16:57:18.000Z
2021-06-16T19:20:57.000Z
g13gui/g13/manager_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
null
null
null
#!/usr/bin/python import unittest import time import usb.util from g13gui.observer.observer import ObserverTestCase from g13gui.model.prefs import Preferences from g13gui.g13.manager import DeviceManager from g13gui.g13.manager import LCD_BUFFER_SIZE class DeviceManagerTests(ObserverTestCase): def setUp(self): ...
24.656716
65
0.598668
1,347
0.815375
0
0
0
0
0
0
27
0.016344
055df8a4d5bc728dd507e18c15a01996fcd7eeb9
754
py
Python
mpikat/utils/unix_socket.py
ewanbarr/mpikat
1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9
[ "MIT" ]
2
2018-11-12T12:17:27.000Z
2019-02-08T15:44:14.000Z
mpikat/utils/unix_socket.py
ewanbarr/mpikat
1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9
[ "MIT" ]
3
2018-08-03T12:05:20.000Z
2018-08-03T12:13:53.000Z
mpikat/utils/unix_socket.py
ewanbarr/mpikat
1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9
[ "MIT" ]
4
2019-01-21T16:31:34.000Z
2019-12-03T09:27:15.000Z
import socket import logging log = logging.getLogger('mpikat.utils.unix_socket') class UDSClient(object): def __init__(self, socket_name): self._socket_name = socket_name self._sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: self._sock.connect(self._socket_name) ...
26.928571
78
0.635279
669
0.887268
0
0
0
0
0
0
76
0.100796
0560a6e08907adcfebf943f18a20892cd59deb17
311
py
Python
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
#1- Crie um programa que ler 3 números inteiros A, B, C e exibe a mensagem se o resultado R=(A+B)/C é maior que B ou não. A, B, C = int(input()), int(input()), int(input()) R = (A + B)/C def Maior(R, B): if (R > B): return 'R é maior que B.' else: return 'R não é maior que B.' print(Maior(R, B))
25.916667
121
0.59164
0
0
0
0
0
0
0
0
167
0.526814
0560aa251cb9f57348aa3861ec51b4ed5e27e782
1,021
py
Python
mlearn/static/py/funcs.py
achandir/django-machine-learning-beta
9604953addee0c1bea90d308b4248a69d332f5a8
[ "BSD-3-Clause" ]
null
null
null
mlearn/static/py/funcs.py
achandir/django-machine-learning-beta
9604953addee0c1bea90d308b4248a69d332f5a8
[ "BSD-3-Clause" ]
null
null
null
mlearn/static/py/funcs.py
achandir/django-machine-learning-beta
9604953addee0c1bea90d308b4248a69d332f5a8
[ "BSD-3-Clause" ]
null
null
null
from django.core.files.storage import FileSystemStorage from django.conf import settings import os class OverwriteStorage(FileSystemStorage): def get_available_name(self, name, max_length=None): """ Returns a filename that's free on the target storage system, and available for new...
30.029412
84
0.539667
911
0.892262
0
0
0
0
0
0
320
0.313418
0561ca0895bec1e2984e237afabbb565849b0693
140
py
Python
room/services.py
F4ever/dots
b893802a78d4c8c1054a2c75c80dc1dd27d51eac
[ "Apache-2.0" ]
null
null
null
room/services.py
F4ever/dots
b893802a78d4c8c1054a2c75c80dc1dd27d51eac
[ "Apache-2.0" ]
6
2020-06-05T20:10:02.000Z
2021-09-22T18:09:52.000Z
room/services.py
F4ever/dots
b893802a78d4c8c1054a2c75c80dc1dd27d51eac
[ "Apache-2.0" ]
null
null
null
class RoomCalculationService: def __init__(self, room_id): self.room_id = room_id def calculate_results(self): pass
23.333333
32
0.678571
140
1
0
0
0
0
0
0
0
0
05622f786bb071a97ceb1da54cab05760a5a36c8
624
py
Python
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
1
2017-03-31T01:48:07.000Z
2017-03-31T01:48:07.000Z
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
null
null
null
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
null
null
null
__author__ = 'sp' class Location: def __init__(self, x, y): self.x = x self.y = y class Location_ID: def __init__(self, id, direct, x, y, range): self.id = id self.direct = direct self.x = x self.y = y self.range = range class Products(): def __in...
19.5
48
0.517628
595
0.953526
0
0
0
0
0
0
4
0.00641
0564823c9e294186f86aee5daa972c4a2f49f3f0
2,400
py
Python
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
#!venv/bin/python import os, re, json from flask import Flask, request from flask_restful import Resource, Api from json import dumps from flask_jsonpify import jsonify from flask import render_template from boxes import * app = Flask(__name__) api = Api(app) def get_logs(date, severity, box): DATESTAMP_RE...
30.379747
96
0.617917
310
0.129167
0
0
0
0
0
0
416
0.173333
056594b9b59d36dfeef52d15b7455e3dcb8e0bf9
1,362
py
Python
federateme.py
elitest/federateme.py
887d27ddae814d7ed03fd7c993493d927d2492d5
[ "Unlicense" ]
null
null
null
federateme.py
elitest/federateme.py
887d27ddae814d7ed03fd7c993493d927d2492d5
[ "Unlicense" ]
null
null
null
federateme.py
elitest/federateme.py
887d27ddae814d7ed03fd7c993493d927d2492d5
[ "Unlicense" ]
1
2021-04-13T20:02:14.000Z
2021-04-13T20:02:14.000Z
#!/usr/bin/env python3 import boto.utils, json, requests def detect_ec2(): try: r = requests.get('http://169.254.169.254/latest/meta-data/ami-id') print(r) # probably should check for something in the response here. return True except: return False def gen_link(): ...
41.272727
175
0.642438
0
0
0
0
0
0
0
0
715
0.524963
0565ccb5f3f8b36de113f3a2bcbbc32675fef341
58,839
py
Python
pysnmp-with-texts/FORCE10-MONITORING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/FORCE10-MONITORING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/FORCE10-MONITORING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module FORCE10-MONITORING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FORCE10-MONITORING-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:14:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
131.044543
6,796
0.791261
0
0
0
0
0
0
0
0
17,718
0.301127
056746e5dbf852638494e8c736e9cb3208ccd43b
1,964
py
Python
recycler.py
LAION-AI/crawlingathome
43a477777fb403046d67224747cde1dac9f2094a
[ "MIT" ]
11
2021-06-02T03:46:52.000Z
2021-09-11T22:19:12.000Z
recycler.py
LAION-AI/crawlingathome
43a477777fb403046d67224747cde1dac9f2094a
[ "MIT" ]
9
2021-06-14T07:46:20.000Z
2021-08-28T22:50:46.000Z
recycler.py
LAION-AI/crawlingathome
43a477777fb403046d67224747cde1dac9f2094a
[ "MIT" ]
7
2021-06-01T11:59:36.000Z
2022-03-20T13:44:18.000Z
import numpy as np from requests import session from .core import CPUClient, GPUClient, HybridClient from .temp import TempCPUWorker from .errors import * # Dump a client's attributes into a dictionary so that it can be used remotely. def dump(c): try: return { "_type": c.type, "u...
35.709091
118
0.614562
0
0
0
0
0
0
0
0
431
0.21945
0567803d049b2b08966e5134ef97c6b64fdfc130
1,921
py
Python
config.py
uncharted-distil/distil-auto-ml
244661942cff11617c81830d7f58a9f9b5c9499d
[ "Apache-2.0" ]
2
2019-06-20T23:32:10.000Z
2021-01-24T22:32:07.000Z
config.py
uncharted-distil/distil-auto-ml
244661942cff11617c81830d7f58a9f9b5c9499d
[ "Apache-2.0" ]
157
2019-04-09T18:40:42.000Z
2021-05-06T13:44:33.000Z
config.py
uncharted-distil/distil-auto-ml
244661942cff11617c81830d7f58a9f9b5c9499d
[ "Apache-2.0" ]
1
2019-07-12T22:17:46.000Z
2019-07-12T22:17:46.000Z
import os DB_LOCATION = os.getenv("DB_URI", "test.db") # Debug flag to output more verbose logging # - defaults to False DEBUG = os.getenv("DEBUG", False) # Configurable output directory for saving machine learning model pickles # - defaults to ../output OUTPUT_DIR = os.getenv("OUTPUT_DIR", "output") # Port to make...
34.303571
85
0.753774
0
0
0
0
0
0
0
0
1,291
0.672046
0567c00611e59a9c33c0140344f11e8c956bd4aa
278
py
Python
python/testData/completion/slots.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/slots.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/slots.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A(object): __slots__ = ['foo', 'bar'] a = A() a.ba<caret> class B(object): __slots__ = ['bar'] class C(B): pass C().ba<caret> class D(object): pass class E(D): __slots__ = ['bar'] E().ba<caret> class F: __slots__ = ['baz'] F().ba<caret>
9.586207
30
0.535971
47
0.169065
0
0
0
0
0
0
25
0.089928
056887fff4c016e1bd810fe62a7c889a8d65cc5e
1,952
py
Python
aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py
AlejandroRios/IAANDOCAC-aircraft-framework
9768e9736af70e20e8ef1cc0ad6501f3a28dbb47
[ "Apache-2.0" ]
null
null
null
aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py
AlejandroRios/IAANDOCAC-aircraft-framework
9768e9736af70e20e8ef1cc0ad6501f3a28dbb47
[ "Apache-2.0" ]
null
null
null
aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py
AlejandroRios/IAANDOCAC-aircraft-framework
9768e9736af70e20e8ef1cc0ad6501f3a28dbb47
[ "Apache-2.0" ]
null
null
null
""" Function : Title : Written by: Email : aarc.88@gmail.com Date : Last edit : Language : Python 3.8 or > Aeronautical Institute of Technology - Airbus Brazil Description: - Inputs: - Outputs: - TODO's: - """ # =========================================================================...
22.436782
79
0.236168
0
0
0
0
0
0
0
0
1,623
0.831455
056958a4ad13bb68213d3b4a27aff485fb258a2f
317
py
Python
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
N = int(input()) X = list(map(int, input().split())) W = list(map(int, input().split())) def weighted_mean(X, W): numerator = sum([a * b for a, b in zip(X, W)]) denominator = sum(W) weighted_mean_value = numerator / denominator return round(weighted_mean_value, 1) print(weighted_mean(X, W))
16.684211
50
0.630915
0
0
0
0
0
0
0
0
0
0
0569e6f550e0e8fb6bd11e2714deff2f7f71997f
2,274
py
Python
common/settings.py
hehanlin/jobbole
46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9
[ "BSD-3-Clause" ]
2
2018-01-18T09:16:16.000Z
2022-02-12T08:59:23.000Z
common/settings.py
hehanlin/jobbole
46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9
[ "BSD-3-Clause" ]
null
null
null
common/settings.py
hehanlin/jobbole
46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os os_env = os.environ class Config(object): COMMON_PATH = os.path.abspath(os.path.dirname(__file__)) # This directory PROJECT_ROOT = os.path.abspath(os.path.join(COMMON_PATH, os.pardir)) DATABASE_URL = "postgresql://he:he@localhost:5432/jobbole" class CeleryConfig(obje...
30.72973
100
0.554969
940
0.383987
0
0
0
0
0
0
1,276
0.521242
056bdc49927b577c2ca6f33c088621f5b1d3d179
8,834
py
Python
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
9
2021-03-22T09:18:58.000Z
2022-03-02T01:42:11.000Z
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
null
null
null
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
2
2022-03-29T07:59:12.000Z
2022-03-31T09:10:47.000Z
import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Mock.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! import sys import subprocess import application_backend as ab from PyQt5 im...
43.732673
130
0.677043
8,433
0.954607
0
0
0
0
0
0
1,264
0.143084
056ef751fabceeae1db74a620559c093e5b86dfa
10,935
py
Python
load-testing/locustfile.py
MaksimAniskov/aws-global-odoo
0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f
[ "MIT" ]
null
null
null
load-testing/locustfile.py
MaksimAniskov/aws-global-odoo
0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f
[ "MIT" ]
1
2022-01-26T08:58:34.000Z
2022-01-26T08:58:34.000Z
load-testing/locustfile.py
MaksimAniskov/aws-global-odoo
0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f
[ "MIT" ]
null
null
null
from locust import HttpUser, task, between import re import random import json import os class OdooUser: if os.environ.get('HOST'): host = os.environ.get('HOST') wait_time = between(20, 40) def on_start(self): response = self.client.get("/web/login") assert response.status_code =...
34.714286
102
0.438317
10,674
0.976132
0
0
7,401
0.676818
0
0
3,131
0.286328
05702fee1b4a5bd092fcebf23643ddbeb574cdf2
939
py
Python
code/model/testSpeedPolar.py
PBarde/IBoatPIE
dd8038f981940b732be979b49e9b14102c3d4cca
[ "MIT" ]
1
2018-02-22T15:38:01.000Z
2018-02-22T15:38:01.000Z
code/model/testSpeedPolar.py
PBarde/IBoatPIE
dd8038f981940b732be979b49e9b14102c3d4cca
[ "MIT" ]
null
null
null
code/model/testSpeedPolar.py
PBarde/IBoatPIE
dd8038f981940b732be979b49e9b14102c3d4cca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 13 18:03:27 2017 @author: paul """ from SimulatorTLKT import Boat from SimulatorTLKT import FIT_VELOCITY import numpy as np import matplotlib import matplotlib.pyplot as plt from math import pi matplotlib.rcParams.update({'font.size': 22}) pOfS=...
25.378378
85
0.690096
0
0
0
0
0
0
0
0
332
0.353568
05705dae303e8a7ae7b9765283158fc78c1a5987
3,387
py
Python
src/mcxlib/usage_examples.py
carlashley/meecxprofile
1fe776b3f23dd9b224d87dd155cc1681cf13fb5e
[ "Apache-2.0" ]
2
2021-09-10T12:52:43.000Z
2021-09-10T15:38:29.000Z
src/mcxlib/usage_examples.py
carlashley/meecxprofile
1fe776b3f23dd9b224d87dd155cc1681cf13fb5e
[ "Apache-2.0" ]
null
null
null
src/mcxlib/usage_examples.py
carlashley/meecxprofile
1fe776b3f23dd9b224d87dd155cc1681cf13fb5e
[ "Apache-2.0" ]
null
null
null
from pprint import pformat ds_obj_mcx_note = ('The MCX data returned back from \'dscl\' is a string nested in the attribute queried.\n' 'Settings can be filtered by using key filters.\n' 'Multiple values can be filtered for specific domains by comma seperating the values\n' ...
91.540541
138
0.437851
0
0
0
0
0
0
0
0
1,723
0.50871
057149c969c7c699e7d3de460f67852d23e83cd2
2,622
py
Python
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
# DESCRIPTION # Run dns check and store the results in the db # monitor_source = host address # DEPENDENCIES # Install python # Install mysql.connector "python -m pip install mysql-connector-python" # Install dotenv "python -m pip install python-dotenv" # Install nslookup "python -m pip install nslookup" # HOW TO RUN...
30.137931
131
0.676583
0
0
0
0
0
0
0
0
1,445
0.551106
0571570e4ea6cc0ac98e3e348473a3292c2d2151
797
py
Python
program_param.py
duszek123/Example_Project
72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb
[ "MIT" ]
null
null
null
program_param.py
duszek123/Example_Project
72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb
[ "MIT" ]
null
null
null
program_param.py
duszek123/Example_Project
72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb
[ "MIT" ]
null
null
null
import torch import cv2 #data dir with train i validation picture data_dir = '/home/pawel/Pulpit/picture_data' #source video stream camera_source = '/dev/video2' #flag, false, not used save = False #input picture size (px) input_size = (224,224) size_pict = input_size[0] #part of the data from the database intended f...
24.151515
71
0.756587
0
0
0
0
0
0
0
0
401
0.503137
0572b494de8de54123140e45c9c69a2ed0fbad3b
501
py
Python
models/fields/__init__.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
67
2021-12-02T05:53:44.000Z
2022-03-31T07:21:26.000Z
models/fields/__init__.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
13
2021-12-05T14:23:46.000Z
2022-03-25T21:07:20.000Z
models/fields/__init__.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
16
2022-01-11T11:48:24.000Z
2022-03-27T19:20:58.000Z
from .classifier import SpatialClassifier def get_field(config, num_classes, num_indicators, in_channels): if config.name == 'classifier': return SpatialClassifier( num_classes = num_classes, num_indicators = num_indicators, in_channels = in_channels, num_fi...
31.3125
68
0.628743
0
0
0
0
0
0
0
0
31
0.061876
0572d30a3c1b204b7741919022f74dedf09c6c6c
1,693
py
Python
get_data/__init__.py
BrunoASNascimento/inmet_api
ec663543b1f6a77900166df2e6bf64d1f26f910d
[ "MIT" ]
null
null
null
get_data/__init__.py
BrunoASNascimento/inmet_api
ec663543b1f6a77900166df2e6bf64d1f26f910d
[ "MIT" ]
null
null
null
get_data/__init__.py
BrunoASNascimento/inmet_api
ec663543b1f6a77900166df2e6bf64d1f26f910d
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import requests import pandas as pd def cleaner_data(data): columns = ['ESTACAO', 'LATITUDE', 'LONGITUDE', 'ALTITUDE', 'ANO', 'MES', 'DIA', 'HORA', 'TEMP', 'TMAX', 'TMIN', 'UR', 'URMAX', 'URMIN', 'TD', 'TDMAX', 'TDMIN', 'PRESSAONNM', 'PRESSAONNM_MAX', 'PRESS...
32.557692
151
0.559362
0
0
0
0
0
0
0
0
546
0.322504
05757df9e7e0717b064bec504f59f7b4d4c67024
7,795
py
Python
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
#%% # import libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import datetime import os import time %matplotlib inline #%% import pymysql def Select(tableName, start, end) : sql_query = """ SELECT DataSavedTime, Item005 FROM """+tableName+""" WHERE DataSavedTime...
29.194757
134
0.630276
0
0
0
0
0
0
0
0
1,823
0.233868
057648a66341634f2bd91398e33248914e65d08f
435
py
Python
src/pynorare/cli_util.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
src/pynorare/cli_util.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
5
2020-07-20T11:05:07.000Z
2022-03-11T15:51:52.000Z
src/pynorare/cli_util.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
from pyconcepticon import Concepticon from pynorare.dataset import get_dataset_cls def add_datasets(parser): parser.add_argument( 'dataset', nargs='+', help='select your dataset', type=str) def iter_datasets(args): for dsid in args.dataset: cls = get_dataset_cls(args...
24.166667
81
0.691954
0
0
203
0.466667
0
0
0
0
33
0.075862
0576551dec71ed65de6452c0a4914168209bd3e8
2,987
py
Python
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
24
2015-04-03T10:24:18.000Z
2022-01-29T10:50:34.000Z
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
2
2016-03-28T04:10:14.000Z
2017-02-22T23:25:12.000Z
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
10
2015-05-06T06:26:21.000Z
2019-11-13T23:11:11.000Z
# Copyright 2012 Jonathan Paugh # See COPYING for license details ''' Functions that deal with lang files or rulesets ''' import ds import comp as cpl from .options import opt from .util import fwarn, do_re, gettype import os langdir = os.path.join(os.path.dirname(__file__), 'lang') if not os.path.isdir(langdir): ...
23.706349
69
0.657181
0
0
0
0
0
0
0
0
1,349
0.451624
057756ea7512bea24b4425c570ad661d5b1d078c
118
py
Python
Codeforces/B_Simple_Game.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Simple_Game.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Simple_Game.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
n,m=map(int,input().split()) mid=n//2 if n==1 and m==1: print("1") elif mid<m: print(m-1) else: print(m+1)
14.75
28
0.542373
0
0
0
0
0
0
0
0
3
0.025424
057a549b59e9c893c4abd50247ba001cdab7fac2
966
py
Python
toughradius/tests/test_base.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
1
2019-05-12T15:06:58.000Z
2019-05-12T15:06:58.000Z
toughradius/tests/test_base.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
toughradius/tests/test_base.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 from toughlib import config as iconfig import os import requests class TestMixin: MANAGE_URL = 'http://127.0.0.1:18160' def sub_path(self,path): return "%s%s"%(TestMixin.MANAGE_URL,path) def init_rundir(self): try: os.mkdir("/tmp/toughradiu...
27.6
95
0.575569
864
0.89441
0
0
0
0
0
0
156
0.161491
057b75bb649e28b716661271413ac2187e4d17f1
48
py
Python
game/data/components/__init__.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
8
2019-12-15T22:32:30.000Z
2021-06-14T07:38:51.000Z
game/data/components/__init__.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
null
null
null
game/data/components/__init__.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
2
2020-09-10T17:34:23.000Z
2021-03-11T09:26:26.000Z
from game.data.components.TestComponent import *
48
48
0.854167
0
0
0
0
0
0
0
0
0
0
057bdb050500b53da7e385ff2282c3ebb232fe64
121
py
Python
hcaptcha/__init__.py
yunusbyrak/py-hcaptcha
f429bfaba7619c2ac255ae101423d72c2866aa09
[ "MIT" ]
1
2022-01-09T23:49:03.000Z
2022-01-09T23:49:03.000Z
hcaptcha/__init__.py
bryonpokemon/py-hcaptcha
92f723c8f5180d921731d7d04deb637099514a2e
[ "MIT" ]
null
null
null
hcaptcha/__init__.py
bryonpokemon/py-hcaptcha
92f723c8f5180d921731d7d04deb637099514a2e
[ "MIT" ]
1
2022-01-09T23:49:03.000Z
2022-01-09T23:49:03.000Z
from .challenges import Challenge from .solvers import Solver from .agents import random_agent from .exceptions import *
24.2
33
0.826446
0
0
0
0
0
0
0
0
0
0
057c321a1c38497a94f1e9f85d9de7c4b624cddb
10,869
py
Python
mscode/xp/general_comparison.py
cohenjer/mscode
e761c4af0227c386bdc7d22a55a2218486faf708
[ "MIT" ]
null
null
null
mscode/xp/general_comparison.py
cohenjer/mscode
e761c4af0227c386bdc7d22a55a2218486faf708
[ "MIT" ]
null
null
null
mscode/xp/general_comparison.py
cohenjer/mscode
e761c4af0227c386bdc7d22a55a2218486faf708
[ "MIT" ]
null
null
null
# recovery (and error) vs noise for all algorithms # recovery (and error) vs condB for all algorithms # recovery vs (k,d) for all algorithms (heatmap) # todo: also condD? # Questions: # - test two distributions for X: Gaussian, and decreasing # - to choose lambda(s), we fix according to average best one from a set o...
44.004049
261
0.631153
0
0
0
0
0
0
0
0
3,440
0.316496
057c9190ccad439b376e3bce3f11d837eb5a4576
42
py
Python
tests/test_modules/simple_test_package/aa.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
20
2017-12-24T00:19:15.000Z
2021-11-15T07:42:25.000Z
tests/test_modules/simple_test_package/aa.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
1
2017-10-22T21:03:41.000Z
2017-12-24T04:26:22.000Z
tests/test_modules/simple_test_package/aa.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
2
2017-11-04T10:06:59.000Z
2019-08-01T22:24:49.000Z
from . import bb def foo(): bb.bar()
8.4
16
0.547619
0
0
0
0
0
0
0
0
0
0
057cd72af1308e0a81b1f8fd12ba9d1678f47b2d
1,262
py
Python
tests/fixtures.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
176
2017-01-30T16:21:48.000Z
2022-02-10T05:32:57.000Z
tests/fixtures.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
49
2017-01-21T20:27:03.000Z
2022-01-16T02:57:51.000Z
tests/fixtures.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
21
2017-01-26T06:08:54.000Z
2022-01-04T19:53:25.000Z
import click import pytest from click.testing import CliRunner @pytest.yield_fixture def pb_api(mocker): from pushbullet_cli import app from tests.mock_pushbullet import MockPushBullet mock_pb = MockPushBullet() mocker.patch.object(app, "_get_pb", return_value=mock_pb) yield mock_pb @pytest.fix...
21.033333
61
0.723455
0
0
219
0.173534
837
0.663233
0
0
9
0.007132
057dcb0e3d38cc7460f6b046f1c4949c4d391cb9
2,478
py
Python
sktime/transformations/hierarchical/tests/test_aggregate.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/transformations/hierarchical/tests/test_aggregate.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/hierarchical/tests/test_aggregate.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- """Tests for hierarchical aggregator.""" # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["ciaran-g"] import pytest from sktime.transformations.hierarchical.aggregate import Aggregator from sktime.utils._testing.hierarchical impor...
33.486486
80
0.717514
0
0
0
0
1,023
0.412833
0
0
1,175
0.474173
057e82bc7eee8bfd854f64e90c47dfe5089a763d
563
py
Python
doni/tests/unit/api/test_availability_window.py
ChameleonCloud/doni
e280a0fddf4ee7d2abb69ceed49a9728e88cf99b
[ "Apache-2.0" ]
null
null
null
doni/tests/unit/api/test_availability_window.py
ChameleonCloud/doni
e280a0fddf4ee7d2abb69ceed49a9728e88cf99b
[ "Apache-2.0" ]
49
2021-03-16T14:58:18.000Z
2022-03-14T22:06:36.000Z
doni/tests/unit/api/test_availability_window.py
ChameleonCloud/doni
e280a0fddf4ee7d2abb69ceed49a9728e88cf99b
[ "Apache-2.0" ]
null
null
null
from flask.testing import FlaskClient from doni.tests.unit import utils def test_list_availability_windows( mocker, user_auth_headers, client: "FlaskClient", database: "utils.DBFixtures" ): mock_authorize = mocker.patch("doni.api.availability_window.authorize") hw = database.add_hardware() res = clie...
29.631579
82
0.708703
0
0
0
0
0
0
0
0
140
0.248668
057ec8e5e224d55258d512334e2a91039899ab2c
747
py
Python
src/genui/generators/serializers.py
Tontolda/genui
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
[ "0BSD" ]
15
2021-05-31T13:39:17.000Z
2022-03-30T12:04:14.000Z
src/genui/generators/serializers.py
martin-sicho/genui
ea7f1272030a13e8e253a7a9b6479ac6a78552d3
[ "MIT" ]
3
2021-04-08T22:02:22.000Z
2022-03-16T09:10:20.000Z
src/genui/generators/serializers.py
Tontolda/genui
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
[ "0BSD" ]
5
2021-03-04T11:00:54.000Z
2021-12-18T22:59:22.000Z
""" serializers Created by: Martin Sicho On: 27-01-20, 17:00 """ from rest_framework import serializers from genui.utils.serializers import GenericModelSerializerMixIn from genui.compounds.serializers import MolSetSerializer from genui.projects.serializers import ProjectSerializer from . import models class Generato...
29.88
96
0.781794
438
0.586345
0
0
0
0
0
0
130
0.174029
057f8e845bc31c86789aa18cb713245d93a393bc
5,898
py
Python
cccbr_methods/models.py
lelandpaul/cccbr_methods
8fce303d7d7fd178f1b371389a4cc318852e392a
[ "MIT" ]
null
null
null
cccbr_methods/models.py
lelandpaul/cccbr_methods
8fce303d7d7fd178f1b371389a4cc318852e392a
[ "MIT" ]
1
2021-12-13T20:44:46.000Z
2021-12-13T20:44:46.000Z
cccbr_methods/models.py
lelandpaul/cccbr_methods
8fce303d7d7fd178f1b371389a4cc318852e392a
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from datetime import datetime, timedelta from sqlalchemy import Table, Column, Integer, String, Date, ForeignKey, Boolean from sqlalchemy.orm import relationship, backref from sqlalchemy.orm import sessionmaker from re import s...
45.369231
106
0.590709
5,274
0.894201
337
0.057138
1,364
0.231265
0
0
1,471
0.249407
057fec44c986714a8f02d47b39f9f891463a6252
848
py
Python
peuler_012_better.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
peuler_012_better.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
peuler_012_better.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import math class Solution: @staticmethod def number_of_factor(self): count = 0 if self == 1: return 1 for i in range(1, math.ceil(math.sqrt(self))): if self % i == 0: count += 2 if math.ceil(math.sqrt(self)) == math....
20.190476
69
0.5625
355
0.418632
0
0
335
0.395047
0
0
195
0.229953
05803580ad5cf536a86b26fbe2b79573b774b99b
9,253
py
Python
swyft/plot/plot.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
104
2020-11-26T09:46:03.000Z
2022-03-18T06:22:03.000Z
swyft/plot/plot.py
cweniger/swyft
2c0ed514622a37e8ec4e406b99a8327ecafb7ab4
[ "MIT" ]
83
2021-03-02T15:54:26.000Z
2022-03-10T08:09:05.000Z
swyft/plot/plot.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
10
2021-02-04T14:27:36.000Z
2022-03-31T17:39:34.000Z
import numpy as np import pylab as plt from scipy.integrate import simps def grid_interpolate_samples(x, y, bins=1000, return_norm=False): idx = np.argsort(x) x, y = x[idx], y[idx] x_grid = np.linspace(x[0], x[-1], bins) y_grid = np.interp(x_grid, x, y) norm = simps(y_grid, x_grid) y_grid_norm...
29.848387
88
0.514428
0
0
0
0
0
0
0
0
1,735
0.187507
05819bbe1c0902e6600dadc33453e92046d7a1ff
3,038
py
Python
control-gastos/python/main.py
manuelduarte077/Ejercicios-con-Python-NodeJS
d7b26fdeeb1640272847274b99b2f607145d58a4
[ "MIT" ]
1
2021-07-13T18:43:59.000Z
2021-07-13T18:43:59.000Z
control-gastos/python/main.py
manuelduarte077/Ejercicios-con-Python-NodeJS
d7b26fdeeb1640272847274b99b2f607145d58a4
[ "MIT" ]
null
null
null
control-gastos/python/main.py
manuelduarte077/Ejercicios-con-Python-NodeJS
d7b26fdeeb1640272847274b99b2f607145d58a4
[ "MIT" ]
null
null
null
import os from tabulate import tabulate import requests def iniciar(): os.system('cls') while True: print('Seleccione una opción: ') print('\t1. Registrar movimiento') print('\t2. Ver todos los movimientos') print('\t3. Buscar un movimiento') print('\t4. Modificar un mo...
31
79
0.600066
0
0
0
0
0
0
0
0
1,024
0.336731
05826df3789ad47bc005b4bcd34765514c7e2fd2
409
py
Python
examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
31
2020-05-02T13:34:26.000Z
2021-06-06T17:25:52.000Z
examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
108
2019-11-18T19:41:52.000Z
2022-03-18T13:58:17.000Z
examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
4
2020-05-19T08:57:44.000Z
2020-09-21T08:53:46.000Z
"""Depth-first traversing of a binary tree. Call a function _f on every node of binary tree _bt, in depth-first infix order Source: programming-idioms.org """ # Implementation author: TinyFawks # Created on 2016-02-18T08:50:27.130406Z # Last modified on 2016-02-18T09:16:52.625429Z # Version 2 # Recursive DFS. def...
18.590909
79
0.694377
0
0
0
0
0
0
0
0
307
0.750611
0582a1028ca60869856e20d167bdffc0aa95e128
412
py
Python
pal95_doc/docs/__init__.py
MacHu-GWU/pal95_doc-project
753b865435f316e985320247489e68f465741827
[ "MIT" ]
13
2019-10-01T02:51:27.000Z
2022-02-28T17:38:58.000Z
pal95_doc/docs/__init__.py
MacHu-GWU/pal95_doc-project
753b865435f316e985320247489e68f465741827
[ "MIT" ]
2
2020-11-09T09:17:21.000Z
2021-04-27T21:20:59.000Z
pal95_doc/docs/__init__.py
MacHu-GWU/pal95_doc-project
753b865435f316e985320247489e68f465741827
[ "MIT" ]
1
2020-02-28T12:05:22.000Z
2020-02-28T12:05:22.000Z
# -*- coding: utf-8 -*- from .equipment import lt_equipment from .spell import lt_spell_lxy, lt_spell_zle, lt_spell_lyr, lt_spell_an from .monster import lt_monster from .zone import lt_zone doc_data = dict( lt_equipment=lt_equipment, lt_spell_lxy=lt_spell_lxy, lt_spell_zle=lt_spell_zle, lt_spell_lyr=...
25.75
72
0.764563
0
0
0
0
0
0
0
0
23
0.055825
0582c3422fbd8d71835125e19cb23d6667d70ef1
3,157
py
Python
nexrad/nexrad_tutorial.py
uva-hydroinformatics-lab/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
1
2019-01-08T03:57:49.000Z
2019-01-08T03:57:49.000Z
nexrad/nexrad_tutorial.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
nexrad/nexrad_tutorial.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy.ma as ma import numpy as np import pyart.graph import tempfile import pyart.io import boto s3conn = boto.connect_s3("AKIAISFFH4JXWC2HYFSA","9Az+XWYP9cbL3Sh641z/tbMuC1CSpjPjQTFkHj8D") bucket = s3conn.get_bucket('noaa-nexrad-level2') s3key = bucket.get_key('2015/05/...
36.287356
113
0.667089
0
0
0
0
0
0
0
0
1,038
0.328793
05830297f5e87cadfedcaa83499c7c9b2affb118
3,746
py
Python
ServeRest-APITesting-Python/Tests/test_cart.py
barbosamp/automacao-api-rest-jornada-learning
9ceb57bc6f4d845c35a149d760775c10c3a38614
[ "MIT" ]
2
2020-11-20T18:40:32.000Z
2021-04-20T23:13:13.000Z
ServeRest-APITesting-Python/Tests/test_cart.py
barbosamp/automacao-api-rest-jornada-learning
9ceb57bc6f4d845c35a149d760775c10c3a38614
[ "MIT" ]
1
2020-10-22T16:16:40.000Z
2020-10-22T16:16:40.000Z
ServeRest-APITesting-Python/Tests/test_cart.py
kpedron/automacao-api-rest-jornada-learning
50ceaf9f43b03383cc65e92460b6b9a398a88e02
[ "MIT" ]
2
2020-10-16T02:37:20.000Z
2020-10-31T13:54:46.000Z
import unittest import requests import json import pytest BASE_URL = "https://api.serverest.dev" class Products(unittest.TestCase): def setUp(self): # Do authentication # Cart endpoint requires authentication full_url = BASE_URL + "/login" body = { "email": "fulano@qa...
32.017094
108
0.591564
3,648
0.9728
0
0
0
0
0
0
1,214
0.323733
05836efbaef8a6e021845f469c0a620d95e4b977
372
py
Python
MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py
alex-lake29/MotorTorpedoQuotePT-109
012d45e8a329022492acad86e6693abf0ba5b7d2
[ "MIT" ]
null
null
null
MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py
alex-lake29/MotorTorpedoQuotePT-109
012d45e8a329022492acad86e6693abf0ba5b7d2
[ "MIT" ]
null
null
null
MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py
alex-lake29/MotorTorpedoQuotePT-109
012d45e8a329022492acad86e6693abf0ba5b7d2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2022-03-21 19:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('QuotePT109', '0001_initial'), ] operations = [ migrations.AddField( model_name='page', name='likes', fie...
19.578947
49
0.583333
279
0.75
0
0
0
0
0
0
86
0.231183
0585d3beb2756c9c282cc3b3a1b2f3b72dff380a
474
py
Python
message_sender/migrations/0003_auto_20161124_1357.py
praekeltfoundation/seed-message-sender
d90ef4dc9fa248df97ca97f07569c6c70afcd1bd
[ "BSD-3-Clause" ]
1
2017-01-03T08:53:18.000Z
2017-01-03T08:53:18.000Z
message_sender/migrations/0003_auto_20161124_1357.py
praekelt/seed-message-sender
d90ef4dc9fa248df97ca97f07569c6c70afcd1bd
[ "BSD-3-Clause" ]
45
2016-03-16T09:32:27.000Z
2018-06-28T10:05:19.000Z
message_sender/migrations/0003_auto_20161124_1357.py
praekeltfoundation/seed-message-sender
d90ef4dc9fa248df97ca97f07569c6c70afcd1bd
[ "BSD-3-Clause" ]
1
2016-09-28T09:32:05.000Z
2016-09-28T09:32:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-11-24 13:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("message_sender", "0002_auto_20161124_1150")] operations = [ migrations.AlterField( ...
24.947368
74
0.656118
317
0.668776
0
0
0
0
0
0
136
0.28692
058753427b8d12d1061f42dc505d9be81b5a17ea
15,639
py
Python
src/02_ppo.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
src/02_ppo.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
src/02_ppo.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """02-ppo.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1GXTVkhpJyQQsUWn6tGQAWPmstw9adAzj # PPO for transformer models > A Pytorch implementation of Proximal Policy Optimization for transfomer models. This follows the l...
47.390909
564
0.632585
11,416
0.72997
0
0
0
0
0
0
7,162
0.457958
0587d07321592ddb102cc4ed98640454fd0d67f7
4,589
py
Python
RockPaperScissors.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
RockPaperScissors.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
RockPaperScissors.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
3
2020-12-19T13:48:06.000Z
2021-08-12T18:36:33.000Z
"""Rock Paper Scisssors game using OOP""" import random from tempfile import mkstemp from shutil import move, copymode from os import fdopen, remove class RockPaperScissors: """initializing the 'global' atributtes""" def __init__(self): self.defeat = {"scissors": "rock", "paper" : "scissors"...
33.014388
123
0.504249
4,187
0.912399
0
0
0
0
0
0
1,253
0.273044
0588017972ca3ca8aebe2412eda69531f658e740
807
py
Python
jarvis/accounts/tests/factories.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2019-01-03T06:10:04.000Z
2019-01-03T06:10:04.000Z
jarvis/accounts/tests/factories.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2021-03-31T19:11:52.000Z
2021-03-31T19:11:52.000Z
jarvis/accounts/tests/factories.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
null
null
null
from faker import Faker from ..models import Client, UserProfile from django.contrib.auth import get_user_model from factory import django, SubFactory, fuzzy, Sequence, LazyAttribute fake = Faker() User = get_user_model() class ClientFactory(django.DjangoModelFactory): class Meta: model = Client ke...
21.810811
70
0.700124
574
0.711276
0
0
0
0
0
0
6
0.007435
0588430e94f2e77e31265668a8e628ff493b0db0
24
py
Python
tests/components/devcon/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/components/devcon/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/components/devcon/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Tests for Devcon."""
12
23
0.583333
0
0
0
0
0
0
0
0
23
0.958333
05884cb8cc1e8c53f7f9b4339d31feb82c92a4b6
98
py
Python
Code coach problems/Easy/Python/Isogram_Detector.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-07-27T07:32:57.000Z
2020-07-27T07:32:57.000Z
Code coach problems/Easy/Python/Isogram_Detector.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
null
null
null
Code coach problems/Easy/Python/Isogram_Detector.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-11-07T12:45:21.000Z
2020-11-07T12:45:21.000Z
a = input() i = 0 while i != len(a): if a[i] in a[i+1:]: break print(str(i == len(a)).lower())
14
31
0.510204
0
0
0
0
0
0
0
0
0
0
0589b9d3ea2a64dcded6b8ab04bba1a44e732a41
2,813
py
Python
src/cbc_binary_toolkit/schemas.py
carbonblack/cbc-binary-toolkit
92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4
[ "MIT" ]
8
2020-05-12T18:08:52.000Z
2021-12-27T06:11:00.000Z
src/cbc_binary_toolkit/schemas.py
carbonblack/cbc-binary-toolkit
92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4
[ "MIT" ]
4
2020-05-13T16:07:49.000Z
2020-06-30T18:47:14.000Z
src/cbc_binary_toolkit/schemas.py
carbonblack/cbc-binary-toolkit
92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4
[ "MIT" ]
3
2020-05-16T19:57:57.000Z
2020-11-01T08:43:31.000Z
# -*- coding: utf-8 -*- # ******************************************************* # Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved. # SPDX-License-Identifier: MIT # ******************************************************* # * # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT # * WARRANTIES OR C...
31.606742
93
0.542126
0
0
0
0
0
0
0
0
1,188
0.422325