hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5a2f3c31745d1aa639e58a57a59cb204318e38ea
458
py
Python
src/pip/__init__.py
DanielShaulov/pip
f81cfff06120a0c63945d36ad75229f137b3a245
[ "MIT" ]
null
null
null
src/pip/__init__.py
DanielShaulov/pip
f81cfff06120a0c63945d36ad75229f137b3a245
[ "MIT" ]
2
2020-06-14T15:29:09.000Z
2020-07-30T05:06:50.000Z
src/pip/__init__.py
DanielShaulov/pip
f81cfff06120a0c63945d36ad75229f137b3a245
[ "MIT" ]
2
2021-05-03T04:02:50.000Z
2021-05-18T01:34:45.000Z
from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional __version__ = "20.3.dev0" def main(args=None): # type: (Optional[List[str]]) -> int """This is an internal API only meant for use by pip's own console scripts. For additional details,...
24.105263
79
0.718341
a2e632bd971ac3c846336a496b04f9587c1f1efe
886
py
Python
src/common.py
christopher-dG/osr2mp4-bot
2ef665cf7dc313bb5dacbff022b7a2e1a9543957
[ "MIT" ]
2
2020-10-20T16:15:27.000Z
2020-12-29T16:31:31.000Z
src/common.py
christopher-dG/osr2mp4-bot
2ef665cf7dc313bb5dacbff022b7a2e1a9543957
[ "MIT" ]
null
null
null
src/common.py
christopher-dG/osr2mp4-bot
2ef665cf7dc313bb5dacbff022b7a2e1a9543957
[ "MIT" ]
null
null
null
import os from datetime import timedelta from typing import Callable, Optional, cast from praw.models import Comment from redis import Redis from rq import Queue QUEUE = Queue( connection=Redis(os.getenv("REDIS_HOST", "localhost")), default_timeout=int(os.getenv("JOB_TIMEOUT", "1800")), ) def enqueue( ...
26.848485
87
0.671558
3cc69b4ee40b17da15e2f21af6aa7ac3ae63caf6
380
py
Python
awwards/migrations/0002_remove_profile_email.py
derrokip34/Awwards
78b6f3c24805c40410dc64a3770e69e308488bcf
[ "MIT" ]
null
null
null
awwards/migrations/0002_remove_profile_email.py
derrokip34/Awwards
78b6f3c24805c40410dc64a3770e69e308488bcf
[ "MIT" ]
3
2021-06-08T21:44:46.000Z
2021-09-08T02:08:10.000Z
awwards/migrations/0002_remove_profile_email.py
derrokip34/Awwards
78b6f3c24805c40410dc64a3770e69e308488bcf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-06-05 10:44 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('awwards', '0001_initial'), ] operations = [ migrations.RemoveField( model...
19
46
0.602632
9d5f53ba1ebcbff2417f56b00880f5bbeda8b96b
2,066
py
Python
plugins/SerpentMiniMetroGamePlugin/files/api/image_classifier.py
jarulsamy/mini-metro
79d3f3645f45f2d3331d2385f106aa7cb1f4cc5c
[ "MIT" ]
25
2018-10-20T17:09:49.000Z
2022-03-15T12:10:44.000Z
plugins/SerpentMiniMetroGamePlugin/files/api/image_classifier.py
jarulsamy/mini-metro
79d3f3645f45f2d3331d2385f106aa7cb1f4cc5c
[ "MIT" ]
9
2020-01-28T22:29:35.000Z
2022-03-11T23:26:15.000Z
plugins/SerpentMiniMetroGamePlugin/files/api/image_classifier.py
jarulsamy/mini-metro
79d3f3645f45f2d3331d2385f106aa7cb1f4cc5c
[ "MIT" ]
1
2020-05-04T01:52:37.000Z
2020-05-04T01:52:37.000Z
from abc import ABC, abstractmethod from pathlib import Path from fastai.vision import load_learner, Image import torch class ImageClassifier(ABC): @abstractmethod def predict(self, image_array): pass @abstractmethod def _load_model(self, model_path): pass class FastaiImageClassifi...
25.506173
89
0.660697
b8332acdc3a5dbedb4fc5cd717192c899a79c079
999
py
Python
Kotov_Ivan_dz_4/utils.py
IvanKotov/2075_GB_Python_Ivan_Kotov
2a587ce088166cafbff597e828695bc51cfcc28d
[ "MIT" ]
null
null
null
Kotov_Ivan_dz_4/utils.py
IvanKotov/2075_GB_Python_Ivan_Kotov
2a587ce088166cafbff597e828695bc51cfcc28d
[ "MIT" ]
null
null
null
Kotov_Ivan_dz_4/utils.py
IvanKotov/2075_GB_Python_Ivan_Kotov
2a587ce088166cafbff597e828695bc51cfcc28d
[ "MIT" ]
null
null
null
import requests def currency_rates(code: str) -> float: """возвращает курс валюты `code` по отношению к рублю""" url = 'http://www.cbr.ru/scripts/XML_daily.asp' res = requests.get(url) if res.status_code == 200: final_text = res.text.upper() i = final_text.find('<CHARCODE>' + code.uppe...
39.96
132
0.628629
296d9293981b0857975dccef5ac95fa9d934d4d5
7,161
py
Python
hloc/match_features_batch.py
oldshuren/Hierarchical-Localization
334327956138c98af209e5ae9e13a0e222e97c2c
[ "Apache-2.0" ]
null
null
null
hloc/match_features_batch.py
oldshuren/Hierarchical-Localization
334327956138c98af209e5ae9e13a0e222e97c2c
[ "Apache-2.0" ]
null
null
null
hloc/match_features_batch.py
oldshuren/Hierarchical-Localization
334327956138c98af209e5ae9e13a0e222e97c2c
[ "Apache-2.0" ]
null
null
null
import argparse import torch from pathlib import Path import h5py import numpy as np import logging from tqdm import tqdm import pprint from . import matchers from .utils.base_model import dynamic_load from .utils.parsers import names_to_pair ''' A set of standard configurations that can be directly selected from th...
38.294118
132
0.606898
7f649406545f061ea42defa5bf5cf2e4aadc75c7
41,947
py
Python
third_party/upb/third_party/protobuf/python/google/protobuf/internal/json_format_test.py
MajorityAttack/gRPC-1.18.0
ee9e7f65f12639760943357f99331271d5d4b75e
[ "Apache-2.0" ]
null
null
null
third_party/upb/third_party/protobuf/python/google/protobuf/internal/json_format_test.py
MajorityAttack/gRPC-1.18.0
ee9e7f65f12639760943357f99331271d5d4b75e
[ "Apache-2.0" ]
null
null
null
third_party/upb/third_party/protobuf/python/google/protobuf/internal/json_format_test.py
MajorityAttack/gRPC-1.18.0
ee9e7f65f12639760943357f99331271d5d4b75e
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
40.489382
80
0.618685
71bb9269cab4b8a56c645e647b59434a59d17bd8
1,252
py
Python
mydemo/randomData/gennerator.py
541867329/pydata-notebook
867f204d7abac96dbae80e6cdd2e3661e554d1dd
[ "MIT" ]
null
null
null
mydemo/randomData/gennerator.py
541867329/pydata-notebook
867f204d7abac96dbae80e6cdd2e3661e554d1dd
[ "MIT" ]
null
null
null
mydemo/randomData/gennerator.py
541867329/pydata-notebook
867f204d7abac96dbae80e6cdd2e3661e554d1dd
[ "MIT" ]
null
null
null
import mydemo.randomData.UtilrandomData as randomData import random layer5path = '/home/yjhl/PycharmProjects/pydata-notebook/mydemo/randomData/layer5' with open(layer5path) as file: data = file.read() codelist = data.split('\n') # print(codelist) for i in range(0, 1): for i in range(0, 100000): ind = i...
41.733333
164
0.528754
93c48c0bb1eddfcb6292014194681550e9d6ab48
2,045
py
Python
src/conf/celeryconf.py
dholdaway/OasisPlatform
0a405ef7b361d4e74567d6ce883f7124455eb199
[ "BSD-3-Clause" ]
36
2018-07-23T02:05:03.000Z
2021-08-06T23:08:32.000Z
src/conf/celeryconf.py
dholdaway/OasisPlatform
0a405ef7b361d4e74567d6ce883f7124455eb199
[ "BSD-3-Clause" ]
399
2018-10-01T09:10:34.000Z
2022-03-22T16:41:25.000Z
src/conf/celeryconf.py
dholdaway/OasisPlatform
0a405ef7b361d4e74567d6ce883f7124455eb199
[ "BSD-3-Clause" ]
17
2018-08-01T08:48:00.000Z
2021-12-09T04:52:08.000Z
from src.conf.iniconf import settings #: Celery config - ignore result? CELERY_IGNORE_RESULT = False #: Celery config - IP address of the server running RabbitMQ and Celery BROKER_URL = "amqp://{RABBIT_USER}:{RABBIT_PASS}@{RABBIT_HOST}:{RABBIT_PORT}//".format( RABBIT_USER=settings.get('celery', 'rabbit_user', fal...
37.181818
111
0.722249
6d73d27a6e6e64277a5b080b146da780df9c0e6a
2,252
py
Python
src/wizard/controller/frmAffiliationDialog.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
src/wizard/controller/frmAffiliationDialog.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
src/wizard/controller/frmAffiliationDialog.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
import wx from src.wizard.view.clsCustomDialog \ import CustomDialog from odm2api.ODM2.models import People class AffiliationDialog(CustomDialog): def __init__(self, parent, title): super(AffiliationDialog, self).__init__(\ title=title, parent=parent) self.pare...
30.432432
85
0.59103
c7a80fbdacbe1e7331e7c1180892cf965912cbbc
5,752
py
Python
oral_args/united_states/federal_appellate/ca9.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
oral_args/united_states/federal_appellate/ca9.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
oral_args/united_states/federal_appellate/ca9.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
"""Scraper for Ninth Circuit of Appeals CourtID: ca9 Court Short Name: ca9 Author: Andrei Chelaru Reviewer: mlr Date created: 20 July 2014 History: - 2014-11-04: Updated by mlr to account for (1) varied audio file locations, (2) Finding the latest 100 items, (3) Handling bad audio URLs. """ from datetim...
40.223776
91
0.582754
644c12f5b0253a0254c5f7d64dc1418d5743e2f1
212
py
Python
{{cookiecutter.project_name}}/src/config.py
nicohlr/ml-template
192abef6e1400d6e94183cc066750290986c9041
[ "RSA-MD" ]
null
null
null
{{cookiecutter.project_name}}/src/config.py
nicohlr/ml-template
192abef6e1400d6e94183cc066750290986c9041
[ "RSA-MD" ]
null
null
null
{{cookiecutter.project_name}}/src/config.py
nicohlr/ml-template
192abef6e1400d6e94183cc066750290986c9041
[ "RSA-MD" ]
null
null
null
TRAIN_FILE = "../input/train_folds.csv" TEST_FILE = "../input/test.csv" MODEL_OUTPUT = "../models/" N_FOLDS = 5 RANDOM_STATE = 42 TARGET_LABEL = "{{cookiecutter.target_label}}" METRIC = "{{cookiecutter.metric}}"
26.5
46
0.707547
335b680c1d09062406efd5c4c696d2e9843a1d0c
936
py
Python
bin/fixedcase/train.py
dbonadiman/acl-anthology
7ea46b11fc9fb1ff60eba17cfd4f8d170d2d2cdc
[ "Apache-2.0" ]
1
2019-12-05T16:22:26.000Z
2019-12-05T16:22:26.000Z
bin/fixedcase/train.py
dbonadiman/acl-anthology
7ea46b11fc9fb1ff60eba17cfd4f8d170d2d2cdc
[ "Apache-2.0" ]
null
null
null
bin/fixedcase/train.py
dbonadiman/acl-anthology
7ea46b11fc9fb1ff60eba17cfd4f8d170d2d2cdc
[ "Apache-2.0" ]
2
2021-09-16T07:16:15.000Z
2021-10-30T06:41:55.000Z
#!/usr/bin/env python3 import xml.etree.ElementTree as ET import collections import sys from common import * if __name__ == "__main__": c = collections.defaultdict(collections.Counter) for xmlfile in sys.argv[1:]: tree = ET.parse(xmlfile) for paper in tree.getroot().findall('paper'): ...
32.275862
68
0.574786
6846fd92c8b783a3b7396e7827622b49796b81b1
3,079
py
Python
app/app/settings.py
sergiorosales77/rest_recipe
51cb63549b53351da8565b66744682ca7b637bc8
[ "MIT" ]
null
null
null
app/app/settings.py
sergiorosales77/rest_recipe
51cb63549b53351da8565b66744682ca7b637bc8
[ "MIT" ]
null
null
null
app/app/settings.py
sergiorosales77/rest_recipe
51cb63549b53351da8565b66744682ca7b637bc8
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bui...
25.446281
91
0.694381
97a10f488c208bc0b6519b2c1fa69854ddde67ff
18,294
py
Python
intersight/models/iam_trust_point.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/iam_trust_point.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/iam_trust_point.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamTrustPoint(obj...
33.505495
738
0.638297
dc95e29a6115943a549549de4a0477f4c15a8196
122
py
Python
EDMC/local/exporter.py
hillcrestpaul0719/Database
d2b2ced46171168651228407489979649f5f4368
[ "MIT" ]
null
null
null
EDMC/local/exporter.py
hillcrestpaul0719/Database
d2b2ced46171168651228407489979649f5f4368
[ "MIT" ]
null
null
null
EDMC/local/exporter.py
hillcrestpaul0719/Database
d2b2ced46171168651228407489979649f5f4368
[ "MIT" ]
null
null
null
from .database import Database import os import sys if __name__ == "__main__": local_database_dir_path = sys.argv[1]
17.428571
41
0.754098
44431e4f1e7d1a47fc08d7f5b9ef77e48418fdfa
384
py
Python
itens.py
isaberamos/Programinhas
d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d
[ "MIT" ]
1
2021-12-28T21:37:33.000Z
2021-12-28T21:37:33.000Z
itens.py
isaberamos/Programinhas
d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d
[ "MIT" ]
null
null
null
itens.py
isaberamos/Programinhas
d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d
[ "MIT" ]
null
null
null
print("-" * 50) print(" LISTAGEM DE PREÇOS") print("-" * 50) itens = ("Massa italiana", 15.50, "Vinho tinto seco gringo", 65.75, "Cogumelos selvagens", 11.50, "Cebola roxa", 3.77) for pos in range(0, len(itens)): if pos % 2 == 0: print(f"{itens[pos]:.<35}",end="") ...
25.6
42
0.505208
dd49285827df91a46b9d5ca1a587bba058ef9932
122
py
Python
Manhattan_distance/Python/jcla1/manhattan_distance.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Manhattan_distance/Python/jcla1/manhattan_distance.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Manhattan_distance/Python/jcla1/manhattan_distance.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
def manhattan_distance(p, q): if len(p) != len(q): return 0 return sum([abs(p[i] - q[i]) for i in xrange(len(p))])
40.666667
58
0.590164
86cef5bc9b32b208fa241a77686d5be9e275dbbc
436
py
Python
oatomobile/myscripts/test.py
dHonerkamp/oatomobile
df16860e21989690f17146d84fc78632eb58bf76
[ "Apache-2.0" ]
null
null
null
oatomobile/myscripts/test.py
dHonerkamp/oatomobile
df16860e21989690f17146d84fc78632eb58bf76
[ "Apache-2.0" ]
null
null
null
oatomobile/myscripts/test.py
dHonerkamp/oatomobile
df16860e21989690f17146d84fc78632eb58bf76
[ "Apache-2.0" ]
null
null
null
from oatomobile.core.dataset import Episode from oatomobile.core.dataset import tokens if __name__ == '__main__': output_dir = '/home/honerkam/repos/oatomobile/logs/autopilot/test' e = Episode(output_dir, '4d07f65c76114dafb3dacd055e121269') sequence = e.fetch() obs = [] for s in sequence: ...
24.222222
70
0.655963
9bb129d3dcee8d655364056d0857df2b9a77c6f7
675
py
Python
qcloudsdkcdb/ModifyCdbInstanceNameRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcdb/ModifyCdbInstanceNameRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcdb/ModifyCdbInstanceNameRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class ModifyCdbInstanceNameRequest(Request): def __init__(self): super(ModifyCdbInstanceNameRequest, self).__init__( 'cdb', 'qcloudcliV1', 'ModifyCdbInstanceName', 'cdb.api.qcloud.com') def get_cdbInstanceId(self): ...
30.681818
80
0.712593
0cfb6fcda63ccbf9851fa9a8cd502ef4ac125dac
15,967
py
Python
augur/routes/auggie.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
443
2018-09-19T00:30:36.000Z
2022-03-31T11:39:13.000Z
augur/routes/auggie.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
613
2018-09-19T18:31:13.000Z
2022-03-31T05:41:16.000Z
augur/routes/auggie.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
764
2018-10-17T01:08:10.000Z
2022-03-31T05:25:01.000Z
#SPDX-License-Identifier: MIT from flask import Response from flask import request import datetime import base64 import sqlalchemy as s import pandas as pd from augur.util import metric_metadata import boto3 import json from boto3.dynamodb.conditions import Key, Attr import os import requests import slack # def annot...
36.371298
214
0.481806
cca69aaa4128de9b8a03e61eccf3d05d2e4d7c5b
25,776
py
Python
ibmsecurity/isam/web/reverse_proxy/junctions.py
SlawekGawlowski/Ibmsecurity-QRadar
a11a99fd1dd3545caafbd85eb5a850066ea163dc
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
SlawekGawlowski/Ibmsecurity-QRadar
a11a99fd1dd3545caafbd85eb5a850066ea163dc
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
SlawekGawlowski/Ibmsecurity-QRadar
a11a99fd1dd3545caafbd85eb5a850066ea163dc
[ "Apache-2.0" ]
1
2019-05-20T03:14:57.000Z
2019-05-20T03:14:57.000Z
import logging from ibmsecurity.utilities import tools logger = logging.getLogger(__name__) # URI for this module uri = "/wga/reverseproxy" requires_modules = ["wga"] requires_version = None def get_all(isamAppliance, reverseproxy_id, check_mode=False, force=False): """ Retrieving a list of standard and vi...
49.66474
130
0.607387
1e229dfc8d7b5c390ae8d5e54435e5d52b16a842
2,297
py
Python
BSTClosestvalue.py
Stephen-Kamau/Algo
b0b49861388053bb3ae2b7c18bbc16cc5b5f7920
[ "MIT" ]
1
2021-07-07T21:59:39.000Z
2021-07-07T21:59:39.000Z
BSTClosestvalue.py
Stephen-Kamau/Algo
b0b49861388053bb3ae2b7c18bbc16cc5b5f7920
[ "MIT" ]
null
null
null
BSTClosestvalue.py
Stephen-Kamau/Algo
b0b49861388053bb3ae2b7c18bbc16cc5b5f7920
[ "MIT" ]
null
null
null
class BST: """ BST DATASTRUCTURE IMPLIMENTATION """ def __init__(self, value): self.value = value self.left = None self.right = None def insert(self, value): if value < self.value: if self.left is None: self.left = BST(value) ...
26.102273
75
0.60296
161021c6a14b006c767d40fee4f27d3f18827442
744
py
Python
BizPy/openpyxl/20200513/horizontal_chart.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
18
2016-08-15T00:24:44.000Z
2020-11-30T15:11:52.000Z
BizPy/openpyxl/20200513/horizontal_chart.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
null
null
null
BizPy/openpyxl/20200513/horizontal_chart.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
6
2016-09-28T10:47:03.000Z
2020-10-14T10:20:06.000Z
import pandas as pd from openpyxl import Workbook from openpyxl.chart import BarChart, Reference wb = Workbook() ws = wb.active df = pd.read_csv('population.csv') ws.append(df.columns.tolist()) for row in df.values: ws.append(list(row)) row_length = 1 + len(df.values) values = Reference(ws, min_col=...
25.655172
76
0.72043
2724b8d1d02117b37e9ebb4155a65be1804434c3
1,479
py
Python
setup.py
rohan22shah/slash-phase3
74dbdd7eba3408d13793a15a66f414d01a41cd11
[ "MIT" ]
1
2021-11-30T06:16:37.000Z
2021-11-30T06:16:37.000Z
setup.py
rohan22shah/slash-phase3
74dbdd7eba3408d13793a15a66f414d01a41cd11
[ "MIT" ]
18
2021-11-29T20:16:04.000Z
2021-12-05T01:01:59.000Z
setup.py
rohan22shah/slash-phase3
74dbdd7eba3408d13793a15a66f414d01a41cd11
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='slash', version='3.0', description='Slash is a command line tool that scrapes the most popular e-commerce websites to get the best deals on the searched items across these websites.', author='Anshul, Bhavya, Darshan, Pragna, Rohan', author_email='rohan22...
32.152174
166
0.533469
39d65a20d2d68f81a336a7ed300778c85bc5d415
3,979
py
Python
alipay/aop/api/request/KoubeiMarketingToolPointsQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/KoubeiMarketingToolPointsQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/KoubeiMarketingToolPointsQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiMarketingToolPointsQueryModel import KoubeiMarketingToolPointsQueryModel class KoubeiMarketingToolPointsQueryRequest(object): ...
27.441379
148
0.645388
a73c4a88e47f37e3dab7e5f074f8a39261afae44
8,641
py
Python
scripts/trainer.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
1
2018-12-19T17:46:58.000Z
2018-12-19T17:46:58.000Z
scripts/trainer.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
null
null
null
scripts/trainer.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
null
null
null
from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D from keras.layers.core import Dense from keras.layers import BatchNormalization from keras.applications.vgg16 import VGG16 from keras.preprocessing import image from keras.models import Model import keras.backend as K from...
39.099548
134
0.648189
2cb369ed8b27375d63f59de6400a68142cf32c96
359
py
Python
ex067b.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
ex067b.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
ex067b.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
print('-' * 30) print('GERADOR DE TABUADA COM FOR') print('-' * 30, '\n') while True: tabuada = int(input('Digite um número: ')) if tabuada < 0: break for c in range (0, 10): print(f'{tabuada} * {c} = {tabuada * c}') print('-' * 20) print('Obrigado por utilizar o Gerador de Tabuadas. '...
25.642857
53
0.562674
b0daca9c323b1ece99fb044160bb0cbe6cb687f6
1,263
py
Python
examples/gizmo_tft_demo.py
caternuson/Adafruit_CircuitPython_Gizmos
303a11123571bd5e7c476ddfc64c3a439dfd64c4
[ "Unlicense", "MIT-0", "MIT" ]
1
2019-12-13T07:20:24.000Z
2019-12-13T07:20:24.000Z
examples/gizmo_tft_demo.py
caternuson/Adafruit_CircuitPython_Gizmos
303a11123571bd5e7c476ddfc64c3a439dfd64c4
[ "Unlicense", "MIT-0", "MIT" ]
9
2019-11-11T20:26:57.000Z
2022-03-05T22:55:09.000Z
examples/gizmo_tft_demo.py
caternuson/Adafruit_CircuitPython_Gizmos
303a11123571bd5e7c476ddfc64c3a439dfd64c4
[ "Unlicense", "MIT-0", "MIT" ]
8
2019-11-08T22:10:53.000Z
2022-02-23T16:37:59.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This test will initialize the display using displayio and draw a solid green background, a smaller purple rectangle, and some yellow text. """ import displayio import terminalio from adafruit_display_text import label fro...
29.372093
87
0.787015
98d6ac646063413125c398f260405e5ff899fdbd
3,151
py
Python
tuticfruti_blog/posts/factories.py
tuticfruti/tuticfruti_blog
dd2526cc23d0e571b588b434a4d9e25dd7d82230
[ "BSD-3-Clause" ]
null
null
null
tuticfruti_blog/posts/factories.py
tuticfruti/tuticfruti_blog
dd2526cc23d0e571b588b434a4d9e25dd7d82230
[ "BSD-3-Clause" ]
22
2015-09-28T07:45:35.000Z
2015-10-15T22:07:05.000Z
tuticfruti_blog/posts/factories.py
tuticfruti/tuticfruti_blog
dd2526cc23d0e571b588b434a4d9e25dd7d82230
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import factory import factory.fuzzy from . import models class TagFactory(factory.DjangoModelFactory): class Meta: model = models.Tag term = factory.Sequence(lambda n: 'term{}'.format(n)) class CategoryFactory(factory.DjangoModelFactory): class Meta: model = mod...
45.666667
332
0.716281
d91b35e8d3724070f82bfa35844b182769fe93ed
12,607
py
Python
meiduo_mall/meiduo_mall/apps/carts/views.py
Catherina1/meiduo_web
4c00e982dd5caedaf379727e8beb630dfe2cc3de
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/carts/views.py
Catherina1/meiduo_web
4c00e982dd5caedaf379727e8beb630dfe2cc3de
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/carts/views.py
Catherina1/meiduo_web
4c00e982dd5caedaf379727e8beb630dfe2cc3de
[ "MIT" ]
null
null
null
import base64 import json import pickle from django import http from django.shortcuts import render from django.views import View # Create your views here. from django_redis import get_redis_connection from goods import models from meiduo_mall.utils.response_code import RETCODE from meiduo_mall.apps.users import con...
34.730028
105
0.536527
198288b029fe47b4cfc07a3483e4a2192ed53f77
11,436
py
Python
apps/analytics/views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
1
2019-01-31T10:06:47.000Z
2019-01-31T10:06:47.000Z
apps/analytics/views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
4
2021-06-08T23:45:35.000Z
2022-01-13T03:32:04.000Z
apps/analytics/views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
1
2018-10-28T15:18:15.000Z
2018-10-28T15:18:15.000Z
from datetime import timedelta from django.utils import timezone from rest_framework import permissions, status from rest_framework.decorators import (api_view, authentication_classes, permission_classes, ...
45.927711
119
0.718695
fe60f5ee3c389d4788101c498be33d23463aa6fe
2,004
py
Python
server/server.py
grsakea/pyt
af8696e5b25c4f60008780e2b9ae1efa74aaec20
[ "MIT" ]
1
2015-05-05T05:01:32.000Z
2015-05-05T05:01:32.000Z
server/server.py
grsakea/pyt
af8696e5b25c4f60008780e2b9ae1efa74aaec20
[ "MIT" ]
null
null
null
server/server.py
grsakea/pyt
af8696e5b25c4f60008780e2b9ae1efa74aaec20
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import threading import time import sys import queue import tweepy import os.path import server.server_bottle from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream from common.models import Tweet from server.server_storage import Storage class St...
23.034483
68
0.647705
cf50246dcdef230f64895422e536cfdb7fa85ab6
753
py
Python
backend/webserver/api/v1/tasks/namespace.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/api/v1/tasks/namespace.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/api/v1/tasks/namespace.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
from flask_restplus import Namespace, fields api = Namespace('tasks', description='Task related operations') task_base = api.model('TaskBase', { 'name': fields.String, 'project_id': fields.Integer, 'priority': fields.Integer(default=None), 'due_date': fields.DateTime, 'progress': fields.Float(def...
25.965517
63
0.670651
550b3cceca1f9ef01f98f24bad49d01890509f8d
96
py
Python
gtm/gtm/common/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
60
2018-09-26T15:46:00.000Z
2021-10-10T02:37:14.000Z
gtm/gtm/common/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
1,706
2018-09-26T16:11:22.000Z
2021-08-20T13:37:59.000Z
gtm/gtm/common/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
11
2019-03-14T13:23:51.000Z
2022-01-25T01:29:16.000Z
from gtm.common import config from gtm.common.config import get_client_root, get_resources_root
32
65
0.864583
7dd2cab7c62010836e32a4e8edde95d2b3cebaa5
21,011
py
Python
tests/metadata/test_event_processing.py
pengdou1990/impala
c8aa5796d93510723342055cc70cf8d00abae754
[ "Apache-2.0" ]
null
null
null
tests/metadata/test_event_processing.py
pengdou1990/impala
c8aa5796d93510723342055cc70cf8d00abae754
[ "Apache-2.0" ]
null
null
null
tests/metadata/test_event_processing.py
pengdou1990/impala
c8aa5796d93510723342055cc70cf8d00abae754
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
53.058081
90
0.704155
ca6a9598188116d428c1b01d8e7fa4de34e4b546
4,376
py
Python
utilities/benchmarks.py
matthewli125/SRCFD
77d117c7a98996c3b64c001c79eae04aa6a545f8
[ "MIT" ]
1
2019-12-24T13:57:14.000Z
2019-12-24T13:57:14.000Z
utilities/benchmarks.py
matthewli125/SRCFD
77d117c7a98996c3b64c001c79eae04aa6a545f8
[ "MIT" ]
null
null
null
utilities/benchmarks.py
matthewli125/SRCFD
77d117c7a98996c3b64c001c79eae04aa6a545f8
[ "MIT" ]
null
null
null
from random import randint from timeit import timeit import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from keras import backend as K # from keras.models import load_model # import h5py import cv2 from math import floor numRuns = 100 # data = h5py.File("alpha.waternew.h5", "r") ...
40.146789
123
0.65128
171fd5b5cb1328a4d40d85574cd5a428b02e99d0
559
py
Python
src/data/144.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/144.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/144.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10**6) n, q = map(int, input().split()) edge = [[] for _ in range(n)] dep = [0] * n for i in range(n - 1): a, b = map(int, input().split()) a -= 1 b -= 1 edge[a].append(b) edge[b].append(a) def dfs(x, last=-1): for to in edge[x]: if to == last: ...
15.971429
36
0.461538
aca85c2d3f413d7ce05dcd489e97992a30b46fb2
8,425
py
Python
flask_api_bundle/model_resource.py
briancappello/flask-api-bundle
88f86e331488da8fe15d1661cb07f5858b93b332
[ "MIT" ]
null
null
null
flask_api_bundle/model_resource.py
briancappello/flask-api-bundle
88f86e331488da8fe15d1661cb07f5858b93b332
[ "MIT" ]
null
null
null
flask_api_bundle/model_resource.py
briancappello/flask-api-bundle
88f86e331488da8fe15d1661cb07f5858b93b332
[ "MIT" ]
null
null
null
import inspect from flask import jsonify, make_response from flask_unchained import Resource, route from flask_unchained.bundles.controller.attr_constants import ( ABSTRACT_ATTR, CONTROLLER_ROUTES_ATTR, FN_ROUTES_ATTR) from flask_unchained import ( ALL_METHODS, INDEX_METHODS, MEMBER_METHODS, CREATE, DELETE...
36.790393
80
0.645223
cfabc6c40606e87c5a37c834b48be57877b4ffb5
2,019
py
Python
tests/data23/recipe-576592.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-576592.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-576592.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
def isOdd(integer): #assert isinstance(integer, int) return integer % 2 == 1 def isEven(integer): #assert isinstance(integer, int) return integer % 2 == 0 def _list_to_string(li): return ''.join(map(str, li)) class GrayCode(object): def __init__(self, nbits): self._nbits = nbits ...
26.565789
65
0.474492
25ac993dcf28e952f512ba47f6ad66e1d05b1939
38,972
py
Python
tools/telemetry/telemetry/core/timeline/trace_event_importer_unittest.py
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
tools/telemetry/telemetry/core/timeline/trace_event_importer_unittest.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/core/timeline/trace_event_importer_unittest.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import unittest from telemetry.core.timeline import trace_event_importer import telemetry.core.timeline.model as timeline_model import telemetry...
38.662698
79
0.57472
db63b744647183de94569991bb95552f4597727a
49,687
py
Python
tests/common/test_event.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
tests/common/test_event.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
tests/common/test_event.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # # Copyright 2017 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
56.655644
160
0.681687
ca39922875594a52e49c473093c795ebf1d2b776
15,218
py
Python
tests/unit/field/test_text_field.py
asappresearch/flambe
98f10f859fe9223fd2d1d76d430f77cdbddc0956
[ "MIT" ]
148
2019-08-29T21:19:03.000Z
2022-03-18T06:13:53.000Z
tests/unit/field/test_text_field.py
asappresearch/flambe
98f10f859fe9223fd2d1d76d430f77cdbddc0956
[ "MIT" ]
108
2019-09-03T14:36:10.000Z
2020-05-13T15:53:14.000Z
tests/unit/field/test_text_field.py
asappresearch/flambe
98f10f859fe9223fd2d1d76d430f77cdbddc0956
[ "MIT" ]
21
2019-09-08T14:09:45.000Z
2020-12-27T04:12:33.000Z
from collections import OrderedDict as odict from gensim.models import KeyedVectors import numpy as np import pytest import tempfile import torch from flambe.field import TextField, BoWField from flambe.tokenizer import WordTokenizer, CharTokenizer, NGramsTokenizer, NLTKWordTokenizer example = ( "Lorem ipsum dolor ...
29.956693
104
0.613155
40546875216bddeac14f09682f1981184c343787
6,371
py
Python
data_structures/binary_tree/binary_search_tree.py
tasbihaasim/Python
9b376a5bfb17fb2244a24d6041fc24fc5d4bd422
[ "MIT" ]
7
2020-03-29T08:20:07.000Z
2022-03-19T06:41:19.000Z
data_structures/binary_tree/binary_search_tree.py
tasbihaasim/Python
9b376a5bfb17fb2244a24d6041fc24fc5d4bd422
[ "MIT" ]
2
2021-12-20T00:20:50.000Z
2021-12-20T00:20:51.000Z
data_structures/binary_tree/binary_search_tree.py
tasbihaasim/Python
9b376a5bfb17fb2244a24d6041fc24fc5d4bd422
[ "MIT" ]
2
2020-11-24T17:26:55.000Z
2021-11-20T15:47:55.000Z
""" A binary search Tree """ class Node: def __init__(self, value, parent): self.value = value self.parent = parent # Added in order to delete a node easier self.left = None self.right = None def __repr__(self): from pprint import pformat if self.left is None...
30.629808
88
0.541359
1788929afa888bb0610a243bdc272a610dfcd39b
2,330
py
Python
mmmeta/backend/appendonly.py
simonwoerpel/mmmeta
3b130c859f0251f0a90af4423c47c91c0d5b496f
[ "MIT" ]
4
2021-05-31T18:59:01.000Z
2021-06-27T23:15:26.000Z
mmmeta/backend/appendonly.py
simonwoerpel/mmmeta
3b130c859f0251f0a90af4423c47c91c0d5b496f
[ "MIT" ]
null
null
null
mmmeta/backend/appendonly.py
simonwoerpel/mmmeta
3b130c859f0251f0a90af4423c47c91c0d5b496f
[ "MIT" ]
null
null
null
import csv from datetime import datetime import dataset from ..util import robust_dict from .filesystem import FilesystemBackend, ensure_directory class AppendOnlyBackend(FilesystemBackend): def __init__(self, base_path, unique): super().__init__(base_path) self.unique = unique def _get_tab...
32.816901
85
0.54721
09e6fd0c3943350eb655abd2ca6a63307adff1c7
191
py
Python
CodeChef/Chef and Division 3/DIVTHREE.py
Naga-kalyan/competitive_programming
e9501b16ac327c7f6700a0970d0804e1f9ef5f1b
[ "MIT" ]
8
2020-09-02T13:30:41.000Z
2022-01-31T07:45:31.000Z
CodeChef/Chef and Division 3/DIVTHREE.py
Naga-kalyan/competitive_programming
e9501b16ac327c7f6700a0970d0804e1f9ef5f1b
[ "MIT" ]
null
null
null
CodeChef/Chef and Division 3/DIVTHREE.py
Naga-kalyan/competitive_programming
e9501b16ac327c7f6700a0970d0804e1f9ef5f1b
[ "MIT" ]
1
2021-02-15T13:44:22.000Z
2021-02-15T13:44:22.000Z
for _ in range(int(input())): N, K, D = map(int,input().split()) A = sum(list(map(int, input().split()))) D3 = int(A/K) if(D3<D): print(D3) else: print(D)
21.222222
44
0.47644
2ffb7a126121acfa84607fc18333e505c2146d7f
1,367
py
Python
saltwalk/jobs.py
SUSE/spacewalk-saltstack
47bd26376ff44b4156c8f24ba06e5d3b9be8c901
[ "MIT" ]
6
2015-01-09T08:32:47.000Z
2020-07-29T15:08:54.000Z
saltwalk/jobs.py
SUSE/spacewalk-saltstack
47bd26376ff44b4156c8f24ba06e5d3b9be8c901
[ "MIT" ]
3
2015-04-26T13:58:11.000Z
2015-07-21T08:09:55.000Z
saltwalk/jobs.py
SUSE/spacewalk-saltstack
47bd26376ff44b4156c8f24ba06e5d3b9be8c901
[ "MIT" ]
5
2015-04-22T14:17:35.000Z
2020-12-12T21:14:25.000Z
# pylint: disable-msg=C0103 """ Functions related to Salt jobs from minions """ import logging from saltwalk.inventory import LIST_PKGS_CMD from saltwalk.inventory import NETWORK_IFACES_CMD from saltwalk.inventory import process_network_ifaces_result from saltwalk.inventory import process_package_list_result logger =...
30.377778
75
0.634236
427ac26f2ea70d1443059622fecfc9042760d1e9
9,185
py
Python
instagrapi/mixins/public.py
sourcery-ai-bot/instagrapi
ae414a35f44c077b852643ddcd2fb09548284052
[ "MIT" ]
null
null
null
instagrapi/mixins/public.py
sourcery-ai-bot/instagrapi
ae414a35f44c077b852643ddcd2fb09548284052
[ "MIT" ]
null
null
null
instagrapi/mixins/public.py
sourcery-ai-bot/instagrapi
ae414a35f44c077b852643ddcd2fb09548284052
[ "MIT" ]
null
null
null
import json import logging import time from json.decoder import JSONDecodeError import requests from instagrapi.exceptions import ( ClientBadRequestError, ClientConnectionError, ClientError, ClientForbiddenError, ClientGraphqlError, ClientIncompleteReadError, ClientJSONDecodeError, Cli...
33.4
152
0.548394
41901628c49db32b8137bed4787c4398d6674697
7,866
py
Python
tests/json-fixtures/test_virtual_machine.py
williambannas/py-evm
fcf73d071278fab5f85c221f89cb95fcbeb942a3
[ "MIT" ]
null
null
null
tests/json-fixtures/test_virtual_machine.py
williambannas/py-evm
fcf73d071278fab5f85c221f89cb95fcbeb942a3
[ "MIT" ]
null
null
null
tests/json-fixtures/test_virtual_machine.py
williambannas/py-evm
fcf73d071278fab5f85c221f89cb95fcbeb942a3
[ "MIT" ]
1
2018-07-03T22:17:54.000Z
2018-07-03T22:17:54.000Z
import os import pytest from eth_utils import ( to_bytes, ) from eth.db import ( get_db_backend, ) from eth.db.chain import ChainDB from eth_hash.auto import keccak from eth.exceptions import ( VMError, ) from eth.rlp.headers import ( BlockHeader, ) from eth.tools.fixture_tests import ( normali...
29.683019
91
0.674803
996651a3270eac8195e82f6b62095af6d3bf0a1f
5,581
py
Python
v2/volume_backups.py
hybrid-storage-dev/cinder-client-fs-111t-hybrid-cherry
dad5632c91190c179479dcec58c13c655b839122
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
v2/volume_backups.py
hybrid-storage-dev/cinder-client-fs-111t-hybrid-cherry
dad5632c91190c179479dcec58c13c655b839122
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
v2/volume_backups.py
hybrid-storage-dev/cinder-client-fs-111t-hybrid-cherry
dad5632c91190c179479dcec58c13c655b839122
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.000Z
# Copyright (C) 2013 Hewlett-Packard Development Company, L.P. # 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/LICEN...
35.775641
78
0.595234
2bb40d68ce5781ecdf4aed4818a9e5c80a920ad6
4,627
py
Python
gen2-deeplabv3_multiclass/main.py
somuncudayi/depthai-experiments
2feb1c5f7433fcde53f17f01cac1120c7c8a6bef
[ "MIT" ]
1
2022-01-18T19:59:20.000Z
2022-01-18T19:59:20.000Z
gen2-deeplabv3_multiclass/main.py
somuncudayi/depthai-experiments
2feb1c5f7433fcde53f17f01cac1120c7c8a6bef
[ "MIT" ]
null
null
null
gen2-deeplabv3_multiclass/main.py
somuncudayi/depthai-experiments
2feb1c5f7433fcde53f17f01cac1120c7c8a6bef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path import cv2 import depthai as dai import numpy as np import argparse import time import sys ''' Deeplabv3 multiclass running on selected camera. Run as: python3 -m pip install -r requirements.txt python3 main.py -cam rgb Possible input choices (-cam): 'rgb', 'left', 'rig...
30.846667
162
0.722715
748f74cd8214a1a56ee8df67d18b0396008e71d7
92
py
Python
platform/core/polyaxon/administration/register/owners.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/administration/register/owners.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/administration/register/owners.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from db.models.owner import Owner def register(admin_register): admin_register(Owner)
15.333333
33
0.782609
97e43c4f1ee0894fc00250db1cebdea1d88bdb6d
2,416
py
Python
vitrage/tests/functional/datasources/listener_service/test_listener_service.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/tests/functional/datasources/listener_service/test_listener_service.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/tests/functional/datasources/listener_service/test_listener_service.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Copyright 2017 - Nokia # # 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, sof...
33.09589
76
0.719785
0000c70e10fb07450e7e855feb5edc66e0a46db2
7,946
py
Python
benchmarks/f3_wrong_hints/scaling_software_termination/17-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_software_termination/17-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_software_termination/17-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
31.160784
77
0.58822
6013e7cac3c799dadbca0d31744ba4bde453d8fe
604
py
Python
Exercicios/ex028.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
Exercicios/ex028.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
Exercicios/ex028.py
rbpope/AulasPythonMundo1
85ad4d97a3451c322a675ee796084f56c07acdcd
[ "MIT" ]
null
null
null
from random import randint from time import sleep cores = {'limpa':'\033[m', 'roxo':'\033[1;35m', 'titulo':'\033[7;30m', 'verm':'\033[1;31m'} nc = randint(0,5) #Variável que o computador escolhe print('-=-'*20) print('{}Vou escolher um número entre 0 e 5, tente adivinhar!!!{}'.format(cores['t...
33.555556
107
0.60596
36062e7372db1d1c762e59fa2f48f012480f28ad
1,482
py
Python
e2e/test_start.py
sapphon/guet
60872bfb149ad16a3c5309e283a6b886080a13dc
[ "Apache-2.0" ]
null
null
null
e2e/test_start.py
sapphon/guet
60872bfb149ad16a3c5309e283a6b886080a13dc
[ "Apache-2.0" ]
null
null
null
e2e/test_start.py
sapphon/guet
60872bfb149ad16a3c5309e283a6b886080a13dc
[ "Apache-2.0" ]
null
null
null
from e2e import DockerTest class TestStart(DockerTest): def test_creates_hook_git_folder_in_current_path(self): self.guet_init() self.git_init() self.guet_start() self.execute() self.assert_file_exists('test-env/.git/hooks/commit-msg') def test_tells_user_that_a_git_f...
40.054054
185
0.682186
3fe51bbec749e467a5e5625832cf40172ed34744
289
py
Python
tests/test_toy_example/__init__.py
limberc/hypercl
ad098a3b18cf2a2ae6e3ecd28a2b7af698f7b807
[ "Apache-2.0" ]
null
null
null
tests/test_toy_example/__init__.py
limberc/hypercl
ad098a3b18cf2a2ae6e3ecd28a2b7af698f7b807
[ "Apache-2.0" ]
null
null
null
tests/test_toy_example/__init__.py
limberc/hypercl
ad098a3b18cf2a2ae6e3ecd28a2b7af698f7b807
[ "Apache-2.0" ]
null
null
null
import os import sys curr_dir = os.path.basename(os.path.abspath(os.curdir)) # See __init__.py in folder "toy_example" for an explanation. trgt_dir = os.path.abspath(os.path.join('..', '..')) if curr_dir == 'test_toy_example' and trgt_dir != sys.path[0]: sys.path.insert(0, trgt_dir)
32.111111
62
0.712803
f3a6d5366f0be92d6ea679966c3c7008132175c1
24,878
py
Python
lib/galaxy/workflow/run.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
2
2017-03-28T12:11:41.000Z
2017-04-22T02:58:25.000Z
lib/galaxy/workflow/run.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
12
2020-07-24T23:55:19.000Z
2021-12-19T11:40:06.000Z
lib/galaxy/workflow/run.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
1
2019-01-16T22:21:54.000Z
2019-01-16T22:21:54.000Z
import logging import uuid from collections import OrderedDict from galaxy import model from galaxy.util import ExecutionTimer from galaxy.workflow import modules from galaxy.workflow.run_request import ( workflow_request_to_run_config, workflow_run_config_to_request, WorkflowRunConfig ) log = logging.get...
47.477099
168
0.658413
10ce034a3d5f9f73d804352262e57cfb32c65964
4,498
py
Python
google/cloud/forseti/common/gcp_type/service_account.py
perambulist/forseti-security
5b87bc536f3d33fdeaa0c2a1f20eea3f56c79060
[ "Apache-2.0" ]
1
2018-10-06T23:16:59.000Z
2018-10-06T23:16:59.000Z
google/cloud/forseti/common/gcp_type/service_account.py
perambulist/forseti-security
5b87bc536f3d33fdeaa0c2a1f20eea3f56c79060
[ "Apache-2.0" ]
null
null
null
google/cloud/forseti/common/gcp_type/service_account.py
perambulist/forseti-security
5b87bc536f3d33fdeaa0c2a1f20eea3f56c79060
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
35.698413
79
0.632059
2d8fe11995d0a5ff227c3c0603473bee4443c708
2,081
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/db/backends/oracle/compiler.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/db/backends/oracle/compiler.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/db/backends/oracle/compiler.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
from django.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def as_sql(self, with_limits=True, with_col_aliases=False, subquery=False): """ Creates the SQL for this query. Returns the SQL string and list of parameters. This is overridden from the original Query clas...
2,081
2,081
0.608842
fb2d6ffdc9c83eaf0ba0df8f9e2fbe41ca6a6537
5,659
py
Python
tests/unit/ranx/qrels_test.py
maximedb/ranx
6b5bcff69ba1308f9934e5db69d379dd8636a78d
[ "MIT" ]
21
2021-12-19T13:28:06.000Z
2022-03-22T10:34:03.000Z
tests/unit/ranx/qrels_test.py
maximedb/ranx
6b5bcff69ba1308f9934e5db69d379dd8636a78d
[ "MIT" ]
11
2021-12-20T14:59:05.000Z
2022-03-30T11:31:59.000Z
tests/unit/ranx/qrels_test.py
maximedb/ranx
6b5bcff69ba1308f9934e5db69d379dd8636a78d
[ "MIT" ]
3
2022-01-10T12:00:49.000Z
2022-03-24T14:36:03.000Z
import pandas as pd import pytest from numba.typed import List from ranx import Qrels def test_init(): qrels_dict = { "q1": { "d1": 1, "d2": 2, "d3": 3, }, "q2": { "d1": 1, "d2": 2, }, } qrels = Qrels(qrels_dict,...
24.080851
80
0.504683
a14f81adcad0ac36589be66047a592f5ee5c19b0
718
py
Python
stdlib2-src/dist-packages/quodlibet/ext/playlist/shuffle.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
stdlib2-src/dist-packages/quodlibet/ext/playlist/shuffle.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
stdlib2-src/dist-packages/quodlibet/ext/playlist/shuffle.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
# Copyright 2014 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation from quodlibet.plugins.playlist import PlaylistPlugin from gi.repository import Gtk class Shuffle(Pla...
29.916667
70
0.724234
734303f622d7df8fc0c946b65d77656755ec17a2
401
py
Python
TOPR/wsgi.py
futerzak/topr
c42bc6c1dbc75cf96fe7e4b782aece75e1c56916
[ "MIT" ]
null
null
null
TOPR/wsgi.py
futerzak/topr
c42bc6c1dbc75cf96fe7e4b782aece75e1c56916
[ "MIT" ]
null
null
null
TOPR/wsgi.py
futerzak/topr
c42bc6c1dbc75cf96fe7e4b782aece75e1c56916
[ "MIT" ]
null
null
null
""" WSGI config for TOPR project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
23.588235
79
0.750623
4cff8cd7290997b2f81255f48fd524ed7465aadd
26,680
py
Python
azext_iot/tests/dps/test_iot_dps_int.py
rido-min/azure-iot-cli-extension
bb3c5d9ebaa260b9fc186b08ba690813e0ad8932
[ "MIT" ]
null
null
null
azext_iot/tests/dps/test_iot_dps_int.py
rido-min/azure-iot-cli-extension
bb3c5d9ebaa260b9fc186b08ba690813e0ad8932
[ "MIT" ]
1
2021-04-26T20:31:10.000Z
2021-04-26T20:31:10.000Z
azext_iot/tests/dps/test_iot_dps_int.py
rido-min/azure-iot-cli-extension
bb3c5d9ebaa260b9fc186b08ba690813e0ad8932
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
40.983103
106
0.538868
ab23d568c05afd97b1df88743e98caacd05a14eb
4,653
py
Python
h11/_abnf.py
belm0/h11
870fb833af6842af70eced6afef53e03dbec1216
[ "MIT" ]
null
null
null
h11/_abnf.py
belm0/h11
870fb833af6842af70eced6afef53e03dbec1216
[ "MIT" ]
null
null
null
h11/_abnf.py
belm0/h11
870fb833af6842af70eced6afef53e03dbec1216
[ "MIT" ]
null
null
null
# We use native strings for all the re patterns, to take advantage of string # formatting, and then convert to bytestrings when compiling the final re # objects. # https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#whitespace # OWS = *( SP / HTAB ) # ; optional whitespace OWS = r"...
35.792308
84
0.627122
24ba061a02eeb7ada55507408a7e9f0a1738270c
13,380
py
Python
terrautils/geostreams.py
KristinaRiemer/terrautils
97196f610abd899e7aff9bf354852cf89b004cdf
[ "BSD-3-Clause" ]
null
null
null
terrautils/geostreams.py
KristinaRiemer/terrautils
97196f610abd899e7aff9bf354852cf89b004cdf
[ "BSD-3-Clause" ]
null
null
null
terrautils/geostreams.py
KristinaRiemer/terrautils
97196f610abd899e7aff9bf354852cf89b004cdf
[ "BSD-3-Clause" ]
null
null
null
"""Clowder API This module provides simple wrappers around the clowder Geostreams API """ import json import logging import requests from terrautils.betydb import get_sites_by_latlon from terrautils.gdal import wkt_to_geojson def create_sensor(connector, host, key, sensorname, geom, type, region): """Create a ...
35.871314
117
0.644395
6ce66291712b5a14d3a88d8713a75990bfcc40ad
4,549
py
Python
copper/sop/sop_box.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
6
2016-07-28T13:59:34.000Z
2021-12-28T05:44:15.000Z
copper/sop/sop_box.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
5
2016-06-30T10:19:25.000Z
2022-03-11T23:19:01.000Z
copper/sop/sop_box.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
3
2019-03-18T05:17:10.000Z
2020-02-14T06:56:40.000Z
from copper.core.op.node_type import NodeTypeBase from copper.core.op.node_type_category import SopNodeTypeCategory from copper.core.op.op_data_socket import OP_DataSocket from copper.core.parameter.parm_template import * from copper.core.data.geometry_data import GeometryData, Polygon from copper.core.utils.decorator...
32.492857
176
0.661024
e935cdac685a4d0787ebba783327f0fa2e2519e7
4,279
py
Python
src/main/main_record.py
nurmians/StructureMapper
a759cee2a49ea83d9932ef72f7d967dd60f723fb
[ "MIT" ]
1
2019-09-01T04:55:01.000Z
2019-09-01T04:55:01.000Z
src/main/main_record.py
nurmians/StructureMapper
a759cee2a49ea83d9932ef72f7d967dd60f723fb
[ "MIT" ]
null
null
null
src/main/main_record.py
nurmians/StructureMapper
a759cee2a49ea83d9932ef72f7d967dd60f723fb
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding=UTF-8 # -*- coding: UTF-8 -*- # This file is part of the StructureMapper algorithm. # Please cite the authors if you find this software useful # # https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty086/4857361 # MIT License # # Copyright 2018 Anssi Nurmin...
37.867257
137
0.691049
9a1f23ace73d90df11de0a317c45f8dbddacdd75
503
py
Python
Asyncio/asyncio_future_event_loop.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
Asyncio/asyncio_future_event_loop.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
Asyncio/asyncio_future_event_loop.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
# asyncio_future_event_loop.py import asyncio def set_result(future, result): print('setting future result to {}'.format(result)) future.set_result(result) event_loop = asyncio.get_event_loop() future = asyncio.Future() print('scheduling set_result') event_loop.call_soon(set_result, future, 'the result') pr...
25.15
55
0.757455
86e2654a19c6dae17ff08a953f4299246b49d275
1,855
py
Python
neutron/agent/common/utils.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
neutron/agent/common/utils.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
neutron/agent/common/utils.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Cloudbase Solutions. # 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 requ...
29.444444
78
0.727224
18ee2994d0d6bfc25a253c47858b2b9087395c34
376
py
Python
examples/UploadMedia.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
examples/UploadMedia.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
1
2018-12-12T10:06:52.000Z
2018-12-12T10:31:56.000Z
examples/UploadMedia.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
""" This is an example of how to upload one or several media(s) to your LumApps instance. """ from lumapps import ApiClient from lumapps.helpers.media import upload_and_save TOKEN = "<your_token>" client = ApiClient(token=TOKEN) instance_id = "<your_instance_id>" files = ["<filename 1>", "<filename 2>"] upl...
25.066667
64
0.736702
63d1a087e6c41150897386f8c1a790b31812d79c
2,102
py
Python
deflex_q100/plotting.py
quarree100/sandbox
1e8d9a425a89b03626e61ca772d1c079e5215942
[ "MIT" ]
null
null
null
deflex_q100/plotting.py
quarree100/sandbox
1e8d9a425a89b03626e61ca772d1c079e5215942
[ "MIT" ]
3
2020-04-29T09:29:50.000Z
2021-06-02T16:34:00.000Z
deflex_q100/plotting.py
quarree100/sandbox
1e8d9a425a89b03626e61ca772d1c079e5215942
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def plot_merit_order(pp, ax): cdict = { "nuclear": "#DDF45B", "hard coal": "#141115", "lignite": "#8D6346", "natural gas": "#4C2B36", "oil": "#C1A5A9", "bioenergy": "#163e16", "hydro": "#14142c", "solar": "#ffde...
33.365079
71
0.531874
97ecda3637bbab74232eb42c47f2a4974c5741a0
15,110
py
Python
avalon/maya/lib.py
Ellipsanime/avalon-core
a9fbf2982506f85ee58f519f63b4379d7a6312c0
[ "MIT" ]
null
null
null
avalon/maya/lib.py
Ellipsanime/avalon-core
a9fbf2982506f85ee58f519f63b4379d7a6312c0
[ "MIT" ]
1
2021-12-14T09:40:13.000Z
2021-12-14T09:40:13.000Z
avalon/maya/lib.py
Ellipsanime/avalon-core
a9fbf2982506f85ee58f519f63b4379d7a6312c0
[ "MIT" ]
null
null
null
"""Standalone helper functions""" import contextlib import six from maya import cmds, mel from maya.api import OpenMaya as om def unique_name(name, format="%02d", namespace="", prefix="", suffix=""): """Return unique `name` The function takes into consideration an optional `namespace` and `suffix`. Th...
29.569472
77
0.568101
87a2287ce45ade5a3e3a39a793a6cd371b4532b6
3,966
py
Python
src/hpo_bohb_template.py
f2010126/DL_Flower_Classification
c8e6327fdb5207d3bfc44715957935f3c4c9b2a4
[ "BSD-3-Clause" ]
null
null
null
src/hpo_bohb_template.py
f2010126/DL_Flower_Classification
c8e6327fdb5207d3bfc44715957935f3c4c9b2a4
[ "BSD-3-Clause" ]
null
null
null
src/hpo_bohb_template.py
f2010126/DL_Flower_Classification
c8e6327fdb5207d3bfc44715957935f3c4c9b2a4
[ "BSD-3-Clause" ]
null
null
null
import os import pickle import torch.nn as nn import logging from pathlib import Path from typing import Tuple, Dict import hpbandster.core.nameserver as hpns import hpbandster.core.result as hpres from hpbandster.optimizers import BOHB import numpy as np from bohb_pytorch_worker import PyTorchWorker as worker from src...
31.47619
99
0.659607
ba9856accb81f549edef07fdaf44d75a4b8a1fa3
72
py
Python
source/modules/__init__.py
iwangjian/Persona-dialogue
f40e415574d3233693f575de31d6291c969dff09
[ "Apache-2.0" ]
6
2020-09-14T13:47:57.000Z
2021-09-27T08:57:25.000Z
source/modules/encoders/__init__.py
iwangjian/Persona-dialogue
f40e415574d3233693f575de31d6291c969dff09
[ "Apache-2.0" ]
null
null
null
source/modules/encoders/__init__.py
iwangjian/Persona-dialogue
f40e415574d3233693f575de31d6291c969dff09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ File: __init__.py """
12
23
0.541667
0af750e4973dbcce829bdc98b66b8a0a9d835dd9
4,369
py
Python
test-harness.py
liangsheng02/Huffman-Tree
1b32f28b10e3b1a6ee6abc4c8c3324f1bd041c3f
[ "Apache-2.0" ]
null
null
null
test-harness.py
liangsheng02/Huffman-Tree
1b32f28b10e3b1a6ee6abc4c8c3324f1bd041c3f
[ "Apache-2.0" ]
null
null
null
test-harness.py
liangsheng02/Huffman-Tree
1b32f28b10e3b1a6ee6abc4c8c3324f1bd041c3f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 14 15:41:37 2018 test-harness.py: a script to test huffman compression and decompression programs for input and ouput command line and file naming conventions as specified in the COM4115/6115 Text Compression Assignment @author: R.Gaizauska...
30.131034
124
0.699016
89f121cbb90916b192d8410a2c9a62149ec64ac8
43,553
py
Python
core/controllers/reader.py
CodeGrammer02/oppia
3a861163aa15838b931ecc9ae39eab44e7e9073c
[ "Apache-2.0" ]
null
null
null
core/controllers/reader.py
CodeGrammer02/oppia
3a861163aa15838b931ecc9ae39eab44e7e9073c
[ "Apache-2.0" ]
null
null
null
core/controllers/reader.py
CodeGrammer02/oppia
3a861163aa15838b931ecc9ae39eab44e7e9073c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
34.132445
117
0.567883
ed98e0ab8964ffd6b8a0aa5c9128cfa48eaef80c
474
py
Python
backpack/extensions/secondorder/diag_ggn/conv2d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
395
2019-10-04T09:37:52.000Z
2022-03-29T18:00:56.000Z
backpack/extensions/secondorder/diag_ggn/conv2d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
78
2019-10-11T18:56:43.000Z
2022-03-23T01:49:54.000Z
backpack/extensions/secondorder/diag_ggn/conv2d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
50
2019-10-03T16:31:10.000Z
2022-03-15T19:36:14.000Z
from backpack.core.derivatives.conv2d import Conv2DDerivatives from backpack.extensions.secondorder.diag_ggn.convnd import ( BatchDiagGGNConvND, DiagGGNConvND, ) class DiagGGNConv2d(DiagGGNConvND): def __init__(self): super().__init__(derivatives=Conv2DDerivatives(), params=["bias", "weight"]) c...
29.625
84
0.751055
97c1bba892b892ce3de4a48015ba733105ab134e
1,666
py
Python
nesi/devices/softbox/api/schemas/card_schemas.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
30
2020-09-03T06:02:38.000Z
2022-03-11T16:34:18.000Z
nesi/devices/softbox/api/schemas/card_schemas.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
2
2021-01-15T10:33:23.000Z
2021-02-21T21:04:37.000Z
nesi/devices/softbox/api/schemas/card_schemas.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
3
2020-12-19T09:11:19.000Z
2022-02-07T22:15:34.000Z
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
30.851852
93
0.611645
380145bb610d168737c52c5926df03b8576ecc24
836
py
Python
python/pyarrow/compute.py
gawain-bolton/arrow
4d825497cb04c9e1c288000a7a8f75786cc487ff
[ "Apache-2.0" ]
1
2019-08-30T11:36:51.000Z
2019-08-30T11:36:51.000Z
python/pyarrow/compute.py
gawain-bolton/arrow
4d825497cb04c9e1c288000a7a8f75786cc487ff
[ "Apache-2.0" ]
8
2020-04-10T19:03:51.000Z
2021-01-21T01:06:28.000Z
python/pyarrow/compute.py
gawain-bolton/arrow
4d825497cb04c9e1c288000a7a8f75786cc487ff
[ "Apache-2.0" ]
2
2020-12-28T16:59:24.000Z
2021-02-21T12:33:41.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38
62
0.764354
ee3eff8cfb925150f3a663a127ea83a6fab5be1b
214
py
Python
electrum_grs/plugins/audio_modem/__init__.py
Groestlcoin/electrum-grs
80f00b8d3511bf40be71fc8c0ffe179ab1d57dd5
[ "MIT" ]
9
2016-09-15T10:10:36.000Z
2019-08-01T09:08:30.000Z
electrum_grs/plugins/audio_modem/__init__.py
Groestlcoin/electrum-grs
80f00b8d3511bf40be71fc8c0ffe179ab1d57dd5
[ "MIT" ]
5
2017-10-28T08:46:00.000Z
2019-03-15T00:59:01.000Z
electrum_grs/plugins/audio_modem/__init__.py
Groestlcoin/electrum-grs
80f00b8d3511bf40be71fc8c0ffe179ab1d57dd5
[ "MIT" ]
5
2017-08-24T03:44:27.000Z
2019-03-03T20:42:25.000Z
from electrum_grs.i18n import _ fullname = _('Audio MODEM') description = _('Provides support for air-gapped transaction signing.') requires = [('amodem', 'http://github.com/romanz/amodem/')] available_for = []
26.75
71
0.724299
1f189ae3eefddb5b636a47fae6fbddd56b5c824c
5,568
py
Python
src/ios_sensor_pack/models.py
thatlarrypearson/telemetry-django-server
d7708996704cb5f758ed3cc5c6e97a2efa81687b
[ "MIT" ]
null
null
null
src/ios_sensor_pack/models.py
thatlarrypearson/telemetry-django-server
d7708996704cb5f758ed3cc5c6e97a2efa81687b
[ "MIT" ]
3
2020-01-22T05:13:43.000Z
2020-04-28T18:36:18.000Z
src/ios_sensor_pack/models.py
thatlarrypearson/telemetry-django-server
d7708996704cb5f758ed3cc5c6e97a2efa81687b
[ "MIT" ]
null
null
null
# telemetry-django-server/src/ios_seensor_pack/models.py import pytz from datetime import datetime, timezone from astropy.time import Time from django.db import models from django.contrib.auth import get_user_model class Gravity(models.Model): id = models.BigAutoField(primary_key=True) x = models.FloatField(v...
42.503817
128
0.73222
a03741d6907080f8387ab0d124e7f729c0818ce9
5,235
py
Python
tests/test_main.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
tests/test_main.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
tests/test_main.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
"""The full unit test suite, testing every available model for every language.""" import unittest import numpy from cltkv1 import NLP from cltkv1.core.data_types import Doc, Word from cltkv1.languages.example_texts import get_example_text class TestMain(unittest.TestCase): def test_main_analyze(self): ...
30.436047
81
0.5234
4a0f99eeb65e1d1a546ce030ae9f553675add5df
1,085
py
Python
etl/cleaner.py
FAST-PROJ/professor-virtual
f5c6d2db9ba0f5f00d7b6fdfa712c4d2c3b09020
[ "MIT" ]
null
null
null
etl/cleaner.py
FAST-PROJ/professor-virtual
f5c6d2db9ba0f5f00d7b6fdfa712c4d2c3b09020
[ "MIT" ]
null
null
null
etl/cleaner.py
FAST-PROJ/professor-virtual
f5c6d2db9ba0f5f00d7b6fdfa712c4d2c3b09020
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Mateus Ferreira" __copyright__ = "Copyright 2020, The FAST-PROJ Group" __credits__ = ["Mateus Ferreira"] __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "FAST-PROJ" __email__ = "#" __status__ = "Development" import re class Cleaner: def __init__(...
27.125
77
0.589862
102a568c2f47a08a43fa1390619d78758ad21d00
94,508
py
Python
freetype/__init__.py
basnijholt/freetype-py
2c4b34786cb3929120b95590ad93878bc7cfa1d9
[ "BSD-3-Clause-Clear" ]
null
null
null
freetype/__init__.py
basnijholt/freetype-py
2c4b34786cb3929120b95590ad93878bc7cfa1d9
[ "BSD-3-Clause-Clear" ]
null
null
null
freetype/__init__.py
basnijholt/freetype-py
2c4b34786cb3929120b95590ad93878bc7cfa1d9
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # # FreeType high-level python API - Copyright 2011-2015 Nicolas P. Rougier # Distributed under the terms of the new BSD license. # # ----------------------------------------------------------------------------- ''...
39.166183
114
0.610604
7617b941b39dfbfdc86e9bb06d28eb21625cc0ec
164
py
Python
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
from ..elb.urls import api_version_elb_backend url_bases = [r"https?://elasticloadbalancing\.(.+)\.amazonaws.com"] url_paths = {"{0}/$": api_version_elb_backend}
27.333333
67
0.731707
1079fc06e0d77fcf8987461a75572ca7cbb97289
13,847
py
Python
tests/test_grid.py
aheching/mesa
13b7677237fedb9c0b6e5e3798354cb181bca70c
[ "Apache-2.0" ]
null
null
null
tests/test_grid.py
aheching/mesa
13b7677237fedb9c0b6e5e3798354cb181bca70c
[ "Apache-2.0" ]
null
null
null
tests/test_grid.py
aheching/mesa
13b7677237fedb9c0b6e5e3798354cb181bca70c
[ "Apache-2.0" ]
null
null
null
""" Test the Grid objects. """ import random import unittest from mesa.space import Grid, SingleGrid, MultiGrid, HexGrid # Initial agent positions for testing # # --- visual aid ---- # 0 0 0 # 1 1 0 # 0 1 0 # 1 0 1 # 0 0 1 # ------------------- TEST_GRID = [[0, 1, 0, 1, 0], [0, 0, 1, 1, 0], [1, 1, 0, 0, 0]] ...
29.971861
86
0.560627
555ec4e063a533a2247ed8d7d8b9ec0c7e1408d4
3,983
py
Python
test/integration/test_interface.py
mancubus77/ansible-runner
c29d12b6b8fc763ebcbd95d68c70ed98c819df7b
[ "Apache-2.0" ]
null
null
null
test/integration/test_interface.py
mancubus77/ansible-runner
c29d12b6b8fc763ebcbd95d68c70ed98c819df7b
[ "Apache-2.0" ]
null
null
null
test/integration/test_interface.py
mancubus77/ansible-runner
c29d12b6b8fc763ebcbd95d68c70ed98c819df7b
[ "Apache-2.0" ]
null
null
null
import os import pytest import shutil from ansible_runner.interface import run, run_async def test_run(): r = run(module='debug', host_pattern='localhost') assert r.status == 'successful' def test_run_async(): thread, r = run_async(module='debug', host_pattern='localhost') thread.join() assert ...
29.072993
95
0.667085
f758e3dc9f845783e23ea5d9d50b2e8955adec2a
1,891
py
Python
cards/models.py
i-DAT-Qualia/Card-Backend
ad11c4bdecc20f7f8c386c8f3f452cbfd9c9aa73
[ "Apache-2.0" ]
1
2015-02-17T19:23:48.000Z
2015-02-17T19:23:48.000Z
cards/models.py
i-DAT-Qualia/Card-Backend
ad11c4bdecc20f7f8c386c8f3f452cbfd9c9aa73
[ "Apache-2.0" ]
null
null
null
cards/models.py
i-DAT-Qualia/Card-Backend
ad11c4bdecc20f7f8c386c8f3f452cbfd9c9aa73
[ "Apache-2.0" ]
null
null
null
from django.db import models class Batch(models.Model): name = models.CharField(max_length=250) notes = models.TextField(blank=True) added = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) def __unicode__(self): return self.name class Card(models.Mo...
29.546875
82
0.718139
4b10846ee3cebfad8b26a3db12714801660fa04e
7,698
py
Python
tests/components/person/test_init.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
null
null
null
tests/components/person/test_init.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-02-09T15:44:11.000Z
2019-02-09T15:44:11.000Z
tests/components/person/test_init.py
pc-coholic/home-assistant
24914aade50f7f4f813380b58292d5e91dc47f41
[ "Apache-2.0" ]
null
null
null
"""The tests for the person component.""" from homeassistant.components.person import ATTR_SOURCE, ATTR_USER_ID, DOMAIN from homeassistant.const import ( ATTR_ID, ATTR_LATITUDE, ATTR_LONGITUDE, STATE_UNKNOWN) from homeassistant.core import CoreState, State from homeassistant.setup import async_setup_component from...
41.165775
78
0.717589
0d98efd81afa1b1cbb504fd9f96fef3f186bee8c
30,593
py
Python
chatbot/chatbot.py
cjs0818/DeepQA
6aced074cdd97543caa95b79bc371fe894a8359d
[ "Apache-2.0" ]
19
2017-01-18T19:50:28.000Z
2021-04-06T12:42:22.000Z
chatbot/chatbot.py
cjs0818/DeepQA
6aced074cdd97543caa95b79bc371fe894a8359d
[ "Apache-2.0" ]
8
2017-01-19T00:07:43.000Z
2017-10-09T07:06:54.000Z
chatbot/chatbot.py
hunkimForks/DeepQA
6aced074cdd97543caa95b79bc371fe894a8359d
[ "Apache-2.0" ]
13
2017-01-18T19:50:16.000Z
2018-04-06T15:57:41.000Z
# Copyright 2015 Conchylicultor. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
48.9488
341
0.628052
93d49b495473a58b4577f862860cb8bf1c5aeda9
2,579
py
Python
Tests/Research/RegressionScripts/custom_data.py
szymanskilukasz/Lean
fe2ac131af2d0614494e5c970a57d4b7c89d5f88
[ "Apache-2.0" ]
8
2018-08-17T08:38:56.000Z
2022-02-27T20:52:30.000Z
Tests/Research/RegressionScripts/custom_data.py
szymanskilukasz/Lean
fe2ac131af2d0614494e5c970a57d4b7c89d5f88
[ "Apache-2.0" ]
30
2020-03-16T07:27:37.000Z
2021-05-17T05:51:04.000Z
Tests/Research/RegressionScripts/custom_data.py
szymanskilukasz/Lean
fe2ac131af2d0614494e5c970a57d4b7c89d5f88
[ "Apache-2.0" ]
5
2019-01-10T22:33:50.000Z
2021-09-26T08:49:57.000Z
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Lice...
40.296875
147
0.674292
b970371f348e93e53387eed2df229c749017ffb2
1,381
py
Python
Scheduler/__init__.py
5genesis/ELCM
3386c5ca606c1f35990fc2de55df5175d44ef72c
[ "Apache-2.0" ]
1
2020-04-16T17:07:46.000Z
2020-04-16T17:07:46.000Z
Scheduler/__init__.py
5genesis/ELCM
3386c5ca606c1f35990fc2de55df5175d44ef72c
[ "Apache-2.0" ]
3
2020-03-06T11:22:09.000Z
2020-03-06T11:22:10.000Z
Scheduler/__init__.py
5genesis/ELCM
3386c5ca606c1f35990fc2de55df5175d44ef72c
[ "Apache-2.0" ]
1
2022-02-01T07:56:44.000Z
2022-02-01T07:56:44.000Z
from flask import Flask from Helper import Log from Status import Status from flask_bootstrap import Bootstrap from flask_moment import Moment from Helper import Config from Facility import Facility from .heartbeat import HeartBeat from dotenv import load_dotenv import os load_dotenv(dotenv_path='./.flaskenv', verbose...
28.183673
78
0.790007
1870d94ee73f7dbdef8bfbd123db1c0db8e079f0
673,370
py
Python
src/azure-firewall/azext_firewall/vendored_sdks/v2019_07_01/v2019_07_01/models/_models_py3.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/azure-firewall/azext_firewall/vendored_sdks/v2019_07_01/v2019_07_01/models/_models_py3.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2018-11-19T05:12:58.000Z
2018-11-19T05:12:58.000Z
src/azure-firewall/azext_firewall/vendored_sdks/v2019_07_01/v2019_07_01/models/_models_py3.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2020-07-16T23:49:49.000Z
2020-07-16T23:49:49.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.640311
767
0.68352
20840a50ba9cff0caa007385511c7ac346d8e9e6
9,176
py
Python
testing/decorators.py
dweindl/exhale
58c6c771fe021d7487644a30c2575b3fcf1ae94b
[ "BSD-3-Clause" ]
169
2017-02-21T01:07:18.000Z
2022-03-13T04:01:24.000Z
testing/decorators.py
dweindl/exhale
58c6c771fe021d7487644a30c2575b3fcf1ae94b
[ "BSD-3-Clause" ]
126
2017-01-17T21:27:12.000Z
2022-03-31T07:40:02.000Z
testing/decorators.py
dweindl/exhale
58c6c771fe021d7487644a30c2575b3fcf1ae94b
[ "BSD-3-Clause" ]
54
2017-04-07T07:37:17.000Z
2022-03-01T06:54:05.000Z
# -*- coding: utf8 -*- ######################################################################################## # This file is part of exhale. Copyright (c) 2017-2019, Stephen McDowell. # # Full BSD 3-Clause license available here: # # ...
35.565891
98
0.615519
317fc8079bb8c8c0e3fbfc64a78f147ac794bdc1
11,337
py
Python
contracts/libc++/upstream/utils/libcxx/test/format.py
caokun8008/ckeos
889093599eb59c90e4cbcff2817f4421302fada1
[ "MIT" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
contracts/libc++/upstream/utils/libcxx/test/format.py
dimensionofficial/Dimension-E
a39533d4a457ce358185b4d0a5af544e742fc0ab
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
contracts/libc++/upstream/utils/libcxx/test/format.py
dimensionofficial/Dimension-E
a39533d4a457ce358185b4d0a5af544e742fc0ab
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure # # This file is dual licensed under the MIT and the University of Illinois Open # Source Licenses. See LICENSE.TXT for details. # #===------------------------------------------------...
44.458824
83
0.568228
262c655208307f0ca19b4f6807af587a4416628f
3,591
py
Python
textteaser/summarizer.py
guozhonghao1994/NLP
159539b79a584a94f075c39c5507aac8e3d9c432
[ "Apache-2.0" ]
4
2020-03-06T12:07:18.000Z
2020-03-06T12:22:13.000Z
textteaser/summarizer.py
guozhonghao1994/NLP
159539b79a584a94f075c39c5507aac8e3d9c432
[ "Apache-2.0" ]
null
null
null
textteaser/summarizer.py
guozhonghao1994/NLP
159539b79a584a94f075c39c5507aac8e3d9c432
[ "Apache-2.0" ]
2
2020-03-06T12:22:15.000Z
2020-03-06T12:30:32.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from parserr import Parser class Summarizer: def __init__(self): self.parser = Parser() def summarize(self, text, title, source, category): sentences = self.parser.splitSentences(text) titleWords = self.parser.removePunctations(title) ...
34.2
124
0.580897
07e8d036a65b6e3aed243ffe77de37a4a494f8c3
837
py
Python
sentimentAnalysis/urls.py
miniproject2233/mini-project
4d231cc71bc4879c4e1062af05b42e350f16f6a1
[ "MIT" ]
null
null
null
sentimentAnalysis/urls.py
miniproject2233/mini-project
4d231cc71bc4879c4e1062af05b42e350f16f6a1
[ "MIT" ]
null
null
null
sentimentAnalysis/urls.py
miniproject2233/mini-project
4d231cc71bc4879c4e1062af05b42e350f16f6a1
[ "MIT" ]
2
2021-03-25T11:41:35.000Z
2021-03-25T11:42:39.000Z
"""sentimentAnalysis URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='h...
36.391304
78
0.692951
b0e62aad51ec2fdf0dfde9f5e9192bc392f1f50a
1,416
py
Python
fdk_client/platform/models/OpenApiOrderItem.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/OpenApiOrderItem.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/OpenApiOrderItem.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema from .CartItemMeta import CartItemMeta from .OpenApiFiles import OpenApiFiles from .MultiTenderPaymentMethod import MultiTenderPayme...
17.268293
106
0.709746
6a9c7c1de1937b42cf02afbf2fbd94b3b76af5c7
4,312
py
Python
lib/modules/powershell/privesc/bypassuac_hackplayers_eventvwr.py
secperts/Empire-mod-Hackplayers
94bd83bb0e9f10655b25f2d75654746c822b595e
[ "BSD-3-Clause" ]
133
2017-04-05T09:59:48.000Z
2022-03-15T06:59:49.000Z
lib/modules/powershell/privesc/bypassuac_hackplayers_eventvwr.py
NTgitdude23/Empire-mod-Hackplayers
60938c3f4d2a058370b09037f3b9e2713796f93b
[ "BSD-3-Clause" ]
4
2017-07-25T06:45:30.000Z
2019-04-01T09:58:45.000Z
lib/modules/powershell/privesc/bypassuac_hackplayers_eventvwr.py
NTgitdude23/Empire-mod-Hackplayers
60938c3f4d2a058370b09037f3b9e2713796f93b
[ "BSD-3-Clause" ]
47
2017-04-04T18:25:37.000Z
2021-09-27T22:48:35.000Z
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Invoke-BypassUAC-EventVwrBypass-HackPlayers', 'Author': ['Luis Vacas @ CyberVaca'], 'Description': ("Bypasses UAC using eventvwr.exe." ...
38.5
170
0.507189