hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2eda01290cb12964d055438179684520182283e8
578
py
Python
LeetCode/Mock Interviews/Google/Phone Interview 10/Print Immutable Linked List in Reverse.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/Mock Interviews/Google/Phone Interview 10/Print Immutable Linked List in Reverse.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/Mock Interviews/Google/Phone Interview 10/Print Immutable Linked List in Reverse.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
# """ # This is the ImmutableListNode's API interface. # You should not implement it, or speculate about its implementation. # """ # class ImmutableListNode: # def printValue(self) -> None: # print the value of this node. # def getNext(self) -> 'ImmutableListNode': # return the next node. class Solution: d...
36.125
74
0.66436
1453c4c383a2dbfdd6dc5ab396f0d9987fa78a84
32,063
py
Python
nilearn/tests/test_signal.py
RaphaelMeudec/nilearn
186c47c34c036c092a8d735baf25541d510078ec
[ "BSD-2-Clause" ]
827
2015-01-30T23:11:42.000Z
2022-03-29T21:21:05.000Z
nilearn/tests/test_signal.py
RaphaelMeudec/nilearn
186c47c34c036c092a8d735baf25541d510078ec
[ "BSD-2-Clause" ]
2,845
2015-01-04T22:14:41.000Z
2022-03-31T20:28:09.000Z
nilearn/tests/test_signal.py
RaphaelMeudec/nilearn
186c47c34c036c092a8d735baf25541d510078ec
[ "BSD-2-Clause" ]
484
2015-02-03T10:58:19.000Z
2022-03-29T21:57:16.000Z
""" Test the signals module """ # Author: Gael Varoquaux, Alexandre Abraham # License: simplified BSD import os.path import warnings from distutils.version import LooseVersion import numpy as np import pytest # Use nisignal here to avoid name collisions (using nilearn.signal is # not possible) from nilearn import si...
40.637516
89
0.630665
14e3b218ad7339a4e58b3b76e16bed37c946feee
6,852
py
Python
dub.py
iTecAI/peacecraft-util-bot
da4bc750fd3553a7720629c47fbb9c48eea9f315
[ "MIT" ]
null
null
null
dub.py
iTecAI/peacecraft-util-bot
da4bc750fd3553a7720629c47fbb9c48eea9f315
[ "MIT" ]
null
null
null
dub.py
iTecAI/peacecraft-util-bot
da4bc750fd3553a7720629c47fbb9c48eea9f315
[ "MIT" ]
null
null
null
import discord, time from ipify import get_ip from urllib.request import urlopen client = discord.Client() with open('cfg.sys', 'r') as tok: TOK = tok.read().splitlines()[0] toggle = True disabled_users = [] last = '' @client.event async def on_ready(): print('PCU Active') @client.event async...
50.382353
253
0.483071
f660267620e603efb60d567eab3d216add846a29
7,349
py
Python
tests/core/middleware/test_latest_block_based_cache_middleware.py
carver/web3.py
9a9640505ea310334828a190f2220c4cb7925c3b
[ "MIT" ]
null
null
null
tests/core/middleware/test_latest_block_based_cache_middleware.py
carver/web3.py
9a9640505ea310334828a190f2220c4cb7925c3b
[ "MIT" ]
null
null
null
tests/core/middleware/test_latest_block_based_cache_middleware.py
carver/web3.py
9a9640505ea310334828a190f2220c4cb7925c3b
[ "MIT" ]
null
null
null
import codecs import itertools import time import uuid import pytest from eth_utils import ( is_integer, to_tuple, ) from web3 import Web3 from web3.providers.base import BaseProvider from web3.middleware import ( # noqa: F401 construct_result_generator_middleware, construct_error_generator_middlewa...
30.367769
76
0.666213
1d32369906f1991c35b3ac37d831d3c2cfa02a4f
3,038
py
Python
tests/integration/routes/test_errors.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/integration/routes/test_errors.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/integration/routes/test_errors.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
from unittest.mock import patch from tests.integration.integration_test_case import IntegrationTestCase class TestErrors(IntegrationTestCase): example_payload = { "user_id": "integration-test", "period_str": "April 2016", "period_id": "201604", "collection_exercise_sid": "789", ...
36.60241
99
0.598091
578fda8a7d8c16881251fe03191da6647e4012a5
3,217
py
Python
ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
2
2021-10-30T06:52:48.000Z
2021-11-16T12:34:16.000Z
ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
30.065421
96
0.573205
c0760c9417ba736e366f1f6e9f741e2668e2e51a
16,138
py
Python
boa3_test/tests/compiler_tests/test_interop/test_binary.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
boa3_test/tests/compiler_tests/test_interop/test_binary.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
boa3_test/tests/compiler_tests/test_interop/test_binary.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
from boa3.exception.CompilerError import MismatchedTypes, UnexpectedArgument, UnfilledArgument from boa3.neo.vm.type.StackItem import StackItemType, serialize from boa3.neo.vm.type.String import String from boa3_test.tests.boa_test import BoaTest from boa3_test.tests.test_classes.TestExecutionException import TestExecu...
50.274143
125
0.650886
cd8f8e1135d2d5d0259f4f7c17a92f0cddf39c40
1,767
py
Python
arviz/tests/base_tests/test_stats_numba.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
1
2021-07-10T19:08:49.000Z
2021-07-10T19:08:49.000Z
arviz/tests/base_tests/test_stats_numba.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
null
null
null
arviz/tests/base_tests/test_stats_numba.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
1
2019-03-02T03:23:12.000Z
2019-03-02T03:23:12.000Z
# pylint: disable=redefined-outer-name, no-member import importlib import numpy as np import pytest from ...rcparams import rcParams from ...stats import r2_score, summary from ...utils import Numba from ..helpers import ( # pylint: disable=unused-import check_multiple_attrs, multidim_models, running_on_...
34.647059
92
0.745331
7afe7c5c9815e6ab15a0c557fa61aa68a1707124
10,411
py
Python
src/rosjava_build_tools/create_rosjava_project.py
CentralLabFacilities/rosjava_build_tools
5a8fd3018756f3f87b23104553e3d17be53b69ee
[ "Apache-2.0" ]
1
2021-07-09T08:11:06.000Z
2021-07-09T08:11:06.000Z
src/rosjava_build_tools/create_rosjava_project.py
CentralLabFacilities/rosjava_build_tools
5a8fd3018756f3f87b23104553e3d17be53b69ee
[ "Apache-2.0" ]
null
null
null
src/rosjava_build_tools/create_rosjava_project.py
CentralLabFacilities/rosjava_build_tools
5a8fd3018756f3f87b23104553e3d17be53b69ee
[ "Apache-2.0" ]
2
2020-08-10T13:57:51.000Z
2021-07-08T12:46:45.000Z
#!/usr/bin/env python ############################################################################## # Imports ############################################################################## from __future__ import print_function import os import re import sys import argparse import xml.etree.ElementTree as ElementTre...
40.509728
136
0.635386
67e78537e50af8000b4e82580749f1b8a8d36ef6
4,490
py
Python
test/integration/ggrc/converters/test_snapshot_block.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/converters/test_snapshot_block.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/converters/test_snapshot_block.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for Snapshot block converter class.""" import mock from ggrc import db from ggrc.converters.snapshot_block import SnapshotBlockConverter from ggrc.models import all_models from integration.ggrc im...
36.209677
78
0.661693
efe07bbef91e7259a1a8d7f80d1923f35c8bb9e2
2,649
py
Python
apps/Products/migrations/0001_initial.py
ulibn/BlueXolo
2560593fdb5a26fe90c65aa711a8eb6db96d03f1
[ "Apache-2.0" ]
21
2018-12-05T16:16:58.000Z
2021-10-07T22:51:26.000Z
apps/Products/migrations/0001_initial.py
ulibn/BlueXolo
2560593fdb5a26fe90c65aa711a8eb6db96d03f1
[ "Apache-2.0" ]
437
2018-12-11T19:36:38.000Z
2022-02-04T16:28:14.000Z
apps/Products/migrations/0001_initial.py
ulibn/BlueXolo
2560593fdb5a26fe90c65aa711a8eb6db96d03f1
[ "Apache-2.0" ]
29
2019-01-24T16:46:33.000Z
2021-12-21T06:45:50.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-22 01:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Argume...
40.136364
186
0.547376
2bbfe4ad1b56fed16f7b9b7acce1374d789de0a0
1,727
py
Python
tests/test_graph.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
tests/test_graph.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
tests/test_graph.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
import unittest from datastructures.graph import GraphVertex, WeightedGraphVertex from algorithms.graph_search import depth_first_search, breadth_first_search, dijkstra_shortest_path class TestGraphVertex(unittest.TestCase): def setUp(self): self.root = GraphVertex("Mohammad") felicia = GraphVerte...
39.25
115
0.70469
119f70a9332ef4ab6268daba30f1431daeeb22e7
7,512
py
Python
kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1GCEPersi...
37.56
367
0.638845
55e8bc2df1210a67382cce04e96ac33c04962da0
450
py
Python
e2elink/synthetic/fakers/dategenerator.py
ersilia-os/cidrz-e2e-linkage
840581cdb90617f3ceb1be898992f0a8df71f9e3
[ "MIT" ]
null
null
null
e2elink/synthetic/fakers/dategenerator.py
ersilia-os/cidrz-e2e-linkage
840581cdb90617f3ceb1be898992f0a8df71f9e3
[ "MIT" ]
null
null
null
e2elink/synthetic/fakers/dategenerator.py
ersilia-os/cidrz-e2e-linkage
840581cdb90617f3ceb1be898992f0a8df71f9e3
[ "MIT" ]
null
null
null
from random import randrange from datetime import timedelta, datetime class DateGenerator(object): def __init__(self): pass def sample(self, start, end): start = datetime.strptime(start, "%Y-%m-%d") end = datetime.strptime(end, "%Y-%m-%d") delta = end - start int_delta...
28.125
55
0.635556
cee31a8783365bbff4a46ece74901c86292c254e
2,838
py
Python
tests/kyu_3_tests/test_finding_an_appointment.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
tests/kyu_3_tests/test_finding_an_appointment.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
tests/kyu_3_tests/test_finding_an_appointment.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
import unittest from katas.kyu_3.finding_an_appointment import get_start_time class GetStartTimeTestCase(unittest.TestCase): def setUp(self): self.schedule_1 = [ [['09:00', '11:30'], ['13:30', '16:00'], ['16:00', '17:30'], ['17:45', '19:00']], [['09:15', '12:00'], ['1...
37.342105
73
0.501762
05978404cba7df2997f324f7909485be2ca3c44b
388
py
Python
main.py
cls1991/12306-ticket-accelerator
b17fff9c998b851fdfd9c37eb78a9c15bfb4f7eb
[ "Apache-2.0" ]
null
null
null
main.py
cls1991/12306-ticket-accelerator
b17fff9c998b851fdfd9c37eb78a9c15bfb4f7eb
[ "Apache-2.0" ]
null
null
null
main.py
cls1991/12306-ticket-accelerator
b17fff9c998b851fdfd9c37eb78a9c15bfb4f7eb
[ "Apache-2.0" ]
null
null
null
# coding: utf8 import os from core.query import query_tickets # 切换工作目录到项目根目录 project = os.path.split(os.path.realpath(__file__))[0] os.chdir(project) def main(): """ test main """ from_station = '北京' to_station = '武汉' train_date = '2017-12-16' query_tickets(from_station, to_station, tra...
16.166667
74
0.667526
06f81183fa4711af7e639b4ac758ebf690c24ea1
668
py
Python
src/factiva/pipelines/const/__init__.py
dowjones/factiva-pipelines-python
053aa10bba195f15a039e1974cb2f2357b67b311
[ "MIT" ]
1
2021-06-04T10:18:38.000Z
2021-06-04T10:18:38.000Z
src/factiva/pipelines/const/__init__.py
wizeline/factiva-pipelines-python
053aa10bba195f15a039e1974cb2f2357b67b311
[ "MIT" ]
null
null
null
src/factiva/pipelines/const/__init__.py
wizeline/factiva-pipelines-python
053aa10bba195f15a039e1974cb2f2357b67b311
[ "MIT" ]
3
2021-03-27T11:36:48.000Z
2022-02-16T12:55:43.000Z
# Fields to be used for statistical purposes, no content is loaded ARTICLE_STATS_FIELDS = ['an', 'company_codes', 'company_codes_about', 'company_codes_occur', 'industry_codes', 'ingestion_datetime', 'language_code', 'modification_datetime', 'publi...
60.727273
99
0.636228
ccef969fd1f84d45fab64d85110c07787dc83b65
2,843
py
Python
terroroftinytown/test/random_result.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
59
2015-03-05T21:30:06.000Z
2022-01-31T05:50:34.000Z
terroroftinytown/test/random_result.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
33
2015-01-10T02:27:08.000Z
2022-02-08T18:26:56.000Z
terroroftinytown/test/random_result.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
16
2015-03-06T19:51:53.000Z
2021-11-16T03:50:52.000Z
import random, hashlib, datetime from sqlalchemy.sql.expression import insert from terroroftinytown.tracker.bootstrap import Bootstrap from terroroftinytown.tracker.database import Database from terroroftinytown.tracker.model import new_session, Result, Project class MockProject(Bootstrap): def __init__(self, d...
32.306818
111
0.592684
b85f0bb744d85dbf051f861a3491466a13c8c5bf
4,135
py
Python
scripts/setup/generate_secrets.py
my-name-here/zulip
4ad6582982d05e169afb1fffe5e648a7843333f0
[ "Apache-2.0" ]
1
2019-01-13T20:47:29.000Z
2019-01-13T20:47:29.000Z
scripts/setup/generate_secrets.py
alex784004/patient
a6510c4626392b9a8385cbac82698d9e23df0a55
[ "Apache-2.0" ]
1
2021-11-15T17:53:42.000Z
2021-11-15T17:53:42.000Z
scripts/setup/generate_secrets.py
alex784004/patient
a6510c4626392b9a8385cbac82698d9e23df0a55
[ "Apache-2.0" ]
1
2020-10-26T08:49:45.000Z
2020-10-26T08:49:45.000Z
#!/usr/bin/env python3 # This tools generates /etc/zulip/zulip-secrets.conf import sys import os if False: from typing import Dict, List, Optional, Text BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(BASE_DIR) import scripts.lib.setup_path_on_import os.env...
31.807692
87
0.689238
11db0d8a78994823ed947299e05d21a4d27145a6
338
py
Python
decentmark/migrations/0007_remove_assignment_attempts.py
DecentMark/decentmark
52cc80f2b13b13a249326f953615e8386f9d4155
[ "MIT" ]
null
null
null
decentmark/migrations/0007_remove_assignment_attempts.py
DecentMark/decentmark
52cc80f2b13b13a249326f953615e8386f9d4155
[ "MIT" ]
1
2018-09-05T12:07:44.000Z
2018-09-05T12:07:44.000Z
decentmark/migrations/0007_remove_assignment_attempts.py
DecentMark/decentmark
52cc80f2b13b13a249326f953615e8386f9d4155
[ "MIT" ]
3
2018-08-28T06:02:47.000Z
2018-09-03T10:53:07.000Z
# Generated by Django 2.1 on 2018-10-04 11:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('decentmark', '0006_submission_autostatus'), ] operations = [ migrations.RemoveField( model_name='assignment', name='attempts',...
18.777778
53
0.606509
912e62bcfc08d27d786cb2dedb00fffa1ca560fa
2,480
py
Python
analysis/scripts/project_functions.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
1
2021-02-09T02:13:23.000Z
2021-02-09T02:13:23.000Z
analysis/scripts/project_functions.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
31
2021-02-02T17:03:39.000Z
2021-04-13T03:22:16.000Z
analysis/scripts/project_functions.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
1
2021-03-14T05:56:16.000Z
2021-03-14T05:56:16.000Z
import collections from typing import Collection, Container import pandas as pd import os # CONSTANT FOR US REGION NORTH_EAST = ['CT', 'DE', 'MA', 'MD', 'ME', 'NH', 'NJ', 'NY', 'PA', 'RI', 'VT'] MID_WEST = ['IA', 'IL', 'IN', 'KS', 'MI', 'MN', 'MO', 'ND', 'NE', 'OH', 'SD', 'WI'] WEST = ['AK', 'AZ', 'CA', 'CO', 'HI',...
37.014925
110
0.575806
436547d109330580c5a9c0aba31dc1a0b795ec7b
3,232
py
Python
app/app/settings.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
app/app/settings.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
app/app/settings.py
eshwar00001/Rest-API-Python
c1d6198b9340bab8b453839ecd76453e3020e4ae
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Build...
25.650794
91
0.691832
c4f4ca3eab41aec18c235e5dcb731c945ddd22ea
6,384
py
Python
options/base_options.py
ChristopherLu/pytorch-CycleGAN-and-pix2pix
3603cfb9614307eb63df0e48f7c608c71a0a87b1
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
ChristopherLu/pytorch-CycleGAN-and-pix2pix
3603cfb9614307eb63df0e48f7c608c71a0a87b1
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
ChristopherLu/pytorch-CycleGAN-and-pix2pix
3603cfb9614307eb63df0e48f7c608c71a0a87b1
[ "BSD-3-Clause" ]
null
null
null
import argparse import os from util import util import torch import models import data class BaseOptions(): def __init__(self): self.initialized = False def initialize(self, parser): parser.add_argument('--dataroot', required=True, help='path to images (should have subfolders trainA, trainB, ...
54.564103
223
0.64646
4cf513dc9118e334e88cff6361a00cf82616c153
11,559
py
Python
websauna/system/user/social.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
null
null
null
websauna/system/user/social.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
null
null
null
websauna/system/user/social.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
1
2021-04-15T17:35:57.000Z
2021-04-15T17:35:57.000Z
from abc import abstractmethod, ABC import authomatic from authomatic.core import LoginResult from pyramid.registry import Registry from pyramid.request import Request from sqlalchemy.orm.attributes import flag_modified from websauna.system.user.events import UserCreated from websauna.utils.time import now from websau...
41.579137
208
0.695302
8c9c8854327078ee86f81ae13541e627ba144dbf
6,098
py
Python
portal/courses.py
Thommond/tsct-portal
726cfcf86a15985093fd9002a2636478a2495e9e
[ "MIT" ]
2
2020-04-16T00:44:44.000Z
2020-04-21T19:14:30.000Z
portal/courses.py
Thommond/tsct-portal
726cfcf86a15985093fd9002a2636478a2495e9e
[ "MIT" ]
16
2020-04-14T17:41:11.000Z
2020-10-30T18:42:33.000Z
portal/courses.py
Thommond/tsct-portal
726cfcf86a15985093fd9002a2636478a2495e9e
[ "MIT" ]
1
2020-04-07T18:08:54.000Z
2020-04-07T18:08:54.000Z
from flask import redirect, g, url_for, render_template, session, request, Blueprint, flash, abort import functools from . import db from portal.auth import login_required, teacher_required bp = Blueprint("courses", __name__) @bp.route("/courses", methods=('GET', 'POST')) # Management Page @login_required @teacher_...
28.764151
98
0.547229
02897fca41617a6293740987933a0d7c4689f831
392
py
Python
patientapp/migrations/0005_auto_20200113_1458.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
1
2021-04-03T19:57:32.000Z
2021-04-03T19:57:32.000Z
patientapp/migrations/0005_auto_20200113_1458.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
patientapp/migrations/0005_auto_20200113_1458.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2020-01-13 14:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('patientapp', '0004_auto_20190925_0855'), ] operations = [ migrations.AlterField( model_name='patient', name='created_a...
20.631579
50
0.607143
6303d7467519ca3adb79fdc7cb87a1b13522cced
906
py
Python
getting_small_piece2csv.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
getting_small_piece2csv.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
getting_small_piece2csv.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import sys import json import pymysql as mysql import time host, login, password, db, n_users = input('Enter host, login, password, database name, users_number:\n').split() start_time = time.time() connection = mysql.connect(host, login, password, db) with connection...
39.391304
126
0.708609
d4584cbc3f7323267f960a90f3625b05024108b6
60
py
Python
simple_operations_and_calculations/usd_to_bgn.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
simple_operations_and_calculations/usd_to_bgn.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
simple_operations_and_calculations/usd_to_bgn.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
1
2022-01-14T17:12:44.000Z
2022-01-14T17:12:44.000Z
usd = float(input()) bgn = usd * 1.79549 print(f"{bgn:.2f}")
20
20
0.6
0503e1294512d5b4a949888fb1b256522facda52
6,010
py
Python
modules/seq2seq_decoder.py
naacl2021anonymous/seq2emo
6fb4f938cd623de1941072b3ab7b462615e000a3
[ "MIT" ]
7
2021-03-20T17:06:13.000Z
2022-02-25T08:08:49.000Z
modules/seq2seq_decoder.py
naacl2021anonymous/seq2emo
6fb4f938cd623de1941072b3ab7b462615e000a3
[ "MIT" ]
null
null
null
modules/seq2seq_decoder.py
naacl2021anonymous/seq2emo
6fb4f938cd623de1941072b3ab7b462615e000a3
[ "MIT" ]
1
2022-03-04T01:49:07.000Z
2022-03-04T01:49:07.000Z
import torch import torch.nn as nn from modules.luong_attention import Attention class Seq2SeqDecoder(nn.Module): r"""A long short-term memory (LSTM) cell with attention.""" def __init__(self, emb_dim, hidden_size, num_class, batch_first=True, dropout=0.2, args=None): """Initialize p...
47.698413
138
0.6198
4297ad7c8635a305154b5abb634bcb98f929abbb
18,433
py
Python
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/compute_pilot.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
1
2019-05-24T02:19:29.000Z
2019-05-24T02:19:29.000Z
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/compute_pilot.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/compute_pilot.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu" __license__ = "MIT" import copy import time import threading import radical.utils as ru from . import states as rps from . import constants as rpc # ------------------------------------------------------------------------------ # class Comput...
31.781034
85
0.493029
9ad63bcb3e75092d0064409f6fbf287d83e9792a
572
py
Python
friday/hackernews.py
gutku10/Friday-Zulip-Bot
f6c22b8f718b37cbe807d159b54e68f5c7906de4
[ "Apache-2.0" ]
null
null
null
friday/hackernews.py
gutku10/Friday-Zulip-Bot
f6c22b8f718b37cbe807d159b54e68f5c7906de4
[ "Apache-2.0" ]
null
null
null
friday/hackernews.py
gutku10/Friday-Zulip-Bot
f6c22b8f718b37cbe807d159b54e68f5c7906de4
[ "Apache-2.0" ]
null
null
null
from newsapi import NewsApiClient # Init newsapi = NewsApiClient(api_key='d34d3205f0794f85af841f72c04abd06') #d34d3205f0794f85af841f72c04abd06 class Hackernews(object): def __init__(self): pass def get_hackernews(self, topic): response = '' if(topic == 'coronavirus'): x = newsapi.get_top_headlines(q=top...
23.833333
98
0.702797
c099912f3324e1ec1126b75dc273688bb945d4a7
17,129
py
Python
selfdrive/car/hyundai/spdctrlRelaxed.py
Saeed59sa/OPKR084
5b087bf325ec8e692513df2f523eaa50062b55c6
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/spdctrlRelaxed.py
Saeed59sa/OPKR084
5b087bf325ec8e692513df2f523eaa50062b55c6
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/spdctrlRelaxed.py
Saeed59sa/OPKR084
5b087bf325ec8e692513df2f523eaa50062b55c6
[ "MIT" ]
null
null
null
#this was initiated by atom(conan) #partially modified by opkr import os import math import numpy as np from cereal import car, log from common.params import Params from selfdrive.car.hyundai.spdcontroller import SpdController import common.log as trace1 from selfdrive.controls.lib.events import Events EventName =...
57.287625
271
0.598984
6b8659697af1582dbb1f27f9ba87e4d41a14a4dc
1,405
py
Python
fairseq/models/fairseq_decoder.py
jhcross/fairseq
af38ed48bb88cc489d1251e16519c7eef3a2fba7
[ "BSD-3-Clause" ]
3
2018-11-16T00:51:20.000Z
2021-03-17T14:56:05.000Z
fairseq/models/fairseq_decoder.py
jhcross/fairseq
af38ed48bb88cc489d1251e16519c7eef3a2fba7
[ "BSD-3-Clause" ]
null
null
null
fairseq/models/fairseq_decoder.py
jhcross/fairseq
af38ed48bb88cc489d1251e16519c7eef3a2fba7
[ "BSD-3-Clause" ]
1
2019-08-28T17:58:45.000Z
2019-08-28T17:58:45.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import torch.nn as nn import torch...
33.452381
85
0.679004
99aa51b54d56cf1dd5276a6d013d4830620fd5db
634
py
Python
app/migrations/0006_auto_20171021_1344.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
114
2017-03-19T22:51:45.000Z
2022-01-18T06:00:23.000Z
app/migrations/0006_auto_20171021_1344.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
392
2017-03-12T17:09:16.000Z
2022-03-31T22:08:45.000Z
app/migrations/0006_auto_20171021_1344.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
67
2017-03-19T18:11:54.000Z
2022-01-31T12:12:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-10-21 13:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0005_Add Profile Type'), ] operations = [ migrations.AlterField( ...
30.190476
222
0.64511
4601ef3627278f0039c9777c6c9a489f2a110ca3
2,529
py
Python
run_webcam.py
labibsharrarrayat/activity_clothes_detection
e876ed1e60efa495bfc0f47dfd695f9991336c71
[ "Apache-2.0" ]
1
2021-10-14T09:37:20.000Z
2021-10-14T09:37:20.000Z
run_webcam.py
labibsharrarrayat/activity_clothes_detection
e876ed1e60efa495bfc0f47dfd695f9991336c71
[ "Apache-2.0" ]
null
null
null
run_webcam.py
labibsharrarrayat/activity_clothes_detection
e876ed1e60efa495bfc0f47dfd695f9991336c71
[ "Apache-2.0" ]
null
null
null
import argparse import logging import time import cv2 import numpy as np from tf_pose.estimator import TfPoseEstimator from tf_pose.networks import get_graph_path, model_wh logger = logging.getLogger('TfPoseEstimator-WebCam') logger.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) form...
37.746269
143
0.651641
ee5e94fdff2cbf172129684253c2b05ec3b717af
4,380
py
Python
stable_baselines/ddpg/memory.py
BruceK4t1qbit/stable-baselines
d997d659de54bd14129d0af8df07e7c875cba7e5
[ "MIT" ]
49
2020-07-24T18:17:12.000Z
2022-01-04T15:30:52.000Z
stable_baselines/ddpg/memory.py
BruceK4t1qbit/stable-baselines
d997d659de54bd14129d0af8df07e7c875cba7e5
[ "MIT" ]
14
2020-07-21T20:21:08.000Z
2022-03-12T00:42:18.000Z
stable_baselines/ddpg/memory.py
BruceK4t1qbit/stable-baselines
d997d659de54bd14129d0af8df07e7c875cba7e5
[ "MIT" ]
6
2020-01-07T02:23:52.000Z
2020-10-11T15:42:43.000Z
import numpy as np class RingBuffer(object): def __init__(self, maxlen, shape, dtype='float32'): """ A buffer object, when full restarts at the initial position :param maxlen: (int) the max number of numpy objects to store :param shape: (tuple) the shape of the numpy objects you w...
33.435115
89
0.611187
4024228be1953615310b97b2563f0558359c4f45
6,201
py
Python
benchmarks/f3_wrong_hints/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
30.397059
77
0.583132
269aea0a91330b1d96a370f976b0ad94445c1f1d
2,822
py
Python
jarviscli/packages/timeIn.py
KrishnaSai2020/Jarvis
e6b184358833c33febf877e71ed0a0e15d46c05f
[ "MIT" ]
null
null
null
jarviscli/packages/timeIn.py
KrishnaSai2020/Jarvis
e6b184358833c33febf877e71ed0a0e15d46c05f
[ "MIT" ]
null
null
null
jarviscli/packages/timeIn.py
KrishnaSai2020/Jarvis
e6b184358833c33febf877e71ed0a0e15d46c05f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import shutil import json import requests from colorama import Fore # this sets the path to the modules directory not the directory it was called from module_path = os.path.dirname(__file__) module_path = module_path + '/../data/' def main(self, s): # Trims input s to be just th...
34.839506
125
0.611623
abe4bd28d3a249c9a71b96e1238277ebdb8b9d48
806
py
Python
hawkdet/models/detor/retinaface.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
hawkdet/models/detor/retinaface.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
hawkdet/models/detor/retinaface.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from ..build import detor_registry from hawkdet.models.utils import IntermediateLayerGetter class RetinaFace(nn.Module): def __init__(self, backbone, stem, head, backbone_return_layers): """ :param cfg: Network related settings. :param phase: train or t...
27.793103
81
0.662531
6f11e64f4d22fe77c3e513a2870b78d09e908896
1,000
py
Python
flightradar24/helpers.py
carlocorradini/flightradar24
6409a4c2bfcc51ed502707768c85d5c4868ba295
[ "MIT" ]
null
null
null
flightradar24/helpers.py
carlocorradini/flightradar24
6409a4c2bfcc51ed502707768c85d5c4868ba295
[ "MIT" ]
null
null
null
flightradar24/helpers.py
carlocorradini/flightradar24
6409a4c2bfcc51ed502707768c85d5c4868ba295
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests def api_request(end_point, proxies=None): request_base_headers = { "user-agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0", "accept": "application/jsoN", "accept-language": "en-EN", "cache-control": "max...
37.037037
102
0.64
ad6e5dbc1add021f46214617e84a717ee5b16e87
648
py
Python
Basics/splitmergeColor.py
itahirmasood/open_cv
70233d2c1d76e266f990a1a762f37b049be8ad39
[ "MIT" ]
null
null
null
Basics/splitmergeColor.py
itahirmasood/open_cv
70233d2c1d76e266f990a1a762f37b049be8ad39
[ "MIT" ]
null
null
null
Basics/splitmergeColor.py
itahirmasood/open_cv
70233d2c1d76e266f990a1a762f37b049be8ad39
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np img=cv.imread('bhola.jpg') cv.imshow('MachoMan',img) blank=np.zeros(img.shape[:2],dtype='uint8') b,g,r=cv.split(img) #to see colors of each color sepately blue=cv.merge([b,blank,blank]) green=cv.merge([blank,g,blank]) red=cv.merge([blank,blank,r]) cv.imshow(...
17.052632
44
0.655864
c82fbdd4d5d920d449086511ce787b618912d5f1
592
py
Python
codes/src/util/svnversion.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
2
2018-05-26T22:09:32.000Z
2018-06-25T21:46:32.000Z
codes/src/util/svnversion.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
16
2018-05-17T21:38:44.000Z
2022-03-11T23:21:25.000Z
codes/src/util/svnversion.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """@file svnversion.py Produces a compact version identifier for the working copy @author Chris Mirabito (mirabito@mit.edu) """ import subprocess def svnversion(): """Produces a compact version identifier for the working copy @return SVN version identifier (from @c stdout of the subp...
28.190476
69
0.60473
58c6f04a856372311d82a998b83ad5ede9521910
3,173
py
Python
st2common/tests/unit/test_ip_utils.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
st2common/tests/unit/test_ip_utils.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
3
2021-03-25T23:57:10.000Z
2021-03-26T00:01:05.000Z
st2common/tests/unit/test_ip_utils.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
34.11828
74
0.655216
a50c02899736e8c201534084f4b23f947331b33a
60,338
py
Python
lib/galaxy/managers/workflows.py
KyleL1998/galaxy
10be2cd8ac05680f8291eea7996f4d3fc76197de
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/workflows.py
KyleL1998/galaxy
10be2cd8ac05680f8291eea7996f4d3fc76197de
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/workflows.py
KyleL1998/galaxy
10be2cd8ac05680f8291eea7996f4d3fc76197de
[ "CC-BY-3.0" ]
null
null
null
from __future__ import absolute_import import json import logging import os import uuid from collections import namedtuple from gxformat2 import ( from_galaxy_native, ImporterGalaxyInterface, ImportOptions, python_to_workflow, ) from gxformat2.converter import ordered_load from six import string_types...
48.738288
163
0.610776
6f627b04d172bd6717bac7be30a8dd36c653b71b
379
py
Python
guilanche/pedido/urls.py
evton/Emissor-pedidos-lanchonete
87869c3eb6860ba4486d069ffc4759648f044783
[ "MIT" ]
null
null
null
guilanche/pedido/urls.py
evton/Emissor-pedidos-lanchonete
87869c3eb6860ba4486d069ffc4759648f044783
[ "MIT" ]
null
null
null
guilanche/pedido/urls.py
evton/Emissor-pedidos-lanchonete
87869c3eb6860ba4486d069ffc4759648f044783
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.inicio, name='inicio'), path('novopedido/', views.novopedido, name='novopedido'), path('atualizapedido/<str:pk>/', views.atualizapedido, name='atualizapedido'), path('apagapedido/<str:pk>/', views.apagapedido, name='apagape...
37.9
82
0.686016
94a7d8d39e0d055a738437ff2b2fbb3dbc891e4a
15,736
py
Python
proxyprotocol/tlv.py
tommyvn/proxy-protocol
07c63fb930c126c3e034fc6503071bbcbaf8b361
[ "MIT" ]
null
null
null
proxyprotocol/tlv.py
tommyvn/proxy-protocol
07c63fb930c126c3e034fc6503071bbcbaf8b361
[ "MIT" ]
null
null
null
proxyprotocol/tlv.py
tommyvn/proxy-protocol
07c63fb930c126c3e034fc6503071bbcbaf8b361
[ "MIT" ]
null
null
null
from __future__ import annotations import json import zlib from enum import IntEnum, IntFlag from struct import Struct, error as struct_error from typing import ClassVar, Any, Hashable, Optional, Union, Iterator, \ Mapping, Dict, List from .typing import PeerCert __all__ = ['Type', 'SSLClient', 'TLV', 'ProxyPro...
33.268499
79
0.600025
d3bc20feef91fca4e6f18955907be84379b24487
926
py
Python
DTPython/client.py
CPSuperstore/DTPython
52dd9e0415fe136ab368d70189a15d7cb229e93d
[ "MIT" ]
null
null
null
DTPython/client.py
CPSuperstore/DTPython
52dd9e0415fe136ab368d70189a15d7cb229e93d
[ "MIT" ]
null
null
null
DTPython/client.py
CPSuperstore/DTPython
52dd9e0415fe136ab368d70189a15d7cb229e93d
[ "MIT" ]
null
null
null
from socket import * import DTPython import DTPython.coder as coder class DTPClient: def __init__(self, identifier: int, broadcast_address: str = "255.255.255.255", port: int = None): self.port = DTPython.PORT if port is None else port self.identifier = identifier self.broadcast_address =...
29.870968
102
0.678186
10f9d37383c16f7bbfed6e751ce54843d028d1da
1,710
py
Python
conanfile.py
tt4g/conan-getting-started
e4c5f4b3eace47c111b1ff0f2dab38b0b4f79ad7
[ "MIT" ]
null
null
null
conanfile.py
tt4g/conan-getting-started
e4c5f4b3eace47c111b1ff0f2dab38b0b4f79ad7
[ "MIT" ]
null
null
null
conanfile.py
tt4g/conan-getting-started
e4c5f4b3eace47c111b1ff0f2dab38b0b4f79ad7
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools class HelloworldConan(ConanFile): name = "HelloWorld" version = "0.1" license = "MIT" author = "tt4g" url = "https://github.com/tt4g/conan-getting-started" description = "Hello World package" topics = ("conan", "hello-world") settings = "os", ...
34.897959
77
0.605263
6dc05e2de986fdb15e86ae8799e68c677be78ab1
875
py
Python
main.py
RamtinAlami/inspirational-quote-generator
950357dd302624082baffef1e40364b91346d535
[ "MIT" ]
27
2018-01-01T18:49:24.000Z
2021-09-30T11:48:11.000Z
main.py
RamtinAlami/inspirational-quote-generator
950357dd302624082baffef1e40364b91346d535
[ "MIT" ]
1
2021-09-30T11:48:08.000Z
2021-09-30T11:48:08.000Z
main.py
RamtinAlami/inspirational-quote-generator
950357dd302624082baffef1e40364b91346d535
[ "MIT" ]
14
2018-01-02T04:53:23.000Z
2021-08-08T17:44:23.000Z
#!/usr/bin/env python3 import mkchain import shelve def train_text(input_file, model_file = 'data'): model = mkchain.train('Life is Love.'.lower().split()) with open(input_file+'.txt') as dataset: for line in dataset: text = line.lower().split() model = mkchain.train(text, mod...
26.515152
80
0.572571
6d4e938657bb4f631e780e7ceacbc2ec911d2de5
5,549
py
Python
lcm/ns/biz/ns_manual_scale.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
4
2018-08-29T02:51:38.000Z
2021-11-16T11:36:11.000Z
lcm/ns/biz/ns_manual_scale.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
null
null
null
lcm/ns/biz/ns_manual_scale.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
1
2019-05-12T08:21:19.000Z
2019-05-12T08:21:19.000Z
# Copyright 2017 ZTE 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 ...
41.103704
99
0.672554
6595d0f882ff5650d2cd8bdbeac3fca3c97db7dc
614
py
Python
AI.py
NotVirtualism/Uno-vs-AI
a6e6f737a85430bcbbef37303aa1116697b9d3f6
[ "MIT" ]
null
null
null
AI.py
NotVirtualism/Uno-vs-AI
a6e6f737a85430bcbbef37303aa1116697b9d3f6
[ "MIT" ]
null
null
null
AI.py
NotVirtualism/Uno-vs-AI
a6e6f737a85430bcbbef37303aa1116697b9d3f6
[ "MIT" ]
null
null
null
from Deck import * import random class AI: def __init__(self): self.hand = [] def turn(self, card): playable_cards = [] for c in self.hand: if c.color == card.color or c.value == card.value or c.color == "Black": playable_cards.append(c) ...
29.238095
85
0.521173
cee94b612bf2ba3948e4694a2e6502c5b4877ed2
2,127
py
Python
imperative/python/test/unit/core/test_interpreter.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
1
2021-03-25T01:13:24.000Z
2021-03-25T01:13:24.000Z
imperative/python/test/unit/core/test_interpreter.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
1
2021-05-27T08:55:38.000Z
2021-05-27T08:55:38.000Z
imperative/python/test/unit/core/test_interpreter.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import megengine as mge import megengine.functional as F from megengine.core._imperative_rt.core2 import ( _set_drop_flag, _set_swap_flag, config_async_level, get_async_level, ) def test_basic(): config_async_level(2) assert get_async_level() == 2 with pyt...
26.924051
70
0.621533
755d675d1dca8000305ef76cf8c728e37807c866
644
py
Python
old/camera.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
old/camera.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
old/camera.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
import pygame as pg class Camera: def __init__(self, width, height): self.camera = pg.Rect(0, 0, width, height) self.width = 800 self.height = 600 def apply(self, entity): return entity.rect.move(self.camera.topleft) def update(self, target): x = -target.rect.x +...
28
60
0.541925
c112d4b84056f6142b8ba6c4a28a95848c3de635
2,355
py
Python
tests/unit/test_IceOptions.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_IceOptions.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_IceOptions.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
1
2021-02-26T10:08:09.000Z
2021-02-26T10:08:09.000Z
#!/usr/bin/env python import unittest import os.path as op import filecmp from pbtranscript.ClusterOptions import IceOptions from pbtranscript.Utils import mknewdir, execute from test_setpath import DATA_DIR, OUT_DIR, SIV_DATA_DIR, SIV_STD_DIR def copy_in_fasta_to_out(in_dir, out_dir, filename): """copy filename...
35.149254
82
0.70913
839e9469b1a49e5032fd0ff11cf9e9e1edf36c66
1,140
py
Python
configuration/test_IConfiguration.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
configuration/test_IConfiguration.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
configuration/test_IConfiguration.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
import unittest from .IConfiguration import IConfiguration, ConfigurationNotLoaded class TestIConfiguration(unittest.TestCase): def setUp(self): self.instance = IConfiguration() def test_LoadedOrRaise(self): self.instance._loaded = False with self.assertRaises(ConfigurationNotLoaded):...
33.529412
66
0.687719
663e858634aff274bac0348948da6ec8c81e8bb8
37,147
py
Python
tests/unit/modules/boto_lambda_test.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
1
2016-05-20T09:15:57.000Z
2016-05-20T09:15:57.000Z
tests/unit/modules/boto_lambda_test.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/boto_lambda_test.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import from distutils.version import LooseVersion # pylint: disable=import-error,no-name-in-module import platform import random import string # Import Salt Testing libs from salttesting.unit import skipIf, TestCase from salttesting.mock im...
49.861745
169
0.631518
81993e91a4f807db1cb9ab0f6c3c1c82a9d152e5
14,207
py
Python
component_contribution/compound.py
biosustain/component-contribution
ea57303b4ca6d9e6b0708200a1b30bed6d5c36a3
[ "MIT" ]
1
2018-01-31T13:44:03.000Z
2018-01-31T13:44:03.000Z
component_contribution/compound.py
biosustain/component-contribution
ea57303b4ca6d9e6b0708200a1b30bed6d5c36a3
[ "MIT" ]
19
2017-06-07T06:28:55.000Z
2018-06-05T13:14:17.000Z
component_contribution/compound.py
biosustain/component-contribution
ea57303b4ca6d9e6b0708200a1b30bed6d5c36a3
[ "MIT" ]
1
2016-12-12T14:33:25.000Z
2016-12-12T14:33:25.000Z
import openbabel, urllib, logging import chemaxon import numpy as np from thermodynamic_constants import R, debye_huckel from scipy.misc import logsumexp MIN_PH = 0.0 MAX_PH = 14.0 class Compound(object): def __init__(self, database, compound_id, inchi, atom_bag, pKas, smiles_pH7, majorMSpH7...
40.824713
110
0.538819
925d34793248f7202d9e6391b57dfd8f61661969
1,704
py
Python
tests/test_poisson_1d.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
1
2021-10-21T17:15:26.000Z
2021-10-21T17:15:26.000Z
tests/test_poisson_1d.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
null
null
null
tests/test_poisson_1d.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- #! /usr/bin/python from pigasus.utils.manager import context # ... try: from matplotlib import pyplot as plt PLOT=True except ImportError: PLOT=False # ... import numpy as np from caid.cad_geometry import line as domain from pigasus.gallery.poisson import * import sys...
16.705882
88
0.555164
1ba6f5396f0c49a9d90dd2e199fa0c71987e6543
7,310
py
Python
stylegan2/dnnlib/tflib/custom_ops.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
2
2021-11-11T00:18:28.000Z
2021-12-28T01:10:25.000Z
stylegan2/dnnlib/tflib/custom_ops.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
null
null
null
stylegan2/dnnlib/tflib/custom_ops.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
null
null
null
# Copyright (c) 2019, NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://nvlabs.github.io/stylegan2/license.html """TensorFlow custom ops builder. """ import os import re import uuid import hashlib import ...
42.254335
153
0.597674
af52d680b9bf311f1e0f6ca28ae89f7653331f49
831
py
Python
samples/py3_func/call_f.py
shresnis000/abaco
547a30f3690b891d439dc923d3e88986ce742693
[ "BSD-3-Clause" ]
27
2015-07-24T16:54:38.000Z
2022-01-07T04:36:47.000Z
samples/py3_func/call_f.py
shresnis000/abaco
547a30f3690b891d439dc923d3e88986ce742693
[ "BSD-3-Clause" ]
68
2015-10-05T16:08:58.000Z
2022-02-07T15:59:27.000Z
samples/py3_func/call_f.py
shresnis000/abaco
547a30f3690b891d439dc923d3e88986ce742693
[ "BSD-3-Clause" ]
13
2015-10-01T21:38:34.000Z
2021-05-26T00:19:07.000Z
import os import cloudpickle from agavepy.actors import get_binary_message, send_python_result def main(): raw_message = get_binary_message() try: m = cloudpickle.loads(raw_message) except Exception as e: print(f"Got exception: {e} trying to loads raw_message: {raw_message}") raise ...
28.655172
79
0.630566
321d3b01c724a4c75958111f6565104ac12adee1
11,606
py
Python
docs/conf.py
groupserver/-gs.group.groups.list
b92141467106a10478caa350de3d21450373a02b
[ "ZPL-2.1" ]
null
null
null
docs/conf.py
groupserver/-gs.group.groups.list
b92141467106a10478caa350de3d21450373a02b
[ "ZPL-2.1" ]
null
null
null
docs/conf.py
groupserver/-gs.group.groups.list
b92141467106a10478caa350de3d21450373a02b
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- # # gs.group.groups.list documentation build configuration file, created by # sphinx-quickstart on Tue Jun 30 16:46:40 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerate...
31.710383
80
0.720231
2442462a423f1a3c4898d9c18a455d07795f3fca
27,801
py
Python
names.py
DaveMitHut/npc-creator-python-headless
35a3e02c8c27cef8f78045bde0dec3d2834ed550
[ "MIT" ]
null
null
null
names.py
DaveMitHut/npc-creator-python-headless
35a3e02c8c27cef8f78045bde0dec3d2834ed550
[ "MIT" ]
null
null
null
names.py
DaveMitHut/npc-creator-python-headless
35a3e02c8c27cef8f78045bde0dec3d2834ed550
[ "MIT" ]
null
null
null
# Submodule for npc_creator.py-script to randomly generate # names for NPC's for the 'Rise of the Darkness' setting. # Written by David Huseyin on June 4th, 2019 import random # Uses the D&D Players Handbook's name tables as reference for all names except the standard human ones # standard human names are taken from ...
26.757459
135
0.431495
f95b6c2a455456bc6bbd05c586ea17c21ed3ba0f
5,019
py
Python
pyplus/tools/file_cleaner.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
2
2018-09-26T14:01:12.000Z
2020-04-02T13:44:53.000Z
pyplus/tools/file_cleaner.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
null
null
null
pyplus/tools/file_cleaner.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
null
null
null
import os import time import fnmatch def match(paths, atimeout=None, ctimeout=None, mtimeout=None, seed=None, patterns=None, verbose=False): ''' :param paths: path for clean :param atimeout: file will be deleted after access timeout :param ctimeout: file will be deleted after creation timeout :p...
32.803922
127
0.627615
baa7a9183b9bbffa3199b8f13828e8e756e85bf3
2,323
py
Python
carnival_contrib/ssh.py
carnival-org/carnival-contrib
f9275a3be75f3de50f576ee0e3fe19a8f7488309
[ "MIT" ]
2
2022-02-23T02:31:48.000Z
2022-02-23T11:00:09.000Z
carnival_contrib/ssh.py
carnival-org/carnival-contrib
f9275a3be75f3de50f576ee0e3fe19a8f7488309
[ "MIT" ]
null
null
null
carnival_contrib/ssh.py
carnival-org/carnival-contrib
f9275a3be75f3de50f576ee0e3fe19a8f7488309
[ "MIT" ]
null
null
null
import os import re from carnival import Step from carnival import Connection def _escape_for_regex(text: str) -> str: """ Tnx to https://stackoverflow.com/questions/280435/escaping-regex-string :param text: :return: """ regex = re.escape(text) # double escaping for \ regex = regex.re...
29.405063
92
0.615583
aba1d666b5be389d34a5dc658d9020d654d20587
5,441
py
Python
satchmo/apps/payment/modules/sermepa/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/sermepa/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/sermepa/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
# # SERMEPA / ServiRed payments module for Satchmo # # Author: Michal Salaban <michal (at) salaban.info> # with a great help of Fluendo S.A., Barcelona # # Based on "Guia de comercios TPV Virtual SIS" ver. 5.18, 15/11/2008, SERMEPA # For more information about integration look at http://www.sermepa.es/ # # ...
32.195266
236
0.61055
8ee53413966aadbe0741dbd5bc277993179cf863
2,075
py
Python
medium/1448_count_good_nodes_in_binary_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
medium/1448_count_good_nodes_in_binary_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
medium/1448_count_good_nodes_in_binary_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
""" Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Return the number of good nodes in the binary tree. Example 1: (3) / \ 1 (4) / / \ (3) 1 (5) Input: root = [...
28.424658
138
0.61494
b61dab5a5f246c1b229e38549ae7c18e03572428
240
py
Python
filedrop.py
nng68/StarPakBrowser
065e1652d7b1e5bfe384921c789a1167422d62b0
[ "MIT" ]
11
2019-05-04T11:21:17.000Z
2021-11-20T04:50:10.000Z
filedrop.py
nng68/StarPakBrowser
065e1652d7b1e5bfe384921c789a1167422d62b0
[ "MIT" ]
null
null
null
filedrop.py
nng68/StarPakBrowser
065e1652d7b1e5bfe384921c789a1167422d62b0
[ "MIT" ]
null
null
null
import wx class FileDrop(wx.FileDropTarget): def __init__(self, window): wx.FileDropTarget.__init__(self) self.window = window def OnDropFiles(self, x, y, filenames): self.window.OnDragFile(filenames)
30
44
0.666667
fc4d71b9e1dc47c7737a4fb626aa9381c865d1ae
11,571
py
Python
setup.py
giosh94mhz/oletools
2aa07c1204670b3b42d9b3b566b8e82938f0b897
[ "BSD-2-Clause" ]
null
null
null
setup.py
giosh94mhz/oletools
2aa07c1204670b3b42d9b3b566b8e82938f0b897
[ "BSD-2-Clause" ]
null
null
null
setup.py
giosh94mhz/oletools
2aa07c1204670b3b42d9b3b566b8e82938f0b897
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Installs oletools using distutils Run: python setup.py install to install this package. (setup script partly borrowed from cherrypy) """ #--- CHANGELOG ---------------------------------------------------------------- # 2014-08-27 v0.06 PL: - added doc subfolder # 2015-01-05 v0.07 PL: ...
34.747748
237
0.616369
c37c94bbda24c3e3c3e3c507d3e2d57383cdb671
561
py
Python
backend/app/protocol.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
2
2020-11-23T13:38:49.000Z
2021-08-17T15:37:04.000Z
backend/app/protocol.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
backend/app/protocol.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
from flask import jsonify class Resp: __slots__ = 'error_no', 'msg', 'data' def __init__(self, error_no, msg, data): self.error_no = error_no self.msg = msg self.data = data def to_json(self): return jsonify({'error_no': self.error_no, 'msg': self.msg, 'data': self.data})...
21.576923
87
0.639929
e6a989748ae9223a34fdafe30affc1f8a76e4585
5,249
py
Python
spectacles/migrations/0002_auto_20180531_2047.py
hyperstudio/spectacles
25456c84fd4d338520847d0535854d4c3c2c242b
[ "MIT" ]
1
2020-01-11T14:16:31.000Z
2020-01-11T14:16:31.000Z
spectacles/migrations/0002_auto_20180531_2047.py
hyperstudio/spectacles
25456c84fd4d338520847d0535854d4c3c2c242b
[ "MIT" ]
null
null
null
spectacles/migrations/0002_auto_20180531_2047.py
hyperstudio/spectacles
25456c84fd4d338520847d0535854d4c3c2c242b
[ "MIT" ]
1
2019-05-13T14:32:39.000Z
2019-05-13T14:32:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-31 20:47 from __future__ import unicode_literals from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import enumfields.fields ...
49.056075
160
0.612117
82311ae12cda2de1934abb0baba6238c9fe6d78f
9,553
py
Python
targets/pipistrello/base.py
niklasnisbeth/litex-buildenv
846fc6193972692f9de8d99146f29702d6ff80e3
[ "BSD-2-Clause" ]
87
2017-03-31T05:58:30.000Z
2022-03-03T20:26:07.000Z
targets/pipistrello/base.py
niklasnisbeth/litex-buildenv
846fc6193972692f9de8d99146f29702d6ff80e3
[ "BSD-2-Clause" ]
247
2015-07-02T13:23:17.000Z
2017-03-16T23:43:39.000Z
targets/pipistrello/base.py
niklasnisbeth/litex-buildenv
846fc6193972692f9de8d99146f29702d6ff80e3
[ "BSD-2-Clause" ]
49
2017-03-17T11:25:53.000Z
2021-01-26T03:08:58.000Z
# Support for the Pipistrello - http://pipistrello.saanlima.com/ from fractions import Fraction from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex.soc.integration.soc_sdram import * from litex.soc.integration.builder import * from litedram.modules import MT46H32M16 from litedram...
40.308017
121
0.583482
5b2a6cf5c9b5a31d09848072c815184d5ef33e49
2,238
py
Python
tsfuse/construction/__init__.py
vishalbelsare/tsfuse
5b80e0d1ef0a9d902f8a7e7ea8207e9921e26289
[ "Apache-2.0" ]
23
2019-09-23T11:55:36.000Z
2021-12-22T10:54:49.000Z
tsfuse/construction/__init__.py
vishalbelsare/tsfuse
5b80e0d1ef0a9d902f8a7e7ea8207e9921e26289
[ "Apache-2.0" ]
null
null
null
tsfuse/construction/__init__.py
vishalbelsare/tsfuse
5b80e0d1ef0a9d902f8a7e7ea8207e9921e26289
[ "Apache-2.0" ]
4
2020-07-21T09:33:08.000Z
2021-12-02T18:08:23.000Z
from .autods19 import construct as construct_autods19 from .unsupervised import construct as construct_unsupervised __all__ = ['construct'] def construct(X, y=None, task='classification', transformers='full', return_graph=False, **kwargs): """ Construct features for a given time series dataset ``X, y`` ...
37.3
305
0.663986
d1025a4cef51f6a2b5f0e58370ca862b1c6e18e9
4,198
py
Python
calculator.py
kumaraditya303/General-Programs
bb1365dd7fa0a45809301ba1c7090726756a0bed
[ "MIT" ]
2
2020-07-13T20:43:59.000Z
2021-02-26T03:04:56.000Z
calculator.py
kumaraditya303/General-Programs
bb1365dd7fa0a45809301ba1c7090726756a0bed
[ "MIT" ]
null
null
null
calculator.py
kumaraditya303/General-Programs
bb1365dd7fa0a45809301ba1c7090726756a0bed
[ "MIT" ]
null
null
null
# Simple GUI Calculator BY Kumar Aditya import tkinter as tk from tkinter import * import time expression = "" def press(num): global expression expression += str(num) equation.set(expression) def equalpress(): try: global expression total = str(eval(expression)) ...
35.880342
85
0.584088
ac3f31cd199c28eb13266a4d9a6882aa7b8967ed
2,561
py
Python
luxon/core/session/sessionredis.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
7
2018-02-27T00:18:02.000Z
2019-05-16T16:57:00.000Z
luxon/core/session/sessionredis.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
47
2018-01-23T13:49:28.000Z
2019-06-06T13:14:59.000Z
luxon/core/session/sessionredis.py
HieronymusCrouse/luxon
b0b08c103936adcbb3dd03b1701d44a65de8f61e
[ "BSD-3-Clause" ]
14
2018-01-15T08:47:11.000Z
2019-12-27T12:05:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Christiaan Frans Rademan <chris@fwiw.co.za>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the ...
40.015625
79
0.709879
f4b4f8d21283f407e08b9b9d07f07e3223bb3fd9
774
py
Python
day21/puzzle1.py
amurciegorico/advent_of_code_2020
d5ef6647359334e9de1c3082620a05dfb9c133ba
[ "CC0-1.0" ]
null
null
null
day21/puzzle1.py
amurciegorico/advent_of_code_2020
d5ef6647359334e9de1c3082620a05dfb9c133ba
[ "CC0-1.0" ]
null
null
null
day21/puzzle1.py
amurciegorico/advent_of_code_2020
d5ef6647359334e9de1c3082620a05dfb9c133ba
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 with open("./data/data1") as file: allergens_ingredients = {} all_ingredients = [] for line in file.readlines(): split_line = line.split(' (contains ') ingredients = set(split_line[0].split(' ')) for ingredient in ingredients: all_ingredients.appen...
43
157
0.678295
3b2296c128936170076afa139aab495c7a45360c
83
py
Python
apps/dashboard/apps.py
EltonARodrigues/NOIRr-Server
e73e6b9de763b073295adb78ff7844f8ed8c832c
[ "BSD-2-Clause" ]
null
null
null
apps/dashboard/apps.py
EltonARodrigues/NOIRr-Server
e73e6b9de763b073295adb78ff7844f8ed8c832c
[ "BSD-2-Clause" ]
3
2019-07-03T20:48:40.000Z
2021-04-08T20:12:00.000Z
apps/dashboard/apps.py
EltonARodrigues/NOIR-Server
e73e6b9de763b073295adb78ff7844f8ed8c832c
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig class NoirConfig(AppConfig): name = 'noir'
13.833333
33
0.73494
7cb1847121ad801e7c35ad92d71df29941c7e4c8
917
py
Python
esp8266/clock/main.py
JiangYangJie/Embedded
70dba3a1e5c1fb7b9a7d8b633a5fc05138894456
[ "MIT" ]
1
2019-07-23T07:14:07.000Z
2019-07-23T07:14:07.000Z
esp8266/clock/main.py
JiangYangJie/Embedded
70dba3a1e5c1fb7b9a7d8b633a5fc05138894456
[ "MIT" ]
null
null
null
esp8266/clock/main.py
JiangYangJie/Embedded
70dba3a1e5c1fb7b9a7d8b633a5fc05138894456
[ "MIT" ]
2
2019-07-22T11:42:55.000Z
2019-12-15T01:43:19.000Z
from machine import Pin, I2C import time from get_time import TIME from printf import Printf from ssd1306 import SSD1306_I2C from wlan import Network i2c = I2C(scl=Pin(5), sda=Pin(4)) oled= SSD1306_I2C(128, 64, i2c)#初始oled Time=TIME()#初始自定义的TIME类 printf=Printf(oled)#初始自定义的输出类 network=Network()#初始自定义的联网类 variable_x=var...
24.131579
51
0.685932
99b334251d6bb1cbd073e9e6b73e050b47f4c2f9
33,894
py
Python
components/policy/tools/generate_policy_source.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
components/policy/tools/generate_policy_source.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/policy/tools/generate_policy_source.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
#!/usr/bin/env python # Copyright (c) 2012 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. '''python %prog [options] platform chromium_os_flag template platform specifies which platform source is being generated for and...
36.523707
80
0.634508
277ef75b0b8b20f5650fa66a778b872d5b71e013
6,567
py
Python
setup.py
kiranvizru/psutil
3b0a3419d93f0094abef2bc61315974958906001
[ "BSD-3-Clause" ]
2
2016-09-19T05:25:09.000Z
2016-11-24T10:17:51.000Z
setup.py
grrrrrrrrr/psutil
930d22ba69bb3e1e97f3a5dcb6916f520e97469e
[ "BSD-3-Clause" ]
null
null
null
setup.py
grrrrrrrrr/psutil
930d22ba69bb3e1e97f3a5dcb6916f520e97469e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009 Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """psutil is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, net...
33
79
0.554439
efa60157a887e1f7e16711ed830f4fa4e99e6a6f
2,749
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/mongo_db_collection_create_update_parameters_py3.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/mongo_db_collection_create_update_parameters_py3.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/mongo_db_collection_create_update_parameters_py3.py
anpaz-msft/azure-cli-extensions
847fd487fe61e83f2a4163a9393edc9555267bc2
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.029851
128
0.631139
3ae62a9f06573318e341ba8412ebb82c34c4a9ca
42,065
py
Python
xframes/prettytable.py
cchayden/xframes
1656cc69c814bda8132362b3a22f7cdf8a24637f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xframes/prettytable.py
cchayden/xframes
1656cc69c814bda8132362b3a22f7cdf8a24637f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xframes/prettytable.py
cchayden/xframes
1656cc69c814bda8132362b3a22f7cdf8a24637f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2009, Luke Maurits <luke@maurits.id.au> # All rights reserved. # With contributions from: # * Chris Clark # * Klein Stephane # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # ...
37.225664
118
0.59477
8446b38334e649304ec01d84f9a0c7646e7f8f82
7,658
py
Python
git-mirror.py
ruben-rodriguez/git-mirroring-py
84ac4cc53a8827c1ce2f9b2c679dcd3e3b735064
[ "MIT" ]
null
null
null
git-mirror.py
ruben-rodriguez/git-mirroring-py
84ac4cc53a8827c1ce2f9b2c679dcd3e3b735064
[ "MIT" ]
1
2021-06-01T22:24:18.000Z
2021-06-01T22:24:18.000Z
git-mirror.py
ruben-rodriguez/git-mirroring-py
84ac4cc53a8827c1ce2f9b2c679dcd3e3b735064
[ "MIT" ]
null
null
null
from __future__ import print_function from builtins import input import time import json import os import requests import signal import subprocess import sys def signal_handler(signum, frame): """Signal handler that captures SIGINT and stops the application""" print("\t\n\nSignal", signal.Signa...
28.789474
106
0.545312
c998db13ae317c4d774ae191f207198ab6de6f46
988
py
Python
catalogue/serializers.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
null
null
null
catalogue/serializers.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
15
2021-01-02T17:43:37.000Z
2021-02-13T12:02:11.000Z
catalogue/serializers.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
null
null
null
from rest_framework import serializers from catalogue.models import Book, Author, BookInstance class BookSerializer(serializers.ModelSerializer): class Meta: model = Book fields = '__all__' class AuthorSerializer(serializers.ModelSerializer): class Meta: model = Author fiel...
27.444444
85
0.67004
6a2d2f548e7bfb36954f0ec0ef6f275ccfc9aa16
1,966
py
Python
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
6
2017-10-03T15:10:14.000Z
2020-08-06T06:39:14.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
1
2017-02-09T21:13:13.000Z
2017-02-09T21:13:13.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
4
2017-02-09T19:46:00.000Z
2019-11-21T12:47:55.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
21.844444
72
0.61648
f5db04cda83acf05b95f49c6589e5ad2c025edea
12,816
py
Python
src/parsing/ast_visitor.py
junzew/yinyang
15f1460780fe34ab62b4d38b8a8ce0735f77c435
[ "MIT" ]
null
null
null
src/parsing/ast_visitor.py
junzew/yinyang
15f1460780fe34ab62b4d38b8a8ce0735f77c435
[ "MIT" ]
null
null
null
src/parsing/ast_visitor.py
junzew/yinyang
15f1460780fe34ab62b4d38b8a8ce0735f77c435
[ "MIT" ]
null
null
null
from antlr4 import * from .ast import * from .SMTLIBv2Parser import SMTLIBv2Parser from .SMTLIBv2Visitor import * from .util import * class ASTVisitor(SMTLIBv2Visitor): def __init__(self, strict=True): self.strict = strict self.global_vars = {} def visitStart(self, ctx:SMTLIBv2Parser.StartCont...
38.719033
105
0.575218
30924c554f8e8f8083e8b2e70ba3e56c975e515a
4,056
py
Python
disentanglement_lib/methods/shared/losses.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/methods/shared/losses.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/methods/shared/losses.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The DisentanglementLib 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 # # Un...
38.264151
87
0.66642
4522f8a07a009649958451d3a62a4f434efe1dad
1,666
py
Python
src/dstools/testing/sql.py
edublancas/python-ds-tools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
1
2021-11-02T05:48:00.000Z
2021-11-02T05:48:00.000Z
src/dstools/testing/sql.py
edublancas/python-ds-tools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
8
2016-05-25T01:50:14.000Z
2021-03-03T14:52:36.000Z
src/dstools/testing/sql.py
edublancas/dstools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
null
null
null
""" Testing SQL relations """ from jinja2 import Template def nulls_in_columns(client, cols, product): """Check if any column has NULL values, returns bool """ sql = Template(""" SELECT EXISTS( SELECT * FROM {{product}} WHERE {{cols | join(' is null or ') }} is null ) """).rend...
22.821918
69
0.605642
05b5d83a8d3ea7eacc4c17b61606c0c2b64ff728
7,971
py
Python
sdk/monitor/azure-monitor-query/azure/monitor/query/_logs_query_client.py
paikend/azure-sdk-for-python
5772d14728569fce7b40552a0f20795d12ecd797
[ "MIT" ]
null
null
null
sdk/monitor/azure-monitor-query/azure/monitor/query/_logs_query_client.py
paikend/azure-sdk-for-python
5772d14728569fce7b40552a0f20795d12ecd797
[ "MIT" ]
2
2021-08-24T15:32:30.000Z
2021-08-24T23:21:34.000Z
sdk/monitor/azure-monitor-query/azure/monitor/query/_logs_query_client.py
paikend/azure-sdk-for-python
5772d14728569fce7b40552a0f20795d12ecd797
[ "MIT" ]
null
null
null
# # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from ty...
43.086486
123
0.645841
085934b87cd8e73b4f20a2312f5083491d6870a7
1,751
py
Python
fixture/login_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
1
2020-05-03T21:32:49.000Z
2020-05-03T21:32:49.000Z
fixture/login_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
1
2020-07-01T11:12:02.000Z
2020-07-01T11:12:02.000Z
fixture/login_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
2
2021-03-08T14:46:09.000Z
2021-08-30T13:12:21.000Z
import logging from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait from locators.login import Authorization from model.login import UserData logger = logging.getLogger() class LoginPage: def __init__(self, app): self.app = app ...
30.189655
76
0.676185
3a8330399c48fd883441055c4135407694a049de
26,343
py
Python
cellpose/io.py
thosoo/cellpose
2e175677bdceb139f769fa3ab59331b0c06ad2ec
[ "BSD-3-Clause" ]
null
null
null
cellpose/io.py
thosoo/cellpose
2e175677bdceb139f769fa3ab59331b0c06ad2ec
[ "BSD-3-Clause" ]
null
null
null
cellpose/io.py
thosoo/cellpose
2e175677bdceb139f769fa3ab59331b0c06ad2ec
[ "BSD-3-Clause" ]
1
2021-06-02T12:56:06.000Z
2021-06-02T12:56:06.000Z
import os, datetime, gc, warnings, glob from natsort import natsorted import numpy as np import cv2 import tifffile from . import utils, plot, transforms try: from PyQt5 import QtGui, QtCore, Qt, QtWidgets GUI = True except: GUI = False try: import matplotlib.pyplot as plt MATPLOTLIB = True excep...
36.435685
156
0.571537
1e8c276812e09e6125d7ac8876fc395d4ddfc2e3
4,067
py
Python
spack/package.meson.py
blue42u/hpctoolk
5af594b5d2f5a83439d766ef379de13a437a2896
[ "BSD-3-Clause" ]
null
null
null
spack/package.meson.py
blue42u/hpctoolk
5af594b5d2f5a83439d766ef379de13a437a2896
[ "BSD-3-Clause" ]
1
2021-08-22T05:04:05.000Z
2021-09-19T13:27:57.000Z
spack/package.meson.py
blue42u/hpctoolkit
5af594b5d2f5a83439d766ef379de13a437a2896
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os class HpctoolkitMeson(MesonPackage): """HPCToolkit is an integrated suite of tools for ...
41.080808
93
0.660684
206c778b8da43ff1e67f1df6e634965b5c74be61
1,217
py
Python
test/fake_data_loaders.py
Weilando/bachelor_playground
e1455029384f05a48ea5d792f76aa5d232fc1ddc
[ "Apache-2.0" ]
1
2020-11-09T12:00:59.000Z
2020-11-09T12:00:59.000Z
test/fake_data_loaders.py
Weilando/bachelor_playground
e1455029384f05a48ea5d792f76aa5d232fc1ddc
[ "Apache-2.0" ]
null
null
null
test/fake_data_loaders.py
Weilando/bachelor_playground
e1455029384f05a48ea5d792f76aa5d232fc1ddc
[ "Apache-2.0" ]
null
null
null
import torch def generate_fake_mnist_data_loaders(): """" Generate fake-DataLoaders with fake batches, i.e. a list with sub-lists of samples and labels. Each batch holds three pairs of samples and labels. """ torch.manual_seed(123) samples1 = torch.rand((3, 28, 28)) samples2 = torch.rand((3, 28, 2...
40.566667
103
0.656532
a23dc68ccfb1399f0cbec2346c32c5c62857d9b7
1,265
py
Python
xlsxwriter/test/comparison/test_chart_column07.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_column07.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_column07.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
23.867925
79
0.545455
e384feb612f6d76bb17ab9f35e09015091a98945
1,858
py
Python
server/config.py
yl0937/yesnet
24a3c086affd7a5f125b51f16a6dc1c8d1ed4c4a
[ "MIT" ]
null
null
null
server/config.py
yl0937/yesnet
24a3c086affd7a5f125b51f16a6dc1c8d1ed4c4a
[ "MIT" ]
7
2020-02-17T05:58:36.000Z
2022-02-18T20:20:37.000Z
server/config.py
yl0937/yesnet
24a3c086affd7a5f125b51f16a6dc1c8d1ed4c4a
[ "MIT" ]
1
2020-02-27T06:32:13.000Z
2020-02-27T06:32:13.000Z
import os import enum CONFIG = { 'REDIS-IP' : 'redis', 'R-CHANNEL': 'orderChannel', # Receiving Channel 'S-CHANNEL': 'resChannel', # Sending Channel 'RPC-URL': 'http://210.114.89.52:8545', # RPC URL, 실제 적용 시에 적절한 값으로 바뀌어야 함. 'ADAM': '0xb3b4ef17ba517e75b79169354fd9dfff51b9d592' } CMD = { ...
24.12987
79
0.619483
209fa1f978dead0fa47c98d42fa260b8511c606e
2,082
py
Python
bot/bot.py
debjit-bw/Reddit-Bot
7f8d3aa12dbc59780c8ed5048ba40f95b32fcbe8
[ "MIT" ]
null
null
null
bot/bot.py
debjit-bw/Reddit-Bot
7f8d3aa12dbc59780c8ed5048ba40f95b32fcbe8
[ "MIT" ]
null
null
null
bot/bot.py
debjit-bw/Reddit-Bot
7f8d3aa12dbc59780c8ed5048ba40f95b32fcbe8
[ "MIT" ]
null
null
null
import praw import time import os import requests import json import bot_login import re from com_reply import reply_to_comment target = "!q" def run_bot(r, created_utc): try: comment_url = f"""https://api.pushshift.io/reddit/search/comment/?q={target}&sort=desc&size=50&fields=author,body,created_utc,id,su...
34.131148
293
0.591739
2d2e90c339ec63167a6b4e94ad64f88c4b86fd58
351
py
Python
classes/response.py
Vio-Eli/CelestAI_Discord
d99248393a5467cf1cb37243fd708ed8cc91b6ea
[ "MIT" ]
null
null
null
classes/response.py
Vio-Eli/CelestAI_Discord
d99248393a5467cf1cb37243fd708ed8cc91b6ea
[ "MIT" ]
null
null
null
classes/response.py
Vio-Eli/CelestAI_Discord
d99248393a5467cf1cb37243fd708ed8cc91b6ea
[ "MIT" ]
null
null
null
""" The "Response" class represents a cached audio response """ import os.path as path from celestai import settings class Response(): def __init__(self, key, text): self.key = key self.file = path.join(settings.RESPONSES_DIR, self.key+'.mp3') self.text = text if not path.isfil...
18.473684
70
0.62963
f12585acf4a3d297db04595efeac284ecd0f0461
277
py
Python
src/infi/django_rest_utils/admin.py
Infinidat/infi.django_rest_utils
99bfc02978533572874e82bd2199ec8945e3985c
[ "BSD-3-Clause" ]
4
2016-10-19T15:29:41.000Z
2018-05-11T08:00:29.000Z
src/infi/django_rest_utils/admin.py
Infinidat/infi.django_rest_utils
99bfc02978533572874e82bd2199ec8945e3985c
[ "BSD-3-Clause" ]
null
null
null
src/infi/django_rest_utils/admin.py
Infinidat/infi.django_rest_utils
99bfc02978533572874e82bd2199ec8945e3985c
[ "BSD-3-Clause" ]
2
2015-09-27T13:11:41.000Z
2020-04-14T03:44:37.000Z
from __future__ import absolute_import from django.contrib import admin from .models import APIToken class APITokenAdmin(admin.ModelAdmin): list_display = ('user', 'token') search_fields = ('user__username', 'token') admin.site.register(APIToken, APITokenAdmin)
18.466667
47
0.761733
00243933574966bf31bb0d27057c3d779d76be5b
316
py
Python
problem_4/parameters.py
vineeths96/SVM-and-Neural-Networks
84d734542d4f7fc718c49a8d63db07b0597ccbc7
[ "MIT" ]
2
2020-12-07T09:51:40.000Z
2021-05-03T18:29:23.000Z
problem_4/parameters.py
vineeths96/SVM-and-Neural-Networks
84d734542d4f7fc718c49a8d63db07b0597ccbc7
[ "MIT" ]
null
null
null
problem_4/parameters.py
vineeths96/SVM-and-Neural-Networks
84d734542d4f7fc718c49a8d63db07b0597ccbc7
[ "MIT" ]
4
2021-02-22T16:36:50.000Z
2021-09-14T12:50:36.000Z
TIME_TICKS = 140 AAL_BRAIN_REGIONS = 116 POWER_BRAIN_REGION = 264 NUM_PATIENTS = 34 NUM_NORMALS = 47 TEST_SPLIT = 0.2 NUM_DENSE_1 = 64 DROPOUT = 0.2 BATCH_SIZE = 16 TRAINING_EPOCHS = 25 VALIDATION_SPLIT = 0.2 NUM_CLASSES = 2 ALPHA = 0.1 RHO = 0.9 EPSILON = 1e-08 DECAY = 0.0 LEARNING_RATE = 0.0005 PATIENCE = 5
13.166667
24
0.731013
05d9a5de39db3c9d7a8f10e9a6c7f24f1a9d9ab3
3,496
py
Python
FRG Hardware/frgpl/frgpl/tec.py
fenning-research-group/Instruments
c4e5f854fed1cce20f25076a38842bfbb5396917
[ "MIT" ]
null
null
null
FRG Hardware/frgpl/frgpl/tec.py
fenning-research-group/Instruments
c4e5f854fed1cce20f25076a38842bfbb5396917
[ "MIT" ]
null
null
null
FRG Hardware/frgpl/frgpl/tec.py
fenning-research-group/Instruments
c4e5f854fed1cce20f25076a38842bfbb5396917
[ "MIT" ]
1
2019-06-03T16:09:33.000Z
2019-06-03T16:09:33.000Z
## module for communication with Omega temperature controller import serial import numpy as np import codecs import time import sys class omega: def __init__(self, port = 'COM15', address = 1): self.connect(port = port, address = address) @property def setpoint(self): return self.__setpoint @setpoint.set...
26.484848
161
0.681064
d333c9c5b352be7cd497e119e8abe3b326f6a71b
35,157
py
Python
plugin/core/types.py
Daggy1234/LSP
65a40d6d28fd8ed03e483ed2bb9d43d049ed29d0
[ "MIT" ]
null
null
null
plugin/core/types.py
Daggy1234/LSP
65a40d6d28fd8ed03e483ed2bb9d43d049ed29d0
[ "MIT" ]
null
null
null
plugin/core/types.py
Daggy1234/LSP
65a40d6d28fd8ed03e483ed2bb9d43d049ed29d0
[ "MIT" ]
null
null
null
from .collections import DottedDict from .logging import debug, set_debug_logging from .protocol import TextDocumentSyncKindNone from .typing import Any, Optional, List, Dict, Generator, Callable, Iterable, Union, Set, Tuple, TypeVar from .url import filename_to_uri from .url import uri_to_filename from threading impor...
41.119298
120
0.640754