hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7f9e5056e4a3b02770ce07610f9be27dfc8239f
1,966
py
Python
src/fhir_types/FHIR_TestScript_Action2.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_TestScript_Action2.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_TestScript_Action2.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_string import FHIR_string from .FHIR_TestScript_Operation import FHIR_TestScript_Operation # A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. FHIR_TestScript_Action2 = TypedDict(...
93.619048
836
0.782299
from typing import Any, List, Literal, TypedDict from .FHIR_string import FHIR_string from .FHIR_TestScript_Operation import FHIR_TestScript_Operation FHIR_TestScript_Action2 = TypedDict( "FHIR_TestScript_Action2", { "id": FHIR_string, "extension": List[Any], ...
true
true
f7f9e6136cf2b9d9a4761731340966e9b8e18751
1,784
py
Python
leetcode/648.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
leetcode/648.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
leetcode/648.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
""" File: 648.py Title: Replace Words Difficulty: Medium URL: https://leetcode.com/problems/replace-words/ """ import unittest from typing import List class Solution: def replaceWords(self, dict: List[str], sentence: str) -> str: tree = {} for root in dict: current =...
25.855072
71
0.446188
import unittest from typing import List class Solution: def replaceWords(self, dict: List[str], sentence: str) -> str: tree = {} for root in dict: current = None for c in root: if current is None: if c not in tree: ...
true
true
f7f9e68079332f17d27731b8322c8a7b4214cc44
102
py
Python
sitetecnosul/django_assertions.py
joao0710/tecnosul
9a1bc3d5089d1c8cbc5a3827209e5a85d96c3cc3
[ "MIT" ]
null
null
null
sitetecnosul/django_assertions.py
joao0710/tecnosul
9a1bc3d5089d1c8cbc5a3827209e5a85d96c3cc3
[ "MIT" ]
9
2021-03-26T14:49:34.000Z
2021-06-03T00:33:14.000Z
sitetecnosul/django_assertions.py
joao0710/tecnosul
9a1bc3d5089d1c8cbc5a3827209e5a85d96c3cc3
[ "MIT" ]
2
2021-03-22T21:04:31.000Z
2021-05-12T13:23:05.000Z
from django.test import TestCase _test_case = TestCase() assert_contains = _test_case.assertContains
20.4
43
0.833333
from django.test import TestCase _test_case = TestCase() assert_contains = _test_case.assertContains
true
true
f7f9e6a7dc24fe5b46cb03e58ddcc3dc056636f7
3,693
py
Python
src/edge_update_function/main.py
aws-samples/personalization-apis
3e13353052304c25a8e59ed20fa8496cd7568b1a
[ "MIT-0" ]
5
2022-02-09T19:21:03.000Z
2022-03-29T16:44:20.000Z
src/edge_update_function/main.py
aws-samples/personalization-apis
3e13353052304c25a8e59ed20fa8496cd7568b1a
[ "MIT-0" ]
1
2022-02-18T18:36:07.000Z
2022-02-18T18:36:07.000Z
src/edge_update_function/main.py
aws-samples/personalization-apis
3e13353052304c25a8e59ed20fa8496cd7568b1a
[ "MIT-0" ]
1
2022-02-09T08:20:17.000Z
2022-02-09T08:20:17.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import os import io import json import boto3 import logging import zipfile from urllib.request import urlopen from crhelper import CfnResource logger = logging.getLogger() logger.setLevel(logging.INFO) helper = Cfn...
37.683673
110
0.683726
import os import io import json import boto3 import logging import zipfile from urllib.request import urlopen from crhelper import CfnResource logger = logging.getLogger() logger.setLevel(logging.INFO) helper = CfnResource() lambda_client = boto3.client('lambda') def update_function(event): user_pool_id = ev...
true
true
f7f9e6ecda9b35f096e44ae0a3f1a4c9159d9aa7
2,330
py
Python
pyplan/pyplan/companies/views.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan/pyplan/companies/views.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan/pyplan/companies/views.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
from rest_framework import status, viewsets from rest_framework.decorators import action from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from pyplan.pyplan.company_preference.service import CompanyPreferenceService from pyplan.pyplan.preference.serializers import Prefere...
40.877193
129
0.734764
from rest_framework import status, viewsets from rest_framework.decorators import action from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from pyplan.pyplan.company_preference.service import CompanyPreferenceService from pyplan.pyplan.preference.serializers import Prefere...
true
true
f7f9e75d9eb62df28508d8273551463e49b1c637
6,202
py
Python
idact/detail/config/client/client_cluster_config.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
5
2018-12-06T15:40:34.000Z
2019-06-19T11:22:58.000Z
idact/detail/config/client/client_cluster_config.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
9
2018-12-06T16:35:26.000Z
2019-04-28T19:01:40.000Z
idact/detail/config/client/client_cluster_config.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
2
2019-04-28T19:18:58.000Z
2019-06-17T06:56:28.000Z
"""This module contains the implementation of the cluster config interface.""" from typing import Optional, Dict from idact.core.auth import AuthMethod from idact.core.config import ClusterConfig, RetryConfig from idact.core.retry import Retry from idact.detail.config.client.setup_actions_config import \ SetupAct...
29.393365
78
0.638504
from typing import Optional, Dict from idact.core.auth import AuthMethod from idact.core.config import ClusterConfig, RetryConfig from idact.core.retry import Retry from idact.detail.config.client.setup_actions_config import \ SetupActionsConfigImpl from idact.detail.config.defaults.provide_defaults_for_retries i...
true
true
f7f9e7c09fe1e93d154729124f9f23b6f0cf513c
416
py
Python
seasonal_events/migrations/0005_season_active.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
25
2016-04-13T20:25:37.000Z
2021-11-26T14:41:00.000Z
seasonal_events/migrations/0005_season_active.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
358
2016-02-20T21:13:27.000Z
2022-03-31T20:06:03.000Z
seasonal_events/migrations/0005_season_active.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
7
2016-04-18T14:03:15.000Z
2022-02-04T14:19:47.000Z
# Generated by Django 2.0.9 on 2019-03-04 18:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('seasonal_events', '0004_season_header_name'), ] operations = [ migrations.AddField( model_name='season', name='activ...
21.894737
74
0.615385
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('seasonal_events', '0004_season_header_name'), ] operations = [ migrations.AddField( model_name='season', name='active', field=models.BooleanField(defau...
true
true
f7f9e85b0b7708d155724b7d6ab3f4f044887e89
1,807
py
Python
src/cms/publications/migrations/0016_auto_20210531_1041.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/publications/migrations/0016_auto_20210531_1041.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/publications/migrations/0016_auto_20210531_1041.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
# Generated by Django 3.2.3 on 2021-05-31 10:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cmsmedias', '0008_alter_...
47.552632
204
0.660764
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cmsmedias', '0008_alter_media_file'), ('cmspublications', '0015...
true
true
f7f9e93d0e31153aac0a99843a7847eb1145fe35
3,724
py
Python
pypureclient/flasharray/FA_2_6/models/array_encryption.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_6/models/array_encryption.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_6/models/array_encryption.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
31.559322
315
0.574651
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_6 import models class ArrayEncryption(object): swagger_types = { 'data_at_rest': 'ArrayencryptionDataAtRest', 'module_version': 'str' } ...
true
true
f7f9ea24bc45128cf5450faf35109ac41cb5b241
307
py
Python
HackerRank/Python_Learn/01_Introduction/07_Write_A_Function.py
Zubieta/CPP
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
8
2017-03-02T07:56:45.000Z
2021-08-07T20:20:19.000Z
HackerRank/Python_Learn/01_Introduction/07_Write_A_Function.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
null
null
null
HackerRank/Python_Learn/01_Introduction/07_Write_A_Function.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
1
2021-08-07T20:20:20.000Z
2021-08-07T20:20:20.000Z
# https://www.hackerrank.com/challenges/write-a-function def is_leap(yr): leap = False # Leap year: # * Divisible by 4 # * Not divisible by 100, unless divisible by 400 too. if (yr % 4 == 0 and yr % 100 != 0) or (yr % 100 == 0 and yr % 400 == 0): leap = True return leap
30.7
76
0.57329
def is_leap(yr): leap = False if (yr % 4 == 0 and yr % 100 != 0) or (yr % 100 == 0 and yr % 400 == 0): leap = True return leap
true
true
f7f9ea6733ebc0e12ef6331341c1010df404a952
2,891
py
Python
core_lib/dfa.py
zeerorg/Compiler-Design-Lab
4a0e73fbcf5c4ea92504d27bf4727766ef6c2347
[ "MIT" ]
null
null
null
core_lib/dfa.py
zeerorg/Compiler-Design-Lab
4a0e73fbcf5c4ea92504d27bf4727766ef6c2347
[ "MIT" ]
null
null
null
core_lib/dfa.py
zeerorg/Compiler-Design-Lab
4a0e73fbcf5c4ea92504d27bf4727766ef6c2347
[ "MIT" ]
null
null
null
class DFA_Node: def __init__(self, a: int, b: int): self.a = a self.b = b def __iter__(self): yield ('a', self.a) yield ('b', self.b) def as_dict(): return { 'a': self.a, 'b': self.b } def __str__(self): return "...
28.343137
110
0.484262
class DFA_Node: def __init__(self, a: int, b: int): self.a = a self.b = b def __iter__(self): yield ('a', self.a) yield ('b', self.b) def as_dict(): return { 'a': self.a, 'b': self.b } def __str__(self): return "...
true
true
f7f9eafff60694d0c1d23a9b15904deb860b2fe2
3,189
py
Python
test/programytest/mappings/test_person.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:13:45.000Z
2018-09-01T20:00:55.000Z
test/programytest/mappings/test_person.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
1
2018-09-12T18:30:17.000Z
2018-09-12T18:30:17.000Z
test/programytest/mappings/test_person.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:08:36.000Z
2018-09-23T06:11:04.000Z
import unittest import os from programy.mappings.person import PersonCollection from programy.storage.factory import StorageFactory from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.file.engine import FileStorageEngine from programy.storage.stores.file.config import ...
40.884615
219
0.718407
import unittest import os from programy.mappings.person import PersonCollection from programy.storage.factory import StorageFactory from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.file.engine import FileStorageEngine from programy.storage.stores.file.config import ...
true
true
f7f9eb0533f34decf9be06537dc3e19c8fd36579
3,906
py
Python
A3/A3Part4.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
A3/A3Part4.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
A3/A3Part4.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
import sys sys.path.append('../../software/models/') from dftModel import dftAnal, dftSynth from scipy.signal import get_window import numpy as np """ A3-Part-4: Suppressing frequency components using DFT model Given a frame of the signal, write a function that uses the dftModel functions to suppress all the frequenc...
54.25
113
0.743984
import sys sys.path.append('../../software/models/') from dftModel import dftAnal, dftSynth from scipy.signal import get_window import numpy as np def suppressFreqDFTmodel(x, fs, N): M = len(x) w = get_window('hamming', M) outputScaleFactor = sum(w) tAnal(x,w,N) mX_filt = mX.copy() thresh_s...
true
true
f7f9eb962555bf3b3394113c9a6f83fa75f8c5f9
103,255
py
Python
Lib/test/test_xml_etree.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_xml_etree.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_xml_etree.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
# IMPORTANT: the same tests are run z "test_xml_etree_c" w order # to ensure consistency between the C implementation oraz the Python # implementation. # # For this purpose, the module-level "ET" symbol jest temporarily # monkey-patched when running the "test_xml_etree_c" test suite. zaimportuj html zaimportuj io zaim...
37.492738
106
0.55915
zaimportuj html zaimportuj io zaimportuj operator zaimportuj pickle zaimportuj sys zaimportuj types zaimportuj unittest zaimportuj warnings zaimportuj weakref z itertools zaimportuj product z test zaimportuj support z test.support zaimportuj TESTFN, findfile, import_fresh_module, gc_collect pyET = Nic ET =...
false
true
f7f9ebacc9154a80a9c3c5665178f39bb3d0fe20
22,958
py
Python
datasets/common_voice/common_voice.py
matt-peters/datasets
b51cb81e736b86103089a584daa6e43db3c88bb5
[ "Apache-2.0" ]
1
2021-03-24T18:33:31.000Z
2021-03-24T18:33:31.000Z
datasets/common_voice/common_voice.py
pcyin/datasets
a03728637e24986bf7d47cd1ebffa6595093a557
[ "Apache-2.0" ]
null
null
null
datasets/common_voice/common_voice.py
pcyin/datasets
a03728637e24986bf7d47cd1ebffa6595093a557
[ "Apache-2.0" ]
1
2021-03-24T18:33:32.000Z
2021-03-24T18:33:32.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
30.857527
292
0.525612
from __future__ import absolute_import, division, print_function import os import datasets _CITATION = """\ @inproceedings{commonvoice:2020, author = {Ardila, R. and Branson, M. and Davis, K. and Henretty, M. and Kohler, M. and Meyer, J. and Morais, R. and Saunders, L. and Tyers, F. M. and Weber, G...
true
true
f7f9ec21c49e250c7256ce11431cab3ff27d95c8
7,288
py
Python
example_cases/1D_sodshocktube/input.py
ComputationalFlowPhysics/MFC-develop
901bff8d9e9d7519613cfcacc7a5463ab6295181
[ "MIT" ]
3
2021-05-20T23:42:47.000Z
2021-11-17T21:34:14.000Z
example_cases/1D_sodshocktube/input.py
ComputationalFlowPhysics/MFC-develop
901bff8d9e9d7519613cfcacc7a5463ab6295181
[ "MIT" ]
28
2021-11-02T00:40:40.000Z
2021-12-06T02:38:57.000Z
example_cases/1D_sodshocktube/input.py
ComputationalFlowPhysics/MFC-develop
901bff8d9e9d7519613cfcacc7a5463ab6295181
[ "MIT" ]
9
2021-10-02T04:37:25.000Z
2021-11-23T00:58:11.000Z
#!/usr/bin/env python3 import math #Numerical setup Nx = 399 dx = 1./(1.*(Nx+1)) Tend = 0.1 Nt = 1000 mydt = Tend/(1.*Nt) # Command to navigate between directories from os import chdir # Command to acquire directory path from os.path import dirname # Command to acquire script name and module ...
57.385827
86
0.221872
import math Nx = 399 dx = 1./(1.*(Nx+1)) Tend = 0.1 Nt = 1000 mydt = Tend/(1.*Nt) from os import chdir from os.path import dirname from sys import argv, path if len(dirname(argv[0])) != 0: chdir(dirname(argv[0])) mfc_dir = '../../src'; path[:0] = [mfc_dir + '/master_scripts'] from ...
true
true
f7f9ed8864e7e9763a3d362d8651c82bf920bfab
2,046
py
Python
tensordata/report/p2peye/_p2peye.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
13
2019-01-08T10:22:39.000Z
2020-06-17T10:02:47.000Z
tensordata/report/p2peye/_p2peye.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
null
null
null
tensordata/report/p2peye/_p2peye.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
1
2020-06-17T10:02:49.000Z
2020-06-17T10:02:49.000Z
import io import time import datetime import requests import pandas as pd __all__ =['rating', 'problem_platform'] def rating(date=None): """P2peye comprehensive rating and display results. from https://www.p2peye.com Args: date: if None, download latest data, if like '201812', that down...
38.603774
125
0.669599
import io import time import datetime import requests import pandas as pd __all__ =['rating', 'problem_platform'] def rating(date=None): start = time.time() if date is None: date = str(pd.to_datetime(datetime.datetime.now())-pd.DateOffset(months=1))[:7].replace('-', '') assert (isinstance(date, s...
true
true
f7f9ed8927fdd52bb75bb190d88a074e9be2fc2d
2,183
py
Python
apps/posts/migrations/0001_initial.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
1
2018-11-15T05:17:30.000Z
2018-11-15T05:17:30.000Z
apps/posts/migrations/0001_initial.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
5
2021-06-09T17:20:01.000Z
2022-03-11T23:18:06.000Z
apps/posts/migrations/0001_initial.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
1
2018-10-05T19:03:27.000Z
2018-10-05T19:03:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-16 06:34 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): ...
48.511111
199
0.649107
from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dep...
true
true
f7f9eda4a1a5cfab9bb0fb14eb8ec37be8074b9e
403
py
Python
brus/liste/migrations/0003_auto_20160923_1401.py
webkom/brus
a1ffe0c03f78d6a8b301e4ae7554e625ed2e46a9
[ "MIT" ]
null
null
null
brus/liste/migrations/0003_auto_20160923_1401.py
webkom/brus
a1ffe0c03f78d6a8b301e4ae7554e625ed2e46a9
[ "MIT" ]
38
2016-04-30T16:07:09.000Z
2022-03-18T16:56:59.000Z
brus/liste/migrations/0003_auto_20160923_1401.py
webkom/brus
a1ffe0c03f78d6a8b301e4ae7554e625ed2e46a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-09-23 14:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("liste", "0002_auto_20160503_0953")] operations = [ migrations.AlterField( mod...
23.705882
81
0.672457
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("liste", "0002_auto_20160503_0953")] operations = [ migrations.AlterField( model_name="brus", name="cost", field=models.IntegerField(default=16) ...
true
true
f7f9edda2a0d7177db793f60789f6f412439f341
371
py
Python
experiments/heat-3d/tmp_files/3120.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/heat-3d/tmp_files/3120.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/heat-3d/tmp_files/3120.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/3120.c') procedure('kernel_heat_3d') loop(0) tile(0,2,8,2) tile(0,4,8,4) tile(0,6,...
23.1875
116
0.743935
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/3120.c') procedure('kernel_heat_3d') loop(0) tile(0,2,8,2) tile(0,4,8,4) tile(0,6,...
true
true
f7f9eddab707610c784e27a6038ae7220ec190f4
6,106
py
Python
pyrender_render.py
trisct/DeepSDF
85e0cf413544244737fe2237f9549c0d4e946745
[ "MIT" ]
null
null
null
pyrender_render.py
trisct/DeepSDF
85e0cf413544244737fe2237f9549c0d4e946745
[ "MIT" ]
null
null
null
pyrender_render.py
trisct/DeepSDF
85e0cf413544244737fe2237f9549c0d4e946745
[ "MIT" ]
null
null
null
import numpy as np import trimesh import pyrender import matplotlib.pyplot as plt import math from tqdm import tqdm import os import torch import torchvision import glob def render_one(mesh_list, steps, save_name, save_path, resolution, need_video=False): """ mesh: pyrender.mesh.Mesh A pyrender.mesh.Me...
36.562874
140
0.633803
import numpy as np import trimesh import pyrender import matplotlib.pyplot as plt import math from tqdm import tqdm import os import torch import torchvision import glob def render_one(mesh_list, steps, save_name, save_path, resolution, need_video=False): print(f'Starting to render one, which will be saved to {os....
true
true
f7f9edf99c2bd10345a162cb1439130cfffc8be0
263
py
Python
airbyte-integrations/connectors/source-google-directory/source_google_directory/utils.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
6,215
2020-09-21T13:45:56.000Z
2022-03-31T21:21:45.000Z
airbyte-integrations/connectors/source-google-directory/source_google_directory/utils.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
8,448
2020-09-21T00:43:50.000Z
2022-03-31T23:56:06.000Z
airbyte-integrations/connectors/source-google-directory/source_google_directory/utils.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1,251
2020-09-20T05:48:47.000Z
2022-03-31T10:41:29.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # def rate_limit_handling(error): retried_cases = [ (403, "quotaExceeded"), (429, "rateLimitExceeded"), ] return (error.resp.status, error.resp.reason) not in retried_cases
20.230769
70
0.65019
def rate_limit_handling(error): retried_cases = [ (403, "quotaExceeded"), (429, "rateLimitExceeded"), ] return (error.resp.status, error.resp.reason) not in retried_cases
true
true
f7f9ee5ee71f4efc5aaf18062151307a3a14d026
941
py
Python
tests/sentry/management/commands/test_cleanup.py
vperron/sentry
4ea0c8cb120a3165f0e0b185c64213b69ab621ea
[ "BSD-3-Clause" ]
1
2017-08-30T06:55:25.000Z
2017-08-30T06:55:25.000Z
tests/sentry/management/commands/test_cleanup.py
tobetterman/sentry
fe85d3aee19dcdbfdd27921c4fb04529fc995a79
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/management/commands/test_cleanup.py
tobetterman/sentry
fe85d3aee19dcdbfdd27921c4fb04529fc995a79
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.core.management import call_command from sentry.models import Event, Group, GroupTagValue, TagValue, TagKey from sentry.testutils import TestCase ALL_MODELS = (Event, Group, GroupTagValue, TagValue, TagKey) class SentryCleanupTest(TestCase...
26.138889
71
0.663124
from __future__ import absolute_import from django.core.management import call_command from sentry.models import Event, Group, GroupTagValue, TagValue, TagKey from sentry.testutils import TestCase ALL_MODELS = (Event, Group, GroupTagValue, TagValue, TagKey) class SentryCleanupTest(TestCase): fixtures = ['tes...
true
true
f7f9eeaf6d8636ba77648810e0df271e7fd84639
11,597
py
Python
Pilot2/P2B1/p2b1_baseline_keras2.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
2
2021-02-06T06:47:19.000Z
2021-02-24T13:45:02.000Z
Pilot2/P2B1/p2b1_baseline_keras2.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
null
null
null
Pilot2/P2B1/p2b1_baseline_keras2.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import pickle import sys, os, json import argparse import h5py import logging try: reload # Python 2.7 except NameError: try: from importlib import reload # Python 3.4+ except ImportError: from imp import reload # Python 3.0 - 3.3 TIMEOUT=3600 # in s...
37.775244
146
0.594378
import numpy as np import scipy as sp import pickle import sys, os, json import argparse import h5py import logging try: reload except NameError: try: from importlib import reload except ImportError: from imp import reload TIMEOUT=3600 file_path = os.path.dirname(os.path.realpath(__f...
true
true
f7f9eec307e8014e88a0e5cea1baa407552b3713
305
py
Python
napari/utils/perf/_config.py
neuromusic/napari-gui
0adb11c53dbd29ae82fbf46b68c61bda63128775
[ "BSD-3-Clause" ]
1
2020-02-14T15:40:42.000Z
2020-02-14T15:40:42.000Z
napari/utils/perf/_config.py
willingc/napari
3b92d9cba5a178d04c5b5231192448cc316a9bfd
[ "BSD-3-Clause" ]
null
null
null
napari/utils/perf/_config.py
willingc/napari
3b92d9cba5a178d04c5b5231192448cc316a9bfd
[ "BSD-3-Clause" ]
null
null
null
"""Perf configuration flags. """ import os import sys # If USE_PERFMON is not set then performance timers will be 100% disabled with # hopefully zero run-time impact. USE_PERFMON = os.getenv("NAPARI_PERFMON", "0") != "0" # We have some pre-3.7 functionality. PYTHON_3_7 = sys.version_info[:2] >= (3, 7)
25.416667
78
0.718033
import os import sys USE_PERFMON = os.getenv("NAPARI_PERFMON", "0") != "0" PYTHON_3_7 = sys.version_info[:2] >= (3, 7)
true
true
f7f9ef0911013c5cc4b517a77a9b396d82989e3f
14,612
py
Python
pyclesperanto_prototype/_tier0/_pycl.py
tlambert-forks/pyclesperanto_prototype
aea964a75e691f19b7753040daa8b276d57ccf36
[ "BSD-3-Clause" ]
null
null
null
pyclesperanto_prototype/_tier0/_pycl.py
tlambert-forks/pyclesperanto_prototype
aea964a75e691f19b7753040daa8b276d57ccf36
[ "BSD-3-Clause" ]
1
2021-01-12T19:41:04.000Z
2021-01-12T19:41:04.000Z
pyclesperanto_prototype/_tier0/_pycl.py
tlambert-forks/pyclesperanto_prototype
aea964a75e691f19b7753040daa8b276d57ccf36
[ "BSD-3-Clause" ]
1
2021-06-18T14:45:20.000Z
2021-06-18T14:45:20.000Z
import os import sys import numpy as np import pyopencl as cl from pyopencl import characterize from pyopencl import array from ._device import get_device """ Below here, vendored from GPUtools Copyright (c) 2016, Martin Weigert All rights reserved. Redistribution and use in source and binary forms, with or without ...
32.256071
274
0.630304
import os import sys import numpy as np import pyopencl as cl from pyopencl import characterize from pyopencl import array from ._device import get_device cl_image_datatype_dict = { cl.channel_type.FLOAT: np.float32, cl.channel_type.UNSIGNED_INT8: np.uint8, cl.channel_type.UNSIGNED_INT16: np.uint16, ...
true
true
f7f9f0009c476d0aad3fe9fa8c2230b30322c93a
7,311
py
Python
django_faker/tests.py
rosscdh/django-faker
345e3eebcf636e2566d9890ae7b35788ebdb5173
[ "MIT" ]
211
2015-01-02T11:12:25.000Z
2021-11-08T10:54:01.000Z
django_faker/tests.py
rosscdh/django-faker
345e3eebcf636e2566d9890ae7b35788ebdb5173
[ "MIT" ]
21
2015-01-21T10:33:43.000Z
2020-04-12T17:57:20.000Z
django_faker/tests.py
rosscdh/django-faker
345e3eebcf636e2566d9890ae7b35788ebdb5173
[ "MIT" ]
50
2015-01-21T19:38:36.000Z
2021-09-29T08:01:28.000Z
from faker import Faker from django_faker.populator import Populator from django_faker import Faker as DjangoFaker from django.db import models from django.utils import unittest from django.template import Context, TemplateSyntaxError from django.template import Template fake = Faker() class Game(models.Model): ...
34.485849
119
0.63083
from faker import Faker from django_faker.populator import Populator from django_faker import Faker as DjangoFaker from django.db import models from django.utils import unittest from django.template import Context, TemplateSyntaxError from django.template import Template fake = Faker() class Game(models.Model): ...
true
true
f7f9f0321b032e73bc4529c029db24c1debcfe05
700
py
Python
tests/templatetags/test_django_htmx.py
felixxm/django-htmx
06a2b430c6ec573d9b04319bae299e5e03c35713
[ "MIT" ]
452
2020-10-18T17:48:17.000Z
2022-03-31T09:23:01.000Z
tests/templatetags/test_django_htmx.py
felixxm/django-htmx
06a2b430c6ec573d9b04319bae299e5e03c35713
[ "MIT" ]
101
2020-12-18T01:18:08.000Z
2022-03-14T08:05:34.000Z
tests/templatetags/test_django_htmx.py
felixxm/django-htmx
06a2b430c6ec573d9b04319bae299e5e03c35713
[ "MIT" ]
47
2020-11-24T20:32:09.000Z
2022-03-29T20:25:47.000Z
from django.template import Context, Template from django.test import SimpleTestCase, override_settings class DjangoHtmxScriptTests(SimpleTestCase): def test_non_debug_empty(self): result = Template("{% load django_htmx %}{% django_htmx_script %}").render( Context() ) assert r...
30.434783
87
0.605714
from django.template import Context, Template from django.test import SimpleTestCase, override_settings class DjangoHtmxScriptTests(SimpleTestCase): def test_non_debug_empty(self): result = Template("{% load django_htmx %}{% django_htmx_script %}").render( Context() ) assert r...
true
true
f7f9f03230751a9ba1d767a5c2e41c3db2cb3ef9
5,422
py
Python
flexget/components/seen/seen.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
1,322
2015-01-01T22:00:25.000Z
2022-03-30T05:37:46.000Z
flexget/components/seen/seen.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
2,384
2015-01-01T04:23:15.000Z
2022-03-31T01:06:43.000Z
flexget/components/seen/seen.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
617
2015-01-02T15:15:07.000Z
2022-03-15T12:29:31.000Z
from loguru import logger from flexget import plugin from flexget.event import event from . import db logger = logger.bind(name='seen') class FilterSeen: """ Remembers previously downloaded content and rejects them in subsequent executions. Without this plugin FlexGet would download all matching co...
34.980645
99
0.514201
from loguru import logger from flexget import plugin from flexget.event import event from . import db logger = logger.bind(name='seen') class FilterSeen: schema = { 'oneOf': [ {'type': 'boolean'}, {'type': 'string', 'enum': ['global', 'local']}, { 't...
true
true
f7f9f13000e86c4fc5bd537b79f20e41d8fca340
3,251
py
Python
gamestonk_terminal/jupyter/dashboards/dashboards_controller.py
GarnixJu2015/GamestonkTerminal
ec400e46ddce4ac934af836b863528f14a13d865
[ "MIT" ]
null
null
null
gamestonk_terminal/jupyter/dashboards/dashboards_controller.py
GarnixJu2015/GamestonkTerminal
ec400e46ddce4ac934af836b863528f14a13d865
[ "MIT" ]
null
null
null
gamestonk_terminal/jupyter/dashboards/dashboards_controller.py
GarnixJu2015/GamestonkTerminal
ec400e46ddce4ac934af836b863528f14a13d865
[ "MIT" ]
null
null
null
"""Dashboards Module""" __docformat__ = "numpy" import os import argparse import subprocess from typing import List from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal.rich_config import console from gamestonk_terminal.parent_classes import BaseController from gamestonk_terminal import featu...
31.872549
87
0.645955
__docformat__ = "numpy" import os import argparse import subprocess from typing import List from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal.rich_config import console from gamestonk_terminal.parent_classes import BaseController from gamestonk_terminal import feature_flags as gtff from ga...
true
true
f7f9f2c30c2a5a2c1cb3385eb335648d3066ef3f
48,534
py
Python
cogs/Mod.py
JakeWasChosen/edoC
fda4285878a76987761d0ff81e761d10d90bb046
[ "MIT" ]
1
2021-09-23T15:42:35.000Z
2021-09-23T15:42:35.000Z
cogs/Mod.py
JakeWasChosen/edoC
fda4285878a76987761d0ff81e761d10d90bb046
[ "MIT" ]
null
null
null
cogs/Mod.py
JakeWasChosen/edoC
fda4285878a76987761d0ff81e761d10d90bb046
[ "MIT" ]
2
2021-08-29T20:45:53.000Z
2021-09-01T16:20:38.000Z
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Copyright (c) 2021. Jason Cameron + # All rights reserved. + # This file is p...
41.660086
140
0.597004
import argparse import asyncio import copy import datetime import logging import re import shlex from collections import Counter from io import BytesIO import discord from discord import NotFound, Object from discord.ext import commands from discord.ext.commands import Converter, BadArgument from discord.utils...
true
true
f7f9f3cc52418089bf9334dff470ab446f48fffb
2,672
py
Python
src/nodes/corenodes/blend/alpha_over_node/alpha_over_node.py
yonMaor/GimelStudio
7ed7db429e61e0413791ad261583c7018f888953
[ "Apache-2.0" ]
null
null
null
src/nodes/corenodes/blend/alpha_over_node/alpha_over_node.py
yonMaor/GimelStudio
7ed7db429e61e0413791ad261583c7018f888953
[ "Apache-2.0" ]
null
null
null
src/nodes/corenodes/blend/alpha_over_node/alpha_over_node.py
yonMaor/GimelStudio
7ed7db429e61e0413791ad261583c7018f888953
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------------------- # Gimel Studio Copyright 2019-2022 by the Gimel Studio project contributors # # 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...
31.435294
81
0.587201
from gimelstudio import api class AlphaOverNode(api.Node): def __init__(self, nodegraph, id): api.Node.__init__(self, nodegraph, id) @property def NodeMeta(self): meta_info = { "label": "Alpha Over", "author": "Gimel Studio", "version": ...
true
true
f7f9f536978a46cbd0cd0d7c3ba4c7f3ff816ceb
1,815
py
Python
test/test_optimal_transport.py
vlkit/vlk
0fc79b39972356af1ca921eab5fce5d671366725
[ "MIT" ]
null
null
null
test/test_optimal_transport.py
vlkit/vlk
0fc79b39972356af1ca921eab5fce5d671366725
[ "MIT" ]
null
null
null
test/test_optimal_transport.py
vlkit/vlk
0fc79b39972356af1ca921eab5fce5d671366725
[ "MIT" ]
null
null
null
import os.path as osp TEST_DIR = osp.dirname(__file__) import sys, os sys.path.insert(0, osp.abspath(osp.join(TEST_DIR, "../"))) from vlkit.optimal_transport import sinkhorn import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from matplotlib import gridspec import torch import numpy as np import o...
24.2
64
0.685399
import os.path as osp TEST_DIR = osp.dirname(__file__) import sys, os sys.path.insert(0, osp.abspath(osp.join(TEST_DIR, "../"))) from vlkit.optimal_transport import sinkhorn import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from matplotlib import gridspec import torch import numpy as np import o...
true
true
f7f9f673f4107768045a7d316366915609a1158f
10,330
py
Python
eth2/beacon/state_machines/forks/serenity/validation.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
eth2/beacon/state_machines/forks/serenity/validation.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
eth2/beacon/state_machines/forks/serenity/validation.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
from eth_typing import ( Hash32 ) from eth_utils import ( ValidationError, ) import rlp from eth.constants import ( ZERO_HASH32, ) from eth2._utils import bls as bls from eth2.beacon._utils.hash import ( hash_eth2, ) from eth2.beacon.enums import ( SignatureDomain, ) from eth2.beacon.helpers impo...
35.993031
95
0.626137
from eth_typing import ( Hash32 ) from eth_utils import ( ValidationError, ) import rlp from eth.constants import ( ZERO_HASH32, ) from eth2._utils import bls as bls from eth2.beacon._utils.hash import ( hash_eth2, ) from eth2.beacon.enums import ( SignatureDomain, ) from eth2.beacon.helpers impo...
true
true
f7f9f77256d26b0c3cdef69a0fe2fde6a8fd02db
42,579
py
Python
perfrunner/helpers/local.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
null
null
null
perfrunner/helpers/local.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
null
null
null
perfrunner/helpers/local.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
null
null
null
import os import shutil import socket import time import urllib.parse from datetime import date from glob import glob from sys import platform from typing import List from fabric.api import hide, lcd, local, quiet, settings, shell_env from mc_bin_client.mc_bin_client import MemcachedClient, MemcachedError from logger...
38.4287
100
0.546795
import os import shutil import socket import time import urllib.parse from datetime import date from glob import glob from sys import platform from typing import List from fabric.api import hide, lcd, local, quiet, settings, shell_env from mc_bin_client.mc_bin_client import MemcachedClient, MemcachedError from logger...
true
true
f7f9f77555ad33ebf0ef7c8b3a992fb72fc28df0
1,746
py
Python
vise/tests/analyzer/vasp/test_make_diele_func.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
16
2020-07-14T13:14:05.000Z
2022-03-04T13:39:30.000Z
vise/tests/analyzer/vasp/test_make_diele_func.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
10
2021-03-15T20:47:45.000Z
2021-08-19T00:47:12.000Z
vise/tests/analyzer/vasp/test_make_diele_func.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
6
2020-03-03T00:42:39.000Z
2022-02-22T02:34:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. from pymatgen.io.vasp import Vasprun, Outcar from vise.analyzer.dielectric_function import make_shifted_diele_func from vise.analyzer.vasp.band_edge_properties import VaspBandEdgeProperties from vise.analyzer.vasp.make_diele_...
41.571429
74
0.730813
from pymatgen.io.vasp import Vasprun, Outcar from vise.analyzer.dielectric_function import make_shifted_diele_func from vise.analyzer.vasp.band_edge_properties import VaspBandEdgeProperties from vise.analyzer.vasp.make_diele_func import make_diele_func def test_make_diele_func(test_data_files): v = Vasprun(test...
true
true
f7f9f7b9b4f9671012ab558a81d6781c1f64eefc
4,166
py
Python
benchmark/startQiskit_Class2221.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2221.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2221.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=40 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.429752
140
0.647144
import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_xor(s: str, t: str) -> str: l...
true
true
f7f9f853bb35f1ce699cc0d72855a75f9c14669f
1,704
py
Python
tools/gt_map_visualization/angular_velocity_from_bag.py
kirkscheper/mvsec
ee9b7ac0c20ad6f8e48a6dbe337587ca184926e2
[ "MIT" ]
37
2017-09-12T02:07:00.000Z
2022-03-29T13:18:44.000Z
tools/gt_map_visualization/angular_velocity_from_bag.py
kirkscheper/mvsec
ee9b7ac0c20ad6f8e48a6dbe337587ca184926e2
[ "MIT" ]
13
2018-12-14T13:19:12.000Z
2022-03-21T09:11:28.000Z
tools/gt_map_visualization/angular_velocity_from_bag.py
kirkscheper/mvsec
ee9b7ac0c20ad6f8e48a6dbe337587ca184926e2
[ "MIT" ]
9
2018-10-02T04:36:34.000Z
2022-01-08T18:17:08.000Z
#!/usr/bin/env python # # import rosbag, rospy, numpy as np import sys, os, glob import argparse import numpy.linalg import math import tf import tf.transformations if __name__ == '__main__': parser = argparse.ArgumentParser(description='get angular velocity from bag.') parser.add_argument('--start', '-s',...
28.881356
114
0.538146
import rosbag, rospy, numpy as np import sys, os, glob import argparse import numpy.linalg import math import tf import tf.transformations if __name__ == '__main__': parser = argparse.ArgumentParser(description='get angular velocity from bag.') parser.add_argument('--start', '-s', action='store', defaul...
false
true
f7f9f967f923b880c6bc9efd359fb8f026ee5aeb
246
py
Python
minterest/accountapp/views.py
Dohwee-Kim/minterest
f6a52ccee6e5900ce1f1140f05d68c8a6b494117
[ "MIT" ]
null
null
null
minterest/accountapp/views.py
Dohwee-Kim/minterest
f6a52ccee6e5900ce1f1140f05d68c8a6b494117
[ "MIT" ]
null
null
null
minterest/accountapp/views.py
Dohwee-Kim/minterest
f6a52ccee6e5900ce1f1140f05d68c8a6b494117
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http.response import HttpResponse # Create your views here. def hello_world(request): # 왜 바로 안 읽어지냐면 , root app 의 setting.py 에서 추가해줘야한다 return render(request, 'accountapp/hello_world.html')
35.142857
57
0.772358
from django.shortcuts import render from django.http.response import HttpResponse def hello_world(request): return render(request, 'accountapp/hello_world.html')
true
true
f7f9f9df29333c2d27564830cba79534770403e1
1,329
py
Python
nipype/algorithms/tests/test_overlap.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/algorithms/tests/test_overlap.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
2
2017-10-05T21:08:38.000Z
2018-10-09T23:01:23.000Z
nipype/algorithms/tests/test_overlap.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
1
2016-10-11T19:18:53.000Z
2016-10-11T19:18:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os from shutil import rmtree from tempfile import mkdtemp from nipype.testing import (example_data) import numpy as np def test_overlap(): from ...
25.557692
73
0.671181
import os from shutil import rmtree from tempfile import mkdtemp from nipype.testing import (example_data) import numpy as np def test_overlap(): from nipype.algorithms.metrics import Overlap def check_close(val1, val2): import numpy.testing as npt return npt.assert_almost_equal(val1, ...
true
true
f7f9fa4ef1d0e0ffe5592fc7666a73807aefa5a9
372
py
Python
wordcount_file.py
filkuzmanovski/creditspark
d94ee21e19f6c790d9c31f391d9e005fb809acaa
[ "MIT" ]
null
null
null
wordcount_file.py
filkuzmanovski/creditspark
d94ee21e19f6c790d9c31f391d9e005fb809acaa
[ "MIT" ]
null
null
null
wordcount_file.py
filkuzmanovski/creditspark
d94ee21e19f6c790d9c31f391d9e005fb809acaa
[ "MIT" ]
null
null
null
import sys from pyspark import SparkContext sc = SparkContext("local", "My App") text_file = sc.textFile("file:///home/ma1306/creditspark/"+sys.argv[1]) counts = text_file.flatMap(lambda line: line.split(" ")) \ .map(lambda word: (word, 1)) \ .reduceByKey(lambda a, b: a + b) counts.saveAsT...
24.8
71
0.658602
import sys from pyspark import SparkContext sc = SparkContext("local", "My App") text_file = sc.textFile("file:///home/ma1306/creditspark/"+sys.argv[1]) counts = text_file.flatMap(lambda line: line.split(" ")) \ .map(lambda word: (word, 1)) \ .reduceByKey(lambda a, b: a + b) counts.saveAsT...
true
true
f7f9fa507c47a6fad463050a43d09185cf90b1e6
1,645
py
Python
setup.py
ailove-dev/django-event
2d82cee0b3b86209850cbb6e382d597d2624251d
[ "MIT" ]
3
2015-08-31T00:46:12.000Z
2017-12-13T01:32:32.000Z
setup.py
ailove-dev/django-event
2d82cee0b3b86209850cbb6e382d597d2624251d
[ "MIT" ]
8
2015-01-20T12:27:24.000Z
2015-05-29T12:29:53.000Z
setup.py
ailove-dev/django-event
2d82cee0b3b86209850cbb6e382d597d2624251d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys from setuptools import setup from setuptools import find_packages from django_event import __version__ from django_event import __release_tag__ requirments = [ 'django>=1.7', 'celery>=3.1.16', 'tornado>=4.0.2', 'so...
24.552239
63
0.648024
from __future__ import unicode_literals import os import sys from setuptools import setup from setuptools import find_packages from django_event import __version__ from django_event import __release_tag__ requirments = [ 'django>=1.7', 'celery>=3.1.16', 'tornado>=4.0.2', 'sockjs-tornado>=1.0.1', ]...
true
true
f7f9fa62dc9100fd1155cece12f7f9915406bd4a
12,625
py
Python
conda_build/inspect_pkg.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
1
2019-01-15T10:51:38.000Z
2019-01-15T10:51:38.000Z
conda_build/inspect_pkg.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
null
null
null
conda_build/inspect_pkg.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
null
null
null
# (c) Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import absolute_import, division, print_function from collections import defaultdict i...
37.799401
100
0.569901
from __future__ import absolute_import, division, print_function from collections import defaultdict import json from operator import itemgetter from os.path import abspath, join, dirname, exists, basename import os import re import sys import tempfile from conda_build.os_utils.ldd import get_linkages, get_pack...
true
true
f7f9faefe441c222cc97bcc160b16b48b42a8190
134,876
py
Python
tests/unit/gapic/compute_v1/test_security_policies.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_security_policies.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_security_policies.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
39.004049
120
0.677363
import os import mock import grpc from grpc.experimental import aio import json import math import pytest from proto.marshal.rules.dates import DurationRule, TimestampRule from requests import Response from requests import Request, PreparedRequest from requests.sessions import Session from google.api_...
true
true
f7f9fb592196e930a5afd3cbd2c3ff3c38289e5b
1,939
py
Python
CNG111-IntroductionToComputerEngineeringConcepts/2-SecretCodeComprehension/breaker.py
furkantokac/Lectures
a4dd6615691ce8d9d2bfec6910f6af108b741d7f
[ "MIT" ]
null
null
null
CNG111-IntroductionToComputerEngineeringConcepts/2-SecretCodeComprehension/breaker.py
furkantokac/Lectures
a4dd6615691ce8d9d2bfec6910f6af108b741d7f
[ "MIT" ]
null
null
null
CNG111-IntroductionToComputerEngineeringConcepts/2-SecretCodeComprehension/breaker.py
furkantokac/Lectures
a4dd6615691ce8d9d2bfec6910f6af108b741d7f
[ "MIT" ]
2
2019-12-05T16:37:53.000Z
2020-04-26T12:16:18.000Z
from random import randint def comparer(pw, gs): matches = 0 members = 0 pw = str(pw) gs = str(gs) for i in xrange(4): if pw[i] == gs[i]: matches+=1 elif gs[i] in pw: members+=1 return matches, members def fullCandidates(): cand=0 sayi = 0 candidates.append("")...
26.202703
78
0.549768
from random import randint def comparer(pw, gs): matches = 0 members = 0 pw = str(pw) gs = str(gs) for i in xrange(4): if pw[i] == gs[i]: matches+=1 elif gs[i] in pw: members+=1 return matches, members def fullCandidates(): cand=0 sayi = 0 candidates.append("")...
false
true
f7f9fb8e285474fad4112acdf4985f0dddf32585
536
py
Python
Lab 3/Lab3_19201086.py
farhad324/CSE420
782cb7a4133a54132956c931a64778c353a1ab9c
[ "MIT" ]
null
null
null
Lab 3/Lab3_19201086.py
farhad324/CSE420
782cb7a4133a54132956c931a64778c353a1ab9c
[ "MIT" ]
null
null
null
Lab 3/Lab3_19201086.py
farhad324/CSE420
782cb7a4133a54132956c931a64778c353a1ab9c
[ "MIT" ]
null
null
null
import re inp_count = int(input()) regex_list = [] for i in range(inp_count): regex_list.append(input()) count2 = int(input()) str_list = [] for i in range(count2): str_list.append(input()) for i in range(len(str_list)): for j in range(len(regex_list)): state = re.match(regex_...
21.44
57
0.544776
import re inp_count = int(input()) regex_list = [] for i in range(inp_count): regex_list.append(input()) count2 = int(input()) str_list = [] for i in range(count2): str_list.append(input()) for i in range(len(str_list)): for j in range(len(regex_list)): state = re.match(regex_...
true
true
f7f9fbc19fd9742de76bd5a4b6e72506a12a4d2d
3,685
py
Python
tensorflow_federated/python/core/impl/executors/eager_tf_executor_multi_gpu_test.py
amrzv/federated
d8ac0d5f8d52541860fba881e87ccdd44c5d5b9b
[ "Apache-2.0" ]
1
2020-12-28T19:20:04.000Z
2020-12-28T19:20:04.000Z
tensorflow_federated/python/core/impl/executors/eager_tf_executor_multi_gpu_test.py
amrzv/federated
d8ac0d5f8d52541860fba881e87ccdd44c5d5b9b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/executors/eager_tf_executor_multi_gpu_test.py
amrzv/federated
d8ac0d5f8d52541860fba881e87ccdd44c5d5b9b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated 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 o...
37.222222
80
0.742469
import numpy as np import tensorflow as tf from tensorflow_federated.python.common_libs import test_utils from tensorflow_federated.python.core.api import computations from tensorflow_federated.python.core.impl import computation_impl from tensorflow_federated.python.core.impl.executors import eager_tf_e...
true
true
f7f9fbebc9a59d5d2c57e9d4a9182eb3f61c9572
4,888
py
Python
pyhighlighterclient/research_plan_metric.py
wgoldm/pyhighlighterclient
533da226af7f1103f96edeec8c47fe3f8e067bf1
[ "MIT" ]
null
null
null
pyhighlighterclient/research_plan_metric.py
wgoldm/pyhighlighterclient
533da226af7f1103f96edeec8c47fe3f8e067bf1
[ "MIT" ]
null
null
null
pyhighlighterclient/research_plan_metric.py
wgoldm/pyhighlighterclient
533da226af7f1103f96edeec8c47fe3f8e067bf1
[ "MIT" ]
null
null
null
# coding=utf-8 __author__ = 'Mykhailo' import os from pathlib import Path from dotenv import load_dotenv from sgqlc.endpoint.http import HTTPEndpoint as HTTPEndpoint import logging from .schema.silverpond_schema import silverpond_schema from sgqlc.operation import Operation from .fieldset_functions import * class ...
40.065574
121
0.565262
__author__ = 'Mykhailo' import os from pathlib import Path from dotenv import load_dotenv from sgqlc.endpoint.http import HTTPEndpoint as HTTPEndpoint import logging from .schema.silverpond_schema import silverpond_schema from sgqlc.operation import Operation from .fieldset_functions import * class ResearchPlanMe...
true
true
f7f9fc697b9a0715618f38f50199d910f5df537b
908
py
Python
curious_agent/util/custom_json_encoder.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
1
2020-12-20T15:24:31.000Z
2020-12-20T15:24:31.000Z
curious_agent/util/custom_json_encoder.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
8
2019-11-10T16:53:26.000Z
2019-11-23T03:26:34.000Z
curious_agent/util/custom_json_encoder.py
kingspp/curious_agent
01b3c6568f263d60cb8a7e9c3b048d93b64443d4
[ "MIT" ]
null
null
null
import json import numpy as np from torch import nn class CustomJsonEncoder(json.JSONEncoder): """ Special json encoder for numpy types """ def default(self, obj): if isinstance(obj, (np.int_, np.intc, np.intp, np.int8, np.int16, np.int32, np.int64, np.uint8, ...
32.428571
67
0.528634
import json import numpy as np from torch import nn class CustomJsonEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, (np.int_, np.intc, np.intp, np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64)):...
true
true
f7f9fc87e135b4785df9ba0665c0efcec7ca2eb4
263
py
Python
livesettings/urls.py
predatell/django-livesettings
ea2cc09adf50cbac01c671841e8cb3d7e5c292e8
[ "BSD-3-Clause" ]
null
null
null
livesettings/urls.py
predatell/django-livesettings
ea2cc09adf50cbac01c671841e8cb3d7e5c292e8
[ "BSD-3-Clause" ]
null
null
null
livesettings/urls.py
predatell/django-livesettings
ea2cc09adf50cbac01c671841e8cb3d7e5c292e8
[ "BSD-3-Clause" ]
2
2018-12-04T10:47:35.000Z
2019-03-06T17:28:27.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.site_settings, {}, 'satchmo_site_settings'), url(r'^export/$', views.export_as_python, {}, 'settings_export'), url(r'^(?P<group>[^/]+)/$', views.group_settings), ]
29.222222
69
0.65019
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.site_settings, {}, 'satchmo_site_settings'), url(r'^export/$', views.export_as_python, {}, 'settings_export'), url(r'^(?P<group>[^/]+)/$', views.group_settings), ]
true
true
f7f9fd58985adb8a08c6fb3613b2ae424b4c2df6
452,894
py
Python
run_unittests.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
null
null
null
run_unittests.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
null
null
null
run_unittests.py
gh-fork-dump/meson
10c8bd0e6742b297ea5f78bf19711c451f8f0165
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016-2017 The Meson development team # 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 ...
46.241985
199
0.587201
import time import stat import subprocess import re import json import tempfile import textwrap import os import shutil import sys import unittest import platform import pickle import functools import io import operator import threading import zipfile, tarfile import hashlib from itertools import chain f...
true
true
f7f9fd75438250a3f49a7fedc87cc5c32d64ee2d
124
py
Python
knowledge_share/apps.py
vintasoftware/django-knowledge-share
2278a1ee0b47d4c8f3f4e7730558a989247e6b60
[ "MIT" ]
37
2017-02-19T12:40:30.000Z
2021-11-30T06:56:02.000Z
knowledge_share/apps.py
vintasoftware/django-knowledge-share
2278a1ee0b47d4c8f3f4e7730558a989247e6b60
[ "MIT" ]
21
2017-02-15T19:42:38.000Z
2021-05-13T16:52:31.000Z
knowledge_share/apps.py
vintasoftware/django-knowledge-share
2278a1ee0b47d4c8f3f4e7730558a989247e6b60
[ "MIT" ]
4
2017-03-02T13:11:35.000Z
2020-10-23T02:10:26.000Z
# -*- coding: utf-8 from django.apps import AppConfig class KnowledgeShareConfig(AppConfig): name = 'knowledge_share'
17.714286
38
0.741935
from django.apps import AppConfig class KnowledgeShareConfig(AppConfig): name = 'knowledge_share'
true
true
f7f9fda8a2fc91f384b62d3ab46059335846c12e
1,323
py
Python
fabfile/testbeds/testbed_sanity_a6s32_ubuntu_grizzly_multicfgm.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_sanity_a6s32_ubuntu_grizzly_multicfgm.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_sanity_a6s32_ubuntu_grizzly_multicfgm.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
from fabric.api import env host1 = 'root@10.84.13.32' host2 = 'root@10.84.13.33' host3 = 'root@10.84.13.38' host4 = 'root@10.84.13.19' host5 = 'root@10.84.13.22' ext_routers = [] router_asn = 64512 public_vn_rtgt = 10003 public_vn_subnet = "10.204.219.32/29" host_build = 'stack@10.84.24.64' env.roledefs = { 'al...
22.423729
62
0.650038
from fabric.api import env host1 = 'root@10.84.13.32' host2 = 'root@10.84.13.33' host3 = 'root@10.84.13.38' host4 = 'root@10.84.13.19' host5 = 'root@10.84.13.22' ext_routers = [] router_asn = 64512 public_vn_rtgt = 10003 public_vn_subnet = "10.204.219.32/29" host_build = 'stack@10.84.24.64' env.roledefs = { 'al...
true
true
f7f9ff010b2b4f8a00cbf81e975bdca3180081db
7,005
py
Python
ingestion/src/metadata/ingestion/source/mlflow.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
1
2022-03-17T08:55:30.000Z
2022-03-17T08:55:30.000Z
ingestion/src/metadata/ingestion/source/mlflow.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/mlflow.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
32.733645
84
0.601856
import ast import logging from dataclasses import dataclass, field from typing import Iterable, List, Optional from mlflow.entities import RunData from mlflow.entities.model_registry import ModelVersion from mlflow.tracking import MlflowClient from metadata.generated.schema.api.data.createMlModel import Cr...
true
true
f7f9ff7db5f76a1eb3cfc7aa630a3bbd4a2f2502
2,642
py
Python
src/python/murder_in_the_dark_v1/prototype_junk/test.py
paul-felt/nerf-boom
72bbece49a187ae0896b51f01388a8a3d5cdaec8
[ "Apache-2.0" ]
null
null
null
src/python/murder_in_the_dark_v1/prototype_junk/test.py
paul-felt/nerf-boom
72bbece49a187ae0896b51f01388a8a3d5cdaec8
[ "Apache-2.0" ]
null
null
null
src/python/murder_in_the_dark_v1/prototype_junk/test.py
paul-felt/nerf-boom
72bbece49a187ae0896b51f01388a8a3d5cdaec8
[ "Apache-2.0" ]
null
null
null
from time import sleep import board import busio from digitalio import Direction, Pull from RPi import GPIO from adafruit_mcp230xx.mcp23017 import MCP23017 # Initialize the I2C bus: i2c = busio.I2C(board.SCL, board.SDA) # Initialize the MCP23017 chip on the bonnet mcp = MCP23017(i2c) # Optionally change the address...
37.742857
87
0.732021
from time import sleep import board import busio from digitalio import Direction, Pull from RPi import GPIO from adafruit_mcp230xx.mcp23017 import MCP23017 i2c = busio.I2C(board.SCL, board.SDA) mcp = MCP23017(i2c) in range(0, 16): pins.append(mcp.get_pin(pin)) for pin in pins: pin.direction = Directi...
true
true
f7f9ffa08a1c44479e50127445802d03fde50686
4,439
py
Python
components/collector/src/source_collectors/axe_core/accessibility.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/src/source_collectors/axe_core/accessibility.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/src/source_collectors/axe_core/accessibility.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Axe-core accessibility analysis collectors.""" from collections.abc import Collection from typing import Any from base_collectors import JSONFileSourceCollector, SourceCollector from collector_utilities.functions import md5_hash, match_string_or_regular_expression from collector_utilities.type import JSON from mod...
48.25
120
0.631674
from collections.abc import Collection from typing import Any from base_collectors import JSONFileSourceCollector, SourceCollector from collector_utilities.functions import md5_hash, match_string_or_regular_expression from collector_utilities.type import JSON from model import Entities, Entity class AxeAccessibilit...
true
true
f7fa003616bdcd4a64292a7f8efb93d22a4db39a
8,565
py
Python
mythril/laser/ethereum/state/calldata.py
kalloc/mythril
eeee4d7c459189d278ac82a38c5fb778ddd58cdc
[ "MIT" ]
1,887
2018-01-07T10:16:08.000Z
2022-03-31T16:07:26.000Z
mythril/laser/ethereum/state/calldata.py
kalloc/mythril
eeee4d7c459189d278ac82a38c5fb778ddd58cdc
[ "MIT" ]
746
2018-01-09T07:14:01.000Z
2022-03-31T08:12:44.000Z
mythril/laser/ethereum/state/calldata.py
kalloc/mythril
eeee4d7c459189d278ac82a38c5fb778ddd58cdc
[ "MIT" ]
431
2018-01-08T07:47:59.000Z
2022-03-31T13:00:51.000Z
"""This module declares classes to represent call data.""" from typing import cast, Union, Tuple, List from enum import Enum from typing import Any, Union from z3 import Model from z3.z3types import Z3Exception from mythril.laser.ethereum.util import get_concrete_int from mythril.laser.smt import ( Array, B...
27.364217
88
0.563806
from typing import cast, Union, Tuple, List from enum import Enum from typing import Any, Union from z3 import Model from z3.z3types import Z3Exception from mythril.laser.ethereum.util import get_concrete_int from mythril.laser.smt import ( Array, BitVec, Bool, Concat, Expression, If, K,...
true
true
f7fa005819f849751b9d6eebee5b9aab4d7921ae
2,302
py
Python
Basic in Python.py
Akirahori/Hello-Word
96a8307aaec1e7d4544e246a4bdf63b34af4c3c5
[ "MIT" ]
1
2021-12-11T23:10:49.000Z
2021-12-11T23:10:49.000Z
Basic in Python.py
Akirahori/Hello-Word
96a8307aaec1e7d4544e246a4bdf63b34af4c3c5
[ "MIT" ]
null
null
null
Basic in Python.py
Akirahori/Hello-Word
96a8307aaec1e7d4544e246a4bdf63b34af4c3c5
[ "MIT" ]
null
null
null
# Percorrendo uma lista inteira com um laço magicians = ['alice', 'david', 'carolina'] for magician in magicians: print(magician) # Executando mais tarefas em um laço for magicians = ['alice', 'david', 'carolina'] for magician in magicians: print(magician.title() + ", that was a great trick") print("I can'...
26.159091
77
0.700261
magicians = ['alice', 'david', 'carolina'] for magician in magicians: print(magician) magicians = ['alice', 'david', 'carolina'] for magician in magicians: print(magician.title() + ", that was a great trick") print("I can't wait to see your next trick, " + magician.title() + ".\n") # Identação aqui acon...
true
true
f7fa022816bef93d89d5455feb6728875711065d
429
py
Python
water_jug/app.py
justinnhli/justinnhli-oxy
27d7890375b632ad99654d401302c125027dcfa3
[ "MIT" ]
4
2019-03-24T19:27:31.000Z
2021-12-10T07:14:02.000Z
water_jug/app.py
justinnhli/justinnhli-oxy
27d7890375b632ad99654d401302c125027dcfa3
[ "MIT" ]
1
2017-04-13T18:36:08.000Z
2017-04-24T02:39:40.000Z
water_jug/app.py
justinnhli/justinnhli-oxy
27d7890375b632ad99654d401302c125027dcfa3
[ "MIT" ]
1
2017-04-12T00:30:29.000Z
2017-04-12T00:30:29.000Z
from os.path import basename, dirname, join as join_path from flask import Blueprint, render_template APP_NAME = basename(dirname(__file__)) app = Blueprint( APP_NAME, APP_NAME, url_prefix=('/' + APP_NAME), static_folder='static', static_url_path=join_path('/static', APP_NAME), template_folde...
21.45
61
0.710956
from os.path import basename, dirname, join as join_path from flask import Blueprint, render_template APP_NAME = basename(dirname(__file__)) app = Blueprint( APP_NAME, APP_NAME, url_prefix=('/' + APP_NAME), static_folder='static', static_url_path=join_path('/static', APP_NAME), template_folde...
true
true
f7fa02c61201b915ab3e32ac72f9424fec9af8c7
5,495
py
Python
script/payload-compare.py
zyjj1/APM_Elastic_Server
5ad98d03cafdb50625e220fee601b35655b1de9d
[ "ECL-2.0", "Apache-2.0" ]
1,047
2017-08-17T12:12:56.000Z
2022-03-31T23:30:59.000Z
script/payload-compare.py
zyjj1/APM_Elastic_Server
5ad98d03cafdb50625e220fee601b35655b1de9d
[ "ECL-2.0", "Apache-2.0" ]
5,826
2017-08-17T13:53:17.000Z
2022-03-31T18:40:01.000Z
script/payload-compare.py
zyjj1/APM_Elastic_Server
5ad98d03cafdb50625e220fee601b35655b1de9d
[ "ECL-2.0", "Apache-2.0" ]
426
2017-08-17T12:20:36.000Z
2022-03-08T21:03:38.000Z
#!/usr/bin/env python3 from uuid import uuid4 from collections import defaultdict import json import random import zlib NUM_ENDPOINTS = 10 SAMPLE_RATE = 0.1 SPANS_PER_TRANSACTION = 30 NUM_TRANSACTIONS = 10000 print "{:25} {}".format("NUM_ENDPOINTS:", NUM_ENDPOINTS) print "{:25} {}".format("SAMPLE_RATE:", SAMPLE_RATE...
32.134503
114
0.522839
from uuid import uuid4 from collections import defaultdict import json import random import zlib NUM_ENDPOINTS = 10 SAMPLE_RATE = 0.1 SPANS_PER_TRANSACTION = 30 NUM_TRANSACTIONS = 10000 print "{:25} {}".format("NUM_ENDPOINTS:", NUM_ENDPOINTS) print "{:25} {}".format("SAMPLE_RATE:", SAMPLE_RATE) print "{:25} {}".for...
false
true
f7fa02ded7f4751e8fea9a4bac6de3ef50dfba36
20,158
py
Python
bonneville/modules/git.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/git.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/git.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Support for the Git SCM ''' # Import python libs import os import tempfile try: import pipes HAS_PIPES = True except ImportError: HAS_PIPES = False # Import bonneville libs from bonneville import utils, exceptions def __virtual__(): ''' Only load if git exists on the ...
22.958998
109
0.598075
import os import tempfile try: import pipes HAS_PIPES = True except ImportError: HAS_PIPES = False from bonneville import utils, exceptions def __virtual__(): if not all((utils.which('git'), HAS_PIPES)): return False return 'git' def _git_ssh_helper(identity): opts = { '...
true
true
f7fa030a742a453268be46a56f4cef688012241a
387
py
Python
demo_Run_One_Python_Script_From_within_another.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
null
null
null
demo_Run_One_Python_Script_From_within_another.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
3
2020-03-24T18:02:39.000Z
2020-10-06T21:32:23.000Z
demo_Run_One_Python_Script_From_within_another.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
1
2017-07-31T13:15:54.000Z
2017-07-31T13:15:54.000Z
# EDITOR > File and Code Templates put this here! # runfile('D:/Works/Python/Learning1/mySimpleClassExample.py', wdir='D:/Works/Python/Learning1') # runfile('D:/Works/Python/Learning1/mySimpleClassExample.py', wdir='D:/Works/Python/Learning1') #%% from subprocess import call call(["python", "mySimpleClassExample.py"...
24.1875
96
0.728682
from subprocess import call call(["python", "mySimpleClassExample.py"]) call(["python", "mySimpleClassExample.py"]) print('hi')
true
true
f7fa03701088dda9555ccf4eecd3ac6b044a02c4
102
py
Python
suites/Operations/Sidechain/ERC20.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
1
2021-03-12T05:17:02.000Z
2021-03-12T05:17:02.000Z
suites/Operations/Sidechain/ERC20.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
1
2019-11-19T12:10:59.000Z
2019-11-19T12:10:59.000Z
suites/Operations/Sidechain/ERC20.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
2
2019-04-29T10:46:48.000Z
2019-10-29T10:01:03.000Z
# -*- coding: utf-8 -*- import lemoncheesecake.api as lcc @lcc.suite("ERC20") class ERC20: pass
12.75
33
0.647059
import lemoncheesecake.api as lcc @lcc.suite("ERC20") class ERC20: pass
true
true
f7fa03c5dde285160c1688b5d8d829965b654d85
6,958
py
Python
examples/example.py
buttplugio/buttplug-py
ad1972e23143beb5fcb67586f1612d264f87fb17
[ "Apache-2.0" ]
58
2018-11-06T12:08:33.000Z
2022-02-18T07:10:48.000Z
examples/example.py
buttplugio/buttplug-py
ad1972e23143beb5fcb67586f1612d264f87fb17
[ "Apache-2.0" ]
13
2019-07-23T01:54:00.000Z
2021-06-11T17:54:14.000Z
examples/example.py
buttplugio/buttplug-py
ad1972e23143beb5fcb67586f1612d264f87fb17
[ "Apache-2.0" ]
11
2019-10-16T03:11:15.000Z
2022-02-25T02:40:49.000Z
# buttplug-py example code # # Buttplug Clients are fairly simple things, in charge of the following # tasks: # # - Connect to a Buttplug Server and Identify Itself # - Enumerate Devices # - Control Found Devices # # That's about it, really. # # This is a program that connects to a server, scans for devices, and runs #...
38.655556
83
0.699483
# # This is a program that connects to a server, scans for devices, and runs # commands on them when they are found. It'll be copiously commented so you # # NOTE: We'll be talking about this in terms of execution flow, so you'll want # to start at the bottom and work your way up. # These are really the only...
true
true
f7fa03d78efb1f827c11da63ae39c5e9dd95ea51
12,400
py
Python
aiida/cmdline/utils/ascii_vis.py
aiace9/aiida-core
09ac91654648adb684a58d5d2d7b1c11a503dae8
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/cmdline/utils/ascii_vis.py
blokhin/aiida-core
29331b558b45ba74acf1ca633a2d8bfabc1bdd05
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/cmdline/utils/ascii_vis.py
blokhin/aiida-core
29331b558b45ba74acf1ca633a2d8bfabc1bdd05
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.25731
142
0.649677
tate}' if isinstance(node, WorkChainNode) and node.stepper_state_info: string += f' [{node.stepper_state_info}]' return string def format_call_graph(calc_node, info_fn=calc_info): call_tree = build_call_graph(calc_node, info_fn=info_fn) return format_tree_descending(call_tree) def build_c...
true
true
f7fa0509cdaae0288a44e4986f3df8c6537dcf1c
428
py
Python
models/MinMaxCaracteresRegla.py
zamudio-fabian/recuperacion-informacion
71751344b69ba6f822912319e02971da3fc02780
[ "MIT" ]
null
null
null
models/MinMaxCaracteresRegla.py
zamudio-fabian/recuperacion-informacion
71751344b69ba6f822912319e02971da3fc02780
[ "MIT" ]
null
null
null
models/MinMaxCaracteresRegla.py
zamudio-fabian/recuperacion-informacion
71751344b69ba6f822912319e02971da3fc02780
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from models.Regla import * class MinMaxCaracteresRegla(Regla): minCarac = 3 maxCarac = 20 def __init__(self): pass def run(self,tokens): tokensAux = [] for token in tokens: if len(token) >= self.minCa...
20.380952
76
0.570093
import re from models.Regla import * class MinMaxCaracteresRegla(Regla): minCarac = 3 maxCarac = 20 def __init__(self): pass def run(self,tokens): tokensAux = [] for token in tokens: if len(token) >= self.minCarac and len(token) <= self.maxCarac : ...
true
true
f7fa0600f828e84b643a8ea7b4de0dd7c5a20724
600
py
Python
business/migrations/0003_businessprofile_ownby.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
business/migrations/0003_businessprofile_ownby.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
business/migrations/0003_businessprofile_ownby.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-08 22:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0005_userprofile_intro'), ('business', '000...
26.086957
115
0.651667
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0005_userprofile_intro'), ('business', '0002_auto_20170408_2133'), ] operations = [ migrations.Ad...
true
true
f7fa065087f7105ee5795562f1524a3369c9eb2d
705
py
Python
40 Algorithm challenge/challenge 22.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
1
2022-01-27T16:28:51.000Z
2022-01-27T16:28:51.000Z
40 Algorithm challenge/challenge 22.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
null
null
null
40 Algorithm challenge/challenge 22.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
null
null
null
#Challenge 22 #Write an algorithm that: # Asks the user to input how many marks they got on a test. # It should then convert this to a grade between 1 to 9 using the table below and then output the grade to the user. # If they have not scored enough to be given a grade than a ‘U’ grade must be output. mar...
20.735294
120
0.584397
mark = int(imput("how many marks did you get on the test")) if mark >= 10: print("1") elif mark >= 20: print("2") elif mark >= 30: print("3") elif mark >= 40: print("4") elif mark >= 50: print("5") elif mark >= 60: print("6") elif mark >= 70: print("7")...
true
true
f7fa069a622caa04f1688563b7007a0fb5eadda0
759
py
Python
percms/celery.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
percms/celery.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
9
2016-09-15T05:12:36.000Z
2016-10-27T21:38:40.000Z
percms/celery.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'percms.settings') app = Celery('percms', backend='redis://localhost') # Using a string here means the worker...
31.625
66
0.747036
from __future__ import absolute_import, unicode_literals import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'percms.settings') app = Celery('percms', backend='redis://localhost') # the configuration object to child processes. # - namespace='CELERY' means all celery-related configur...
true
true
f7fa06ab8a487cdfc008a1e00e65fa6ce80e2f38
8,718
py
Python
spectral_cube/io/casa_image.py
low-sky/spectral-cube
d1a775c76bf329c23253d27a9f5a28ad40957b1c
[ "BSD-3-Clause" ]
null
null
null
spectral_cube/io/casa_image.py
low-sky/spectral-cube
d1a775c76bf329c23253d27a9f5a28ad40957b1c
[ "BSD-3-Clause" ]
null
null
null
spectral_cube/io/casa_image.py
low-sky/spectral-cube
d1a775c76bf329c23253d27a9f5a28ad40957b1c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division import warnings from astropy import units as u from astropy.io import registry as io_registry from radio_beam import Beam, Beams from .. import DaskSpectralCube, StokesSpectralCube, BooleanArrayMask, DaskVaryingResolutionSpectralCube from ..spectral_cub...
38.575221
112
0.602661
from __future__ import print_function, absolute_import, division import warnings from astropy import units as u from astropy.io import registry as io_registry from radio_beam import Beam, Beams from .. import DaskSpectralCube, StokesSpectralCube, BooleanArrayMask, DaskVaryingResolutionSpectralCube from ..spectral_cub...
true
true
f7fa070f60c6d6b5aad5a2bb5d8ef8e7121c88fa
153
py
Python
froide/account/profile_urls.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
1
2015-10-25T22:51:28.000Z
2015-10-25T22:51:28.000Z
froide/account/profile_urls.py
okfse/froide
5ed80cf6550fb4cbc757029b2c860b53e784eb93
[ "MIT" ]
null
null
null
froide/account/profile_urls.py
okfse/froide
5ed80cf6550fb4cbc757029b2c860b53e784eb93
[ "MIT" ]
null
null
null
from django.conf.urls import patterns urlpatterns = patterns("froide.account.views", (r'^(?P<slug>[-\w\.]+)/$', 'profile', {}, 'account-profile') )
25.5
64
0.633987
from django.conf.urls import patterns urlpatterns = patterns("froide.account.views", (r'^(?P<slug>[-\w\.]+)/$', 'profile', {}, 'account-profile') )
true
true
f7fa0728074ca8565162c609a550899f58bb1480
1,021
py
Python
var/spack/repos/builtin/packages/py-azure-keyvault-certificates/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-azure-keyvault-certificates/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-azure-keyvault-certificates/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 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) class PyAzureKeyvaultCertificates(PythonPackage): """Microsoft Azure Key Vault Certificates Client Library for Python...
48.619048
115
0.711068
class PyAzureKeyvaultCertificates(PythonPackage): homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates" pypi = "azure-keyvault-certificates/azure-keyvault-certificates-4.1.0.zip" version('4.1.0', sha256='544f56480619e1db350f2e7b117b22af778e02...
true
true
f7fa0786f2059f8fb280ceb1dd9b69088add0f19
4,421
py
Python
action/event.py
RayaneCTX/discord-queue-bot
6f140a27c9daa6087b4cf12b871fc52f5eb8aa53
[ "MIT" ]
null
null
null
action/event.py
RayaneCTX/discord-queue-bot
6f140a27c9daa6087b4cf12b871fc52f5eb8aa53
[ "MIT" ]
null
null
null
action/event.py
RayaneCTX/discord-queue-bot
6f140a27c9daa6087b4cf12b871fc52f5eb8aa53
[ "MIT" ]
null
null
null
import os import discord from .helper import * from dotenv import load_dotenv load_dotenv() QUEUE_SERVER_NAME = os.getenv('QUEUE_SERVER_NAME') QUEUE_CHANNEL_NAME = os.getenv('QUEUE_CHANNEL_NAME') # Defines how the bot should respond to specific Discord events. def define_events(bot): # Retrieve the queue text ch...
35.943089
81
0.642162
import os import discord from .helper import * from dotenv import load_dotenv load_dotenv() QUEUE_SERVER_NAME = os.getenv('QUEUE_SERVER_NAME') QUEUE_CHANNEL_NAME = os.getenv('QUEUE_CHANNEL_NAME') def define_events(bot): server = discord.utils.get(bot.guilds, name=QUEUE_SERVER_NAME) queue = discord.util...
true
true
f7fa07916ca74301915131997b07be6ae25bb3a3
202,102
py
Python
pandas/tests/indexing/test_indexing.py
GeNikolja/pandas
7bb498083ce163f92822487dd4b15e9659dd45d7
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-04-28T13:48:34.000Z
2019-04-28T13:48:34.000Z
pandas/tests/indexing/test_indexing.py
GeNikolja/pandas
7bb498083ce163f92822487dd4b15e9659dd45d7
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexing/test_indexing.py
GeNikolja/pandas
7bb498083ce163f92822487dd4b15e9659dd45d7
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-04-28T13:48:35.000Z
2019-04-28T13:48:35.000Z
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101 import sys import nose import itertools import warnings from warnings import catch_warnings from datetime import datetime from pandas.types.common import (is_integer_dtype, is_float_dtype, is_sca...
36.480505
121
0.487002
import sys import nose import itertools import warnings from warnings import catch_warnings from datetime import datetime from pandas.types.common import (is_integer_dtype, is_float_dtype, is_scalar) from pandas.compat import range, lrange, lzip, Stri...
true
true
f7fa079767483c87e199239d28ae6fa12eb8c6c4
3,186
py
Python
src/tools/python/build_carrier_curl_requests.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
1
2022-02-17T21:04:05.000Z
2022-02-17T21:04:05.000Z
src/tools/python/build_carrier_curl_requests.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
src/tools/python/build_carrier_curl_requests.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
import os import easypost # Builds a file containing every cURL request to add a Carrier Account via EasyPost # USAGE: API_KEY=123... venv/bin/python build_carrier_curl_requests.py > carrier_curl_requests.sh URL = os.getenv('URL', 'https://api.easypost.com/v2') API_KEY = os.getenv('API_KEY') def main(): carrie...
41.376623
102
0.685813
import os import easypost URL = os.getenv('URL', 'https://api.easypost.com/v2') API_KEY = os.getenv('API_KEY') def main(): carrier_types = get_carrier_types() for carrier in sorted(carrier_types, key=lambda x: x['type']): curl_request = build_carrier_curl_request(carrier) print(curl_...
true
true
f7fa0869c737f04e9b456939753316fffbe853cf
655
py
Python
github/API_V3/commit_guru/ingester/commitFile_new.py
ai-se/Data_Miner
69a363703c91f95f9f296170bf23b0a01f344088
[ "MIT" ]
1
2022-03-18T02:33:49.000Z
2022-03-18T02:33:49.000Z
github/API_V3/commit_guru/ingester/commitFile_new.py
ai-se/Data_Miner
69a363703c91f95f9f296170bf23b0a01f344088
[ "MIT" ]
1
2019-12-09T16:36:44.000Z
2020-01-23T16:56:47.000Z
github/API_V3/commit_guru/ingester/commitFile_new.py
ai-se/Data_Miner
69a363703c91f95f9f296170bf23b0a01f344088
[ "MIT" ]
null
null
null
""" Representing a single file in a commit @name name of file @loc lines of code in file @authors all authors of the file @nuc number of unique changes made to the file """ class CommitFile: def __init__(self, name, loc, authors, lastchanged, owner,co_commited_files,adev): self.name = name ...
32.75
83
0.670229
class CommitFile: def __init__(self, name, loc, authors, lastchanged, owner,co_commited_files,adev): self.name = name self.loc = loc self.authors = authors self.lastchanged = lastchanged self.nuc = 1 self.owner = owner self.co_commited_files = co_commited_files ...
true
true
f7fa08737254df1652733ad531a1c08f599b0d84
9,746
py
Python
awx/main/tests/functional/api/test_job.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
11,396
2017-09-07T04:56:02.000Z
2022-03-31T13:56:17.000Z
awx/main/tests/functional/api/test_job.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
11,046
2017-09-07T09:30:46.000Z
2022-03-31T20:28:01.000Z
awx/main/tests/functional/api/test_job.py
TinLe/awx
73d8c12e3bf5b193305ed1202549331ea00088c1
[ "Apache-2.0" ]
3,592
2017-09-07T04:14:31.000Z
2022-03-31T23:53:09.000Z
# Python import pytest from unittest import mock from dateutil.parser import parse from dateutil.relativedelta import relativedelta from crum import impersonate import datetime # Django rest framework from rest_framework.exceptions import PermissionDenied from django.utils import timezone # AWX from awx.api.versionin...
42.933921
152
0.716089
import pytest from unittest import mock from dateutil.parser import parse from dateutil.relativedelta import relativedelta from crum import impersonate import datetime from rest_framework.exceptions import PermissionDenied from django.utils import timezone from awx.api.versioning import reverse from awx.api.views ...
true
true
f7fa08f90aeb905f4d5c027c717666e9656b0fb2
8,381
py
Python
keras_/kerascv/models/seresnext.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
2
2020-11-14T08:40:41.000Z
2021-11-08T09:30:41.000Z
keras_/kerascv/models/seresnext.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
null
null
null
keras_/kerascv/models/seresnext.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
2
2020-09-01T12:22:50.000Z
2020-10-24T22:02:35.000Z
""" SE-ResNeXt for ImageNet-1K, implemented in Keras. Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507. """ __all__ = ['seresnext', 'seresnext50_32x4d', 'seresnext101_32x4d', 'seresnext101_64x4d'] import os from keras import layers as nn from keras.models import Model from ....
30.039427
115
0.612099
__all__ = ['seresnext', 'seresnext50_32x4d', 'seresnext101_32x4d', 'seresnext101_64x4d'] import os from keras import layers as nn from keras.models import Model from .common import conv1x1_block, se_block, is_channels_first, flatten from .resnet import res_init_block from .resnext import resnext_bottleneck def sere...
true
true
f7fa091dacfbf5dab51985e0f517f9cbc271d7e7
876
py
Python
scripts/a1_trim_PSF.py
bhishanpdl/DMstack_obsfile_example
6987cc0bc418de209dc660a447f023ca278a7553
[ "MIT" ]
null
null
null
scripts/a1_trim_PSF.py
bhishanpdl/DMstack_obsfile_example
6987cc0bc418de209dc660a447f023ca278a7553
[ "MIT" ]
4
2018-02-17T16:53:46.000Z
2018-02-28T20:37:04.000Z
scripts/a1_trim_PSF.py
bhishanpdl/DMstack_obsfile_example
6987cc0bc418de209dc660a447f023ca278a7553
[ "MIT" ]
null
null
null
#!python # -*- coding: utf-8 -*-# """ Trim the psf to a given size. @author: Bhishan Poudel @date: Feb 19, 2018 @email: bhishanpdl@gmail.com """ # Imports import numpy as np from astropy.io import fits import sys def trim_psf(psf,x,y,r,scale_up): data = fits.getdata(psf) data_trim = data[y-r:y+r,x-r:x+r] ...
19.466667
55
0.593607
import numpy as np from astropy.io import fits import sys def trim_psf(psf,x,y,r,scale_up): data = fits.getdata(psf) data_trim = data[y-r:y+r,x-r:x+r] * scale_up ofile = 'trimmed_' + psf print('Creating: ', ofile) fits.writeto(ofile,data_trim,overwrite=True) def main(): psf ...
true
true
f7fa0977ad39d139fecd35b5571051debf8b7010
1,517
py
Python
cst/waveform.py
gely/coseis
8b608a5f7a5eab570bbd17a6d6caf278e787ada0
[ "BSD-2-Clause" ]
7
2015-11-22T16:16:45.000Z
2019-08-21T09:19:27.000Z
cst/waveform.py
gely/coseis
8b608a5f7a5eab570bbd17a6d6caf278e787ada0
[ "BSD-2-Clause" ]
null
null
null
cst/waveform.py
gely/coseis
8b608a5f7a5eab570bbd17a6d6caf278e787ada0
[ "BSD-2-Clause" ]
5
2016-06-09T22:34:27.000Z
2020-04-12T01:31:11.000Z
""" Waveform data tools. """ import numpy def csmip_vol2(filename, max_year=2050): """ Read strong motion record in CSMIP Volume 2 format. California Strong Motion Instrumentation Program: http://www.strongmotioncenter.org """ # read file ss = open(filename).readlines() j = 0 # ...
22.641791
79
0.439684
import numpy def csmip_vol2(filename, max_year=2050): ss = open(filename).readlines() j = 0 t = ss[j+4][59:69] m = int(ss[j+4][49:51]) d = int(ss[j+4][52:54]) y = int(ss[j+4][55:57]) + 2000 if y > max_year: y -= 100 time = '%04d/%02d/%02dT%s' % (y, m, d, t) lon ...
true
true
f7fa098a599b244315df0e1199b06087e0ccebd4
3,175
py
Python
_downloads/youtube_dl/extractor/noovo.py
andrew4699/Audis
bcf905cc0c04ab92efdeb116c630745149a3076b
[ "Apache-2.0" ]
12
2017-11-01T12:35:47.000Z
2020-02-26T19:41:30.000Z
_downloads/youtube_dl/extractor/noovo.py
andrew4699/Audis
bcf905cc0c04ab92efdeb116c630745149a3076b
[ "Apache-2.0" ]
8
2017-12-05T23:45:54.000Z
2022-02-09T23:28:51.000Z
_downloads/youtube_dl/extractor/noovo.py
andrew4699/Audis
bcf905cc0c04ab92efdeb116c630745149a3076b
[ "Apache-2.0" ]
6
2017-07-15T07:17:29.000Z
2018-03-13T07:31:18.000Z
# coding: utf-8 from __future__ import unicode_literals from .brightcove import BrightcoveNewIE from .common import InfoExtractor from ..compat import compat_str from ..utils import ( int_or_none, smuggle_url, try_get, ) class NoovoIE(InfoExtractor): _VALID_URL = r'https?://(?:[^/]+\.)?noovo\.ca/vide...
32.397959
112
0.524094
from __future__ import unicode_literals from .brightcove import BrightcoveNewIE from .common import InfoExtractor from ..compat import compat_str from ..utils import ( int_or_none, smuggle_url, try_get, ) class NoovoIE(InfoExtractor): _VALID_URL = r'https?://(?:[^/]+\.)?noovo\.ca/videos/(?P<id>[^/]+...
true
true
f7fa0c329a34f4051e5a1cd9abb20db3705486b7
12,783
py
Python
authors/apps/articles/views.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/views.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
29
2018-09-25T13:53:06.000Z
2021-06-10T20:51:58.000Z
authors/apps/articles/views.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
2
2019-08-02T12:23:24.000Z
2019-11-05T12:22:23.000Z
from django.shortcuts import get_object_or_404 from rest_framework import status, serializers, exceptions from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions import (IsAuthenticatedOrReadOnly, IsAuthenticated, AllowAny) from rest_framework....
39.82243
79
0.660252
from django.shortcuts import get_object_or_404 from rest_framework import status, serializers, exceptions from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions import (IsAuthenticatedOrReadOnly, IsAuthenticated, AllowAny) from rest_framework....
true
true
f7fa0c74cacb6871720920abe3c7178246af416a
8,491
py
Python
open_spiel/python/tests/pyspiel_test.py
JialianLee/open_spiel
7d3d7921591aeaf993e94fd9ff7567af66f071c7
[ "Apache-2.0" ]
null
null
null
open_spiel/python/tests/pyspiel_test.py
JialianLee/open_spiel
7d3d7921591aeaf993e94fd9ff7567af66f071c7
[ "Apache-2.0" ]
null
null
null
open_spiel/python/tests/pyspiel_test.py
JialianLee/open_spiel
7d3d7921591aeaf993e94fd9ff7567af66f071c7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
36.44206
80
0.66965
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from absl.testing import absltest import six from open_spiel.python import policy import pyspiel class PyspielTest(absltest.TestCase): def test_registered_names(self): game_na...
true
true
f7fa0cc05200dacf46fdd4caea191e834cfcb5b6
220
py
Python
intro/part05-23_create_tuple/src/create_tuple.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
intro/part05-23_create_tuple/src/create_tuple.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
intro/part05-23_create_tuple/src/create_tuple.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
# Write your solution here def create_tuple(x: int, y: int, z: int): list = [x,y,z] new_tuple = (min(list), max(list), sum(list)) return new_tuple if __name__ == "__main__": print(create_tuple(5, 3, -1))
27.5
49
0.627273
def create_tuple(x: int, y: int, z: int): list = [x,y,z] new_tuple = (min(list), max(list), sum(list)) return new_tuple if __name__ == "__main__": print(create_tuple(5, 3, -1))
true
true
f7fa0debfbbfa411f06c165664cbc224799aaf7b
15,336
py
Python
acq4/devices/Sensapex.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
47
2015-01-05T16:18:10.000Z
2022-03-16T13:09:30.000Z
acq4/devices/Sensapex.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
48
2015-04-19T16:51:41.000Z
2022-03-31T14:48:16.000Z
acq4/devices/Sensapex.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
32
2015-01-15T14:11:49.000Z
2021-07-15T13:44:52.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np import pyqtgraph as pg from pyqtgraph import ptime, Transform3D, solve3DTransform from acq4.util import Qt from acq4.drivers.sensapex import UMP from .Stage import Stage, MoveFuture, ManipulatorAxesCalibrationWindow, StageAxesCalibration...
36.865385
130
0.614567
from __future__ import print_function import numpy as np import pyqtgraph as pg from pyqtgraph import ptime, Transform3D, solve3DTransform from acq4.util import Qt from acq4.drivers.sensapex import UMP from .Stage import Stage, MoveFuture, ManipulatorAxesCalibrationWindow, StageAxesCalibrationWindow class Sensapex...
true
true
f7fa0e337555e305019fdc6f33de37712a47c92f
1,049
py
Python
src/synthesis/evaluation/experiment.py
bcebere/synthetic_data_generation
84d34d00a5859d3db5d160ef8798b865a0c59fe7
[ "MIT" ]
null
null
null
src/synthesis/evaluation/experiment.py
bcebere/synthetic_data_generation
84d34d00a5859d3db5d160ef8798b865a0c59fe7
[ "MIT" ]
null
null
null
src/synthesis/evaluation/experiment.py
bcebere/synthetic_data_generation
84d34d00a5859d3db5d160ef8798b865a0c59fe7
[ "MIT" ]
null
null
null
"""Functions to help perform an experimental run of synthesis""" from itertools import product from pathlib import Path from synthesis.synthesizers.privbayes import PrivBayes from synthesis.synthesizers.marginal import MarginalSynthesizer def synthesis_experiment( X, X_name, synthesizers=None, epsilo...
26.225
64
0.677788
from itertools import product from pathlib import Path from synthesis.synthesizers.privbayes import PrivBayes from synthesis.synthesizers.marginal import MarginalSynthesizer def synthesis_experiment( X, X_name, synthesizers=None, epsilon=None, n_records_synth=None, path=None, verbose=2, )...
true
true
f7fa0e503591c1d339c85a9f1de6d7cffc4f9320
22,784
py
Python
src/main/java/com/google/autoesc/JS.java.py
teddykis/html-contextual-autoescaper-java
4963d700146a06776fe4870d03b53a35cb0908bd
[ "Apache-2.0" ]
5
2015-06-19T17:34:20.000Z
2020-04-03T17:54:03.000Z
src/main/java/com/google/autoesc/JS.java.py
teddykis/html-contextual-autoescaper-java
4963d700146a06776fe4870d03b53a35cb0908bd
[ "Apache-2.0" ]
null
null
null
src/main/java/com/google/autoesc/JS.java.py
teddykis/html-contextual-autoescaper-java
4963d700146a06776fe4870d03b53a35cb0908bd
[ "Apache-2.0" ]
1
2020-10-02T07:58:16.000Z
2020-10-02T07:58:16.000Z
#!python # This generates a java source file by taking each method that has a # parameters (String s, int off, int end) and generating a copy that # takes (char[] s, int off, int end). src = r"""// Copyright (C) 2011 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
34.261654
81
0.577642
src = r"""// Copyright (C) 2011 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
false
true
f7fa0edd6b8252cdfbaeb28433619ed38c01a7f4
394
py
Python
infinitd_server/handler/user.py
rhofour/InfiniTDBackend
8763d64a82d02e4282abff5419e1ab256af41d7e
[ "MIT" ]
null
null
null
infinitd_server/handler/user.py
rhofour/InfiniTDBackend
8763d64a82d02e4282abff5419e1ab256af41d7e
[ "MIT" ]
null
null
null
infinitd_server/handler/user.py
rhofour/InfiniTDBackend
8763d64a82d02e4282abff5419e1ab256af41d7e
[ "MIT" ]
null
null
null
import attr from infinitd_server.game import Game from infinitd_server.handler.base import BaseHandler class UserHandler(BaseHandler): game: Game # See https://github.com/google/pytype/issues/652 def get(self, username): user = self.game.getUserSummaryByName(username) if user: sel...
26.266667
64
0.687817
import attr from infinitd_server.game import Game from infinitd_server.handler.base import BaseHandler class UserHandler(BaseHandler): game: Game def get(self, username): user = self.game.getUserSummaryByName(username) if user: self.write(attr.asdict(user)) else: ...
true
true
f7fa0fac001e8aa7a1f040dafbf5dc57c7be8d5b
1,167
py
Python
model/formfiller.py
talareq/python_training_mantis
3662a8e984ba32f8f309803ecf430b6f4f938886
[ "Apache-2.0" ]
null
null
null
model/formfiller.py
talareq/python_training_mantis
3662a8e984ba32f8f309803ecf430b6f4f938886
[ "Apache-2.0" ]
null
null
null
model/formfiller.py
talareq/python_training_mantis
3662a8e984ba32f8f309803ecf430b6f4f938886
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Project: def __init__(self, name=None, description=None, id=None): self.name = name self.description = description self.id = id def __repr__(self): return "%s:%s:%s" % (self.id, self.name, self.description) def __eq__(self, other): ...
25.369565
102
0.590403
from sys import maxsize class Project: def __init__(self, name=None, description=None, id=None): self.name = name self.description = description self.id = id def __repr__(self): return "%s:%s:%s" % (self.id, self.name, self.description) def __eq__(self, other): ...
true
true
f7fa10cf551a4e3ff4357b120ed04b8f5a2553bc
7,560
py
Python
Lib/test/libregrtest/runtest_mp.py
native-api/cpython
63799136e6c0491bb5d6f4a234d5a775db3458db
[ "PSF-2.0" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/python/lib/test/libregrtest/runtest_mp.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/python/lib/test/libregrtest/runtest_mp.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
1
2018-10-16T15:14:17.000Z
2018-10-16T15:14:17.000Z
import faulthandler import json import os import queue import sys import threading import time import traceback import types from test import support from test.libregrtest.runtest import ( runtest, INTERRUPTED, CHILD_ERROR, PROGRESS_MIN_TIME, format_test_result) from test.libregrtest.setup import setup_tests f...
31.111111
79
0.591931
import faulthandler import json import os import queue import sys import threading import time import traceback import types from test import support from test.libregrtest.runtest import ( runtest, INTERRUPTED, CHILD_ERROR, PROGRESS_MIN_TIME, format_test_result) from test.libregrtest.setup import setup_tests f...
true
true
f7fa11575942ae25beb39eaf06862fe73d89fb5a
4,060
py
Python
heat/tests/test_scaling_template.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/test_scaling_template.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/test_scaling_template.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
39.038462
79
0.578325
import functools import itertools from heat.common import short_id from heat.scaling import template from heat.tests import common class ResourceTemplatesTest(common.HeatTestCase): def setUp(self): super(ResourceTemplatesTest, self).setUp() ids = ('stubbed-id-%s' % (i,) for i in ite...
true
true
f7fa116ead852c6bca5653c974a862226ff65ca8
5,845
py
Python
tests/testflows/window_functions/regression.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1
2022-02-27T15:21:20.000Z
2022-02-27T15:21:20.000Z
tests/testflows/window_functions/regression.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
16
2022-02-14T15:53:29.000Z
2022-03-25T18:39:16.000Z
tests/testflows/window_functions/regression.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys from testflows.core import * append_path(sys.path, "..") from helpers.cluster import Cluster from helpers.argparser import argparser from window_functions.requirements import ( SRS019_ClickHouse_Window_Functions, RQ_SRS_019_ClickHouse_WindowFunctions, ) xfails = {...
37.954545
129
0.663644
import os import sys from testflows.core import * append_path(sys.path, "..") from helpers.cluster import Cluster from helpers.argparser import argparser from window_functions.requirements import ( SRS019_ClickHouse_Window_Functions, RQ_SRS_019_ClickHouse_WindowFunctions, ) xfails = { "tests/:/frame cl...
true
true
f7fa12e13a54bdde0476908db3f9321654c8d572
2,862
py
Python
pixloc/utils/eval.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
457
2021-03-17T00:39:33.000Z
2022-03-30T02:38:19.000Z
pixloc/utils/eval.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
31
2021-03-17T07:35:34.000Z
2022-03-31T07:07:56.000Z
pixloc/utils/eval.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
56
2021-03-17T05:55:09.000Z
2022-03-15T01:38:35.000Z
import logging from pathlib import Path from typing import Union, Dict, Tuple, Optional import numpy as np from .io import parse_image_list from .colmap import qvec2rotmat, read_images_binary, read_images_text logger = logging.getLogger(__name__) def evaluate(gt_sfm_model: Path, predictions: Union[Dict, Path], ...
35.333333
74
0.621593
import logging from pathlib import Path from typing import Union, Dict, Tuple, Optional import numpy as np from .io import parse_image_list from .colmap import qvec2rotmat, read_images_binary, read_images_text logger = logging.getLogger(__name__) def evaluate(gt_sfm_model: Path, predictions: Union[Dict, Path], ...
true
true
f7fa133bac2446b8b36aa258c6b5da3eef61e92c
1,771
py
Python
qakgc/linker/linker.py
pbmstrk/odqa
b5917237d5162eae208382e5d25b0c8c47018681
[ "BSD-3-Clause" ]
4
2020-09-04T16:58:52.000Z
2021-06-23T03:37:18.000Z
qakgc/linker/linker.py
pbmstrk/QAKGC
b5917237d5162eae208382e5d25b0c8c47018681
[ "BSD-3-Clause" ]
3
2020-07-07T23:45:21.000Z
2020-07-09T11:49:23.000Z
qakgc/linker/linker.py
pbmstrk/odqa
b5917237d5162eae208382e5d25b0c8c47018681
[ "BSD-3-Clause" ]
null
null
null
import logging import argparse import blink.main_dense as main_dense logger = logging.getLogger(__name__) class EntityLinker: def __init__(self, model_path, logger=None): self.logger = logger self.models_path = model_path self.config = { "test_entities": None, ...
36.142857
100
0.645963
import logging import argparse import blink.main_dense as main_dense logger = logging.getLogger(__name__) class EntityLinker: def __init__(self, model_path, logger=None): self.logger = logger self.models_path = model_path self.config = { "test_entities": None, ...
true
true
f7fa1373844f3e5b04ea253d13ca7c3d705f60e3
2,114
py
Python
backtoshops/events/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
backtoshops/events/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
backtoshops/events/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # # Copyright © Dragon Dollar Limited # contact: contact@dragondollar.com # # This software is a collection of webservices designed to provide a secure # and scalable framework to build e-commerce websites. # # This s...
43.142857
77
0.712867
true
true
f7fa1485c1ce165fe1fb8ae31a98f4def312e691
9,830
py
Python
2018/main.py
yingshaoxo/TGAsk
8def7d1fa25974322860f1ea3fe7078fde7edbee
[ "MIT" ]
3
2020-06-11T12:59:13.000Z
2021-12-15T04:55:37.000Z
2018/main.py
yingshaoxo/TGAsk
8def7d1fa25974322860f1ea3fe7078fde7edbee
[ "MIT" ]
null
null
null
2018/main.py
yingshaoxo/TGAsk
8def7d1fa25974322860f1ea3fe7078fde7edbee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import threading import maya from auto_everything.base import IO from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, MessageHandler, Filters from telegram import InlineKeyboardButton, InlineKeyboardMarkup import os import time """ export ...
32.019544
131
0.595524
import logging import threading import maya from auto_everything.base import IO from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, MessageHandler, Filters from telegram import InlineKeyboardButton, InlineKeyboardMarkup import os import time master_user_id = int(os.getenv("master_user_id", "1315...
true
true
f7fa17b9f735cdbfcb40ebd59a4a0a1582b61f53
779
py
Python
darkchess/tests/test_normalgame/test_normalgame.py
vishalsubbiah/darkchess
c626de547c3e58a77f25fddb86de9b07bc47ae86
[ "Apache-2.0" ]
null
null
null
darkchess/tests/test_normalgame/test_normalgame.py
vishalsubbiah/darkchess
c626de547c3e58a77f25fddb86de9b07bc47ae86
[ "Apache-2.0" ]
null
null
null
darkchess/tests/test_normalgame/test_normalgame.py
vishalsubbiah/darkchess
c626de547c3e58a77f25fddb86de9b07bc47ae86
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np from darkchess.src.board import Board from darkchess.src.gamengine import GameEngine from mock import patch def test_normal_game(): """ Plays 100 games with random moves to test the mechanics """ num_games = 100 num_moves = 300 for i in range(num_games): ...
28.851852
72
0.590501
import pytest import numpy as np from darkchess.src.board import Board from darkchess.src.gamengine import GameEngine from mock import patch def test_normal_game(): num_games = 100 num_moves = 300 for i in range(num_games): print("game", i+1) board = Board() game = GameEngine(board...
true
true
f7fa184eba534135c8de9fdf6f7eebf36d1427f5
4,647
py
Python
4-Informer/chainInformer/data/merge_2018_2020_data.py
wang-yuhao/On-the-topological-propertyof-dynamic-transaction-graph
8dc8c3870befb82581099e3a6edc9f9734c23f31
[ "MIT" ]
1
2021-01-13T20:54:18.000Z
2021-01-13T20:54:18.000Z
4-Informer/chainInformer/data/merge_2018_2020_data.py
wang-yuhao/On-the-topological-propertyof-dynamic-transaction-graph
8dc8c3870befb82581099e3a6edc9f9734c23f31
[ "MIT" ]
null
null
null
4-Informer/chainInformer/data/merge_2018_2020_data.py
wang-yuhao/On-the-topological-propertyof-dynamic-transaction-graph
8dc8c3870befb82581099e3a6edc9f9734c23f31
[ "MIT" ]
1
2020-12-03T10:30:53.000Z
2020-12-03T10:30:53.000Z
# Merge 2018-2020 data for Informer # This process will generate merged base, betti, betti_deri, and fl files in PRICESSED_DIR. import pandas as pd import os from sklearn.decomposition import PCA import datetime import math import pandas as pd import numpy as np import torch BETTI_NUMBER_DIR = "/content/drive/MyDriv...
49.43617
135
0.688832
import pandas as pd import os from sklearn.decomposition import PCA import datetime import math import pandas as pd import numpy as np import torch BETTI_NUMBER_DIR = "/content/drive/MyDrive/aliyun/betti_number/" AMOMAT_DIR = "/content/drive/MyDrive/aliyun/amoMat/" OCCMAT_DIR = "/content/drive/MyDrive/aliyun/occMa...
true
true
f7fa18721db026e7b14c1241ab312e2fffe0a037
10,420
py
Python
adafruit_featherwing/rtc_featherwing.py
FoamyGuy/Adafruit_CircuitPython_FeatherWing
bdddd820ede356026be18319b045a414e450002d
[ "MIT" ]
null
null
null
adafruit_featherwing/rtc_featherwing.py
FoamyGuy/Adafruit_CircuitPython_FeatherWing
bdddd820ede356026be18319b045a414e450002d
[ "MIT" ]
null
null
null
adafruit_featherwing/rtc_featherwing.py
FoamyGuy/Adafruit_CircuitPython_FeatherWing
bdddd820ede356026be18319b045a414e450002d
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Melissa LeBlanc-Williams for Adafruit Industries LLC # # 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 li...
31.768293
98
0.588292
__version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git" import time from collections import namedtuple import board import adafruit_ds3231 class RTCFeatherWing: def __init__(self, i2c=None): if i2c is None: i2c = boar...
true
true
f7fa18da7f648c7aa0b0c2361e2e592e2b9c2cb3
794
py
Python
mysite/main/models.py
Anjani100/mysite-tuts
bf145118f2bbde97d389acfe827fbed444522c04
[ "MIT" ]
null
null
null
mysite/main/models.py
Anjani100/mysite-tuts
bf145118f2bbde97d389acfe827fbed444522c04
[ "MIT" ]
null
null
null
mysite/main/models.py
Anjani100/mysite-tuts
bf145118f2bbde97d389acfe827fbed444522c04
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class Tutorial(models.Model): tutorial_title = models.CharField(max_length = 200) tutorial_published =...
31.76
86
0.799748
from django.db import models from datetime import datetime from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver class Tutorial(models.Model): tutorial_title = models.CharField(max_length = 200) tutorial_published = models.DateTimeField("dat...
true
true