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
c3f17a70386052db02c11c15fab00823b5a363bc
1,245
py
Python
Missing Numbers.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
Missing Numbers.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
Missing Numbers.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
""" Problem Statement Numeros, The Artist, had two lists A and B, such that, B was a permutation of A. Numeros was very proud of these lists. Unfortunately, while transporting them from one exhibition to another, some numbers from List A got left out. Can you find out the numbers missing from A? """ __author__ = 'Dany...
24.411765
119
0.519679
540
0.433735
0
0
0
0
0
0
438
0.351807
c3f1f74b466b17b50d5baf80f81ac4960271ecd0
3,187
py
Python
jmap/account/imap/mailbox.py
filiphanes/jmap-proxy-python
86d7aba07c5faad652dd46f418f2b8dd3fe03bc3
[ "MIT" ]
14
2020-05-12T14:21:23.000Z
2022-03-17T07:20:25.000Z
jmap/account/imap/mailbox.py
filiphanes/jmap-proxy-python
86d7aba07c5faad652dd46f418f2b8dd3fe03bc3
[ "MIT" ]
1
2020-11-28T12:52:09.000Z
2020-11-28T12:52:09.000Z
jmap/account/imap/mailbox.py
filiphanes/jmap-proxy-python
86d7aba07c5faad652dd46f418f2b8dd3fe03bc3
[ "MIT" ]
4
2020-06-03T09:21:01.000Z
2022-03-11T20:43:58.000Z
from jmap.account.imap.imap_utf7 import imap_utf7_decode, imap_utf7_encode KNOWN_SPECIALS = set('\\HasChildren \\HasNoChildren \\NoSelect \\NoInferiors \\UnMarked \\Subscribed'.lower().split()) # special use or name magic ROLE_MAP = { 'inbox': 'inbox', 'drafts': 'drafts', 'draft': 'drafts', 'draft messages':...
26.338843
118
0.557891
2,398
0.752432
0
0
0
0
0
0
973
0.305303
c3f30ba18a8ccc9b5eb6bda010feb4e01b778707
2,987
py
Python
pyieee1905/multiap_msg.py
evanslai/pyieee1905
1007f964c1ebcaf3825a809fb98bc20430e26b64
[ "MIT" ]
3
2020-07-17T15:58:49.000Z
2022-01-03T11:40:04.000Z
pyieee1905/multiap_msg.py
jayakumar-ananthakrishnan/pyieee1905
8aab72a1bccb9c6c753ca7d3d8913b3cba4c74a0
[ "MIT" ]
3
2019-03-29T19:31:23.000Z
2021-09-16T11:51:55.000Z
pyieee1905/multiap_msg.py
jayakumar-ananthakrishnan/pyieee1905
8aab72a1bccb9c6c753ca7d3d8913b3cba4c74a0
[ "MIT" ]
1
2021-09-14T13:58:43.000Z
2021-09-14T13:58:43.000Z
from pyieee1905.ieee1905_tlv import IEEE1905_TLV from scapy.packet import Packet, bind_layers from scapy.fields import BitField, XByteField, XShortField, XShortEnumField from scapy.layers.l2 import Ether IEEE1905_MCAST = "01:80:c2:00:00:13" ieee1905_msg_type = { 0x0000:"TOPOLOGY_DISCOVERY_MESSAGE", 0x0001:...
37.810127
75
0.781051
442
0.147975
0
0
0
0
0
0
1,728
0.578507
c3f439b48efe360b61fbb39a47da1c6f455643ce
2,719
py
Python
daily_practice/tools/GetMem.py
joakimzhang/qa_study
ff8930e674d45c49bea4e130d14d73d17b090e48
[ "Apache-2.0" ]
null
null
null
daily_practice/tools/GetMem.py
joakimzhang/qa_study
ff8930e674d45c49bea4e130d14d73d17b090e48
[ "Apache-2.0" ]
null
null
null
daily_practice/tools/GetMem.py
joakimzhang/qa_study
ff8930e674d45c49bea4e130d14d73d17b090e48
[ "Apache-2.0" ]
null
null
null
# coding:utf8 ''' Created on 2016��8��30�� @author: zhangq ''' from serial import Serial import re from threading import Thread import time import datetime import pygal import os class FilterMem(object): def __init__(self, port, baudrate): self.serial_obj = Serial() self.serial_obj.port = port-1 ...
29.554348
135
0.544318
2,355
0.862321
0
0
0
0
0
0
376
0.137679
c3f60d6a60312b81c0e1bdb097c0cb726e1268b3
4,582
py
Python
worky/server.py
asuol/worky
362257e77486af05941cc977055c01e49b09a2dd
[ "MIT" ]
null
null
null
worky/server.py
asuol/worky
362257e77486af05941cc977055c01e49b09a2dd
[ "MIT" ]
null
null
null
worky/server.py
asuol/worky
362257e77486af05941cc977055c01e49b09a2dd
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 André Lousa Marques <andre.lousa.marques at gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rig...
27.60241
78
0.742034
0
0
0
0
2,832
0.617936
0
0
1,592
0.347371
c3f743cc4af3a71c5d1f33fa1729e7222543c974
561
py
Python
main.py
tyleralgigi/NCAA-NN
e2482846d6a588a80f2ae7641fc8109eab62523e
[ "MIT" ]
3
2020-02-11T19:40:30.000Z
2020-12-02T13:15:48.000Z
main.py
tyleralgigi/ALBURT_AI
e2482846d6a588a80f2ae7641fc8109eab62523e
[ "MIT" ]
4
2020-02-07T19:42:08.000Z
2021-06-02T01:00:59.000Z
main.py
tyleralgigi/NCAA-NN
e2482846d6a588a80f2ae7641fc8109eab62523e
[ "MIT" ]
null
null
null
#files import schedule import test import ATS import editGameList import getGames import getData #libs import pathlib import time if __name__ == '__main__': path = pathlib.Path(__file__).parent.absolute() getData.getData() print('1/6') time.sleep(2) getGames.start(path) print('2/6') time.sl...
18.096774
51
0.654189
0
0
0
0
0
0
0
0
72
0.128342
c3f80a30cddcf300830226429e92b2147122720d
12,689
py
Python
waffle/tests/test_management.py
theunraveler/django-waffle
4b27b27c5ce3f044eb8b2c94f40df841bc982884
[ "BSD-3-Clause" ]
1
2021-09-12T00:44:29.000Z
2021-09-12T00:44:29.000Z
waffle/tests/test_management.py
theunraveler/django-waffle
4b27b27c5ce3f044eb8b2c94f40df841bc982884
[ "BSD-3-Clause" ]
4
2016-06-01T16:23:26.000Z
2017-01-04T13:04:06.000Z
waffle/tests/test_management.py
theunraveler/django-waffle
4b27b27c5ce3f044eb8b2c94f40df841bc982884
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import six from django.core.management import call_command, CommandError from django.contrib.auth.models import Group, User from waffle import get_waffle_flag_model from waffle.models import Sample, Switch from waffle.tests.base import TestCase class WaffleFlagManagementComma...
38.568389
85
0.638033
12,390
0.976436
0
0
0
0
0
0
2,586
0.203799
c3fa1a868dbcea9b71565113431a5f4f8d72d153
8,733
py
Python
cdma.py
SouppuoS/CDMA
8377fa2e238f0802c306869018746305cc5122c9
[ "MIT" ]
7
2021-11-02T12:18:02.000Z
2022-02-14T12:30:46.000Z
cdma.py
Pashasah/CDMA
8377fa2e238f0802c306869018746305cc5122c9
[ "MIT" ]
1
2021-12-14T20:56:48.000Z
2021-12-18T04:30:01.000Z
cdma.py
Pashasah/CDMA
8377fa2e238f0802c306869018746305cc5122c9
[ "MIT" ]
3
2021-12-12T07:34:16.000Z
2022-03-30T07:21:02.000Z
""" Implement of Circular Differential Microphone Arrays (CDMA) Reference: [1] Benesty, Jacob, Jingdong Chen, and Israel Cohen. Design of circular differential microphone arrays. Vol. 12. Berlin, Germany:: Springer, 2015. """ import numpy as np c = 340 class circular_microphone_arrays(): def __init__(self, ...
40.430556
146
0.482996
8,429
0.96519
0
0
870
0.099622
0
0
1,863
0.213329
c3fc3ab5d99683c3c1fb3c45a1d21f95f0d04d07
2,083
py
Python
iteebot/manage.py
enkwolf/ITEE-discord-bot
9b39852f99316c4fd376a5bf85e2500eadd6ec7e
[ "MIT" ]
null
null
null
iteebot/manage.py
enkwolf/ITEE-discord-bot
9b39852f99316c4fd376a5bf85e2500eadd6ec7e
[ "MIT" ]
null
null
null
iteebot/manage.py
enkwolf/ITEE-discord-bot
9b39852f99316c4fd376a5bf85e2500eadd6ec7e
[ "MIT" ]
null
null
null
""" Command line management utilities for ITEEBot. This module's command line interface will act as the bot's entry point when installed. """ import click from . import configurator as conf from . import database as db from .bot import ITEEBot @click.group() def cli(): pass @click.command("init-config") @click.a...
24.797619
77
0.69035
0
0
0
0
1,710
0.820931
0
0
1,229
0.590014
c3fc56ed683eeb1327d133f78576e74865f4e678
439
py
Python
accounts/models.py
sulembutproton/morphicsys
17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23
[ "MIT" ]
null
null
null
accounts/models.py
sulembutproton/morphicsys
17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23
[ "MIT" ]
null
null
null
accounts/models.py
sulembutproton/morphicsys
17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23
[ "MIT" ]
null
null
null
import random from django.core.exceptions import ValidationError from django.db import models from django.conf import settings class AuthToggle(models.Model): enable_protection = models.BooleanField(default=False) def __str__(self): return "Options" class PassPhrase(models.Model): passphrase = mod...
29.266667
80
0.758542
309
0.703872
0
0
0
0
0
0
30
0.068337
c3fff026f9609601d831faed00227194945d7bec
7,685
py
Python
corehq/apps/translations/integrations/transifex/project_migrator.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/translations/integrations/transifex/project_migrator.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/translations/integrations/transifex/project_migrator.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
import copy import datetime import tempfile from collections import OrderedDict from django.utils.functional import cached_property from django.utils.translation import ugettext as _ import polib from memoized import memoized from corehq.apps.app_manager.dbaccessors import get_app from corehq.apps.translations.integ...
41.766304
110
0.670787
6,979
0.908133
0
0
743
0.096682
0
0
1,337
0.173975
7f0027a4173acf95c325d3b417da922342f80c70
515
py
Python
project3-mlops/Includes/Common-Notebooks/Common-Test.py
LiuxyEric/dscc202-402-spring2022
f3877c2dde64656f9d84e3f913340f3fcefdc11b
[ "MIT" ]
null
null
null
project3-mlops/Includes/Common-Notebooks/Common-Test.py
LiuxyEric/dscc202-402-spring2022
f3877c2dde64656f9d84e3f913340f3fcefdc11b
[ "MIT" ]
null
null
null
project3-mlops/Includes/Common-Notebooks/Common-Test.py
LiuxyEric/dscc202-402-spring2022
f3877c2dde64656f9d84e3f913340f3fcefdc11b
[ "MIT" ]
53
2022-01-11T19:06:06.000Z
2022-03-25T19:27:48.000Z
# Databricks notebook source # MAGIC # MAGIC %md # MAGIC # Integration Tests # MAGIC The purpose of this notebook is to faciliate testing of our systems. # COMMAND ---------- import os spark.conf.set("com.databricks.training.module-name", "common-notebooks") currentVersion = os.environ["DATABRICKS_RUNTIME_VERSION"...
19.807692
76
0.72233
0
0
0
0
0
0
0
0
352
0.683495
7f0183081841c770b57330f1874dfa4da1f1b5b1
3,865
py
Python
py/test_runner.py
radanalyticsio/tensorflow-k8s
cb1e05389bfb25f21da84ca489eb8c8630f36b58
[ "Apache-2.0" ]
4
2018-03-02T12:27:34.000Z
2020-06-04T17:24:39.000Z
py/test_runner.py
radanalyticsio/tensorflow-k8s
cb1e05389bfb25f21da84ca489eb8c8630f36b58
[ "Apache-2.0" ]
null
null
null
py/test_runner.py
radanalyticsio/tensorflow-k8s
cb1e05389bfb25f21da84ca489eb8c8630f36b58
[ "Apache-2.0" ]
2
2018-09-05T18:47:31.000Z
2019-03-05T17:21:43.000Z
"""Test runner runs a TfJob test.""" import argparse import logging import os import time import uuid import jinja2 from kubernetes import client as k8s_client from py import test_util from py import util from py import tf_job_client from google.cloud import storage # pylint: disable=no-name-in-module import yaml ...
27.411348
83
0.684605
0
0
0
0
0
0
0
0
1,285
0.332471
7f019039c93471670011b52c66c98041328e2ea4
2,848
py
Python
deepspeech/io/collator.py
iclementine/DeepSpeech
d0635c6592a2e787ca296e15241e7371a83ca55f
[ "Apache-2.0" ]
1
2021-05-14T23:27:13.000Z
2021-05-14T23:27:13.000Z
deepspeech/io/collator.py
xihuanafeng/DeepSpeech
2bdf4c946af66cc173d638c072ba6435cd18a286
[ "Apache-2.0" ]
null
null
null
deepspeech/io/collator.py
xihuanafeng/DeepSpeech
2bdf4c946af66cc173d638c072ba6435cd18a286
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.050633
86
0.61236
2,018
0.708567
0
0
0
0
0
0
1,377
0.483497
7f01e3a718f45996d405a272db21ce74f4e2b2d9
553
py
Python
launch/test.py
a-tharva/LaunchEnv
3f138d863e961c541513539c499574122fbd8b9b
[ "MIT" ]
1
2022-01-25T04:44:22.000Z
2022-01-25T04:44:22.000Z
launch/test.py
a-tharva/LaunchEnv
3f138d863e961c541513539c499574122fbd8b9b
[ "MIT" ]
null
null
null
launch/test.py
a-tharva/LaunchEnv
3f138d863e961c541513539c499574122fbd8b9b
[ "MIT" ]
null
null
null
#import subprocess # #subprocess.Popen(f'C:\Windows\system32\calc.exe') # # # # # # # #\ is a escape character. You have three options. # #1) use /. This, as a bonus works for linux as well: # 'D:/xxx/xxxx/asd/asd.exe' # #2) escape the backslash # 'D:\\xxx\\xxxx\\asd\\asd.exe' # #3) use raw strings: #r'D:\xxx\xxxx\as...
14.945946
58
0.631103
0
0
0
0
0
0
0
0
517
0.934901
7f02e9703a47b60d920bf5b4d7b9b607bc976036
96
py
Python
struct2seq/__init__.py
amorehead/neurips19-graph-protein-design
92ecd0b667069c3207afa668865eb23eea4631d4
[ "MIT" ]
null
null
null
struct2seq/__init__.py
amorehead/neurips19-graph-protein-design
92ecd0b667069c3207afa668865eb23eea4631d4
[ "MIT" ]
null
null
null
struct2seq/__init__.py
amorehead/neurips19-graph-protein-design
92ecd0b667069c3207afa668865eb23eea4631d4
[ "MIT" ]
null
null
null
__all__ = ['data', 'noam_opt', 'protein_features', 'self_attention', 'struct2seq', 'seq_model']
48
95
0.708333
0
0
0
0
0
0
0
0
73
0.760417
7f02f1eeb46d28ccafbcdaa3e9a08ba2c3640961
20,258
py
Python
p1bsl_formatter.py
WonderMr/Linter1
f7ab00505902e5622d24ac3a48d074850cd67193
[ "Artistic-2.0" ]
null
null
null
p1bsl_formatter.py
WonderMr/Linter1
f7ab00505902e5622d24ac3a48d074850cd67193
[ "Artistic-2.0" ]
null
null
null
p1bsl_formatter.py
WonderMr/Linter1
f7ab00505902e5622d24ac3a48d074850cd67193
[ "Artistic-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import re from collections import namedtuple import subprocess from typing import NewType class p1parser: def __init__(self): self.rule = namedtuple("Rule" , ["Text" , "SubExp"]) self.directive = namedtuple("Dire...
57.225989
217
0.423783
21,656
0.983604
0
0
0
0
0
0
5,352
0.243085
7f0316dc67c441582810e7ff6fb783c0825f64ba
2,010
py
Python
server/__init__.py
jbcurtin/datsu-panic
aa3706cf2c9c7b74d15e94b3ef767a67853720f9
[ "MIT" ]
null
null
null
server/__init__.py
jbcurtin/datsu-panic
aa3706cf2c9c7b74d15e94b3ef767a67853720f9
[ "MIT" ]
null
null
null
server/__init__.py
jbcurtin/datsu-panic
aa3706cf2c9c7b74d15e94b3ef767a67853720f9
[ "MIT" ]
null
null
null
import asyncio import logging import time from functools import partial from signal import SIGINT, SIGTERM from panic import \ datatypes as panic_datatypes logger = logging.getLogger(__name__) current_time = None def update_current_time(loop): """ Caches the current time, since it is needed at the e...
25.443038
77
0.726866
0
0
0
0
0
0
0
0
664
0.330348
7f03b804ac44c2d020cee4637a88e0c658251515
47,593
py
Python
analysis/scripts/gmm.py
sbooeshaghi/azucar
0ced041aa9cfa52593109f79794ac6009adf909a
[ "BSD-2-Clause" ]
null
null
null
analysis/scripts/gmm.py
sbooeshaghi/azucar
0ced041aa9cfa52593109f79794ac6009adf909a
[ "BSD-2-Clause" ]
null
null
null
analysis/scripts/gmm.py
sbooeshaghi/azucar
0ced041aa9cfa52593109f79794ac6009adf909a
[ "BSD-2-Clause" ]
null
null
null
# this file contains _base.py and _gaussian_mixture.py # @title sklearn/mixture/_base.py """Base class for mixture models.""" # sklearn/mixture/_base.py # Author: Wei Xue <xuewei4d@gmail.com> # Modified by Thierry Guillemot <thierry.guillemot.work@gmail.com> # License: BSD 3 clause import warnings from abc import ...
33.25856
88
0.605992
31,453
0.660874
0
0
1,680
0.035299
0
0
25,396
0.533608
7f040d97e1fdd272b5cef573caeb25422a650cb8
4,548
py
Python
main.py
scottyplunkett/crayket
6cc203e55865ff8c1cf4269c3a55e18b70a1b40f
[ "MIT" ]
1
2020-08-25T15:53:05.000Z
2020-08-25T15:53:05.000Z
main.py
scottyplunkett/crayket
6cc203e55865ff8c1cf4269c3a55e18b70a1b40f
[ "MIT" ]
null
null
null
main.py
scottyplunkett/crayket
6cc203e55865ff8c1cf4269c3a55e18b70a1b40f
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.boxlayout import BoxLayout from kivy.uix.widget import Widget from kivy.uix.button import Button, Label from kivy.properties import ListProperty, ObjectProperty from game import Game from player import Player from helpers import new_targe...
31.583333
75
0.644019
4,178
0.918646
0
0
0
0
0
0
211
0.046394
7f052867dedcbc62e101a7a70ed0204af998d934
609
py
Python
src/modular/funcion1.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
src/modular/funcion1.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
src/modular/funcion1.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
# 16. Evalúe la siguiente función matemática: f(a,b,c,d,e) = ((a! + b! + c!) / d!) + e^c / e! # Ejemplo: Si a = 5, b = 1, c= 4 , d = 3, e = 2 → despliega: 32,17 def factorial(numero): fact = 1 for i in range (1, numero+1): fact *= i return (fact) def formula(a, b, c, d, e): termino1 ...
32.052632
94
0.533662
0
0
0
0
0
0
0
0
185
0.301303
7f055b39eb9d9bedda5195c6c85467b444c1804f
799
py
Python
setup.py
Fragalli/brFinance
f06d7b148d20d07361c89158837d47225c4fea1f
[ "MIT" ]
1
2021-07-19T19:12:11.000Z
2021-07-19T19:12:11.000Z
setup.py
Fragalli/brFinance
f06d7b148d20d07361c89158837d47225c4fea1f
[ "MIT" ]
1
2021-07-22T13:52:30.000Z
2021-07-22T13:52:30.000Z
setup.py
Fragalli/brFinance
f06d7b148d20d07361c89158837d47225c4fea1f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='brfinance', version='0.1', packages=find_packages(exclude=['tests*']), license='MIT', description='A Python package for webscraping financial data brazilian sources such as CVM, Banco Central, B3, ANBIMA, etc.', long_description=open('REA...
49.9375
160
0.679599
0
0
0
0
0
0
0
0
484
0.605757
7f08f99ac096d3d4fdb36c4caaac2056f5f43854
5,938
py
Python
model/DeepLabv3plus2.py
THU-CVlab/JMedSeg
1c9c66a1b2c6e4c5e3f70ca9e1ed54447b944755
[ "MIT" ]
26
2021-08-19T05:22:44.000Z
2022-03-08T05:44:43.000Z
model/DeepLabv3plus2.py
Jittor/JMedSeg
1c9c66a1b2c6e4c5e3f70ca9e1ed54447b944755
[ "MIT" ]
null
null
null
model/DeepLabv3plus2.py
Jittor/JMedSeg
1c9c66a1b2c6e4c5e3f70ca9e1ed54447b944755
[ "MIT" ]
3
2021-08-19T06:12:49.000Z
2021-08-19T11:41:16.000Z
import jittor as jt from jittor import nn from jittor import Module from jittor import init from jittor.contrib import concat from model.backbone import resnet50, resnet101 from model.backbone import res2net101 Backbone_List = ['resnet50', 'resnet101', 'res2net101'] class DeepLab(Module): def __init__(self, outp...
36.207317
105
0.580835
5,044
0.849444
0
0
0
0
0
0
503
0.084709
7f094e91b9871860a612632460408191babfa754
788
py
Python
snakeoil/migrations/0001_initial.py
wbcsmarteezgithub/django-snakeoil
ae1a8dab9e14194e48963101ff3349f45aee0ccf
[ "BSD-2-Clause" ]
1
2020-07-03T15:52:25.000Z
2020-07-03T15:52:25.000Z
snakeoil/migrations/0001_initial.py
wbcsmarteezgithub/django-snakeoil
ae1a8dab9e14194e48963101ff3349f45aee0ccf
[ "BSD-2-Clause" ]
null
null
null
snakeoil/migrations/0001_initial.py
wbcsmarteezgithub/django-snakeoil
ae1a8dab9e14194e48963101ff3349f45aee0ccf
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2 on 2020-03-30 15:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SeoUrl', fields=[ ('head_title', models.CharF...
29.185185
126
0.574873
697
0.884518
0
0
0
0
0
0
177
0.224619
7f09c4ad50e3517a9c308f3dc246fb0ef9e4dac5
1,090
py
Python
appswag/tests/test_codec.py
atchoum31/appswag
7279ccde73e2a27495228a9342c88e8526b0534a
[ "MIT" ]
null
null
null
appswag/tests/test_codec.py
atchoum31/appswag
7279ccde73e2a27495228a9342c88e8526b0534a
[ "MIT" ]
null
null
null
appswag/tests/test_codec.py
atchoum31/appswag
7279ccde73e2a27495228a9342c88e8526b0534a
[ "MIT" ]
null
null
null
from __future__ import absolute_import from appswag.primitives import MimeCodec import unittest class CodecTestCase(unittest.TestCase): def test_register_unregister(self): mime_codec = MimeCodec() mime = 'test' dummy_codec = {} self.assertEqual(None, mime_codec.codec(mime...
35.16129
66
0.646789
985
0.90367
0
0
0
0
0
0
73
0.066972
7f0b21821574f29c48de13330ac73d4176385f22
2,211
py
Python
mediafeed/databases/files.py
media-feed/mediafeed
c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf
[ "MIT" ]
null
null
null
mediafeed/databases/files.py
media-feed/mediafeed
c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf
[ "MIT" ]
null
null
null
mediafeed/databases/files.py
media-feed/mediafeed
c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf
[ "MIT" ]
null
null
null
import os from shutil import rmtree from ..settings import DATA_PATH class Thumbnail(object): def __init__(self, model): self.model = model self.module = model.module self.filename = os.path.join('thumbnails', model.__tablename__, self.module.id, model.id) self.full_filename = os....
26.638554
97
0.635911
1,749
0.791045
0
0
378
0.170963
0
0
79
0.03573
7f0c072f59aca4526734d94d5badc06ae290a227
2,823
py
Python
src/alipay/payment.py
davidrepos/py3alipay
e547e4918c661eb90e69a276ab3e881f28b1112a
[ "MIT" ]
null
null
null
src/alipay/payment.py
davidrepos/py3alipay
e547e4918c661eb90e69a276ab3e881f28b1112a
[ "MIT" ]
null
null
null
src/alipay/payment.py
davidrepos/py3alipay
e547e4918c661eb90e69a276ab3e881f28b1112a
[ "MIT" ]
null
null
null
from hashlib import md5 from urllib.parse import urlencode from .exceptions import AlipayExcepton,ParameterValueErrorException,MissingParameterException,TokenAuthorizationErrorException class Alipay(object): GATEWAY_URL = 'https://mapi.alipay.com/gateway.do' NOTIFY_GATEWAY_URL = 'https://mapi.alipay.com/gatew...
44.809524
126
0.643642
2,746
0.936243
0
0
0
0
0
0
789
0.269008
7f0c54650b946eb5ed1cdc2900d388cb5381d2f3
1,998
py
Python
src/robusta/core/triggers/error_event_trigger.py
Rutam21/robusta
7c918d96362f607488c0e7e0056f436a06dce4ae
[ "MIT" ]
null
null
null
src/robusta/core/triggers/error_event_trigger.py
Rutam21/robusta
7c918d96362f607488c0e7e0056f436a06dce4ae
[ "MIT" ]
null
null
null
src/robusta/core/triggers/error_event_trigger.py
Rutam21/robusta
7c918d96362f607488c0e7e0056f436a06dce4ae
[ "MIT" ]
1
2022-02-20T01:49:36.000Z
2022-02-20T01:49:36.000Z
from ..discovery.top_service_resolver import TopServiceResolver from ...core.playbooks.base_trigger import TriggerEvent from ...integrations.kubernetes.autogenerated.triggers import EventAllChangesTrigger, EventChangeEvent from ...integrations.kubernetes.base_triggers import K8sTriggerEvent from ...utils.rate_limiter i...
38.423077
110
0.669169
1,657
0.829329
0
0
0
0
0
0
155
0.077578
7f0c64c539a14aefaa3e8de5c3955487b8cbc27a
6,483
py
Python
photoman/rename.py
maciejgaleja/good-content
15d88aafec25775211672ca447a569478d1d0fbd
[ "MIT" ]
null
null
null
photoman/rename.py
maciejgaleja/good-content
15d88aafec25775211672ca447a569478d1d0fbd
[ "MIT" ]
null
null
null
photoman/rename.py
maciejgaleja/good-content
15d88aafec25775211672ca447a569478d1d0fbd
[ "MIT" ]
null
null
null
import logging import exifread # type: ignore from datetime import datetime import pathlib import os import shutil import filecmp import subprocess from typing import Tuple, List exifread.logger.disabled = True date_str_default = "1970:01:01 00:00:00" class FileIsADuplicate(Exception): pass class FFMpegNotFou...
33.417526
174
0.583989
128
0.019744
0
0
0
0
0
0
704
0.108592
7f0d5ca49f1919e597ff44fb16712aa31f0671e9
3,536
py
Python
scripts/yaml2rdf_module.py
opencultureagency/Training.Module.Template
eb9c7a348e55d4884b4be543b00e71b3ba608ee1
[ "CC0-1.0" ]
null
null
null
scripts/yaml2rdf_module.py
opencultureagency/Training.Module.Template
eb9c7a348e55d4884b4be543b00e71b3ba608ee1
[ "CC0-1.0" ]
null
null
null
scripts/yaml2rdf_module.py
opencultureagency/Training.Module.Template
eb9c7a348e55d4884b4be543b00e71b3ba608ee1
[ "CC0-1.0" ]
null
null
null
''' Converts ASKotec training module meta-data (from module.yaml) into an RDF/Turtle. ''' import glob import os from rdflib.namespace import DC, DCTERMS, DOAP, FOAF, SKOS, OWL, RDF, RDFS, VOID, XMLNS, XSD import wget from yaml2rdf_shared import * from yaml2rdf import convert KEY_RESOURCE_URL_YAML = 'yaml-url' KEY_RES...
36.081633
99
0.625283
0
0
0
0
0
0
0
0
966
0.27319
7f0de68f1e52bb92eebc116356fe75164e1a0c39
8,346
py
Python
bot/handlers/poll_handler.py
rednas174/Whatsapp_bot
05c48f9b82ac92c77c29fb4c4d394ce0607db40f
[ "MIT" ]
3
2021-01-07T21:14:43.000Z
2021-05-24T11:43:59.000Z
bot/handlers/poll_handler.py
rednas174/Whatsapp_bot
05c48f9b82ac92c77c29fb4c4d394ce0607db40f
[ "MIT" ]
4
2021-01-09T13:05:28.000Z
2021-01-10T12:41:47.000Z
bot/handlers/poll_handler.py
rednas174/Whatsapp_bot
05c48f9b82ac92c77c29fb4c4d394ce0607db40f
[ "MIT" ]
3
2021-01-07T21:09:18.000Z
2021-01-12T18:53:09.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jan 15 11:43:21 2021 @author: Sander """ import random # TODO: '/poll vote 88' has no output # : invalid poll id gives no output # Poll datastructure # # { # "number or name of person": # { # "__id" : unique id for every poll # "__name...
30.23913
127
0.496645
0
0
0
0
0
0
0
0
3,681
0.44105
7f0e7fdf479fefea84a6252c3937890b9d28d7ee
7,689
py
Python
script.py
OJP98/Text-Prediction
2ef69c82c8e1a0809e54dfbb42f5ed335f5c74d1
[ "MIT" ]
1
2020-12-18T00:10:34.000Z
2020-12-18T00:10:34.000Z
script.py
OJP98/Text-Prediction
2ef69c82c8e1a0809e54dfbb42f5ed335f5c74d1
[ "MIT" ]
null
null
null
script.py
OJP98/Text-Prediction
2ef69c82c8e1a0809e54dfbb42f5ed335f5c74d1
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% [markdown] # # Laboratorio #3 - Predicción de textos # # * Oscar Juárez - 17315 # * José Pablo Cifuentes - 17509 # * Paul Belches - 17088 # %% from keras.layers import Embedding from keras.layers import LSTM from keras.layers im...
31.383673
391
0.60437
0
0
0
0
0
0
0
0
3,168
0.410575
7f0f365849e50a905970be37d0158ad513dfbf3f
976
py
Python
notebook/str_compare_re.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/str_compare_re.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/str_compare_re.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import re s = 'aaa-AAA-123' print(re.search('aaa', s)) # <re.Match object; span=(0, 3), match='aaa'> print(re.search('xxx', s)) # None print(re.search('^aaa', s)) # <re.Match object; span=(0, 3), match='aaa'> print(re.search('^123', s)) # None print(re.search('aaa$', s)) # None print(re.search('123$', s)) # <re....
18.415094
56
0.574795
0
0
0
0
0
0
0
0
597
0.61168
7f1013721896a66800cbfdbbd69ac5bfb01f2332
47
py
Python
pytype/__version__.py
jjedele/pytype
3c5d920d26ac583bdfd68080e7db454ecb1dc900
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
jjedele/pytype
3c5d920d26ac583bdfd68080e7db454ecb1dc900
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
jjedele/pytype
3c5d920d26ac583bdfd68080e7db454ecb1dc900
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file __version__ = '2018.12.21'
15.666667
26
0.702128
0
0
0
0
0
0
0
0
31
0.659574
7f102b5952e499b7df63927d1e17dfc99e397355
291
py
Python
keybindings/autokey/data/Mac/refresh.py
guoyiteng/linux-for-macos-user
705baec9ddffb9ab73172cdc2b272ab123b1e402
[ "MIT" ]
1
2019-10-24T19:52:23.000Z
2019-10-24T19:52:23.000Z
keybindings/autokey/data/Mac/refresh.py
guoyiteng/linux-for-macos-user
705baec9ddffb9ab73172cdc2b272ab123b1e402
[ "MIT" ]
null
null
null
keybindings/autokey/data/Mac/refresh.py
guoyiteng/linux-for-macos-user
705baec9ddffb9ab73172cdc2b272ab123b1e402
[ "MIT" ]
null
null
null
store.set_global_value('hotkey', '<meta>+r') if re.match('.*(Hyper)', window.get_active_class()): logging.debug('terminal refresh buffer') engine.set_return_value('<ctrl>+<shift>+r') else: logging.debug('normal') engine.set_return_value('<ctrl>+r') engine.run_script('combo')
36.375
52
0.697595
0
0
0
0
0
0
0
0
97
0.333333
7f10c789a41fdf99ae85a779599834f61aad15f7
13,722
py
Python
mednickdb_pyapi/test_mednickdb_pyapi.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_pyapi.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_pyapi.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
1
2018-12-06T21:51:22.000Z
2018-12-06T21:51:22.000Z
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI import pytest import time user = 'bdyetton@hotmail.com' password = 'Pass1234' server_address = 'http://saclab.ss.uci.edu:8000' def test_login(): """Test login, this will always pass until we deal with login""" med_api = MednickAPI(server_address, user ,...
44.843137
177
0.626366
0
0
0
0
3,871
0.282102
0
0
3,836
0.279551
7f114c9480739ed4ffd7edf4c037a334bd96a0d0
1,286
py
Python
passl/hooks/evaluate_hook.py
LielinJiang/PASSL
56be08aa50c4883e12b2a728103ccb56dd19b047
[ "Apache-2.0" ]
null
null
null
passl/hooks/evaluate_hook.py
LielinJiang/PASSL
56be08aa50c4883e12b2a728103ccb56dd19b047
[ "Apache-2.0" ]
null
null
null
passl/hooks/evaluate_hook.py
LielinJiang/PASSL
56be08aa50c4883e12b2a728103ccb56dd19b047
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
31.365854
74
0.724728
423
0.328927
0
0
441
0.342924
0
0
596
0.463453
7f131597a81ecfde4479ee53fb1d6ae3dac7f3c1
13,154
py
Python
npu/core/common.py
xloem/npu
ed6da8599b04e9a5f2eded88d6c6ca433d46aa03
[ "MIT" ]
null
null
null
npu/core/common.py
xloem/npu
ed6da8599b04e9a5f2eded88d6c6ca433d46aa03
[ "MIT" ]
null
null
null
npu/core/common.py
xloem/npu
ed6da8599b04e9a5f2eded88d6c6ca433d46aa03
[ "MIT" ]
null
null
null
import hashlib import json import math import os import dill import base64 from sys import exit import requests from bson import ObjectId from Crypto.Cipher import PKCS1_OAEP from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA #from cryptography.hazmat.primitives.asymmetric import padding #from cryptography...
31.696386
114
0.64277
339
0.025772
342
0.026
0
0
0
0
2,579
0.196062
7f1364a55addfc28c7b3b109ab7ac3024926b0fb
54
py
Python
BZOJ/BZOJ1349.py
xehoth/OnlineJudgeCodes
013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7
[ "Apache-2.0" ]
7
2017-09-21T13:20:05.000Z
2020-03-02T03:03:04.000Z
BZOJ/BZOJ1349.py
xehoth/OnlineJudgeCodes
013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7
[ "Apache-2.0" ]
null
null
null
BZOJ/BZOJ1349.py
xehoth/OnlineJudgeCodes
013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7
[ "Apache-2.0" ]
3
2019-01-05T07:02:57.000Z
2019-06-13T08:23:13.000Z
import math print(int(math.ceil(math.sqrt(input()))))
18
41
0.722222
0
0
0
0
0
0
0
0
0
0
7f13a49ab964463c1066e45f31d90b6e23b47055
1,326
py
Python
apps/order/migrations/0002_auto_20180710_0937.py
jakejie/ShopPro
f0cec134ae77f4449f15a0219123d6a6bce2aad2
[ "Apache-2.0" ]
1
2019-04-20T16:58:02.000Z
2019-04-20T16:58:02.000Z
apps/order/migrations/0002_auto_20180710_0937.py
jakejie/ShopPro
f0cec134ae77f4449f15a0219123d6a6bce2aad2
[ "Apache-2.0" ]
6
2020-06-05T19:57:58.000Z
2021-09-08T00:49:17.000Z
apps/order/migrations/0002_auto_20180710_0937.py
jakejie/ShopPro
f0cec134ae77f4449f15a0219123d6a6bce2aad2
[ "Apache-2.0" ]
1
2021-09-10T18:29:28.000Z
2021-09-10T18:29:28.000Z
# Generated by Django 2.0.7 on 2018-07-10 09:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('prod...
33.15
129
0.631222
1,187
0.881872
0
0
0
0
0
0
259
0.192422
7f15fb89af9a585518029d9c6d50226a9e6439c3
935
py
Python
discordbot.py
yutoring/discordpy-startup
2a1d7f46d5b83384675494805eb82d5395be622f
[ "MIT" ]
null
null
null
discordbot.py
yutoring/discordpy-startup
2a1d7f46d5b83384675494805eb82d5395be622f
[ "MIT" ]
null
null
null
discordbot.py
yutoring/discordpy-startup
2a1d7f46d5b83384675494805eb82d5395be622f
[ "MIT" ]
null
null
null
from discord.ext import commands import tasks from datetime import datetime import os import traceback bot = commands.Bot(command_prefix='/') token = os.environ['DISCORD_BOT_TOKEN'] # 接続に必要なオブジェクトを生成 client = discord.Client() #投稿する日時 dateTimeList = [ '2019/11/19 18:09', '2019/11/19 18:15', '2019/11/19 18:20', ] #...
17
51
0.680214
0
0
0
0
457
0.401935
498
0.437995
437
0.384345
7f16d84239714a967c293f97513e0e7811b10129
2,431
py
Python
model-optimizer/unit_tests/extensions/ops/sparse_reshape_test.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
model-optimizer/unit_tests/extensions/ops/sparse_reshape_test.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
model-optimizer/unit_tests/extensions/ops/sparse_reshape_test.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from extensions.ops.sparse_reshape import SparseReshape from mo.front.common.partial_infer.utils import int64_array from mo.graph.graph import Node from unit_tests.utils.graph import build_graph node...
47.666667
132
0.640889
1,040
0.427807
0
0
0
0
0
0
819
0.336898
7f17b5e719007933ccff3a44c5b4667ddd2e9fe6
2,425
py
Python
app/utils/sqlalchemy_helpers.py
maricaantonacci/slat
739a98a93884bc1defbf2b297f4225e0ba069fef
[ "Apache-2.0" ]
null
null
null
app/utils/sqlalchemy_helpers.py
maricaantonacci/slat
739a98a93884bc1defbf2b297f4225e0ba069fef
[ "Apache-2.0" ]
null
null
null
app/utils/sqlalchemy_helpers.py
maricaantonacci/slat
739a98a93884bc1defbf2b297f4225e0ba069fef
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2020-2021 # # 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 ...
31.907895
90
0.654021
1,591
0.656082
0
0
0
0
0
0
1,044
0.430515
7f17cfaa77e2ef66b6517f601eec65ab88ad3f26
6,955
py
Python
python/uw/like/scalemodels.py
coclar/pointlike
7088724b5a40cf787371aff69e64c9bec701f578
[ "BSD-3-Clause" ]
1
2019-03-19T14:45:28.000Z
2019-03-19T14:45:28.000Z
python/uw/like/scalemodels.py
coclar/pointlike
7088724b5a40cf787371aff69e64c9bec701f578
[ "BSD-3-Clause" ]
1
2019-03-05T17:30:52.000Z
2019-03-05T18:12:15.000Z
python/uw/like/scalemodels.py
coclar/pointlike
7088724b5a40cf787371aff69e64c9bec701f578
[ "BSD-3-Clause" ]
3
2018-03-14T15:34:07.000Z
2021-11-05T15:29:32.000Z
""" Code to implement ScaleFactor:: decorator supported in gtlike. The gtlike feature is documented here: https://confluence.slac.stanford.edu/display/ST/Science+Tools+Development+Notes?focusedCommentId=103582318#comment-103582318 Author: Joshua Lande """ import operator from copy import deep...
36.036269
132
0.634364
0
0
0
0
0
0
0
0
4,875
0.700935
7f191b51e43f5f96fe4666dba8c6b32532e8c659
581
py
Python
neighbour/forms.py
Nobella-Nyarari-Ejiofor/Neighbourood
cacd9d64c944fa195a4bcb554425c9d0210b87b8
[ "PostgreSQL", "Unlicense" ]
null
null
null
neighbour/forms.py
Nobella-Nyarari-Ejiofor/Neighbourood
cacd9d64c944fa195a4bcb554425c9d0210b87b8
[ "PostgreSQL", "Unlicense" ]
null
null
null
neighbour/forms.py
Nobella-Nyarari-Ejiofor/Neighbourood
cacd9d64c944fa195a4bcb554425c9d0210b87b8
[ "PostgreSQL", "Unlicense" ]
null
null
null
from django.contrib.auth.models import User from django import forms import neighbour from .models import Business, Profile , Neighbourhood , Posts class ProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ['user'] class NeighbourhoodForm(forms.ModelForm): class Meta: model = Neighbou...
23.24
61
0.726334
425
0.731497
0
0
0
0
0
0
71
0.122203
7f191d3bb5dfb78d923ae3d5e4afeb6b44cfb286
3,956
py
Python
src/gp_server/utils/paths_overlay_filter.py
hellej/hope-green-path-server
46742c413fbe4c3734edd12ec867bdf7e2b29f05
[ "MIT" ]
5
2020-05-24T12:18:54.000Z
2021-04-25T19:07:16.000Z
src/gp_server/utils/paths_overlay_filter.py
hellej/hope-green-path-server
46742c413fbe4c3734edd12ec867bdf7e2b29f05
[ "MIT" ]
43
2019-09-22T18:45:35.000Z
2021-07-10T08:51:33.000Z
src/gp_server/utils/paths_overlay_filter.py
hellej/hope-green-path-server
46742c413fbe4c3734edd12ec867bdf7e2b29f05
[ "MIT" ]
7
2020-08-04T06:50:14.000Z
2021-01-17T11:36:13.000Z
""" This module provides functionality for filtering out paths with nearly identical geometries. """ from typing import List, Tuple, Union from gp_server.app.path import Path from gp_server.app.logger import Logger def __get_path_overlay_candidates_by_len( param_path: Path, all_paths: List[Path], len_dif...
36.293578
100
0.685035
0
0
0
0
0
0
0
0
1,489
0.37639
7f19de1db916a2221c0fcabfd4e70d02f0ac0cdb
1,676
py
Python
ADT/Homework 4/heapsort_variant.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
ADT/Homework 4/heapsort_variant.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
ADT/Homework 4/heapsort_variant.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
# Defining the left function def left(i): return 2*i+1 # Defining the right function def right(i): return 2*i+2 # Defining the parent node function def parent(i): return (i-1)//2 # Max_Heapify def max_heapify(arr,n,i): l=left(i) r=right(i) largest=i if n>l and arr[largest]<arr[l] : ...
23.605634
51
0.516706
0
0
0
0
0
0
0
0
289
0.172434
7f19df6d90e4eaf71ba87a40f7d247e20f11c992
6,625
py
Python
kunquat/tracker/ui/model/keymapmanager.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
13
2016-09-01T21:52:49.000Z
2022-03-24T06:07:20.000Z
kunquat/tracker/ui/model/keymapmanager.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
290
2015-03-14T10:59:25.000Z
2022-03-20T08:32:17.000Z
kunquat/tracker/ui/model/keymapmanager.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
7
2015-03-19T13:28:11.000Z
2019-09-03T16:21:16.000Z
# -*- coding: utf-8 -*- # # Authors: Toni Ruottu, Finland 2014 # Tomi Jylhä-Ollila, Finland 2016-2019 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or ne...
31.103286
92
0.635774
5,540
0.8361
0
0
0
0
0
0
608
0.09176
7f1a722e6f68f116e0ececcc7c8694b6ecbb5279
453
py
Python
make_instance.py
github-nakasho/ohzeki_method
975e5a85e0209d6f3689eaee179c19335c52e35a
[ "MIT" ]
null
null
null
make_instance.py
github-nakasho/ohzeki_method
975e5a85e0209d6f3689eaee179c19335c52e35a
[ "MIT" ]
null
null
null
make_instance.py
github-nakasho/ohzeki_method
975e5a85e0209d6f3689eaee179c19335c52e35a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np def make_instance(): # set the number of random numbers num_rands = 2000 # set K K = 5 # set random numbers rands = np.random.rand(num_rands) # optimal solution rands_sort = sorted(rands) optimal_obj = sum(rands_sort[0:5]) print('*****...
22.65
87
0.620309
0
0
0
0
0
0
0
0
149
0.328918
7f1aa77534d7ca4bf005172321cf304ed4c252e6
7,175
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
Kuan-HC/Udacity-CarND-Capstone
cfe6c44f0f46de19a7df728de3044fb2c1a80666
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
Kuan-HC/Udacity-CarND-Capstone
cfe6c44f0f46de19a7df728de3044fb2c1a80666
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
Kuan-HC/Udacity-CarND-Capstone
cfe6c44f0f46de19a7df728de3044fb2c1a80666
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight import rospy import tensorflow as tf import numpy as np import cv2 from PIL import Image # for visualization #import matplotlib.pyplot as plt from PIL import ImageDraw from PIL import ImageColor import os class TLClassifier(object): def __init__(self): #TODO load clas...
38.783784
124
0.607387
6,929
0.965714
0
0
0
0
0
0
2,110
0.294077
7f1b46a68b462c9832a4e39c40ba6411d23ff59c
3,279
py
Python
template/plugin/datafile.py
vaMuchenje/Template-Python
9edbf401cfeb9c33b50bd37fd0643fa0205d8a5e
[ "Artistic-2.0" ]
1
2016-03-02T06:51:04.000Z
2016-03-02T06:51:04.000Z
template/plugin/datafile.py
vaMuchenje/Template-Python
9edbf401cfeb9c33b50bd37fd0643fa0205d8a5e
[ "Artistic-2.0" ]
6
2015-10-13T13:46:10.000Z
2019-06-17T09:39:57.000Z
template/plugin/datafile.py
vaMuchenje/Template-Python
9edbf401cfeb9c33b50bd37fd0643fa0205d8a5e
[ "Artistic-2.0" ]
3
2018-12-03T13:15:21.000Z
2019-03-13T09:12:09.000Z
# # The Template-Python distribution is Copyright (C) Sean McAfee 2007-2008, # derived from the Perl Template Toolkit Copyright (C) 1996-2007 Andy # Wardley. All Rights Reserved. # # The file "LICENSE" at the top level of this source distribution describes # the terms under which this file may be distributed. # ...
28.763158
78
0.68466
997
0.304056
0
0
0
0
0
0
2,363
0.720647
7f1c8a1a6999814f41798c4e38334cdaa0a22f93
1,544
py
Python
src/tests/colorsensor.py
duckida/legosort
8fb6a3810056ced7b09fa7e5db42148b54831bcc
[ "MIT" ]
3
2020-04-30T18:56:32.000Z
2020-08-03T10:20:36.000Z
src/tests/colorsensor.py
duckida/legosort
8fb6a3810056ced7b09fa7e5db42148b54831bcc
[ "MIT" ]
1
2020-08-03T23:34:03.000Z
2020-08-03T23:34:03.000Z
src/tests/colorsensor.py
duckida/legosort
8fb6a3810056ced7b09fa7e5db42148b54831bcc
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time s2 = 26 s3 = 27 signal = 17 NUM_CYCLES = 10 def setup(): GPIO.setmode(GPIO.BCM) GPIO.setup(signal,GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(s2,GPIO.OUT) GPIO.setup(s3,GPIO.OUT) print("\n") def loop(): temp = 1 while(1): GPIO.output(s2,GPIO.LOW) ...
19.794872
64
0.610751
0
0
0
0
0
0
0
0
107
0.069301
7f1d0f17b0c7610564f4bd552870d3ed540a3a70
1,045
py
Python
example/example2.py
chrisseto/Breeze
53fc81666ba144e4a873c5f20e77cde00a675d38
[ "MIT" ]
null
null
null
example/example2.py
chrisseto/Breeze
53fc81666ba144e4a873c5f20e77cde00a675d38
[ "MIT" ]
null
null
null
example/example2.py
chrisseto/Breeze
53fc81666ba144e4a873c5f20e77cde00a675d38
[ "MIT" ]
null
null
null
import datetime import peewee as p from breeze import App, Resource, Serializable db = p.SqliteDatabase('users.db') class UserModel(p.Model): username = p.CharField(unique=True) password = p.CharField() email = p.CharField() join_date = p.DateTimeField(default=datetime.datetime.now) class Met...
21.326531
62
0.614354
814
0.778947
0
0
434
0.415311
0
0
30
0.028708
7f1d6247aa5afbf4e9f81a212764267b491f054c
551
py
Python
sqlalchemy_jsonapi/constants.py
jimbobhickville/sqlalchemy-jsonapi
40f8b5970d44935b27091c2bf3224482d23311bb
[ "MIT" ]
73
2015-01-11T09:23:21.000Z
2021-07-07T03:51:38.000Z
sqlalchemy_jsonapi/constants.py
jimbobhickville/sqlalchemy-jsonapi
40f8b5970d44935b27091c2bf3224482d23311bb
[ "MIT" ]
61
2015-03-16T22:08:14.000Z
2018-01-12T01:43:48.000Z
sqlalchemy_jsonapi/constants.py
JanAckermann/sqlalchemy-jsonapi
40f8b5970d44935b27091c2bf3224482d23311bb
[ "MIT" ]
39
2015-01-21T15:04:40.000Z
2020-09-24T19:54:15.000Z
""" SQLAlchemy-JSONAPI Constants Colton J. Provias MIT License """ try: from enum import Enum except ImportError: from enum34 import Enum class Method(Enum): """ HTTP Methods used by JSON API """ GET = 'GET' POST = 'POST' PATCH = 'PATCH' DELETE = 'DELETE' class Endpoint(Enum): """...
17.774194
70
0.637024
397
0.720508
0
0
0
0
0
0
292
0.529946
7f1e39640d0d32b0f11e287faac312c0865dad46
2,617
py
Python
1.-MapReduce Spark/B-Datos Meteorologicos/Meteorologico_3.py
gorco/sgdi-lab
afd967145fe21a5237893e93a3bfda828dba09e3
[ "Apache-2.0" ]
null
null
null
1.-MapReduce Spark/B-Datos Meteorologicos/Meteorologico_3.py
gorco/sgdi-lab
afd967145fe21a5237893e93a3bfda828dba09e3
[ "Apache-2.0" ]
null
null
null
1.-MapReduce Spark/B-Datos Meteorologicos/Meteorologico_3.py
gorco/sgdi-lab
afd967145fe21a5237893e93a3bfda828dba09e3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Este fichero generado para la asignatura SGDI # Practica 1 MapReduce Y Spark, Ejercicio B.3 # Autores: Antonio Calvo Morata y Carlos Congosto Sandoval # Antonio Calvo Morata y Carlos Congosto Sandoval declaramos que esta solución es fruto exclusivamente de nuestro # trabajo personal. No hemos sido ay...
40.890625
119
0.658387
1,741
0.663997
1,344
0.512586
0
0
0
0
1,156
0.440885
7f20ed98a090dda844e5340489d6c208513276d2
226
py
Python
components/studio/deployments/admin.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
components/studio/deployments/admin.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
components/studio/deployments/admin.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import DeploymentDefinition, DeploymentInstance, HelmResource admin.site.register(HelmResource) admin.site.register(DeploymentDefinition) admin.site.register(DeploymentInstance)
28.25
74
0.862832
0
0
0
0
0
0
0
0
0
0
7f223ce0b0a9bae329fb3c8299587d1e8fad0fa3
1,576
py
Python
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/constantMonthlyModel.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
null
null
null
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/constantMonthlyModel.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
13
2021-03-25T22:24:38.000Z
2022-03-12T00:56:45.000Z
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/constantMonthlyModel.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
1
2019-03-13T09:49:56.000Z
2019-03-13T09:49:56.000Z
#This is a class because it stores its model parameters and has a 'prediction' function which returns predictions for input data import numpy as np from baseModel import baseModel, ModellingError as me from datetime import datetime import pandas as pd class ModellingError(me): pass class ConstantMonthlyModel(baseMode...
37.52381
128
0.701142
1,321
0.838198
0
0
0
0
0
0
440
0.279188
7f225c7492072715078bdd768b21a5ef8c2bd1a5
3,746
py
Python
geojson_rewind/rewind.py
chris48s/geojson-rewind
fc0fe3e64cb2228b4aa35788866eb3ab973f6a94
[ "MIT" ]
15
2019-02-22T15:43:35.000Z
2021-12-16T14:31:33.000Z
geojson_rewind/rewind.py
chris48s/geojson-rewind
fc0fe3e64cb2228b4aa35788866eb3ab973f6a94
[ "MIT" ]
18
2019-06-12T08:58:50.000Z
2022-01-31T02:06:17.000Z
geojson_rewind/rewind.py
chris48s/geojson-rewind
fc0fe3e64cb2228b4aa35788866eb3ab973f6a94
[ "MIT" ]
2
2019-07-19T17:29:23.000Z
2021-11-10T16:56:44.000Z
import argparse import copy import json import logging import math import sys RADIUS = 6378137 def rewind(geojson, rfc7946=True): gj = copy.deepcopy(geojson) _check_crs(geojson) if isinstance(gj, str): return json.dumps(_rewind(json.loads(gj), rfc7946)) else: return _rewind(gj, rfc794...
27.343066
85
0.585424
0
0
0
0
0
0
0
0
890
0.237587
7f23399a461688f3bfbab0ead1e3f84996220c76
1,591
py
Python
corehq/apps/domain/project_access/middleware.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/domain/project_access/middleware.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/domain/project_access/middleware.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime, timedelta from django.utils.deprecation import MiddlewareMixin from corehq.apps.domain.project_access.models import SuperuserProjectEntryRecord, ENTRY_RECORD_FREQUENCY from corehq.util.quickcache import quickc...
49.71875
104
0.754871
1,208
0.759271
0
0
648
0.407291
0
0
58
0.036455
7f238b01c0def33202fd44f0d56c115a89fb1370
9,288
py
Python
languages/Natlab/src/natlab/tame/builtin/gen/classProp.py
dherre3/mclab-core
ccdcd6f46ee42285c7ad055ff0a9ea3361112e11
[ "Apache-2.0" ]
11
2015-05-31T16:11:35.000Z
2021-02-16T00:04:48.000Z
languages/Natlab/src/natlab/tame/builtin/gen/classProp.py
sshrdp/mclab
1843078edb13e647c0261d1944320ffbcf02ad99
[ "Apache-2.0" ]
12
2015-05-04T16:21:04.000Z
2019-04-24T21:49:33.000Z
languages/Natlab/src/natlab/tame/builtin/gen/classProp.py
sshrdp/mclab
1843078edb13e647c0261d1944320ffbcf02ad99
[ "Apache-2.0" ]
13
2015-05-31T17:16:45.000Z
2021-02-09T17:08:26.000Z
# DEPRECATED - THERE IS A PARSER FOR THE CLASS LANGUAGE IN JAVA NOW # TODO -delete # processing Class tag - class propagation language import processTags import sys # definition of the class propagation language - in a dictionary # helper method - converts numbers to a MatlabClassVar def convertNum(a): retu...
46.673367
134
0.669681
2,547
0.274225
0
0
0
0
0
0
4,246
0.457149
612f623225d8c8f8a22570950f3c2e1560fdac28
2,392
py
Python
python/rrc_simulation/pinocchio_utils.py
prstolpe/rrc_simulation
b430fe4e575641cdd64945cf57d0dd67a0eea17a
[ "BSD-3-Clause" ]
39
2020-08-10T20:27:57.000Z
2021-03-02T17:10:31.000Z
python/rrc_simulation/pinocchio_utils.py
prstolpe/rrc_simulation
b430fe4e575641cdd64945cf57d0dd67a0eea17a
[ "BSD-3-Clause" ]
8
2020-08-12T09:14:17.000Z
2020-09-22T12:57:40.000Z
python/rrc_simulation/pinocchio_utils.py
prstolpe/rrc_simulation
b430fe4e575641cdd64945cf57d0dd67a0eea17a
[ "BSD-3-Clause" ]
22
2020-08-10T20:20:13.000Z
2020-10-08T20:42:30.000Z
import numpy as np import pinocchio class PinocchioUtils: """ Consists of kinematic methods for the finger platform. """ def __init__(self, finger_urdf_path, tip_link_names): """ Initializes the finger model on which control's to be performed. Args: finger (SimFi...
31.064935
79
0.599916
2,352
0.983278
0
0
0
0
0
0
797
0.333194
61311e2005e71142f8cad95fe41af86e171237aa
226
py
Python
expense/admin.py
jramnai/ExpenseCalculator
e220ab0531dc0849e50c713f8f06f5f08be2319a
[ "MIT" ]
1
2019-11-24T10:03:07.000Z
2019-11-24T10:03:07.000Z
expense/admin.py
jramnai/ExpenseCalculator
e220ab0531dc0849e50c713f8f06f5f08be2319a
[ "MIT" ]
2
2020-06-06T00:10:07.000Z
2021-06-10T22:18:23.000Z
expense/admin.py
jramnai/ExpenseCalculator
e220ab0531dc0849e50c713f8f06f5f08be2319a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Category, Expense # Register your models here. admin.site.register(Category) admin.site.register(Expense)
22.6
39
0.778761
0
0
0
0
0
0
0
0
51
0.225664
6133a6ac1f3abd910d3fcd607ed9220a877b07c1
1,383
py
Python
setup.py
dbots-pkg/dbots.py
3076e39b30276844328dc7d14287310130c81c1e
[ "MIT" ]
8
2020-04-09T05:21:29.000Z
2021-11-01T19:47:50.000Z
setup.py
dbots-pkg/dbots.py
3076e39b30276844328dc7d14287310130c81c1e
[ "MIT" ]
13
2020-09-25T06:25:16.000Z
2021-11-15T22:06:59.000Z
setup.py
dbots-pkg/dbots.py
3076e39b30276844328dc7d14287310130c81c1e
[ "MIT" ]
1
2021-06-02T17:26:04.000Z
2021-06-02T17:26:04.000Z
import setuptools import re requirements = [] with open('requirements.txt') as f: requirements = f.read().splitlines() version = '' with open('dbots/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: raise RuntimeError('vers...
31.431818
99
0.617498
0
0
0
0
0
0
0
0
681
0.492408
6134e4f18a0efb8caf473f314596ff6aa401c746
597
py
Python
ml-work/test.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
ml-work/test.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
ml-work/test.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
# linear regression feature importance from sklearn.datasets import make_regression from sklearn.linear_model import LinearRegression from matplotlib import pyplot # define dataset X, y = make_regression(n_samples=1000, n_features=10, n_informative=5, random_state=1) # define the model model = LinearRegression() # fit ...
31.421053
86
0.778894
0
0
0
0
0
0
0
0
185
0.309883
61353a4f4ab02e99fc9e1983a95020c9594e9427
4,483
py
Python
parl/utils/logger.py
TomorrowIsAnOtherDay/PARL
0fc314630664a3205873a325d8c3105ec4c2500f
[ "Apache-2.0" ]
1
2019-08-01T08:34:40.000Z
2019-08-01T08:34:40.000Z
parl/utils/logger.py
TomorrowIsAnOtherDay/PARL
0fc314630664a3205873a325d8c3105ec4c2500f
[ "Apache-2.0" ]
null
null
null
parl/utils/logger.py
TomorrowIsAnOtherDay/PARL
0fc314630664a3205873a325d8c3105ec4c2500f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
30.496599
98
0.61789
1,408
0.314075
0
0
0
0
0
0
1,517
0.338389
61361bb27deebdcaf54deab305993d93df72c9f9
357
py
Python
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
1
2021-04-30T20:41:19.000Z
2021-04-30T20:41:19.000Z
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
null
null
null
from django.conf import settings NANO_BLOG_TAGS = None # Optional support for django-taggit try: if ('taggit' in settings.INSTALLED_APPS and getattr(settings, 'NANO_BLOG_USE_TAGS', False)): import taggit as NANO_BLOG_TAGS except ImportError: pass NANO_BLOG_SPECIAL_TAGS = getattr(settings, 'N...
25.5
81
0.745098
0
0
0
0
0
0
0
0
96
0.268908
6137412bca12c1594b05667ccd21c7747a8c970c
278
py
Python
scripts/get_article.py
theblueskies/prose
0251669de08abd6f7b0577701d786685c4e61a34
[ "MIT" ]
2,906
2017-04-05T17:03:08.000Z
2022-03-30T21:37:05.000Z
scripts/get_article.py
theblueskies/prose
0251669de08abd6f7b0577701d786685c4e61a34
[ "MIT" ]
70
2017-02-22T04:41:32.000Z
2022-01-19T19:24:33.000Z
scripts/get_article.py
theblueskies/prose
0251669de08abd6f7b0577701d786685c4e61a34
[ "MIT" ]
162
2017-04-13T15:07:26.000Z
2022-01-23T18:07:32.000Z
import os from newspaper import Article url = 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' article = Article(url) article.download() article.parse() with open(os.path.join('testdata', 'article.txt'), 'w') as f: f.write(article.text)
21.384615
87
0.719424
0
0
0
0
0
0
0
0
107
0.384892
613a98422c87f9037a1871ac68d9a3a2da07842e
337
py
Python
examples/example_02.py
vesche/juc2
3484175988bbf0c8f188c876641f1dd39b3c4af0
[ "MIT" ]
null
null
null
examples/example_02.py
vesche/juc2
3484175988bbf0c8f188c876641f1dd39b3c4af0
[ "MIT" ]
null
null
null
examples/example_02.py
vesche/juc2
3484175988bbf0c8f188c876641f1dd39b3c4af0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ juc2/examples/example_02.py Move a rectangle across the terminal. <3 """ from juc2 import art, Stage stage = Stage(height=40, width=80, frame=True) rectangle = art.Shapes.Rectangle(width=10, height=5, x=5, y=5) while True: stage.draw(rectangle, FPS=4) if rectangle.x < 60: ...
18.722222
62
0.676558
0
0
0
0
0
0
0
0
98
0.290801
613e54b69b09b894c0bfdcdad303fe36c638d48b
18,784
py
Python
codes/att_reader/layers.py
caglar/Attentive_reader
dcb9eb7d8fd1fd71c4ef333fed3aac7df99d663d
[ "BSD-3-Clause" ]
31
2016-03-02T16:00:37.000Z
2019-03-18T16:01:55.000Z
codes/att_reader/layers.py
caglar/Attentive_reader
dcb9eb7d8fd1fd71c4ef333fed3aac7df99d663d
[ "BSD-3-Clause" ]
1
2016-05-30T16:59:05.000Z
2016-05-30T16:59:05.000Z
codes/att_reader/layers.py
caglar/Attentive_reader
dcb9eb7d8fd1fd71c4ef333fed3aac7df99d663d
[ "BSD-3-Clause" ]
14
2016-03-02T16:08:55.000Z
2019-03-18T16:01:57.000Z
import theano import theano.tensor as tensor import numpy from att_reader.utils import prfx, norm_weight, ortho_weight from core.utils import dot, sharedX from core.commons import Sigmoid, Tanh, Rect, global_trng, Linear, ELU """ We have functions to create the layers and initialize them. """ profile = False la...
31.047934
101
0.486744
0
0
0
0
0
0
0
0
1,550
0.082517
613ea9b31a2272b26363309b98b740602337ecd8
10,687
py
Python
server/itk_tube.py
KitwareMedical/itk-tube-web
dbd29e6fba6f63929dea5ba5f7170ab47b1104f6
[ "BSD-3-Clause" ]
3
2017-12-31T10:16:44.000Z
2018-06-02T21:30:46.000Z
server/itk_tube.py
KitwareMedical/itk-tube-web
dbd29e6fba6f63929dea5ba5f7170ab47b1104f6
[ "BSD-3-Clause" ]
2
2017-11-15T15:33:27.000Z
2017-12-04T14:26:41.000Z
server/itk_tube.py
KitwareMedical/itk-tube-web
dbd29e6fba6f63929dea5ba5f7170ab47b1104f6
[ "BSD-3-Clause" ]
2
2018-01-30T14:52:54.000Z
2018-10-10T01:50:44.000Z
r""" This module is a ITK Web server application. The following command line illustrates how to use it:: $ python .../server/itk-tube.py --data /.../path-to-your-data-file --data Path to file to load. Any WSLink executable script comes with a set of standard arguments that ca...
33.606918
106
0.623561
7,966
0.745392
0
0
3,283
0.307196
0
0
2,453
0.229531
613ed83ec74ebf36b8cc8d8d8a4d471088eef80d
3,388
py
Python
SimplE/tester.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
SimplE/tester.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
SimplE/tester.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
import torch from tqdm import tqdm from dataset import Dataset import numpy as np from measure import Measure from os import listdir from os.path import isfile, join class Tester: def __init__(self, dataset, model_path, valid_or_test): self.device = torch.device("cuda:0" if torch.cuda.is_available() else...
37.644444
96
0.592975
3,218
0.949823
0
0
0
0
0
0
700
0.206612
613fd24f44efdf77077663143efe7c456df30295
14,319
py
Python
eulxml/xmlmap/cerp.py
ig0774/eulxml
17d71c7d98c0cebda9932b7f13e72093805e1fe2
[ "Apache-2.0" ]
19
2015-02-23T17:01:24.000Z
2022-03-14T08:14:16.000Z
eulxml/xmlmap/cerp.py
ig0774/eulxml
17d71c7d98c0cebda9932b7f13e72093805e1fe2
[ "Apache-2.0" ]
30
2015-07-24T17:11:52.000Z
2021-01-19T22:29:37.000Z
eulxml/xmlmap/cerp.py
ig0774/eulxml
17d71c7d98c0cebda9932b7f13e72093805e1fe2
[ "Apache-2.0" ]
13
2015-01-27T21:49:16.000Z
2021-01-19T23:00:00.000Z
# file eulxml/xmlmap/cerp.py # # Copyright 2010,2011 Emory University Libraries # # 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 # ...
35.887218
104
0.68238
12,232
0.85425
0
0
4,345
0.303443
0
0
5,180
0.361757
6140947de47795d851d9a57f819bb4fedb7e6c30
706
py
Python
nestfit/test/__init__.py
autocorr/nestf
7b82c42d8be75837e87c3ce4053714acb219b013
[ "MIT" ]
11
2019-08-22T17:19:10.000Z
2021-12-10T06:43:32.000Z
nestfit/test/__init__.py
autocorr/nestf
7b82c42d8be75837e87c3ce4053714acb219b013
[ "MIT" ]
3
2019-09-30T22:28:56.000Z
2021-02-15T21:40:33.000Z
nestfit/test/__init__.py
autocorr/nestf
7b82c42d8be75837e87c3ce4053714acb219b013
[ "MIT" ]
2
2020-06-30T07:18:18.000Z
2020-07-13T16:27:33.000Z
#!/usr/bin/env python3 import warnings from pathlib import Path from spectral_cube import SpectralCube from astropy.wcs import FITSFixedWarning DATA_PATH = Path(__file__).parent / "data" NH3_RMS_K = 0.35 def get_ammonia_cube(trans_id=1): assert trans_id in (1, 2) transition = f"{trans_id}" * 2 fpath ...
23.533333
64
0.677054
0
0
0
0
0
0
0
0
215
0.304533
614115a92e300f92dd37eb72064e8a55346da282
228
py
Python
djangopeople/djangopeople/management/commands/recluster.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
djangopeople/djangopeople/management/commands/recluster.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
djangopeople/djangopeople/management/commands/recluster.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
from django.core.management.base import NoArgsCommand from ... import clustering class Command(NoArgsCommand): help = "Re-runs the server-side clustering" def handle_noargs(self, **options): clustering.run()
20.727273
53
0.723684
143
0.627193
0
0
0
0
0
0
36
0.157895
6141442f7c66378254acb69ff2d917fdf3531f0e
211
py
Python
phl_courts_scraper/portal/__init__.py
PhilaController/phl-courts-scraper
d18eca8c5658f88b8f783903ab65c247f8f6d579
[ "MIT" ]
null
null
null
phl_courts_scraper/portal/__init__.py
PhilaController/phl-courts-scraper
d18eca8c5658f88b8f783903ab65c247f8f6d579
[ "MIT" ]
1
2022-03-12T00:52:08.000Z
2022-03-12T00:52:08.000Z
phl_courts_scraper/portal/__init__.py
PhilaController/phl-courts-scraper
d18eca8c5658f88b8f783903ab65c247f8f6d579
[ "MIT" ]
null
null
null
"""Parse the UJS court portal.""" from .core import UJSPortalScraper # noqa: F401 from .schema import PortalResult, PortalResults # noqa: F401 __all__ = ["UJSPortalScraper", "PortalResult", "PortalResults"]
30.142857
63
0.744076
0
0
0
0
0
0
0
0
104
0.492891
61417ac842baa5fce26e656d22d5a3fc89e691b0
3,671
py
Python
tuning/TensileConfiguration.py
mhbliao/Tensile
99261adfa7fe6b30b0c76b17b87bbd6cb41bae60
[ "MIT" ]
null
null
null
tuning/TensileConfiguration.py
mhbliao/Tensile
99261adfa7fe6b30b0c76b17b87bbd6cb41bae60
[ "MIT" ]
null
null
null
tuning/TensileConfiguration.py
mhbliao/Tensile
99261adfa7fe6b30b0c76b17b87bbd6cb41bae60
[ "MIT" ]
5
2019-07-29T01:23:56.000Z
2022-03-08T09:28:10.000Z
import os import sys import argparse ################################################################################ # Print Debug ################################################################################ #def printWarning(message): # print "Tensile::WARNING: %s" % message # sys.stdout.flush() def print...
25.493056
143
0.602016
2,355
0.641515
0
0
264
0.071915
0
0
999
0.272133
61419b6e24bcba1a05210251891441000213b61a
1,557
py
Python
WeLearn/M3-Python/L1-Python_Intro/hello.py
Sheldon101/mycssi2019labs
4ff1ecda475a54be79ee9ce44f1dac77418df2db
[ "Apache-2.0" ]
null
null
null
WeLearn/M3-Python/L1-Python_Intro/hello.py
Sheldon101/mycssi2019labs
4ff1ecda475a54be79ee9ce44f1dac77418df2db
[ "Apache-2.0" ]
null
null
null
WeLearn/M3-Python/L1-Python_Intro/hello.py
Sheldon101/mycssi2019labs
4ff1ecda475a54be79ee9ce44f1dac77418df2db
[ "Apache-2.0" ]
null
null
null
#num1=int(raw_input("Enter num #1:")) #num2=int(raw_input("Enter num #2:")) #total= num1 + num2 #print("The sum is: "+ str(total)) # need to be a string so computer can read it # all strings can be integers but not all integers can be strings # num = int(raw_input("Enter a number:")) # if num>0: # print("That's a p...
26.389831
98
0.626204
0
0
0
0
0
0
0
0
1,422
0.913295
614460f71cfeb7b215e13c2a3a7099f7272a6039
11,541
py
Python
test/test_server.py
gndu91/wsproto
7ddbdd9d7feee16b72ef7cd50c71fe18a88ce094
[ "MIT" ]
179
2017-05-03T19:52:16.000Z
2022-03-26T13:14:46.000Z
test/test_server.py
gndu91/wsproto
7ddbdd9d7feee16b72ef7cd50c71fe18a88ce094
[ "MIT" ]
116
2017-05-03T20:18:50.000Z
2022-02-27T12:33:34.000Z
test/test_server.py
gndu91/wsproto
7ddbdd9d7feee16b72ef7cd50c71fe18a88ce094
[ "MIT" ]
38
2017-05-04T18:04:07.000Z
2022-02-26T19:54:36.000Z
from typing import cast, List, Optional, Tuple import h11 import pytest from wsproto import WSConnection from wsproto.connection import SERVER from wsproto.events import ( AcceptConnection, Event, RejectConnection, RejectData, Request, ) from wsproto.extensions import Extension from wsproto.typing...
32.418539
87
0.593709
0
0
0
0
1,112
0.096352
0
0
2,580
0.223551
6148d66b350b1b75a0fa80c7fdba2459fab09824
1,499
py
Python
KnowledgeMapping/spark/connNeo4j/demo_mysql.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/spark/connNeo4j/demo_mysql.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
null
null
null
KnowledgeMapping/spark/connNeo4j/demo_mysql.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
import pymysql print("Connect to mysql...") mysql_db = "report_system" m_conn = pymysql.connect(host='192.168.20.20', port=3306, user='admin', passwd='1qaz@WSX', db=mysql_db, charset='utf8') m_cursor = m_conn.cursor() # sql = "select row_key,account_id,cell_no,is_id_match,product_id,response_ref_id,query_time from t...
45.424242
263
0.682455
0
0
0
0
0
0
0
0
709
0.469226
614996a118e2aab5b9a38bd9e742094a6bc21b63
993
py
Python
attached/delete.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
1
2022-01-25T17:24:05.000Z
2022-01-25T17:24:05.000Z
attached/delete.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
6
2020-05-06T23:36:55.000Z
2021-11-02T10:46:11.000Z
attached/delete.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
null
null
null
import sys, os, time, traceback from pdfrw import PdfReader, PdfWriter, PageMerge def processFile(file): inpfn = file outfn = 'out\\' + os.path.basename(inpfn) reader = PdfReader(inpfn) writer = PdfWriter(outfn) pagesNum = len(reader.pages) print(os.path.basename(inpfn) + ": page 1 -...
29.205882
67
0.562941
0
0
0
0
0
0
0
0
109
0.109768
614b094bc6fe81f808b2770a13e59af2778e159e
321
py
Python
Audio Features/waveplot.py
kritika58/A-Novel-Framework-Using-Neutrosophy-for-Integrated-Speech-and-Text-Sentiment-Analysis
a16bd5d02f2efd34ad20f496fb59f273fdb9b60c
[ "MIT" ]
null
null
null
Audio Features/waveplot.py
kritika58/A-Novel-Framework-Using-Neutrosophy-for-Integrated-Speech-and-Text-Sentiment-Analysis
a16bd5d02f2efd34ad20f496fb59f273fdb9b60c
[ "MIT" ]
null
null
null
Audio Features/waveplot.py
kritika58/A-Novel-Framework-Using-Neutrosophy-for-Integrated-Speech-and-Text-Sentiment-Analysis
a16bd5d02f2efd34ad20f496fb59f273fdb9b60c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import librosa.display plt.rcParams.update({'font.size': 16}) y, sr = librosa.load(librosa.util.example_audio_file()) plt.figure(figsize=(18, 7)) librosa.display.waveplot(y, sr=sr, x_axis='s') print(sr) plt.ylabel('Sampling Rate',fontsize=32) plt.xlabel('Time (s)',fontsize=32) plt.show(...
29.181818
55
0.744548
0
0
0
0
0
0
0
0
39
0.121495
614c833cd5e98e613a94ad6a3e10cb9506f857ac
49,928
py
Python
services/dashboard/projekt/dashboard_server.py
JoshPrim/EVA-Projekt
94e4f594519eda676e0f5f2787f8643831f346df
[ "Apache-2.0" ]
2
2018-05-30T08:40:26.000Z
2018-09-06T15:37:25.000Z
services/dashboard/projekt/dashboard_server.py
JoshPrim/EVA-Projekt
94e4f594519eda676e0f5f2787f8643831f346df
[ "Apache-2.0" ]
1
2021-06-01T22:37:55.000Z
2021-06-01T22:37:55.000Z
services/dashboard/projekt/dashboard_server.py
JoshPrim/EVA-Projekt
94e4f594519eda676e0f5f2787f8643831f346df
[ "Apache-2.0" ]
2
2018-05-31T14:55:04.000Z
2018-08-29T09:38:31.000Z
# -*- coding: utf-8 -*- ''' Autor: Joshua Prim, Philipp Krenitz, Bartos Mosch, Sophie Hagemann Version: 1.3 Server fuer das hosten des FaSta-Dashboards Copyright 2018 The Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
42.491915
232
0.500581
206
0.004113
0
0
11,694
0.233506
0
0
21,119
0.421705
614d70b8129724b5e053055af8277e59183bfa60
1,753
py
Python
hardware/humidity_rev001/main.py
deniz195/json-sensor
c0e55d39bab3be6eca444273fb5436e1eafe8860
[ "MIT" ]
1
2018-10-30T11:22:33.000Z
2018-10-30T11:22:33.000Z
hardware/humidity_rev001/main.py
deniz195/json-sensor
c0e55d39bab3be6eca444273fb5436e1eafe8860
[ "MIT" ]
null
null
null
hardware/humidity_rev001/main.py
deniz195/json-sensor
c0e55d39bab3be6eca444273fb5436e1eafe8860
[ "MIT" ]
null
null
null
# Trinket IO demo # Welcome to CircuitPython 2.0.0 :) import board from digitalio import DigitalInOut, Direction, Pull from analogio import AnalogOut, AnalogIn import touchio from adafruit_hid.keyboard import Keyboard from adafruit_hid.keycode import Keycode import adafruit_dotstar as dotstar import time import neop...
20.869048
72
0.654307
0
0
0
0
0
0
0
0
835
0.476326
614f16ac6495c02324492c1a2db96f18b5c7f6dc
20,681
py
Python
tests/lib/raw.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
2
2016-02-18T12:46:26.000Z
2022-03-13T03:05:05.000Z
tests/lib/raw.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
null
null
null
tests/lib/raw.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
5
2016-12-18T08:05:39.000Z
2019-11-19T21:18:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the storage media RAW image support helper functions.""" import unittest from dfvfs.lib import raw from dfvfs.lib import definitions from dfvfs.path import fake_path_spec from dfvfs.path import raw_path_spec from dfvfs.resolver import context from dfvfs.vfs impor...
41.695565
80
0.748175
20,294
0.981192
0
0
0
0
0
0
4,054
0.196006
614f585cc17a886444d4e45f07eb1b61a7b2e1d3
2,062
py
Python
src/tools/plot_training_log.py
motherapp/CenterNet
8a8a80e21637fab1462916b1a555fd2b2bfb6988
[ "MIT" ]
6
2019-11-22T05:54:16.000Z
2020-03-27T07:35:32.000Z
src/tools/plot_training_log.py
motherapp/CenterNet
8a8a80e21637fab1462916b1a555fd2b2bfb6988
[ "MIT" ]
null
null
null
src/tools/plot_training_log.py
motherapp/CenterNet
8a8a80e21637fab1462916b1a555fd2b2bfb6988
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import numpy as np import sys import time def get_train_loss(line): splitted_line = line.split(" ") return float(splitted_line[2]), float(splitted_line[4]) def get_val_loss(line): splitted_line = line.split(" ") if len(spli...
25.775
72
0.567895
0
0
668
0.323957
0
0
0
0
80
0.038797
61507394f52ac1e05ac449ce9da47bed8f214087
50,220
py
Python
pyxb/binding/content.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
pyxb/binding/content.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
pyxb/binding/content.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
# Copyright 2009, Peter A. Bigot # # 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 ...
44.168865
162
0.652708
48,964
0.97499
0
0
0
0
0
0
24,564
0.489128
6150aa4c86be0709bceaea10c0cd77d46a394ca4
2,447
py
Python
scripts/imglss-query-tycho-veto.py
desihub/imaginglss
09258d20015869fead9bad6020da2bc0d161f670
[ "MIT" ]
6
2015-04-30T18:58:28.000Z
2020-11-23T16:52:02.000Z
scripts/imglss-query-tycho-veto.py
desihub/imaginglss
09258d20015869fead9bad6020da2bc0d161f670
[ "MIT" ]
15
2015-07-21T18:44:30.000Z
2018-09-07T22:40:31.000Z
scripts/imglss-query-tycho-veto.py
desihub/imaginglss
09258d20015869fead9bad6020da2bc0d161f670
[ "MIT" ]
2
2017-11-29T16:58:34.000Z
2018-07-23T15:52:59.000Z
#!/usr/bin/env python # # Code to query the VETO mask of objects/randoms # It takes the NOISES extension as an input # It writers a VETO extension. # Usage, see python query_veto.py -h # from __future__ import print_function __author__ = "Yu Feng and Martin White" __version__ = "1.0" __email__ = "yfeng1@berkeley.ed...
30.974684
125
0.679199
0
0
0
0
0
0
0
0
1,186
0.484675
615124af15bbf9dc72d9e0297469abcf9e8f9255
5,573
py
Python
model.py
hafizur-rahman/CarND-Behavioral-Cloning-P3
2a094918c2901d0db4496649d66c89d7c5d512c8
[ "MIT" ]
null
null
null
model.py
hafizur-rahman/CarND-Behavioral-Cloning-P3
2a094918c2901d0db4496649d66c89d7c5d512c8
[ "MIT" ]
null
null
null
model.py
hafizur-rahman/CarND-Behavioral-Cloning-P3
2a094918c2901d0db4496649d66c89d7c5d512c8
[ "MIT" ]
null
null
null
import csv import cv2 import numpy as np from sklearn.utils import shuffle class DrivingLogReader: def __init__(self, driving_data): self.driving_data = driving_data self.driving_log = self.read_all(self.driving_data) self.record_count = len(self.driving_log) ...
33.371257
99
0.616903
3,927
0.704647
1,158
0.207788
0
0
0
0
674
0.12094
615449c99a13e49491115643772692dd1ae14eec
3,078
py
Python
backend/bundle/controller.py
FlickerSoul/Graphery
8b1390e1ba96fd2867f0cd8e5fc1d4ad6108121e
[ "MIT" ]
5
2020-08-26T00:15:01.000Z
2021-01-11T17:24:51.000Z
backend/bundle/controller.py
FlickerSoul/Graphery
8b1390e1ba96fd2867f0cd8e5fc1d4ad6108121e
[ "MIT" ]
69
2020-08-02T23:45:44.000Z
2021-04-17T03:04:32.000Z
backend/bundle/controller.py
FlickerSoul/Graphery
8b1390e1ba96fd2867f0cd8e5fc1d4ad6108121e
[ "MIT" ]
4
2020-09-10T05:40:49.000Z
2020-12-20T11:44:16.000Z
from __future__ import annotations import logging import pathlib from logging.handlers import TimedRotatingFileHandler from os import getenv from typing import Union, List, Mapping from bundle.utils.recorder import Recorder from bundle.utils.cache_file_helpers import CacheFolder, USER_DOCS_PATH from bundle.seeker imp...
37.084337
99
0.71345
2,437
0.791748
0
0
0
0
0
0
306
0.099415
6154b821741459ad2d01df318a4ca52a34575108
9,773
py
Python
CPC training/tune.py
haoyudong-97/tg2019task
4f31968cc49105d13bc95487136dc3ae986bf4d1
[ "MIT" ]
null
null
null
CPC training/tune.py
haoyudong-97/tg2019task
4f31968cc49105d13bc95487136dc3ae986bf4d1
[ "MIT" ]
null
null
null
CPC training/tune.py
haoyudong-97/tg2019task
4f31968cc49105d13bc95487136dc3ae986bf4d1
[ "MIT" ]
null
null
null
# Copyright 2018 Dong-Hyun Lee, Kakao Brain. # (Strongly inspired by original Google BERT code and Hugging Face's code) """ Fine-tuning on A Classification Task with pretrained Transformer """ import itertools import csv import fire import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader ...
31.525806
112
0.600941
5,781
0.591528
0
0
0
0
0
0
2,240
0.229203
6156a185a0ec9e2713a8896fbea860c9a2788539
2,069
py
Python
test/teos/unit/test_extended_appointment.py
ritikramuka/python-teos
daa9d8dc89d5ddc3f29f2b7b2dda05bf0c79c82d
[ "MIT" ]
86
2020-03-20T23:58:40.000Z
2022-02-27T11:25:11.000Z
test/teos/unit/test_extended_appointment.py
sr-gi/python-teos
f8f214125a2f7c82fed278dc21ee5d517e7de72a
[ "MIT" ]
160
2020-03-23T16:31:51.000Z
2022-03-05T13:22:21.000Z
test/teos/unit/test_extended_appointment.py
sr-gi/python-teos
f8f214125a2f7c82fed278dc21ee5d517e7de72a
[ "MIT" ]
17
2020-03-21T10:28:37.000Z
2022-02-23T12:22:00.000Z
import pytest from teos.extended_appointment import ExtendedAppointment @pytest.fixture def ext_appointment_data(generate_dummy_appointment): return generate_dummy_appointment().to_dict() # Parent methods are not tested. def test_init_ext_appointment(ext_appointment_data): # The appointment has no checks...
36.946429
116
0.744804
0
0
0
0
119
0.057516
0
0
470
0.227163
6156bf0e3221f1152ca5fede44ceb1bca071a86d
1,246
py
Python
toolchain/riscv/MSYS/python/Lib/test/encoded_modules/__init__.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
toolchain/riscv/MSYS/python/Lib/test/encoded_modules/__init__.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
toolchain/riscv/MSYS/python/Lib/test/encoded_modules/__init__.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
# -*- encoding: utf-8 -*- # This is a package that contains a number of modules that are used to # test import from the source files that have different encodings. # This file (the __init__ module of the package), is encoded in utf-8 # and contains a list of strings from various unicode planes that are # encoded...
51.916667
81
0.731942
0
0
0
0
0
0
0
0
1,218
0.93909
6157139686e8da9fc83cd2b69a5a6860b9518492
2,554
py
Python
kinoko/text/patch_tsv.py
koyo922/kinoko
4750d8e6b1a68ba771cd89b352989ef05b293d45
[ "MIT" ]
13
2019-10-27T12:19:27.000Z
2022-03-12T13:30:31.000Z
kinoko/text/patch_tsv.py
iloveslq/kinoko
4750d8e6b1a68ba771cd89b352989ef05b293d45
[ "MIT" ]
null
null
null
kinoko/text/patch_tsv.py
iloveslq/kinoko
4750d8e6b1a68ba771cd89b352989ef05b293d45
[ "MIT" ]
10
2019-10-27T12:21:21.000Z
2022-03-12T13:30:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 expandtab number """ 使用参考文件,对 csv/tsv 文件进行修补 e.g. <reference.txt>内容如下: jiaose 角色 juese xxx 色情词 <DEL> <file_to_patch>内容如下: field1 field2 角色 jiaose field4 field1 field2 色情词 xxx field4 <result直接写到stdout>,内容如下: field1 field2 角色 juese field4 命令行...
28.377778
112
0.627643
0
0
0
0
0
0
0
0
1,226
0.436921
6158ddbd923564b0fc6dc5759ee9c0f2fdcd6fb9
3,078
py
Python
toolkit/utils/report_utils.py
suraj-testing2/Flowers_Toilet
21c981531a505a8b74ee42c33a3f4d68ef72d7f3
[ "Apache-2.0" ]
22
2015-01-22T12:10:50.000Z
2021-10-12T03:30:56.000Z
toolkit/utils/report_utils.py
suraj-testing2/Flowers_Toilet
21c981531a505a8b74ee42c33a3f4d68ef72d7f3
[ "Apache-2.0" ]
null
null
null
toolkit/utils/report_utils.py
suraj-testing2/Flowers_Toilet
21c981531a505a8b74ee42c33a3f4d68ef72d7f3
[ "Apache-2.0" ]
17
2016-01-28T04:54:39.000Z
2021-10-12T03:30:49.000Z
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
28.766355
76
0.690058
1,212
0.393762
0
0
120
0.038986
0
0
1,895
0.61566
6158e50e667f81e2d5e70166a7f7dc89a015b4a3
323
py
Python
Sinavro/Types/BaseClass.py
pl-Steve28-lq/SinavroLang
8f8344bf9d92ba5498f9bbf103fb2c80cde724d2
[ "MIT" ]
4
2020-12-24T10:11:18.000Z
2021-09-09T01:24:05.000Z
Sinavro/Types/BaseClass.py
pl-Steve28-lq/SinavroLang
8f8344bf9d92ba5498f9bbf103fb2c80cde724d2
[ "MIT" ]
null
null
null
Sinavro/Types/BaseClass.py
pl-Steve28-lq/SinavroLang
8f8344bf9d92ba5498f9bbf103fb2c80cde724d2
[ "MIT" ]
null
null
null
class SinavroObject: pass def init(self, val): self.value = val gencls = lambda n: type(f'Sinavro{n.title()}', (SinavroObject,), {'__init__': init, 'type': n}) SinavroInt = gencls('int') SinavroFloat = gencls('float') SinavroString = gencls('string') SinavroBool = gencls('bool') SinavroArray = gencls('array'...
29.363636
96
0.681115
25
0.077399
0
0
0
0
0
0
70
0.216718
615ad8eba732cef089d5695b78282f0eeaae7437
2,824
py
Python
HUGS/Interface/_upload.py
hugs-cloud/hugs
65aef97d662746f1382bd03b15f46a6647c7b7f5
[ "Apache-2.0" ]
null
null
null
HUGS/Interface/_upload.py
hugs-cloud/hugs
65aef97d662746f1382bd03b15f46a6647c7b7f5
[ "Apache-2.0" ]
5
2020-08-18T12:22:46.000Z
2020-09-30T14:30:11.000Z
HUGS/Interface/_upload.py
hugs-cloud/hugs
65aef97d662746f1382bd03b15f46a6647c7b7f5
[ "Apache-2.0" ]
2
2020-06-11T20:30:24.000Z
2020-10-29T17:30:21.000Z
import tempfile from pathlib import Path import ipywidgets as widgets from HUGS.Client import Process from HUGS.Interface import Credentials class Upload: def __init__(self): self._credentials = Credentials() self._user = None def login(self): return self._credentials.login() d...
31.032967
88
0.555949
2,678
0.9483
0
0
0
0
0
0
541
0.191572
615cff61d92d443e22f1204db917f9dba1c6f6b4
10,987
py
Python
tools/run_tests/xds_k8s_test_driver/tests/url_map/metadata_filter_test.py
minerba/grpc
775362a2cea21363339d73215e3b9a1394ad55b2
[ "Apache-2.0" ]
null
null
null
tools/run_tests/xds_k8s_test_driver/tests/url_map/metadata_filter_test.py
minerba/grpc
775362a2cea21363339d73215e3b9a1394ad55b2
[ "Apache-2.0" ]
null
null
null
tools/run_tests/xds_k8s_test_driver/tests/url_map/metadata_filter_test.py
minerba/grpc
775362a2cea21363339d73215e3b9a1394ad55b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The gRPC Authors # # 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 writ...
39.521583
80
0.576408
9,343
0.850369
0
0
4,403
0.400746
0
0
2,869
0.261127
615eb18c148fdcb7f52ffdef75ab23706867bb3b
2,268
py
Python
tmpFile.py
yingyulou/tmpFile
557e74351a0412b70c0ef1179479920e86b31bc4
[ "MIT" ]
2
2019-06-11T10:30:35.000Z
2020-08-27T07:05:41.000Z
tmpFile.py
yingyulou/tmpFile
557e74351a0412b70c0ef1179479920e86b31bc4
[ "MIT" ]
null
null
null
tmpFile.py
yingyulou/tmpFile
557e74351a0412b70c0ef1179479920e86b31bc4
[ "MIT" ]
1
2019-03-17T02:52:21.000Z
2019-03-17T02:52:21.000Z
#!/bin/env python # coding=UTF-8 ''' DESCRIPTION tmpFile A module for creating temporary files and folders. VERSION 1.4.0 LATEST UPDATE 2019.3.4 ''' # Import Python Lib from os import remove, mkdir from os.path import join, exists, abspath from uuid import uuid4 from shutil import rmtree #####...
19.220339
80
0.479718
1,600
0.705467
0
0
0
0
0
0
1,419
0.625661
615ee1b639ae928638b3d914af60405b9ed2a109
364
py
Python
hw_asr/augmentations/wave_augmentations/__init__.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/wave_augmentations/__init__.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/wave_augmentations/__init__.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
from hw_asr.augmentations.wave_augmentations.Gain import Gain from hw_asr.augmentations.wave_augmentations.ImpulseResponse import ImpulseResponse from hw_asr.augmentations.wave_augmentations.Noise import GaussianNoise from hw_asr.augmentations.wave_augmentations.TimeStretch import TimeStretch __all__ = [ "Gain", ...
33.090909
83
0.837912
0
0
0
0
0
0
0
0
38
0.104396
6160876a4005d2218239e0d5b0c8b1ee445778c9
2,408
py
Python
python/ambassador/compile.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
3,438
2017-04-23T23:10:18.000Z
2021-06-02T10:11:45.000Z
python/ambassador/compile.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
1,906
2017-04-11T17:47:54.000Z
2021-06-02T14:20:11.000Z
python/ambassador/compile.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
591
2017-04-17T17:50:08.000Z
2021-06-01T08:20:34.000Z
# Copyright 2020 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
31.272727
97
0.703904
0
0
0
0
0
0
0
0
1,161
0.482143