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
7b788c4e537ccfe9b9a19c03459ac9310b0314ff
662
py
Python
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django_home_urls", version="0.1.0", author="Yuji Koseki", author_email="pxquuqjm0k62new7q4@gmail.com", description="Django home urlconf.", long_description=long_description, long_d...
28.782609
58
0.663142
0
0
0
0
0
0
0
0
302
0.456193
7b792f428ffd2ed8a9d5df151157eca526120574
3,553
py
Python
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This script provide a class to read and save files Created on Sat July 21 2018 @author: cttsai """ import pandas as pd from Utility import CheckFileExist from LibConfigs import logger, hdf5_compress_option, fast_hdf5_compress_option class DataFileIO(object): ""...
33.205607
109
0.587672
3,264
0.91866
0
0
935
0.263158
0
0
655
0.184351
7b7fac5e786fffa0981a48a959c7b50a97194205
885
py
Python
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
null
null
null
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
null
null
null
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
1
2021-08-15T16:19:01.000Z
2021-08-15T16:19:01.000Z
#!/bin/python from roomai.sevenking import SevenKingEnv from roomai.sevenking import SevenKingAction import unittest class testSevenKing(unittest.TestCase): def show_hand_card(self,hand_card): str = "" for c in hand_card: str += "," + c.key print (str) def testEnv(self): ...
30.517241
120
0.662147
763
0.862147
0
0
0
0
0
0
67
0.075706
7b817580d6dc21506efb8434e6050e6f651bf968
1,776
py
Python
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
import attr import os import tarfile from pyamazonlandsat.utils import get_path_row_from_name from pyamazonlandsat.downloader import Downloader @attr.s class Product: """Class that represent a Product :param name: name of the Product. type name: str. :param output_path: path where save the downloaded...
31.714286
84
0.614865
1,620
0.912162
0
0
1,628
0.916667
0
0
727
0.409347
7b83240c1ea862333830ef3e4b3423db43db8c92
5,352
py
Python
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
2
2021-04-13T18:54:08.000Z
2021-09-21T23:08:08.000Z
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
null
null
null
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
null
null
null
from __future__ import division from skimage.segmentation import slic, mark_boundaries from skimage.util import img_as_float from skimage import io import numpy as np import matplotlib.pyplot as plt import os from cv2 import boundingRect #from argparse import ArgumentParser img_width = 50 img_height = 50 img_depth = ...
30.409091
112
0.734865
0
0
0
0
0
0
0
0
726
0.13565
7b842e0e690c82590e6a6533bd9a6cab6937e48f
1,797
py
Python
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
"""Parse CWL and create a JSON file describing the workflow. This dictionary is directly suitable for display by vis.js, but can be parsed for any other purpose.""" # Copyright (c) 2019 Seven Bridges. See LICENSE from ..cwl.lib import ListOrMap def cwl_graph(cwl: dict): graph = { "nodes": [], ...
29.95
97
0.590428
0
0
0
0
0
0
0
0
413
0.229827
7b87f62b10bc328cd7870120d84ededf89b99acb
21
py
Python
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def double_char(s):
10.5
19
0.714286
0
0
0
0
0
0
0
0
0
0
7b882a00a99da3e2e17e41e9f577ca3003e8abd3
2,561
py
Python
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates a...
30.488095
76
0.673565
2,342
0.914487
0
0
0
0
0
0
577
0.225303
7b8b21db4d1b5bb95da77aaaeac80ad479fa1496
477
py
Python
reviews/migrations/0006_review_no_login.py
moshthepitt/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
6
2015-07-28T09:36:39.000Z
2020-08-11T17:15:18.000Z
reviews/migrations/0006_review_no_login.py
Swifilaboroka/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
8
2015-12-17T22:56:16.000Z
2022-01-13T00:43:16.000Z
reviews/migrations/0006_review_no_login.py
Swifilaboroka/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
3
2017-07-15T12:13:03.000Z
2022-02-02T10:04:10.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reviews', '0005_auto_20160203_1247'), ] operations = [ migrations.AddField( model_name='review', nam...
23.85
125
0.628931
368
0.771488
0
0
0
0
0
0
120
0.251572
7b8c7e8a4741c68754a4c124370afe960c3a82b1
2,191
py
Python
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
2
2021-01-27T18:39:12.000Z
2021-02-01T06:57:02.000Z
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
null
null
null
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 04kraus.ipynb (unless otherwise specified). __all__ = ['apply_kraus', 'partial_trace_kraus', 'povm_map'] # Cell import numpy as np import qutip as qt # Cell def apply_kraus(dm, kraus): r""" Applies a Kraus map to a density matrix $\rho$. The Kraus map consists in some nu...
42.960784
146
0.64126
0
0
0
0
0
0
0
0
1,314
0.599726
7b8d3bfd9dda43412dd61ee3a956e43a5295cf1f
78
py
Python
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
n = int(input()) num = 1 while num <= n: print(num) num = num * 2 + 1
13
21
0.487179
0
0
0
0
0
0
0
0
0
0
7b8dd1f4d57db9568b64c88454ba16b6a105aa77
4,129
py
Python
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
14
2020-06-30T00:36:14.000Z
2022-01-11T13:15:53.000Z
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
null
null
null
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
2
2020-10-17T15:27:06.000Z
2021-02-27T10:34:04.000Z
import sys sys.path.insert(0,'..') sys.path.insert(0,'../..') from bayes_opt import BayesOpt,BayesOpt_KnownOptimumValue import numpy as np #from bayes_opt import auxiliary_functions from bayes_opt import functions from bayes_opt import utilities import warnings #from bayes_opt import acquisition_maximization import...
25.80625
125
0.654154
0
0
0
0
0
0
0
0
1,467
0.355292
7b8e2e97334a2cce55aad103330d605ea89ea8e4
2,258
py
Python
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
2
2021-03-19T02:23:24.000Z
2021-12-22T15:01:46.000Z
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
null
null
null
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
null
null
null
import icalendar import uuid from datetime import datetime import pytz cst = pytz.timezone('Asia/Shanghai') class Calendar(icalendar.Calendar): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.add('prodid', '-//CDFMLR//coursesical//CN') self.add('VERSION', '2.0...
31.361111
95
0.569088
1,847
0.815093
0
0
0
0
0
0
671
0.296117
7b8f6c6edc977e548344a0694966296691f0f034
816
py
Python
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
#!/usr/bin/python3.2 import unittest from minesweeper.message import * class UTSMessageTest(unittest.TestCase): def test_parse_infer_type(self): """ Instantiates one object for every concrete subclass of UTSMessage using the type-inferring factory method parse_infer_type(), checking that...
27.2
98
0.61152
692
0.848039
0
0
0
0
0
0
304
0.372549
7b917e46393f05ca669d8af2e30bf77af89da6ab
1,640
py
Python
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from distutils.core import setup from distutils.command.build_py import build_py import os import shutil import stat from RunnerPyzza import __version__ class runner_build_py(build_py): def runner_install(self): print "RunnerPyzza basic configuration ..." try: os.mkdir("/etc/runnerpyzz...
33.469388
140
0.646951
757
0.461585
0
0
0
0
0
0
747
0.455488
7b92c51e95df7d865e1969f7a3d0f8febc341130
1,142
py
Python
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
class Solution: def _equalize_length(self, *args) -> tuple: max_len = max(map(len, args)) return tuple(map(lambda x: x.zfill(max_len), args)) def _add(self, *args) -> str: return str(sum(map(int, args))) def _sub(self, num1: str, num2: str) -> str: return str(int(num1) -...
27.853659
135
0.565674
1,049
0.918564
0
0
0
0
0
0
52
0.045534
7b941b7e926180fee64edecc4bb32c18fe4b75b2
220
py
Python
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
1
2016-08-17T06:36:03.000Z
2016-08-17T06:36:03.000Z
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
null
null
null
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
null
null
null
""" Here for compat. with objectstore. """ class ObjectNotFound(Exception): """ Accessed object was not found """ pass class ObjectInvalid(Exception): """ Accessed object store ID is invalid """ pass
15.714286
47
0.663636
171
0.777273
0
0
0
0
0
0
122
0.554545
7b95c23e30524cab22ee7e5bbccde48a49bfd895
9,432
py
Python
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
null
null
null
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
21
2021-08-13T06:11:55.000Z
2022-03-18T06:13:05.000Z
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
null
null
null
import asyncio import inspect import logging import os import random import time import uuid from abc import ABC, abstractmethod from functools import cached_property, wraps from logging import Logger from typing import Any, Callable, Dict, List, Optional, Tuple from aiohttp.client import ClientConnectionError, Client...
28.155224
86
0.603584
8,244
0.874046
0
0
1,860
0.197201
4,160
0.441052
1,231
0.130513
7b967b35c19a8e35142f9fb160d57122b85d9056
860
py
Python
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
import syaml testcase = """--- key: key: f key2: l nest: inner: g nest2: nestted: 3 inner2: s outnest: 3 ha: g je: r --- key: value a_list: - itema - listlist: - itemitem - itemb - key1: bweh key2: bweh key3: bweh key4: bweh - innerList: - innerItem - indict:...
14.576271
37
0.522093
0
0
0
0
0
0
0
0
612
0.711628
7b98ab75092f0df028f96b2d93df9ca2c2ab75d6
478
py
Python
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
null
null
null
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
null
null
null
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
1
2021-12-20T16:55:50.000Z
2021-12-20T16:55:50.000Z
#!/usr/bin/env python import os import sys def dict_to_csv(comps, filename): ## print column headings then all attributes for each company f = open(filename, 'wb') columns = [x for x in comps[comps.keys()[0]].keys() if x != 'name'] columns = ['name'] + columns f.write(','.join(columns) +...
22.761905
71
0.546025
0
0
0
0
0
0
0
0
118
0.246862
7b9a53fe727088aa66ec964d3fe2b9eeb158dba7
543
py
Python
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-02-22 22:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard', '0015_auto_20200222_2200'), ] operations = [ migrations.RemoveField( model_name='subject', name='handedness', ...
20.884615
49
0.546961
458
0.843462
0
0
0
0
0
0
138
0.254144
7b9bed79cdfa84b20637330716a10344fca07de2
799
py
Python
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
1,224
2015-01-01T22:09:23.000Z
2022-03-29T19:43:56.000Z
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
253
2015-01-14T03:45:51.000Z
2022-02-08T01:18:19.000Z
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
225
2015-01-13T18:38:33.000Z
2022-03-30T20:27:39.000Z
""" Load and Display a Shape. Illustration by George Brower. (Rewritten in Python by Jonathan Feinberg.) The loadShape() command is used to read simple SVG (Scalable Vector Graphics) files into a Processing sketch. This library was specifically tested under SVG files created from Adobe Illustrator. For now, we c...
33.291667
84
0.700876
0
0
0
0
0
0
0
0
613
0.767209
7b9c4e6a952c20a965aae8106ca3b0f977bd503c
4,015
py
Python
deidentify/tokenizer/tokenizer_ons.py
bbieniek/deidentify
7021bf0540e0a7f931e65544d12a2909c79a14eb
[ "MIT" ]
64
2020-01-16T16:20:47.000Z
2022-03-31T12:59:19.000Z
deidentify/tokenizer/tokenizer_ons.py
HabibMrad/deidentify
d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60
[ "MIT" ]
14
2020-01-28T08:47:06.000Z
2022-02-12T08:32:12.000Z
deidentify/tokenizer/tokenizer_ons.py
HabibMrad/deidentify
d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60
[ "MIT" ]
12
2020-01-21T07:54:04.000Z
2022-02-19T06:42:53.000Z
""" Custom tokenization routines for the 'ons' corpus. Special care is taken to metadata tokens such as === Report: 12345 === that were inserted to distinguish between multiple documents of a client. They will be properly handled during the tokenization and sentence segmentation stage. """ import re import spacy from...
31.124031
109
0.596762
1,263
0.31457
0
0
0
0
0
0
2,003
0.498879
7b9c889768e3496393e2ee54739cb4b6ccbaab96
1,219
py
Python
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
1
2022-03-09T18:07:11.000Z
2022-03-09T18:07:11.000Z
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
# Django from django.conf import Settings, settings # APPs from systemtest.quality import forms as quality_forms, models as quality_models from systemtest.utils.db2 import Database def get_quality_status(status_name: str) -> quality_models.QualityStatus: """ Gets a specific QualityStatus by exact name ...
23.442308
79
0.646432
0
0
620
0.508614
0
0
0
0
369
0.302707
7b9c9c8690ed96b25a9028c69ebb2b7c65845147
1,849
py
Python
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
11
2016-02-08T11:45:26.000Z
2017-05-19T16:07:31.000Z
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
5
2016-02-11T22:11:54.000Z
2016-06-09T20:54:07.000Z
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio import logging import aiohttp from cibopath import readme_parser, github_api from cibopath.templates import Template logger = logging.getLogger('cibopath') class CibopathError(Exception): """Custom error class for the app.""" class CookiecutterReadmeError(CibopathError...
29.822581
79
0.70146
291
0.157382
1,025
0.554354
0
0
0
0
339
0.183342
7b9ce56039cc41fcf712d566d9141353c7327dc4
5,400
py
Python
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
4
2020-06-11T00:11:17.000Z
2022-03-17T22:58:13.000Z
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
null
null
null
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
2
2021-12-20T20:03:05.000Z
2022-01-12T18:51:54.000Z
# Goal: # Demonstrate the A/B switch functionality of the SpikeSafe PSMU while operating in DC mode # # Expectation: # Channel 1 will run in DC mode with the switch set to Primary. # Afterward the Switch be set to Auxiliary mode, in which another source may operate connected to the SpikeSafe # After the Auxiliary s...
46.551724
223
0.696111
0
0
0
0
0
0
0
0
2,972
0.55037
7b9d392017b7f0eb08e175d175e38cee08ff4854
1,886
py
Python
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os import py_utils import time from telemetry.page import legacy_page_test from telemetry.util import image_util class Screenshot(leg...
33.087719
80
0.698303
1,585
0.840403
0
0
0
0
0
0
630
0.33404
7b9dada36fd7bad56b1a0092534a61252ce1c05e
2,474
py
Python
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.382353
79
0.719887
1,753
0.708569
0
0
923
0.37308
0
0
818
0.330639
7b9f976e658245e57765789e6e80ca7112711034
8,621
py
Python
bird_view/models/agent_IAs_RL.py
magh24/carla_RL_IAs
a38fb353bd84330c6c20b9cc8e824d7bbb02cfe5
[ "MIT" ]
39
2020-03-17T10:12:49.000Z
2022-03-12T14:18:45.000Z
bird_view/models/agent_IAs_RL.py
marintoro/LearningByCheating
a13b331ee8d69071570c97b35f1348758d658ee5
[ "MIT" ]
null
null
null
bird_view/models/agent_IAs_RL.py
marintoro/LearningByCheating
a13b331ee8d69071570c97b35f1348758d658ee5
[ "MIT" ]
16
2020-06-11T20:15:57.000Z
2022-03-13T01:55:16.000Z
import numpy as np import torch from collections import deque, namedtuple import cv2 import os import carla from .model_supervised import Model_Segmentation_Traffic_Light_Supervised from .model_RL import DQN, Orders class AgentIAsRL: def __init__(self, args=None, **kwargs): super().__init__(**kwargs) ...
37.482609
95
0.594363
8,401
0.974481
0
0
0
0
0
0
732
0.084909
7b9fd2f8f9e605ca6783d2a3d4f02dcb90eb1482
162
py
Python
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
5
2020-10-12T16:21:31.000Z
2021-12-15T20:27:22.000Z
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
null
null
null
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
5
2019-06-21T04:26:14.000Z
2021-05-01T14:15:44.000Z
n = int(input()) for i in range(1 , n + 1 ): x = input().split() a,b,c = x print('{:.1f}'.format((float(a) * 2 + float(b) * 3 + float(c) * 5) / 10))
23.142857
77
0.45679
0
0
0
0
0
0
0
0
8
0.049383
7b9fd98a85b6fed6891c0ba799c31065628711f4
10,547
py
Python
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
import base64 import binascii import datetime import os import subprocess import random import sys BECH_SYMBOLS = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" OUR_BINARY = None LIBBECH32ENC_BINARY = None LIBBECH32DEC_BINARY = None NODE_REF = "node . " # region Encoding def node_encode(hrp, data_hex): str_in = NODE_REF +...
35.156667
114
0.561297
0
0
0
0
0
0
0
0
2,934
0.278183
7ba085171ad82d0c573dcc7bfc7f5421e63a5a9f
3,166
py
Python
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
67
2018-11-13T21:40:54.000Z
2022-02-23T08:11:56.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
679
2018-11-13T20:10:29.000Z
2022-03-30T19:55:25.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
119
2018-11-08T15:53:35.000Z
2022-03-28T10:16:01.000Z
#!/usr/bin/env python3 """ #------------------------------------------------------------------------------ # # SCRIPT: forecast_task_07.py # # PURPOSE: Combine all non-precip 6-hourly files into one file and copy BCSD # precip files in to the same directory Based on FORECAST_TASK_07.sh. # # REVISION HISTORY: # 24 Oct 2...
26.830508
95
0.622236
0
0
0
0
0
0
0
0
1,673
0.528427
7ba2716e5d28bfa4af27d8788deae9d221d9561f
271
py
Python
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 10. Faça um Programa que peça a temperatura em graus Celsius, transforme e mostre em graus Farenheit. """ celsius = float(input('Informe o valor em Celsius (ºC): ')) fahrenheit = (celsius * (9/5)) + 32 print('{} ºC é igual a {:.1f} ºF'.format(celsius, fahrenheit))
30.111111
101
0.682657
0
0
0
0
0
0
0
0
177
0.638989
7ba27d2ca0843358d969fed10afe5cbbd1851036
12,178
py
Python
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
10
2018-09-17T02:14:34.000Z
2021-06-17T12:16:35.000Z
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
null
null
null
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
2
2019-08-06T20:40:02.000Z
2020-01-02T08:24:39.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.distributions import Normal def squash(s, dim=-1, eps=1e-8): """ "Squashing" non-linearity that shrunks short vectors to almost zero length and long vectors to a length slightly below 1 v_j = ||s_j||...
36.029586
172
0.579323
11,529
0.946707
0
0
0
0
0
0
3,341
0.274347
7ba31e643aa2124a524e4368c26dcf7ed0147d91
16,807
py
Python
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
511
2015-10-17T09:28:28.000Z
2022-02-20T21:58:56.000Z
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
575
2015-10-09T11:54:09.000Z
2021-11-22T20:50:19.000Z
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
411
2015-10-29T13:41:45.000Z
2022-02-11T09:27:50.000Z
#!python3 import contextlib import json import logging import os from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from dcos_e2e import cluster from dcos_e2e import node from dcos_test_utils impo...
32.571705
76
0.609091
9,652
0.574285
2,037
0.1212
5,256
0.312727
0
0
2,088
0.124234
7ba7975d420153a385e3680b17a15d19e06af3c9
308
py
Python
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
def sumOf(s, offset): sum = 0 n = len(s) for i in range(0, len(s)): if s[i] == s[(i + offset) % n]: sum += int(s[i]) return sum file = open("./input/input1.txt", "r") for s in file: s = s.strip() print('Part 1: ', sumOf(s, 1)) print('Part 2: ', sumOf(s, int(len(s)/2))) file.close()
14
43
0.519481
0
0
0
0
0
0
0
0
43
0.13961
7ba983a2c839be1dfa3a88ffa4c32747f568686e
2,123
py
Python
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from cops.graph import Graph from cops.clustering import ClusterProblem, ClusterStructure, inflate_agent_clusters def test_activationinflate1(): G = Graph() G.add_connectivity_path([0, 1]) G.add_connectivity_path([0, 2]) agent_positions = {0: 0, 1: 1, 2: 2} G.init_agents(agent...
31.686567
84
0.646726
0
0
0
0
0
0
0
0
120
0.056524
7bab917bc22f4ebc30925ed7bbdf5a597c5e9ff4
3,243
py
Python
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
7
2019-12-27T20:59:12.000Z
2020-01-08T22:53:42.000Z
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
import csv from sys import argv from os import getcwd def generate_memory_list_view(expected_memory) -> str: """ Convert expected memory's bytestring to a list of Cells (in string) :param expected_memory: "A00023" :return: [Cell("A0"), Cell("00"), Cell("23")] """ list_view = "[" for i in ra...
36.438202
114
0.662041
0
0
0
0
0
0
0
0
1,627
0.501696
7bad82b4e2d7cbdb41d0bbaab31ed7d1164ed27e
108
py
Python
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
car = ['volvo', 'toyota', 'BMW', 'Yes?'] message = f"I would like to own a {car[1].title()}" print(message)
27
51
0.601852
0
0
0
0
0
0
0
0
67
0.62037
7baf6ff631178bc7ddca808d29592a1384d2ce35
10,677
py
Python
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
""" File: my_drawing Author name: Alan Chen ---------------------- This program will draw a recently famous picture of Gian(技安), one of the main characters in doraemon(哆啦A夢). This is a picture that originally Gian was scared by something. Here, I reassign the things that scared him is the Illuminati symbol with a strin...
24.156109
114
0.579189
0
0
0
0
0
0
0
0
1,726
0.161505
7bb1307068ac9567a6b6b9039165f859f8bd8998
127
py
Python
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
5
2021-01-12T02:53:07.000Z
2022-03-02T17:58:18.000Z
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
null
null
null
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
null
null
null
""" This module doesn't provide a register method and should be skipped. This ensures that the error handling logic works. """
63.5
126
0.76378
0
0
0
0
0
0
0
0
126
0.992126
7bb15b935b3d0af4caae284ba8b64031d24bf414
3,196
py
Python
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
2
2022-01-01T06:58:10.000Z
2022-01-12T15:59:38.000Z
import json import os import subprocess import requests from bs4 import BeautifulSoup from ciri import HelpStr from ciri.utils import ciri_cmd, eor @ciri_cmd(pattern="red(?:dit)? (.*)") async def reddit(e): url = e.pattern_match.group(1) if not url: return await e.edit("`No url provided?`") if n...
30.730769
129
0.54005
0
0
0
0
799
0.25
761
0.23811
888
0.277847
7bb4c8f4351e98128f6ae2e0b66016892643437c
2,343
py
Python
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
import requests, json import numpy as np import importlib import pandas as pd import os import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline import pdb import warnings warnings.filterwarnings('ignore') def plot_barh(s_to_plot, title = '', xlabel = '', ylabel = '', color_palette = 'YlGnBu', pre_u...
34.455882
82
0.600512
0
0
0
0
0
0
0
0
839
0.358088
7bb571ec75fa6c41fe74464726a90fe46a7374f0
4,373
py
Python
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
from re import I import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import sensor from esphome.const import CONF_ID, STATE_CLASS_MEASUREMENT, UNIT_EMPTY, UNIT_METER # DEPENDENCIES = ["i2c"] AUTO_LOAD = ["sensor", "binary_sensor", "text_sensor"] MULTI_CONF = True CONF_ROODE_ID ...
35.266129
121
0.69426
0
0
0
0
0
0
562
0.128516
1,117
0.255431
7bb63dc88642b89c018c0dffd26e55f7b04e4fc6
7,767
py
Python
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
2
2019-04-18T14:37:05.000Z
2020-10-25T02:47:26.000Z
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
null
null
null
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\Projects\Python\Folder Maker\GUI\main.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(s...
55.085106
135
0.709927
7,262
0.934981
0
0
0
0
0
0
1,175
0.151281
7bb80c3ecc1f81bebc7a34d9d8f2cc068b53480f
1,632
py
Python
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
1
2019-05-01T18:24:49.000Z
2019-05-01T18:24:49.000Z
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
null
null
null
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode # code starts here bank = pd.read_csv(path) categorical_var = bank.select_dtypes(include = 'object') print(categorical_var) numerical_var = bank.select_dtypes(include = 'number') print(numerical_var) # code ends h...
22.666667
127
0.700368
0
0
0
0
0
0
0
0
591
0.362132
7bb9a05e4b4df3445a16a9d49bf23b734a000bdc
1,718
py
Python
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
import pytest import torch from espnet2.tts.feats_extract.energy import Energy @pytest.mark.parametrize( "use_token_averaged_energy, reduction_factor", [(False, None), (True, 1), (True, 3)] ) def test_forward(use_token_averaged_energy, reduction_factor): layer = Energy( n_fft=128, hop_length=...
30.140351
88
0.661816
0
0
0
0
1,629
0.948196
0
0
150
0.087311
7bba3197cf6ebc84a1f3034725dd0f1b29fd1b82
4,699
py
Python
squad/merge.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
89
2018-08-25T07:59:07.000Z
2021-05-04T06:37:27.000Z
squad/merge.py
seominjoon/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
11
2018-09-28T17:33:27.000Z
2019-11-27T23:34:45.000Z
squad/merge.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
10
2018-09-19T06:48:06.000Z
2020-04-14T20:42:06.000Z
"""Official merge script for PI-SQuAD v0.1""" from __future__ import print_function import os import argparse import json import sys import shutil import scipy.sparse import scipy.sparse.linalg import numpy as np import numpy.linalg def get_q2c(dataset): q2c = {} for article in dataset: for para_idx...
38.516393
117
0.613109
0
0
0
0
0
0
0
0
831
0.176846
7bba6288445870de13beac5ccea088e511b9306b
3,918
py
Python
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
from functools import cached_property from datetime import datetime from math import degrees, radians, sin, cos import numpy as np from orbit_predictor import coordinate_systems from .utils import get_timezone_from_latlon from .time import make_utc from ._time import datetime2mjd from .solar import sun_pos_mjd from ....
29.238806
88
0.619704
3,454
0.881572
0
0
1,049
0.267739
0
0
962
0.245533
7bbaeab63e6d9b82f2fcd904c0c52ba80c699e2f
4,559
py
Python
rl_baselines/evaluation/eval_post.py
anonymous-authors-2018/robotics-repo
385d1f3b49f8d414ab90f53c6f06b56614ae83ba
[ "MIT" ]
5
2019-08-21T22:57:21.000Z
2021-01-01T21:15:26.000Z
rl_baselines/evaluation/eval_post.py
BillChan226/POAR-SRL-4-Robot
a6a8052e105369656d34fffc4f7ca4475dcc38df
[ "MIT" ]
null
null
null
rl_baselines/evaluation/eval_post.py
BillChan226/POAR-SRL-4-Robot
a6a8052e105369656d34fffc4f7ca4475dcc38df
[ "MIT" ]
2
2019-11-26T11:41:12.000Z
2021-08-30T16:00:27.000Z
import subprocess import numpy as np import pickle import argparse import os from rl_baselines.student_eval import allPolicy from srl_zoo.utils import printRed, printGreen from rl_baselines.evaluation.cross_eval_utils import EnvsKwargs, loadConfigAndSetup, policyEval,createEnv def dict2array(tasks,data): res=[]...
33.77037
130
0.645317
0
0
0
0
0
0
0
0
938
0.205747
7bbb8601ea2e62414cb9ab4019393f8898c93e86
6,304
py
Python
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#! /usr/bin/env python import os os.system("make clean; make; \\rm *.log log.list") ############################################ #dir1='TriggerValidation_223_HLT' #dir2='TriggerValidation_224_HLT' #out='223_vs_224' #samples=['LM1'] #prefix1 = "histo_" #prefix2 = "histo_" #sufix1 = "_IDEALV11" #sufix2 = "_IDEALV11_v...
34.075676
153
0.615641
0
0
0
0
0
0
0
0
4,176
0.662437
7bbbafe111995f8ba65d3c92e9ed6a6bf9e416f8
2,275
py
Python
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
from curses import echo from importlib.metadata import metadata import sqlite3 import sys import sqlalchemy import os from sqlalchemy import Column, Integer, String, ForeignKey, Table, MetaData, create_engine, engine_from_config from sqlalchemy.orm import relationship, backref, sessionmaker from sqlalchemy.ext.declarat...
28.4375
110
0.633407
1,449
0.636923
0
0
0
0
0
0
620
0.272527
7bbbb84b2ea6ce8e2867ca8c352a6bb6c21ce89f
1,602
py
Python
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
3
2021-03-19T10:36:10.000Z
2021-09-08T01:37:47.000Z
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django_cas.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render, redirect from mecc.apps.years.models import UniversityYear @login_required def home(request): """ root of all evil: dispatch according to us...
36.409091
83
0.637953
0
0
0
0
1,374
0.857678
0
0
423
0.264045
7bbbe09edfcf3321edef1198ab48f96f54dee63c
2,695
py
Python
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlNetwerklinkMediumtype(KeuzelijstField): """Mogelijke waarden voor het type dra...
72.837838
173
0.634879
2,463
0.913915
0
0
0
0
0
0
1,488
0.552134
7bbde3e95bb2349d1613a331043db076b94f2cfe
1,617
py
Python
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
import logging import threading import time class StatusProcessor: MAX_NUM_MESSAGES_PER_UPDATE = 10 GET_MESSAGES_TIMEOUT_S = 0.5 LIVENESS_TIMEOUT_S = 5 def __init__( self, status_consumer, msg_processor, logger=logging.getLogger(__name__), time_function=time.ti...
26.508197
73
0.641311
1,570
0.970934
0
0
0
0
0
0
30
0.018553
7bbdf574388c84658ffc5b1e989b4bad6ddb075e
9,045
py
Python
befh/exchanges/okex_spot.py
philsong/BitcoinExchangeFH
3c45d4be2ea2a258f132d982f62f69d649e0b083
[ "Apache-2.0" ]
32
2017-12-15T07:30:11.000Z
2020-07-16T10:15:18.000Z
befh/exchanges/okex_spot.py
bijiasuo/BitcoinExchangeFH
9aa7b790cf74cf9fe48662147c30fc05e045e9ed
[ "Apache-2.0" ]
null
null
null
befh/exchanges/okex_spot.py
bijiasuo/BitcoinExchangeFH
9aa7b790cf74cf9fe48662147c30fc05e045e9ed
[ "Apache-2.0" ]
20
2017-11-09T15:28:39.000Z
2019-12-10T01:02:57.000Z
from befh.ws_api_socket import WebSocketApiClient from befh.market_data import L2Depth, Trade from befh.exchanges.gateway import ExchangeGateway from befh.instrument import Instrument from befh.util import Logger from befh.clients.sql_template import SqlClientTemplate import time import threading import json from funct...
38.326271
116
0.570591
8,364
0.92471
0
0
3,269
0.361415
0
0
1,825
0.201769
7bbe575d89df5cb9077767131f1bcff71b4ea2bc
191
py
Python
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
1
2019-05-16T15:25:22.000Z
2019-05-16T15:25:22.000Z
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
null
null
null
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
1
2019-06-17T15:22:29.000Z
2019-06-17T15:22:29.000Z
from cloudflare_ddns.configuration import Configuration, SiteConfiguration from cloudflare_ddns.ddns import CloudflareDDNS __all__ = ["CloudflareDDNS", "Configuration", "SiteConfiguration"]
38.2
74
0.848168
0
0
0
0
0
0
0
0
50
0.26178
7bbe5cef3d1aeca66fb6ca826edab503eb8c860b
587
py
Python
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import PipBaseRecipe class TwistedRecipe(PipBaseRecipe): def __init__(self, *args, **kwargs): super(TwistedRecipe, self).__init__(*args, **kwargs) self.sha256 = 'a4cc164a781859c74de47f17f0e85f4b' \ 'ce8a3321a9d0892c015c8f80c4158ad9' self.pythons = ['python...
32.611111
60
0.524702
552
0.940375
0
0
0
0
0
0
155
0.264055
7bbf00877f721b0c24c4e63d13a17b9fddb98274
250
py
Python
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # combiner.py import sys word_count = 0 line_count = 0 for line in sys.stdin: words, lines = line.strip().split('\t') word_count += int(words) line_count += int(lines) print("{0}\t{1}".format(word_count, line_count))
17.857143
48
0.66
0
0
0
0
0
0
0
0
44
0.176
7bbf1685508e5466a589c9ca9ef370e0a3b9611c
1,376
py
Python
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
import re from radish.stepregistry import step from radish import when, then from radish.terrain import world @step(re.compile("I have the number in user data as (.+)")) def have_number(step, input_variable): if world.config.user_data: if input_variable in world.config.user_data: step.context...
35.282051
106
0.652616
0
0
0
0
1,256
0.912791
0
0
428
0.311047
7bbf1d84d1d1e722a857754d78ceb86118a7eadb
3,462
py
Python
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-10-29T09:37:47.000Z
2019-11-28T14:11:12.000Z
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
null
null
null
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-09-18T14:09:46.000Z
2019-11-28T14:11:14.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist, PermissionDenied from django.http.response import HttpResponseBadRequest, HttpResponseRedirect from django.urls import reverse_lazy from django.urls.base import...
27.696
77
0.662334
2,925
0.844887
0
0
0
0
0
0
82
0.023686
7bc0b829008737def4ec98f701aadecbf19f6fdd
336
py
Python
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
1
2019-04-14T19:58:43.000Z
2019-04-14T19:58:43.000Z
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
null
null
null
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup( name = 'pydouban', version = '1.0.0', description = 'Lightweight Python Douban API Library', author = 'Marvour', author_email = 'marvour@gmail.com', license = 'BSD License', url = 'http://i.shiao.org/a/pydouban', packages = ...
22.4
58
0.630952
0
0
0
0
0
0
0
0
159
0.473214
7bc111fc110f0ab3862581da0b6b979e7a706d1e
3,234
py
Python
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
1
2020-05-12T12:31:51.000Z
2020-05-12T12:31:51.000Z
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
null
null
null
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
null
null
null
from imutils import face_utils from scipy.spatial import distance import cv2 import dlib import imutils import pygame import time # Initializing the alert sound pygame.mixer.init() alert_sound = pygame.mixer.Sound("alert_sound.wav") default_volume = 0.2 # Eye-Aspect-Ratio data EAR_threshhold = 0.17 # One valid frame ...
31.096154
89
0.649969
0
0
0
0
0
0
0
0
1,135
0.350959
7bc160c90d8d420f5bacbdb3fbe421c84e36aaf4
11,809
py
Python
trunk-tap.py
schreiberstein/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
15
2017-10-22T15:08:58.000Z
2022-01-03T22:21:12.000Z
trunk-tap.py
ideechaniz/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
2
2018-04-04T18:52:54.000Z
2019-02-20T10:16:13.000Z
trunk-tap.py
ideechaniz/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
6
2017-10-23T03:03:16.000Z
2021-07-03T16:28:29.000Z
#!/usr/bin/env python3 # < trunk-tap.py > # Version 1.0 < 20171022 > # Copyright 2017: Alexander Schreiber < schreiberstein[at]gmail.com > # https://github.com/schreiberstein/trunk-tap.py # MIT License: # ============ # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
41.146341
260
0.655348
0
0
0
0
0
0
0
0
7,148
0.605301
7bc353399a2502106befa0365666e5d586522d04
4,404
py
Python
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.631579
178
0.711172
0
0
1,376
0.312443
1,403
0.318574
0
0
2,772
0.629428
7bc78e4dfebfc4162a535f0855d380aa68aa6df8
1,474
py
Python
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
1
2021-11-29T03:30:49.000Z
2021-11-29T03:30:49.000Z
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
1
2021-11-29T15:28:09.000Z
2021-11-29T15:28:09.000Z
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
null
null
null
from __future__ import print_function import os import neat # 2-input XOR inputs and expected outputs. xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)] xor_outputs = [(0.0,),(1.0,),(1.0,),(0.0,)] def eval_genomes(genomes, config): for genome_id, genome in genomes: genome.fitness = 4.0 ...
33.5
82
0.651967
0
0
0
0
0
0
0
0
158
0.107191
7bc7b39f24b5e8a02751dc33b721dc3411814fe9
16,866
py
Python
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
5
2017-10-02T06:01:01.000Z
2022-03-08T05:51:51.000Z
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
null
null
null
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
null
null
null
""" _ _____ _ _ |_| __ | |___ ___| |_ | | __ -| | . | _| '_| |_|_____|_|___|___|_,_| iBlock is a machine learning video game! This game is played on a 8x6 board (48 spaces) and the goal is to fill up the enemy's column with your pieces! Once that happens the game will reset and log all the data for the ...
27.115756
398
0.600024
0
0
0
0
0
0
0
0
6,199
0.367544
7bc9519279bbaea50bce0ecf16967333a0bd62b5
319
py
Python
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
5
2020-12-05T14:00:39.000Z
2021-12-02T11:44:54.000Z
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
11
2021-03-15T17:51:43.000Z
2021-11-24T13:24:39.000Z
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
1
2021-01-02T14:15:10.000Z
2021-01-02T14:15:10.000Z
def main(): import webbrowser recherche = 0 while True: if recherche >= 2: print("Vous avez fait " + str(recherche) + " recherches.") recherche += 1 adresse = input("Quel adresse veut-tu ouvrir") webbrowser.open(adresse) if __name__ == "__main__": main()
19.9375
70
0.567398
0
0
0
0
0
0
0
0
70
0.219436
7bc96e1706c4c4494a902bdb9aa51a33d9269620
6,502
py
Python
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
"""Action Module circuits component to update incidents from QRadar Ariel queries""" import logging from datetime import datetime import time import copy import json from string import Template from pkg_resources import Requirement, resource_filename import resilient_circuits.template_functions as template_functions fr...
36.324022
113
0.669948
642
0.098739
0
0
0
0
0
0
1,457
0.224085
7bcaa605df103e994b12588df4d84741fe74b87f
2,371
py
Python
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from email import encoders from email.header import Header from email.mime.multipart import MIMEBase, MIMEMultipart from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib # 格式化一个邮件地址 def _format_addr(s): # parseaddr:解析字符串中的...
28.22619
79
0.634753
0
0
0
0
0
0
0
0
1,380
0.497656
7bcea7388e12344b8c218c07128ff9fb1cd5ed79
1,519
py
Python
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 """ Copyright (c) 2021 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFT...
27.125
84
0.623436
960
0.631995
0
0
0
0
0
0
553
0.364055
7bcfdbc346740098cdd0e1ea01a84bd850dcb6f3
2,895
py
Python
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
2
2020-06-05T17:29:54.000Z
2021-06-10T18:58:13.000Z
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
__author__ = 'schien' from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.contrib.admin import BooleanFieldListFilter from api.models import Scan, Measure, InstalledMeasure, MeasureCategory, App, MessageThread, RedirectUrl, Trackabl...
24.327731
152
0.760622
1,648
0.569257
0
0
0
0
0
0
330
0.11399
c8730231294cec0e238e9725d099edb7ac1ec02d
7,359
py
Python
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
null
null
null
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
null
null
null
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
1
2021-06-01T03:47:35.000Z
2021-06-01T03:47:35.000Z
import numpy as np from scipy.sparse import csc_matrix, diags, tril from .basis import Basis __author__ = 'Randall' # TODO: complete this class # todo: compare performance of csr_matrix and csc_matrix to deal with sparse interpolation operators # fixme: interpolation is 25 slower than in matlab when 2 dimensions!! 2x ...
36.430693
119
0.512298
7,016
0.95339
0
0
0
0
0
0
2,217
0.301264
c873b44db1fbe52cb97100b99eb41550c409cc9f
2,279
py
Python
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
import os import os.path import sys # Modified version from Python-3.3. 'env' environ dict override has been added. def which(cmd, mode=os.F_OK | os.X_OK, env=None): """Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file...
36.174603
79
0.617376
0
0
0
0
0
0
0
0
1,102
0.483545
c876f748ac3b92bbe9dd6ace6cf8630a36ac3d08
6,469
py
Python
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
2
2019-02-13T11:30:08.000Z
2021-02-14T04:20:44.000Z
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
"""Defines the classes SymbolTable and SymbolTableNode""" import sys from numpy import ones class SymbolTableNode: """Defines a class SymbolTableNode which stores the nodes in the SymbolTable""" def __init__(self, name, type_name, parameters = None, size = None): """Initializes the Node""" sel...
34.227513
83
0.534549
6,372
0.985005
0
0
0
0
0
0
1,231
0.190292
c879174dc589e41a31be3771fbf140871339c500
151
py
Python
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
2
2022-02-23T12:03:32.000Z
2022-02-23T14:27:29.000Z
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, version setup( name="NorthNet", version="0.0", author="William E. Robinson", packages = ["NorthNet"], )
16.777778
37
0.635762
0
0
0
0
0
0
0
0
46
0.304636
c87b5c6d8dff26ac4e6274273976c58563c8553b
13,380
py
Python
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
"""Class with high-level methods for processing NAPS and NAPS BE datasets.""" from config import DATA_NAPS_BE_ALL from lib import partition_naps from lib import plot from lib import plot_clusters from lib import plot_clusters_with_probability from lib import plot_setup from lib import read_naps from lib import read_na...
34.307692
78
0.65568
12,915
0.965247
773
0.057773
1,092
0.081614
0
0
2,870
0.214499
c87d1cba2782a99d03e9fe56c04a83d537ce2a1a
2,936
py
Python
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 1618. Maximum Font to Fit a Sentence in a Screen Medium You are given a string text. We want to display text on a screen of width w and height h. You can choose any font size from array fonts, which contains the available font sizes in ascending order. You can use the FontInfo interface to get the width and heigh...
32.622222
260
0.642711
562
0.191417
0
0
0
0
0
0
2,365
0.805518
c880853878e1cff80cb76bcab65d294bfff7d0f4
6,407
py
Python
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-14T06:37:42.000Z
2022-01-14T06:37:42.000Z
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
33.025773
129
0.605119
4,654
0.726393
0
0
0
0
0
0
2,442
0.381146
c8813251417f083ef4764a6d0d80104c34d5a26a
56,368
py
Python
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The PyMKM example app. """ __author__ = "Andreas Ehrlund" __version__ = "2.0.4" __license__ = "MIT" import os import csv import json import shelve import logging import logging.handlers import pprint import uuid import sys from datetime import datetime import micromenu import progressbar i...
38.319511
168
0.482064
55,886
0.991361
0
0
0
0
0
0
11,795
0.209231
c8829aec3d5b9877236b2115916c5ca2a14ab73b
333
py
Python
Datasets/Terrain/us_ned_physio_diversity.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Datasets/Terrain/us_ned_physio_diversity.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Datasets/Terrain/us_ned_physio_diversity.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map dataset = ee.Image('CSP/ERGo/1_0/US/physioDiversity') physiographicDiversity = dataset.select('b1') physiographicDiversityVis = { 'min': 0.0, 'max': 1.0, } Map.setCenter(-94.625, 39.825, 7) Map.addLayer( physiographicDiversity, physiographicDiversityVis, 'Physiographic...
23.785714
54
0.738739
0
0
0
0
0
0
0
0
72
0.216216
c88407b58490b10ee7b7b9dec303ca0721d6f4c4
281
py
Python
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
null
null
null
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
7
2020-02-12T01:22:46.000Z
2021-06-10T18:43:01.000Z
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
null
null
null
from django import forms from . import models class PunchLogForm(forms.ModelForm): latitude = forms.DecimalField(widget=forms.HiddenInput()) longitude = forms.DecimalField(widget=forms.HiddenInput()) class Meta: model = models.PunchLog fields = ()
20.071429
62
0.701068
231
0.822064
0
0
0
0
0
0
0
0
c8845f1c14219b145ec8b7fa1bba57f5b2418dfb
497
py
Python
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import base64 print('Choose your choice:') n=''' 1:Encode string to base64 2:Decode base64 to string ''' c=int(eval(input(n))) #定义菜单变量 if c == 1: #进入菜单1的判断 print('Type string to be encoded:') inp=input() out = str(base64.encodebytes(inp.encode("utf-8")), "utf...
24.85
63
0.593561
0
0
0
0
0
0
0
0
274
0.508349
c884c97e5f0b08128955897f09554f008fe34589
9,781
py
Python
Code/nebulae/lib/sc/sc.py
CarlColglazier/QB_Nebulae_V2
3326fa1c672ba0845b28cb55847bea0c9b8e9a05
[ "MIT" ]
8
2020-05-14T20:18:29.000Z
2021-08-08T15:18:28.000Z
Code/nebulae/lib/sc/sc.py
alex-thibodeau/QB_Nebulae_V2
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
[ "MIT" ]
null
null
null
Code/nebulae/lib/sc/sc.py
alex-thibodeau/QB_Nebulae_V2
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
[ "MIT" ]
null
null
null
import time, os, sys import scsynth, scosc server = 0 # reference to app's sc server process sndLoader = 0 synthon = 0 # did we start the scsythn process? ##workingpath = os.getcwd() # must be set to the right path in case something special is need sndpath = os.path.join( os.getcwd() , 'sounds' ) synthdefpath = os....
37.190114
120
0.600552
6,235
0.63746
0
0
0
0
0
0
5,644
0.577037
c884d28504ed798c203413f680ec73fe70726669
357
py
Python
test/test_api/test_routes/test_about.py
MRmlik12/biblioteczka
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
null
null
null
test/test_api/test_routes/test_about.py
MRmlik12/biblioteczka
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
3
2021-07-29T08:34:09.000Z
2021-07-29T10:12:34.000Z
test/test_api/test_routes/test_about.py
MRmlik12/catana
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
null
null
null
import pytest from fastapi import FastAPI from httpx import AsyncClient from starlette.status import HTTP_200_OK pytestmark = pytest.mark.asyncio async def test_about_route_if_status_code_is_ok(app: FastAPI, client: AsyncClient): response = await client.request("GET", app.url_path_for("index_router")) assert...
29.75
83
0.809524
0
0
0
0
0
0
207
0.579832
19
0.053221
c88551ac723dd08106aa9434592b74d5d60bf757
2,614
py
Python
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
null
null
null
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
12
2018-08-26T14:10:18.000Z
2021-04-15T21:48:58.000Z
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
1
2021-05-19T16:45:21.000Z
2021-05-19T16:45:21.000Z
import linefinder.linefinder as linefinder import linefinder.config as linefinder_config import linefinder.utils.file_management as file_management ######################################################################## sim_name = 'm12i' '''The simulation to run tracking on.''' tag = '{}_sightline'.format( sim_nam...
30.045977
82
0.630451
0
0
0
0
0
0
0
0
1,337
0.511477
c8864bea2e2f25d967c38986aef9fb5517d5143b
285
py
Python
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
1
2020-06-23T02:18:39.000Z
2020-06-23T02:18:39.000Z
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
null
null
null
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
1
2021-01-11T12:07:03.000Z
2021-01-11T12:07:03.000Z
# 47. 求1+2+3+...+n # 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 # -*- coding:utf-8 -*- class Solution: def Sum_Solution(self, n): # write code here res = n if(res): res += self.Sum_Solution(n-1) return res
21.923077
73
0.540351
166
0.475645
0
0
0
0
0
0
194
0.555874
c8870211f55a315e2890fcb0bc548ae67550546d
137
py
Python
apps/users/urls.py
akundev/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
null
null
null
apps/users/urls.py
akundev/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
3
2021-03-30T14:21:08.000Z
2021-07-07T03:04:26.000Z
apps/users/urls.py
almazkun/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import AboutTemplateView urlpatterns = [path("", AboutTemplateView.as_view(), name="about")]
19.571429
67
0.759124
0
0
0
0
0
0
0
0
9
0.065693
c8879bded50ae8fbfe4e76e5d099e8ada2d7784b
2,969
py
Python
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
null
null
null
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
null
null
null
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
1
2021-01-30T22:38:20.000Z
2021-01-30T22:38:20.000Z
''' send out activitypub messages ''' from base64 import b64encode from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from datetime import datetime import json import requests from fedireads import incoming from fedireads.settings import DOMAIN def get_recipients(us...
32.988889
76
0.630852
0
0
0
0
0
0
0
0
890
0.299764
c887c627a5de312187bb987f26d6bea4c3b72084
733
py
Python
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import RequestContext, loader from .models import Question # Create your views here. def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'latest_question_list': latest_question_...
29.32
68
0.777626
0
0
0
0
0
0
0
0
190
0.259209
c889096998408750f88d5b4c179ee06539614ee4
48,562
py
Python
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division from builtins import str from builtins import range from astropy.utils.misc import isiterable from past.utils import old_div import copy import collections import numpy as np import healpy as hp import astropy.units as u import matplotlib.pyplot as plt import matplotlib as mpl from sci...
38.20771
126
0.609942
47,086
0.969606
0
0
2,267
0.046683
0
0
15,292
0.314896
c88aff50b9e6ce0d5c309be594a03b1f208a90db
15,227
py
Python
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
# File: sshcustodian/sshcustodian.py # -*- coding: utf-8 -*- # Python 2/3 Compatibility from __future__ import (unicode_literals, division, absolute_import, print_function) from six.moves import filterfalse """ This module creates a subclass of the main Custodian class in the Custodian project ...
43.505714
80
0.568858
13,715
0.900703
0
0
388
0.025481
0
0
5,862
0.384974
c88ca1454e3c43e792033b4722a580761e424d90
17,217
py
Python
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
165
2015-01-12T09:09:19.000Z
2022-03-14T11:26:23.000Z
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
35
2015-01-07T14:57:24.000Z
2022-03-24T17:43:28.000Z
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
38
2015-03-11T09:10:05.000Z
2022-01-17T11:29:38.000Z
''' Sherlock: Distributed Locks with a choice of backend ==================================================== :mod:`sherlock` is a library that provides easy-to-use distributed inter-process locks and also allows you to choose a backend of your choice for lock synchronization. |Build Status| |Coverage Status| .. |Bu...
34.228628
100
0.606319
8,265
0.480049
0
0
2,561
0.148748
0
0
13,491
0.783586
c88d252547df6d3f79fae0aefc72512a6ebb61d4
7,199
py
Python
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
46
2020-04-13T07:54:49.000Z
2022-03-01T06:29:15.000Z
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
2
2020-07-27T15:11:09.000Z
2021-04-04T10:58:03.000Z
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
5
2020-06-22T01:56:30.000Z
2021-12-22T04:34:49.000Z
from typing import List, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from skimage.draw import random_shapes import os import json def get_masks_for_training( mask_shapes: List[Tuple] = [(1, 128, 128), (1, 64, 64), (1, 32, 32), (1, 1...
44.99375
120
0.607862
1,461
0.202945
0
0
0
0
0
0
2,154
0.299208
c88f24e0c4f56b49a1514bbc5fcfcc00efd5e15c
4,204
py
Python
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
4
2022-03-05T20:51:38.000Z
2022-03-15T17:10:22.000Z
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
null
null
null
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
1
2022-03-08T13:45:22.000Z
2022-03-08T13:45:22.000Z
import math from typing import Dict, List, Tuple, Union from EasyMCDM.models.MCDM import MCDM # Instant-Runoff Multicriteria Optimization (IRMO) class Irmo(MCDM): # Memory allocation __slots__ = ['verbose', 'matrix', 'names', 'indexes', 'preferences', 'matrix'] # Constructor def __init__...
37.873874
218
0.562559
4,051
0.963606
0
0
0
0
0
0
1,159
0.27569
c8919966f9b0c8cb69e17d80a649cb9b3d0b7138
2,046
py
Python
ramp/estimators/r.py
kvh/ramp
8618ce673e49b95f40c9659319c3cb72281dacac
[ "MIT" ]
214
2015-01-01T07:42:25.000Z
2022-03-08T08:57:49.000Z
ramp/estimators/r.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
8
2020-05-19T20:15:40.000Z
2020-05-19T20:15:41.000Z
ramp/estimators/r.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
87
2015-01-13T19:25:15.000Z
2021-05-16T10:40:05.000Z
import numpy as np from rpy2.robjects import FloatVector from rpy2.robjects.packages import importr from rpy2 import robjects stats = importr('stats') base = importr('base') def matrix_to_r_dataframe(x): rx = FloatVector(np.ravel(x)) rx = robjects.r['matrix'](rx, nrow = len(x), byrow=True) ret...
29.652174
74
0.610948
1,680
0.821114
0
0
0
0
0
0
156
0.076246
c89234777cdd2b2357d8a397dcec12fefab43a56
1,138
py
Python
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
null
null
null
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
1
2022-03-02T11:49:02.000Z
2022-03-02T11:49:02.000Z
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import unittest from azure.functions.decorators.constants import TIMER_TRIGGER from azure.functions.decorators.core import BindingDirection, DataType from azure.functions.decorators.timer import TimerTrigger class TestTim...
37.933333
70
0.598418
830
0.72935
0
0
0
0
0
0
245
0.21529
c895e6b35498811fbcaa8204ceff2eff7744a4b3
8,368
py
Python
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
import socket import threading import time from threading import Thread import utilities as utils import error_handling as check BUFFER_SIZE = 1024 BROADCAST_MAC = "FF:FF:FF:FF:FF:FF" class ClientThread(threading.Thread): """ Initializes the client. The event synchronization primitive, among the initial...
32.30888
80
0.603848
8,181
0.977653
0
0
0
0
0
0
2,403
0.287165
c8962401f6f771809773c10b2765a3a3a3c92f1b
2,569
py
Python
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
1
2022-01-26T18:51:29.000Z
2022-01-26T18:51:29.000Z
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
null
null
null
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
1
2021-11-29T07:37:28.000Z
2021-11-29T07:37:28.000Z
import json from great_expectations.core.util import convert_to_json_serializable from great_expectations.types import SerializableDictDot, safe_deep_copy from great_expectations.util import deep_filter_properties_iterable class Builder(SerializableDictDot): """ A Builder provides methods to serialize any bu...
42.114754
119
0.69093
2,342
0.911639
0
0
0
0
0
0
1,470
0.572207
c8963aa9c2fd19d072617ac3bc9699a61aa29633
449
py
Python
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
# #1. Health check # # Ask user for their temperature. # # If the user enters below 35, then output "not too cold" # # If 35 to 37 (inclusive), output "all right" # # If the temperature over 37, then output "possible fever" # user_temp = float(input('What is your temperature?')) if user_temp < 35: print('not too ...
32.071429
62
0.679287
0
0
0
0
0
0
0
0
312
0.694878