hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9623258b0aadd8546b69b628ca22ab142e622094
1,642
py
Python
pmfp/entrypoint/grpc/build_/build_pb_go.py
Python-Tools/pmfp
832273890eec08e84f9c68d03f3316b2c8139133
[ "MIT" ]
4
2017-09-15T03:38:56.000Z
2019-12-16T02:03:14.000Z
pmfp/entrypoint/grpc/build_/build_pb_go.py
Python-Tools/pmfp
832273890eec08e84f9c68d03f3316b2c8139133
[ "MIT" ]
1
2021-04-27T10:51:42.000Z
2021-04-27T10:51:42.000Z
pmfp/entrypoint/grpc/build_/build_pb_go.py
Python-Tools/pmfp
832273890eec08e84f9c68d03f3316b2c8139133
[ "MIT" ]
null
null
null
"""编译go语言模块.""" import warnings from typing import List, Optional from pathlib import Path from pmfp.utils.run_command_utils import run def _build_grpc(includes: str, flag: str, to: str, target: str, cwd: Path) -> None: command = f"protoc {includes} {flag} --go_out={to} --go-grpc_out={to} {target}" try: ...
32.84
108
0.626066
0
0
0
0
0
0
0
0
972
0.518677
962392189f97293112a65685c141235eaa945995
369
py
Python
instapp/migrations/0003_auto_20190522_0007.py
imekenye/Instagram-clone
19c895a7bc4d5137f8df6eab7ade3920dfc3eb39
[ "Unlicense" ]
null
null
null
instapp/migrations/0003_auto_20190522_0007.py
imekenye/Instagram-clone
19c895a7bc4d5137f8df6eab7ade3920dfc3eb39
[ "Unlicense" ]
13
2020-02-12T00:19:23.000Z
2022-03-11T23:47:08.000Z
instapp/migrations/0003_auto_20190522_0007.py
imekenye/Instagram-clone
19c895a7bc4d5137f8df6eab7ade3920dfc3eb39
[ "Unlicense" ]
1
2019-06-07T10:01:06.000Z
2019-06-07T10:01:06.000Z
# Generated by Django 2.2.1 on 2019-05-22 00:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('instapp', '0002_auto_20190522_0006'), ] operations = [ migrations.RenameField( model_name='image', old_name='profile', ...
19.421053
47
0.590786
284
0.769648
0
0
0
0
0
0
111
0.300813
9624816b19d6ea779fa1433613690a1826c3af03
4,007
py
Python
app/api/v1_0/users.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
1
2021-01-04T21:25:24.000Z
2021-01-04T21:25:24.000Z
app/api/v1_0/users.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
null
null
null
app/api/v1_0/users.py
daichi-yoshikawa/flask-boilerplate
2a136eb713a698955dc78ce07364ac333806e6da
[ "MIT" ]
null
null
null
import json import logging from flask import jsonify, make_response, request from flask_jwt_extended import jwt_required from flask_restful import Resource from http import HTTPStatus from marshmallow import ValidationError, Schema from werkzeug.security import generate_password_hash from app.models import db from ap...
30.356061
82
0.660344
3,518
0.877964
0
0
759
0.189419
0
0
619
0.15448
9625303d504fb10bd57521a4e704cb6335319f31
984
py
Python
src/count_targets.py
kahvel/MAProject
1c17d0c3fde6d9acc7dd3861f926e8af0ddac222
[ "MIT" ]
null
null
null
src/count_targets.py
kahvel/MAProject
1c17d0c3fde6d9acc7dd3861f926e8af0ddac222
[ "MIT" ]
null
null
null
src/count_targets.py
kahvel/MAProject
1c17d0c3fde6d9acc7dd3861f926e8af0ddac222
[ "MIT" ]
null
null
null
from main import readData, getTrueLabels, binariseLabels, removePacketsAfterChange label_data = list() label_data.append(readData("..\\data\\test5_targets_1.csv")) label_data.append(readData("..\\data\\test5_targets_2.csv")) label_data.append(readData("..\\data\\test5_targets_3.csv")) labels = [getTrueLabels(label) ...
41
132
0.727642
0
0
0
0
0
0
0
0
120
0.121951
962533cca6da11f2ce0eaecf148aa3437a906a76
14,183
py
Python
src/imagine/goal_sampler.py
jordyantunes/Imagine
783cedaa53635b21e18ef41ab1524d56e368d120
[ "MIT" ]
20
2020-11-06T10:54:08.000Z
2022-02-24T15:23:31.000Z
src/imagine/goal_sampler.py
jordyantunes/Imagine
783cedaa53635b21e18ef41ab1524d56e368d120
[ "MIT" ]
null
null
null
src/imagine/goal_sampler.py
jordyantunes/Imagine
783cedaa53635b21e18ef41ab1524d56e368d120
[ "MIT" ]
4
2020-11-17T17:00:02.000Z
2021-07-08T22:51:14.000Z
import numpy as np from mpi4py import MPI from src.imagine.goal_generator.simple_sentence_generator import SentenceGeneratorHeuristic from src import logger class GoalSampler: def __init__(self, policy_language_model, reward_language_model, goal_dim, ...
47.434783
140
0.585419
14,021
0.988578
0
0
0
0
0
0
1,476
0.104068
96262446beb9d081c0d44d53817c947e2939b91a
711
py
Python
src/actionsold.py
Grumpy-Old-Tech/WorkshopAssistant
704e8080e76ba6feabd6eee3e1965439336306ad
[ "MIT" ]
null
null
null
src/actionsold.py
Grumpy-Old-Tech/WorkshopAssistant
704e8080e76ba6feabd6eee3e1965439336306ad
[ "MIT" ]
null
null
null
src/actionsold.py
Grumpy-Old-Tech/WorkshopAssistant
704e8080e76ba6feabd6eee3e1965439336306ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python #This is different from AIY Kit's actions #Copying and Pasting AIY Kit's actions commands will not work from googleapiclient.discovery import build from googleapiclient.errors import HttpError from gmusicapi import Mobileclient from googletrans import Translator from gtts import gTTS import req...
19.75
61
0.819972
0
0
0
0
0
0
0
0
237
0.333333
96275facff37f1002cea2272aef725bd9db2358a
2,358
py
Python
openpype/tools/settings/settings/widgets/window.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/tools/settings/settings/widgets/window.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/tools/settings/settings/widgets/window.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
from Qt import QtWidgets, QtGui from .categories import ( CategoryState, SystemWidget, ProjectWidget ) from .widgets import ShadowWidget from .. import style class MainWidget(QtWidgets.QWidget): widget_width = 1000 widget_height = 600 def __init__(self, user_role, parent=None): super(...
29.111111
72
0.656064
2,185
0.926633
0
0
0
0
0
0
110
0.04665
824894a056e2da4cc1ec1c9dd0d07d94594ced73
6,093
py
Python
azkaban_zip_uploader/tests/lambda_handler_tests.py
uk-gov-mirror/dwp.aws-azkaban
fa69ddf6e18fccba1fb96f6dd7a234b9441e96da
[ "0BSD" ]
null
null
null
azkaban_zip_uploader/tests/lambda_handler_tests.py
uk-gov-mirror/dwp.aws-azkaban
fa69ddf6e18fccba1fb96f6dd7a234b9441e96da
[ "0BSD" ]
null
null
null
azkaban_zip_uploader/tests/lambda_handler_tests.py
uk-gov-mirror/dwp.aws-azkaban
fa69ddf6e18fccba1fb96f6dd7a234b9441e96da
[ "0BSD" ]
null
null
null
import lambda_handler from unittest import TestCase from mock import call, patch, Mock from datetime import datetime import boto3 import json from botocore.stub import Stubber import urllib3 mock_s3_client = boto3.client('s3') s3_stubber = Stubber(mock_s3_client) list_objects_response = { 'IsTruncated': False, ...
35.841176
129
0.678976
3,355
0.550632
0
0
3,099
0.508616
0
0
1,767
0.290005
8249af75d4def2ae40ae7a6a262676d0c39c2b63
2,189
py
Python
cripts/usernames/username.py
lakiw/cripts
43f62891a3724e1ec60629887d97c421fb302163
[ "MIT" ]
2
2017-04-06T12:26:11.000Z
2018-11-05T19:17:15.000Z
cripts/usernames/username.py
lakiw/cripts
43f62891a3724e1ec60629887d97c421fb302163
[ "MIT" ]
9
2016-09-28T10:19:10.000Z
2017-02-24T17:58:43.000Z
cripts/usernames/username.py
lakiw/cripts
43f62891a3724e1ec60629887d97c421fb302163
[ "MIT" ]
null
null
null
import uuid from mongoengine import Document, StringField, ListField, UUIDField from django.conf import settings from cripts.core.cripts_mongoengine import CriptsBaseAttributes, CriptsSourceDocument from cripts.core.cripts_mongoengine import CriptsActionsDocument class UserName(CriptsBaseAttributes, CriptsSourceDoc...
39.8
145
0.516674
1,914
0.874372
0
0
0
0
0
0
806
0.368205
824a4f6bf20408ed367c7e9a67c9b62aea2ab1c0
7,611
py
Python
sweetpea/tests/test_encoding_diagram.py
anniecherk/sweetpea-py
23dbad99a9213ff764ec207b456cf5d002707fd0
[ "MIT" ]
1
2018-05-06T03:54:06.000Z
2018-05-06T03:54:06.000Z
sweetpea/tests/test_encoding_diagram.py
anniecherk/sweetpea-py
23dbad99a9213ff764ec207b456cf5d002707fd0
[ "MIT" ]
5
2018-09-18T02:15:17.000Z
2018-12-05T20:02:24.000Z
sweetpea/tests/test_encoding_diagram.py
anniecherk/sweetpea-py
23dbad99a9213ff764ec207b456cf5d002707fd0
[ "MIT" ]
null
null
null
import pytest import operator as op from sweetpea import fully_cross_block from sweetpea.primitives import Factor, DerivedLevel, WithinTrial, Transition, Window from sweetpea.encoding_diagram import __generate_encoding_diagram color = Factor("color", ["red", "blue"]) text = Factor("text", ["red", "blue"]) con_lev...
48.170886
102
0.411247
0
0
0
0
0
0
0
0
4,375
0.574826
824adf7af953a3787b6ad72eca002b2f5fa3b943
297
py
Python
Source_Code/Python/ConductedTest/case_generator.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
Source_Code/Python/ConductedTest/case_generator.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
3
2018-09-21T00:57:21.000Z
2018-09-21T01:49:40.000Z
Source_Code/Python/ConductedTest/case_generator.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
import json from labinstrument.SS.CMW500.CMW500_WIFI.CMW500_WIFI import * if __name__ == '__main__': new_config_name='emm' new_config=CMW_WIFI(17).get_parameters() config=json.load(open('config.txt')) config[new_config_name]=new_config json.dump(config,open('config.txt','w'))
33
61
0.737374
0
0
0
0
0
0
0
0
42
0.141414
824c8df0f0e68c3c21ba270b931275c591b881bd
9,957
py
Python
internal-export-file/export-report-pdf/src/export-report-pdf.py
aakloul/connectors
171bdc3441b9196ee7aef3f1f9524d8594da6425
[ "Apache-2.0" ]
null
null
null
internal-export-file/export-report-pdf/src/export-report-pdf.py
aakloul/connectors
171bdc3441b9196ee7aef3f1f9524d8594da6425
[ "Apache-2.0" ]
null
null
null
internal-export-file/export-report-pdf/src/export-report-pdf.py
aakloul/connectors
171bdc3441b9196ee7aef3f1f9524d8594da6425
[ "Apache-2.0" ]
null
null
null
import yaml import os import time import datetime from pycti.utils.constants import StixCyberObservableTypes from weasyprint import HTML from pycti import OpenCTIConnectorHelper, get_config_variable from jinja2 import Environment, FileSystemLoader class ExportReportPdf: def __init__(self): # Instantiate t...
40.149194
141
0.610425
9,485
0.952596
0
0
0
0
0
0
2,942
0.295471
824e54bffa5be7c6d4c645bb089554003a4f25bc
189
py
Python
Lyft-Dental/payments/pay/urls.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
1
2021-01-09T08:42:24.000Z
2021-01-09T08:42:24.000Z
Lyft-Dental/payments/pay/urls.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
Lyft-Dental/payments/pay/urls.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
from django.urls import path from .views import initiate_payment, callback urlpatterns = [ path('', initiate_payment, name='pay'), path('callback/', callback, name='callback'), ]
21
49
0.703704
0
0
0
0
0
0
0
0
28
0.148148
824eb389c2a7eca319848d5d0b764477a524317f
544
py
Python
ibmsecurity/isam/base/overview.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
46
2017-03-21T21:08:59.000Z
2022-02-20T22:03:46.000Z
ibmsecurity/isam/base/overview.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
201
2017-03-21T21:25:52.000Z
2022-03-30T21:38:20.000Z
ibmsecurity/isam/base/overview.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
91
2017-03-22T16:25:36.000Z
2022-02-04T04:36:29.000Z
def get(isamAppliance, check_mode=False, force=False): """ Retrieve an overview of updates and licensing information """ return isamAppliance.invoke_get("Retrieve an overview of updates and licensing information", "/updates/overview") def get_licensing_info(isamAppl...
36.266667
96
0.647059
0
0
0
0
0
0
0
0
255
0.46875
824f686fbf01dfe1ee2beac723ed207ab4daf6b1
1,741
py
Python
src/sweetrpg_library_api/application/config.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
src/sweetrpg_library_api/application/config.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
33
2021-09-18T23:52:05.000Z
2022-03-30T12:25:49.000Z
src/sweetrpg_library_api/application/config.py
sweetrpg/library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <[email protected]>" """ config.py - settings for the flask application object """ import os import redis from sweetrpg_library_api.application import constants class BaseConfig(object): DEBUG = bool(os.environ.get(constants.DEBUG) or True) PORT = os.env...
38.688889
115
0.708788
1,521
0.873636
0
0
0
0
0
0
798
0.458357
824f8edece08e9acdf645fa301526e669393eaed
1,711
py
Python
frames.py
mppc12/special_subject_tea
945c10ac5a4f0f2fec2fbd6abeb398074801250f
[ "MIT" ]
null
null
null
frames.py
mppc12/special_subject_tea
945c10ac5a4f0f2fec2fbd6abeb398074801250f
[ "MIT" ]
null
null
null
frames.py
mppc12/special_subject_tea
945c10ac5a4f0f2fec2fbd6abeb398074801250f
[ "MIT" ]
null
null
null
import pandas as pd from group import Group class Frames: def __init__(self, frame=None): self.cleanups = Cleanup() self.groups = Group() class Cleanup: def __init__(self, frame=None): self.frame = frame def __call__(self, frame): self.frame =...
30.017544
81
0.499123
2,013
0.971056
0
0
0
0
0
0
762
0.367583
82500b40709a627c2f0699d9319a5f6bbab93bb0
20,594
py
Python
msm/mycroft_skills_manager.py
forslund/mycroft-skills-manager
825e910a555e1882999647d226a56734a7b75ea4
[ "Apache-2.0" ]
null
null
null
msm/mycroft_skills_manager.py
forslund/mycroft-skills-manager
825e910a555e1882999647d226a56734a7b75ea4
[ "Apache-2.0" ]
null
null
null
msm/mycroft_skills_manager.py
forslund/mycroft-skills-manager
825e910a555e1882999647d226a56734a7b75ea4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 Mycroft AI, Inc. # # This file is part of Mycroft Skills Manager # (see https://github.com/MatthewScholefield/mycroft-light). # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional inf...
37.240506
79
0.609838
17,955
0.871856
0
0
6,680
0.324366
0
0
5,387
0.261581
8251357bc0686fc467cb6924c7a1a83a74692825
973
py
Python
ietf/utils/resources.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-09-02T19:53:12.000Z
2015-09-02T19:53:12.000Z
ietf/utils/resources.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/utils/resources.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Autogenerated by the mkresources management command 2014-11-13 05:39 from tastypie.resources import ModelResource from tastypie.fields import CharField from tastypie.constants import ALL from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from ietf import api from ...
27.8
70
0.70298
573
0.5889
0
0
0
0
0
0
109
0.112025
825208daaf95b00b8d7fda9692bec10b366dcc4a
1,624
py
Python
maskrcnn_benchmark/data/datasets/concat_dataset.py
dukebw/maskrcnn-benchmark
f6710844f8cc6b6ce5345fcdc996f05ec04c3df7
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/concat_dataset.py
dukebw/maskrcnn-benchmark
f6710844f8cc6b6ce5345fcdc996f05ec04c3df7
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/concat_dataset.py
dukebw/maskrcnn-benchmark
f6710844f8cc6b6ce5345fcdc996f05ec04c3df7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import bisect import numpy as np from torch.utils.data.dataset import ConcatDataset as _ConcatDataset class ConcatDataset(_ConcatDataset): """ Same as torch.utils.data.dataset.ConcatDataset, but exposes an extra method for querying t...
32.48
92
0.639163
1,446
0.890394
0
0
0
0
0
0
260
0.160099
8253b8de6bfcb3c4b2705d87c3cbd83db498bfb5
1,129
py
Python
153_find_minimum_in_rotated_sorted_array.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
153_find_minimum_in_rotated_sorted_array.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
153_find_minimum_in_rotated_sorted_array.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 153. Find Minimum in Rotated Sorted Array # # Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. # # (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). # # Find the minimum element. # # You may assume no duplicate exists in the array. class Solution(object): # http://b...
26.255814
96
0.495128
765
0.677591
0
0
0
0
0
0
502
0.444641
8254c27453fc702429a4cf3b2f9b5c4318d236f1
10,452
py
Python
tests/bridge/test_bridge.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
99
2020-12-02T08:40:48.000Z
2022-03-15T05:21:06.000Z
tests/bridge/test_bridge.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
115
2020-12-15T07:15:39.000Z
2022-03-28T22:21:03.000Z
tests/bridge/test_bridge.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
56
2020-12-11T06:50:04.000Z
2022-02-21T09:17:38.000Z
import pytest from brownie import ( accounts, interface, MockVault, BadgerBridgeAdapter, CurveSwapStrategy, CurveTokenWrapper, ) from helpers.constants import AddressZero from helpers.registry import registry from config.badger_config import badger_config from scripts.systems.badger_system impo...
32.560748
99
0.604191
0
0
0
0
1,890
0.180827
0
0
2,491
0.238328
8254e7450b3c4e0f6d891fdfe8c1ab7c064377f8
1,423
py
Python
babylon_server/babylon/config.py
ajponte/babylon
e743f5b3bb5b2eb864247414c4f51962eea9108e
[ "MIT" ]
null
null
null
babylon_server/babylon/config.py
ajponte/babylon
e743f5b3bb5b2eb864247414c4f51962eea9108e
[ "MIT" ]
2
2021-11-08T18:09:22.000Z
2021-11-09T19:22:33.000Z
babylon_server/babylon/config.py
ajponte/babylon
e743f5b3bb5b2eb864247414c4f51962eea9108e
[ "MIT" ]
null
null
null
import os class Config: # Statement for enabling the development environment DEBUG = True # Define the application directory BASE_DIR = os.path.abspath(os.path.dirname(__file__)) # Logging config. LOG_DIR = "logs" LOG_TYPE = ["LOG_TYPE", "watched"] LOG_LEVEL = "DEBUG" APP_LOG_NAM...
37.447368
185
0.709065
1,410
0.990864
0
0
0
0
0
0
848
0.595924
82559085472d1981739859824315a98440b83c6f
131
py
Python
etherscan_py/__init__.py
saltduck/etherscan_py
1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e
[ "MIT" ]
6
2021-02-20T10:32:36.000Z
2022-02-10T17:00:00.000Z
etherscan_py/__init__.py
saltduck/etherscan_py
1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e
[ "MIT" ]
2
2020-11-19T04:39:25.000Z
2021-03-05T12:40:21.000Z
etherscan_py/__init__.py
saltduck/etherscan_py
1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e
[ "MIT" ]
3
2021-03-03T18:37:26.000Z
2021-04-04T14:14:05.000Z
"""Top-level package for etherscan-py.""" __author__ = """Julian Koh""" __email__ = '[email protected]' __version__ = '0.1.0'
21.833333
41
0.687023
0
0
0
0
0
0
0
0
87
0.664122
8258e9ef419949e0cfc0082d25711b7eeaaea221
427
py
Python
realtime/realtime.py
mikerah13/python_samples
c4cd8af3cee99a5199dd2231f182240c35984b97
[ "MIT" ]
null
null
null
realtime/realtime.py
mikerah13/python_samples
c4cd8af3cee99a5199dd2231f182240c35984b97
[ "MIT" ]
null
null
null
realtime/realtime.py
mikerah13/python_samples
c4cd8af3cee99a5199dd2231f182240c35984b97
[ "MIT" ]
null
null
null
from subprocess import Popen, PIPE def run_command(command): process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE) while True: output = process.stdout.readline() if output == '' and process.poll() is not None: break if output: print output.str...
23.722222
76
0.627635
0
0
0
0
0
0
0
0
29
0.067916
825a7d574135cde50db9d1e2e4cce7b2af3b42c9
923
py
Python
resources/model/agenda.py
diegohideky/climatempoworkshop
edb50eec386d6db5ede9b28192520922ed85c55e
[ "MIT" ]
null
null
null
resources/model/agenda.py
diegohideky/climatempoworkshop
edb50eec386d6db5ede9b28192520922ed85c55e
[ "MIT" ]
null
null
null
resources/model/agenda.py
diegohideky/climatempoworkshop
edb50eec386d6db5ede9b28192520922ed85c55e
[ "MIT" ]
null
null
null
from db_connection import db class Agenda(db.Model): __tablename__ = "agendas" id = db.Column(db.Integer, primary_key=True) date = db.Column(db.Date) work_start = db.Column(db.Time) work_end = db.Column(db.Time) rest_start = db.Column(db.Time) rest_end = db.Column(db.Time) user_id = db...
31.827586
82
0.658722
892
0.966414
0
0
0
0
0
0
28
0.030336
825b17f2327978290f8d614819c14bd2efe19e58
661
py
Python
data/models.py
sarfarazstark/To-Do-Bot
c2d032fa69e42b651d1c574c276161eceb141981
[ "Apache-2.0" ]
4
2020-11-21T14:49:00.000Z
2022-02-21T11:24:17.000Z
data/models.py
sarfarazstark/To-Do-Bot
c2d032fa69e42b651d1c574c276161eceb141981
[ "Apache-2.0" ]
null
null
null
data/models.py
sarfarazstark/To-Do-Bot
c2d032fa69e42b651d1c574c276161eceb141981
[ "Apache-2.0" ]
null
null
null
"""Database models""" from sqlalchemy import orm import sqlalchemy from .db_session import SqlAlchemyBase # Task database model class Task(SqlAlchemyBase): __tablename__ = 'tasks' id = sqlalchemy.Column( sqlalchemy.Integer, primary_key=True, autoincrement=True ) user_id = sqlalchemy.Column(...
23.607143
73
0.753404
504
0.762481
0
0
0
0
0
0
77
0.11649
825b9506a0a8cc2c13904600639147b936af53d7
470
py
Python
graduated_site/migrations/0029_auto_20191218_2109.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
graduated_site/migrations/0029_auto_20191218_2109.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
graduated_site/migrations/0029_auto_20191218_2109.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-18 21:09 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('graduated_site', '0028_auto_20191218_2028'), ] operations = [ migrations.AlterField( model_name='user_internship_po...
23.5
99
0.651064
366
0.775424
0
0
0
0
0
0
127
0.269068
825c203e1359d9feaff1e4d74ceac39a9987f062
4,945
py
Python
tests/test_obj.py
runapp/M2Crypto
bc3b54758fe73dce86304663084b40fa5d6973c0
[ "MIT" ]
58
2015-04-20T01:17:37.000Z
2022-03-31T10:55:13.000Z
tests/test_obj.py
runapp/M2Crypto
bc3b54758fe73dce86304663084b40fa5d6973c0
[ "MIT" ]
7
2015-07-08T21:59:37.000Z
2021-04-18T12:27:41.000Z
tests/test_obj.py
runapp/M2Crypto
bc3b54758fe73dce86304663084b40fa5d6973c0
[ "MIT" ]
29
2015-02-23T17:46:31.000Z
2022-03-15T09:57:46.000Z
#!/usr/bin/env python """Unit tests for M2Crypto.m2 obj_* functions. """ from M2Crypto import ASN1, BIO, Rand, X509, m2, six from tests import unittest """ These functions must be cleaned up and moved to some python module Taken from CA managment code """ def x509_name2list(name): for i in range(0, name.entry_c...
35.070922
81
0.591304
3,329
0.673205
189
0.03822
0
0
0
0
1,172
0.237007
825ed7b070e5aaac9e764b86a1c9c4bdbe9ea988
4,656
py
Python
new_scraper.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
null
null
null
new_scraper.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
null
null
null
new_scraper.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
null
null
null
#!/bin/python # -*- coding: utf-8 -*- # Droplet Name: ubuntu-512mb-sfo2-01 # IP Address: 138.68.252.152 # Username: root # Password: fbe29a96430704766b5054c4d9 # New Password: Rowing525 # https://medium.com/@hoppy/how-to-test-or-scrape-javascript-rendered-websites-with-python-selenium-a-beginner-step-by-c137892216aa ...
27.550296
131
0.649055
4,064
0.872852
0
0
0
0
0
0
1,447
0.310782
825ff6c34b7f590f5f9226ffd0a964d853a9a998
532
py
Python
gdsfactory/simulation/gmeep/__init__.py
gdsfactory/gdsfactory
ee761ae0b4429fbec7035bbea5d1e5206c66bea7
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/simulation/gmeep/__init__.py
gdsfactory/gdsfactory
ee761ae0b4429fbec7035bbea5d1e5206c66bea7
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/simulation/gmeep/__init__.py
gdsfactory/gdsfactory
ee761ae0b4429fbec7035bbea5d1e5206c66bea7
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
from gdsfactory.simulation.gmeep.add_monitors import add_monitors from gdsfactory.simulation.gmeep.get_simulation import get_simulation from gdsfactory.simulation.gmeep.get_transmission_2ports import ( get_transmission_2ports, plot2D, plot3D, ) from gdsfactory.simulation.gmeep.plot_xsection import plot_xsec...
25.333333
69
0.757519
0
0
0
0
0
0
0
0
129
0.242481
82602d4942f676f159704b220ea884a45a9e0b4a
11,212
py
Python
coreos-ostree-importer/coreos_ostree_importer.py
dustymabe/fedora-coreos-releng-automation
654a3505f3cc0795fa192c7503858e6fc95a9093
[ "MIT" ]
null
null
null
coreos-ostree-importer/coreos_ostree_importer.py
dustymabe/fedora-coreos-releng-automation
654a3505f3cc0795fa192c7503858e6fc95a9093
[ "MIT" ]
null
null
null
coreos-ostree-importer/coreos_ostree_importer.py
dustymabe/fedora-coreos-releng-automation
654a3505f3cc0795fa192c7503858e6fc95a9093
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import boto3 import botocore import fedora_messaging import fedora_messaging.api import hashlib import json import logging import os import subprocess import sys import tarfile import tempfile import traceback # Set local logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) ...
37.249169
125
0.646539
4,078
0.363717
0
0
0
0
0
0
4,693
0.418569
8261781129ea227c5b055b630da103ca621c0fbe
1,837
py
Python
deepscm/datasets/medical/ukbb.py
mobarakol/deepscm
ffa5f0208c98b1f31e300f28c07c7d51090eda4a
[ "MIT" ]
null
null
null
deepscm/datasets/medical/ukbb.py
mobarakol/deepscm
ffa5f0208c98b1f31e300f28c07c7d51090eda4a
[ "MIT" ]
null
null
null
deepscm/datasets/medical/ukbb.py
mobarakol/deepscm
ffa5f0208c98b1f31e300f28c07c7d51090eda4a
[ "MIT" ]
null
null
null
from torch.utils.data.dataset import Dataset import numpy as np import pandas as pd import os import nibabel as nib from nilearn.image import resample_img import torch class UKBBDataset(Dataset): def __init__(self, csv_path, base_path='/vol/biobank/12579/brain/rigid_to_mni/images', crop_type=None, crop_size=(64, 6...
41.75
169
0.645073
1,667
0.907458
0
0
0
0
0
0
147
0.080022
82629e49973e0be1f008350e2ac5d3d75aff0200
4,493
py
Python
external/mmdetection/detection_tasks/extension/utils/pipelines.py
bes-dev/training_extensions
7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb
[ "Apache-2.0" ]
44
2018-10-27T15:28:19.000Z
2019-02-26T12:50:39.000Z
external/mmdetection/detection_tasks/extension/utils/pipelines.py
bes-dev/training_extensions
7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb
[ "Apache-2.0" ]
31
2018-11-09T20:33:47.000Z
2019-02-28T09:58:22.000Z
external/mmdetection/detection_tasks/extension/utils/pipelines.py
bes-dev/training_extensions
7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb
[ "Apache-2.0" ]
27
2018-11-05T21:59:34.000Z
2019-02-28T14:28:50.000Z
# Copyright (C) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
37.132231
136
0.665702
3,717
0.827287
0
0
3,775
0.840196
0
0
1,870
0.416203
826343a77ca38151d0a290d5ea759c030e820e04
846
py
Python
Leetcode/Competition/180_1.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
1
2019-11-26T11:52:25.000Z
2019-11-26T11:52:25.000Z
Leetcode/Competition/180_1.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
null
null
null
Leetcode/Competition/180_1.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
null
null
null
from typing import List class Solution: def luckyNumbers (self, matrix: List[List[int]]) -> List[int]: m = len(matrix) n = len(matrix[0]) ans = [] for i in range(m): row_min_index = 0 row_min = 10**5+1 for j in range(n): if matrix[i...
33.84
68
0.478723
643
0.760047
0
0
0
0
0
0
0
0
8264bba891a9dc8d15b49f3c1fc314e278831022
3,282
py
Python
GUITests/UC10.sikuli/UC10.py
gabrielganzer/EZGas
cc21dadb0001405e96a8fe298c2bbccf61d5d5a2
[ "BSD-3-Clause" ]
null
null
null
GUITests/UC10.sikuli/UC10.py
gabrielganzer/EZGas
cc21dadb0001405e96a8fe298c2bbccf61d5d5a2
[ "BSD-3-Clause" ]
null
null
null
GUITests/UC10.sikuli/UC10.py
gabrielganzer/EZGas
cc21dadb0001405e96a8fe298c2bbccf61d5d5a2
[ "BSD-3-Clause" ]
1
2021-04-06T14:31:08.000Z
2021-04-06T14:31:08.000Z
# UC10 - Evaluate price # # User U exists and has valid account # We create two Users, User1_UC10, User2_UC10 and one new gasStation GasStationUC10 # # Registered on a 1920x1080p, Google Chrome 100% zoom ### SETUP #User1 click("1590678880209.png") click("1590678953637.png") wait(2) type("1...
23.442857
95
0.720902
0
0
0
0
0
0
0
0
1,819
0.554235
82661285c2d18985678122dfb06c00248935e316
540
py
Python
basic/migrations/0003_entrypoint_entry_function.py
kgdunn/django-peer-review-system
8d013961e00d189fbbade5283128e956a27954f8
[ "BSD-2-Clause" ]
null
null
null
basic/migrations/0003_entrypoint_entry_function.py
kgdunn/django-peer-review-system
8d013961e00d189fbbade5283128e956a27954f8
[ "BSD-2-Clause" ]
2
2020-03-20T11:50:04.000Z
2020-03-20T11:50:06.000Z
basic/migrations/0003_entrypoint_entry_function.py
kgdunn/django-peer-review-system
8d013961e00d189fbbade5283128e956a27954f8
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-27 16:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('basic', '0002_auto_20170727_1741'), ] operations = [ migrations.AddField( ...
25.714286
131
0.644444
382
0.707407
0
0
0
0
0
0
189
0.35
826680004e25570292d08da9b3737a70f6cd33e6
29,337
py
Python
test_net_with_srgan.py
jasonlai777/Faster-R-CNN
b5c0c18a9b5faabd4b6ef23346aff85104df7356
[ "MIT" ]
null
null
null
test_net_with_srgan.py
jasonlai777/Faster-R-CNN
b5c0c18a9b5faabd4b6ef23346aff85104df7356
[ "MIT" ]
null
null
null
test_net_with_srgan.py
jasonlai777/Faster-R-CNN
b5c0c18a9b5faabd4b6ef23346aff85104df7356
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Pytorch Multi-GPU Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import ...
39.325737
115
0.590449
0
0
0
0
0
0
0
0
6,445
0.219688
8267a45960a2743e88617d4dc273ba1a2f8b4aea
1,231
py
Python
app.py
iio1989/oshite
dd95eced2630929705670aaf23be5f35df3b9737
[ "OLDAP-2.3" ]
null
null
null
app.py
iio1989/oshite
dd95eced2630929705670aaf23be5f35df3b9737
[ "OLDAP-2.3" ]
1
2020-09-24T05:15:00.000Z
2020-09-24T05:17:06.000Z
app.py
iio1989/oshite
dd95eced2630929705670aaf23be5f35df3b9737
[ "OLDAP-2.3" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, Markup import app_helper as apHelp app = Flask(__name__) @app.route('/') def root(): return render_template('home.html') # click convetBtn. get HttpParam. @app.route('/post', methods=['GET', 'POST']) def post(): if request.method == 'POST'...
30.775
77
0.645004
0
0
0
0
917
0.744923
0
0
336
0.272949
826808ff1bd0ba43f535ae2091908373eab637e4
1,322
py
Python
build/cls/tp/slices.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
1
2016-07-19T08:50:54.000Z
2016-07-19T08:50:54.000Z
src/tp/slices.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
src/tp/slices.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
""" Makes subdirectories with slices of seismic time or depth images. For example, the directory with name "s3_84" contains a constant-i3 slice, where i3 = 84. """ from tputils import * #setupForSubset("subz_401_4_600") setupForSubset("subt_251_4_500") seismicDir = getSeismicDir() #####################################...
28.12766
77
0.618759
0
0
0
0
0
0
0
0
434
0.32829
826871d70c21ce76b15c27edf3c9b2a76149c4a5
4,442
py
Python
lldb/examples/summaries/cocoa/NSException.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
427
2018-05-29T14:21:02.000Z
2022-03-16T03:17:54.000Z
SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
25
2018-07-23T08:34:15.000Z
2021-11-05T07:13:36.000Z
SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
52
2018-07-19T19:57:32.000Z
2022-03-11T16:05:38.000Z
""" LLDB AppKit formatters part of The LLVM Compiler Infrastructure This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details. """ # summary provider for class NSException import lldb.runtime.objc.objc_runtime import lldb.formatters.metrics import CFString import lldb i...
32.903704
94
0.670419
2,308
0.519586
0
0
0
0
0
0
611
0.137551
8268e3ff708fceac06d057f89101a1b211a8db3a
364
py
Python
pacman-arch/test/pacman/tests/upgrade084.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade084.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade084.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a package ('any' architecture)" p = pmpkg("dummy") p.files = ["bin/dummy", "usr/man/man1/dummy.1"] p.arch = 'any' self.addpkg(p) self.option["Architecture"] = ['auto'] self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=dummy") for f in ...
21.411765
59
0.648352
0
0
0
0
0
0
0
0
162
0.445055
826924435f780ad15c0f8fe2ba2c459917504e1d
7,995
py
Python
Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py
FI-Mihej/FI-ASockIOCore
82ee94e94f692511afee5aeb0d75bb7366eb9b96
[ "Apache-2.0" ]
null
null
null
Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py
FI-Mihej/FI-ASockIOCore
82ee94e94f692511afee5aeb0d75bb7366eb9b96
[ "Apache-2.0" ]
null
null
null
Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py
FI-Mihej/FI-ASockIOCore
82ee94e94f692511afee5aeb0d75bb7366eb9b96
[ "Apache-2.0" ]
null
null
null
from simple_network.tcp_app_server import * import httptools """ Module Docstring Docstrings: http://www.python.org/dev/peps/pep-0257/ """ __author__ = 'ButenkoMS <[email protected]>' # ====================================================================== # ===================GLOBAL SETTINGS FOR ALL TESTS=====...
34.313305
115
0.635897
4,512
0.564353
0
0
0
0
0
0
2,250
0.281426
826a0a34399ac3cae5194033717af23bcc5eca24
1,066
py
Python
bamboomba_description/launch/robot_state_publisher.launch.py
RIF-Robotics/bamboomba
3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d
[ "BSD-3-Clause" ]
null
null
null
bamboomba_description/launch/robot_state_publisher.launch.py
RIF-Robotics/bamboomba
3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d
[ "BSD-3-Clause" ]
null
null
null
bamboomba_description/launch/robot_state_publisher.launch.py
RIF-Robotics/bamboomba
3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d
[ "BSD-3-Clause" ]
null
null
null
from os import path from launch import LaunchDescription from ament_index_python.packages import get_package_share_directory from launch_ros.actions import Node from launch.actions import DeclareLaunchArgument from launch.substitutions import Command, LaunchConfiguration def generate_launch_description(): use_sim_...
35.533333
83
0.674484
0
0
0
0
0
0
0
0
236
0.221388
826b06577ba553bf4320966964956912f51ba613
1,211
py
Python
tests/test__event.py
alpha-health-ai/pyformance
3dcf6556a070e89c783f30ddfff03c986e7a5582
[ "Apache-2.0" ]
4
2019-11-13T11:11:43.000Z
2021-06-20T11:01:27.000Z
tests/test__event.py
alpha-health-ai/pyformance
3dcf6556a070e89c783f30ddfff03c986e7a5582
[ "Apache-2.0" ]
5
2019-01-14T14:59:44.000Z
2020-12-13T17:04:27.000Z
tests/test__event.py
alpha-health-ai/pyformance
3dcf6556a070e89c783f30ddfff03c986e7a5582
[ "Apache-2.0" ]
6
2019-04-17T21:07:40.000Z
2022-01-18T16:11:51.000Z
from pyformance.meters import Event, EventPoint from tests import TimedTestCase class EventTestCase(TimedTestCase): def setUp(self): super(EventTestCase, self).setUp() self.event = Event( clock=TimedTestCase.clock, key="test_event", tags={"name", "value"} ...
26.911111
87
0.620974
1,128
0.931462
0
0
0
0
0
0
125
0.10322
826c1e777daa6347910fda6447c0f31e1cd72324
4,894
py
Python
problem_#43_30032019.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
problem_#43_30032019.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
problem_#43_30032019.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
""" Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Implement a stack that has the following methods: push(val), which pushes an element onto the stack pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then it sh...
31.574194
152
0.603801
3,948
0.806702
0
0
0
0
0
0
1,535
0.313649
826c762278c3cdf3123d44a03bc4ba2f8e259b59
1,161
py
Python
scrapy/contrib/linkextractors/lxmlhtml.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
1
2015-09-03T18:30:10.000Z
2015-09-03T18:30:10.000Z
scrapy/contrib/linkextractors/lxmlhtml.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
2
2021-12-13T20:51:32.000Z
2022-02-11T03:47:35.000Z
scrapy/contrib/linkextractors/lxmlhtml.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
1
2017-11-09T20:33:59.000Z
2017-11-09T20:33:59.000Z
""" Link extractor based on lxml.html """ import lxml.html from scrapy.link import Link from scrapy.utils.python import unique as unique_list class LxmlParserLinkExtractor(object): def __init__(self, tag="a", attr="href", process=None, unique=False): self.scan_tag = tag if callable(tag) else lambda t: t ...
31.378378
73
0.639966
1,013
0.872524
0
0
0
0
0
0
50
0.043066
826cefe38aada7c6d25cf287d99f1f536d838887
97
py
Python
src/meetings/admin.py
Yalnyra/office-meeting-reservation
52f558ec11a9b5d69c28acb60de132d70b0a789b
[ "bzip2-1.0.6" ]
null
null
null
src/meetings/admin.py
Yalnyra/office-meeting-reservation
52f558ec11a9b5d69c28acb60de132d70b0a789b
[ "bzip2-1.0.6" ]
null
null
null
src/meetings/admin.py
Yalnyra/office-meeting-reservation
52f558ec11a9b5d69c28acb60de132d70b0a789b
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from .models import Meeting admin.site.register(Meeting)
16.166667
33
0.773196
0
0
0
0
0
0
0
0
0
0
826e60c1e9dd5f09bf2a2eb0580dbe4ef233f970
578
py
Python
app/templates/init.py
arudmin/generator-flask-heroku
12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1
[ "MIT" ]
null
null
null
app/templates/init.py
arudmin/generator-flask-heroku
12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1
[ "MIT" ]
null
null
null
app/templates/init.py
arudmin/generator-flask-heroku
12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1
[ "MIT" ]
null
null
null
from flask import Flask, url_for import os app = Flask(__name__) app.config['DEBUG'] = True app.config['SECRET_KEY'] = 'SECRET_KEY_CH1ng3me' # Determines the destination of the build. Only usefull if you're using Frozen-Flask app.config['FREEZER_DESTINATION'] = os.path.dirname(os.path.abspath(__file__))+'/../build' ...
32.111111
90
0.723183
0
0
0
0
0
0
0
0
285
0.49308
826e7e8ce0638e411f4ad1445cfe2c06fdbae9c6
936
py
Python
sigmod2021-exdra-p523/experiments/code/other/l2svm.py
damslab/reproducibility
f7804b2513859f7e6f14fa7842d81003d0758bf8
[ "Apache-2.0" ]
4
2021-12-10T17:20:26.000Z
2021-12-27T14:38:40.000Z
sigmod2021-exdra-p523/experiments/code/other/l2svm.py
damslab/reproducibility
f7804b2513859f7e6f14fa7842d81003d0758bf8
[ "Apache-2.0" ]
null
null
null
sigmod2021-exdra-p523/experiments/code/other/l2svm.py
damslab/reproducibility
f7804b2513859f7e6f14fa7842d81003d0758bf8
[ "Apache-2.0" ]
null
null
null
import numpy as np import argparse from sklearn.svm import LinearSVR from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler from sklearn.datasets import make_regression parser = argparse.ArgumentParser() parser.add_argument('-x', '--datapath', type=str, required=True) parser.add_a...
36
111
0.766026
0
0
0
0
0
0
0
0
188
0.200855
826ee5078415354fd8746cf24ad960817241f697
4,797
py
Python
libs/fm_mission_planner/python/fm_mission_planner/target_viz.py
ethz-asl/mav_findmine
2835995ace0a20a30f20812437b1b066428253a9
[ "MIT" ]
3
2021-06-25T03:38:38.000Z
2022-01-13T08:39:48.000Z
libs/fm_mission_planner/python/fm_mission_planner/target_viz.py
ethz-asl/mav_findmine
2835995ace0a20a30f20812437b1b066428253a9
[ "MIT" ]
null
null
null
libs/fm_mission_planner/python/fm_mission_planner/target_viz.py
ethz-asl/mav_findmine
2835995ace0a20a30f20812437b1b066428253a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # MIT License # # Copyright (c) 2020 Rik Baehnemann, ASL, ETH Zurich, Switzerland # # 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 witho...
36.9
141
0.64999
3,288
0.685428
0
0
0
0
0
0
1,428
0.297686
826f63c5c39c287a99f63c5f1236dbd56acc410a
20,198
py
Python
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
null
null
null
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
null
null
null
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
1
2022-02-14T03:22:18.000Z
2022-02-14T03:22:18.000Z
"""Google Cloud Hierarchical Firewall Generator. Hierarchical Firewalls (HF) are represented in a SecurityPolicy GCP resouce. """ import copy import re from typing import Dict, Any from absl import logging from capirca.lib import gcp from capirca.lib import nacaddr class ExceededCostError(gcp.Error): """Raised ...
36.392793
105
0.645608
18,476
0.914744
0
0
0
0
0
0
8,121
0.40207
82701369685666a9616bf5da9dc3d5c258f51242
196
py
Python
src/caracara/_kits.py
LaudateCorpus1/caracara
1200f56891617f15dd48616d7198c45a1e0cbe26
[ "Unlicense" ]
1
2021-12-28T05:12:33.000Z
2021-12-28T05:12:33.000Z
src/caracara/_kits.py
CrowdStrike/caracara
0cfc12447ee299f69e23a5d5210eab5fce8e033e
[ "Unlicense" ]
1
2021-11-26T08:53:25.000Z
2021-11-26T08:53:25.000Z
src/caracara/_kits.py
LaudateCorpus1/caracara
1200f56891617f15dd48616d7198c45a1e0cbe26
[ "Unlicense" ]
2
2022-02-22T07:32:20.000Z
2022-02-26T03:05:57.000Z
"""Kits class defines the available Toolboxes.""" from enum import Enum class Kits(Enum): """Enumerator for toolbox class name lookups.""" HOSTS = "HostsToolbox" RTR = "RTRToolbox"
19.6
52
0.683673
121
0.617347
0
0
0
0
0
0
123
0.627551
827202efc4734328b2680b6cfa71b26432695ccb
559
py
Python
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
#!/bin/python3 # https://www.hackerrank.com/challenges/time-conversion import sys def timeConversion(s): # Complete this function ar = s.split(':') tail = ar[-1][-2:].lower() addition_hours = 0 if (tail == 'pm' and ar[0] != '12') or (tail == 'am' and ar[0] == '12'): addition_hours ...
26.619048
77
0.563506
0
0
0
0
0
0
0
0
125
0.223614
8272095e27dabd69813e44dde70f50afb8a04d0c
5,296
py
Python
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
5
2018-09-07T09:00:31.000Z
2022-01-02T05:20:46.000Z
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
null
null
null
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
3
2018-02-14T14:04:45.000Z
2021-04-15T04:31:42.000Z
from decimal import Decimal, getcontext, ROUND_HALF_UP from supplychainpy.demand import analyse_uncertain_demand from supplychainpy.demand.eoq import minimum_variable_cost, economic_order_quantity class EconomicOrderQuantity(analyse_uncertain_demand.UncertainDemand): __economic_order_quantity = Decimal(0) ana...
42.368
138
0.624434
5,096
0.962236
0
0
1,224
0.231118
0
0
207
0.039086
8273cb7b96dbba2d80d2ff7f28ed04bc72f420f5
2,182
py
Python
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
1
2019-04-04T07:07:55.000Z
2019-04-04T07:07:55.000Z
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
null
null
null
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
null
null
null
from __future__ import division import mmcv import numpy as np import pytest def test_quantize(): arr = np.random.randn(10, 10) levels = 20 qarr = mmcv.quantize(arr, -1, 1, levels) assert qarr.shape == arr.shape assert qarr.dtype == np.dtype('int64') for i in range(arr.shape[0]): for...
31.171429
75
0.593951
0
0
0
0
0
0
0
0
32
0.014665
82740abbd8d90d8a1d79663896c17644f40508b8
2,373
py
Python
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
1
2020-07-06T18:15:34.000Z
2020-07-06T18:15:34.000Z
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
null
null
null
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Author: João Ribeiro """ import argparse import numpy as np from model import FeedForwardNetwork from utils import load_ocr_dataset, plot if __name__ == '__main__': parser = argparse.ArgumentParser() # Hyperparams parser.add_argument('-epochs', default=20, type=int, help="N...
31.64
120
0.645175
0
0
0
0
0
0
0
0
858
0.361415
8274f0f41fe5e911ea0767aa342d89364c6cbf67
3,935
py
Python
varify/samples/views.py
chop-dbhi/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
6
2015-01-16T14:35:29.000Z
2017-06-18T05:56:15.000Z
varify/samples/views.py
solvebio/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
null
null
null
varify/samples/views.py
solvebio/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
3
2015-05-27T15:03:17.000Z
2020-03-11T08:42:46.000Z
from guardian.shortcuts import get_objects_for_user from django.http import Http404, HttpResponseRedirect from django.db.models import Count from django.core.urlresolvers import reverse from django.shortcuts import render, get_object_or_404 from vdw.samples.models import Sample, Project, Batch, Cohort from .forms impor...
31.48
79
0.665565
0
0
0
0
0
0
0
0
650
0.165184
8275090a0a26b9725fd053645507a75767690bfa
6,656
py
Python
dumbai.py
CapKenway/dumbai
affa89663c980177d6c1e0fef9bda7978032da4d
[ "Unlicense" ]
null
null
null
dumbai.py
CapKenway/dumbai
affa89663c980177d6c1e0fef9bda7978032da4d
[ "Unlicense" ]
null
null
null
dumbai.py
CapKenway/dumbai
affa89663c980177d6c1e0fef9bda7978032da4d
[ "Unlicense" ]
null
null
null
import sys from pprint import pprint import os #--------------------------------------------------------------------------# class CsPP(): def __init__(self, domains): self.domains = domains self.maindict = {} self.keyitems = [] pass def check_if(self): emptylist = [] ...
35.404255
118
0.526292
6,371
0.957181
0
0
0
0
0
0
291
0.04372
82758db2cce35fc271964b68ef46df023933f752
6,079
py
Python
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Adapted from: https://github.com/zpincus/celltool/blob/master/celltool/numerics/image_warp.py from scipy import ndimage import numpy as np from probreg import bcpd import tifffile import matplotlib.pyplot as plt import napari from magicgui import magic_factory, widgets from nap...
40.798658
147
0.659154
0
0
0
0
1,874
0.308274
0
0
506
0.083237
8275c53b65c622b02c7389ff31c415c23a469b50
6,235
py
Python
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
null
null
null
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
7
2018-03-26T02:09:43.000Z
2021-06-10T17:42:26.000Z
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
2
2018-03-29T12:51:28.000Z
2018-12-27T18:44:35.000Z
from django.test import TestCase, RequestFactory import vcr from django.conf import settings from django.core.management import call_command from open_humans.models import OpenHumansMember from main.celery import read_reference, clean_raw_23andme from main.celery_helper import vcf_header import os import tempfile impor...
40.225806
171
0.563432
5,843
0.937129
0
0
3,008
0.482438
0
0
2,517
0.403689
82763f4b601df981afd52e2acd04c501b896a5f2
168
py
Python
apps/tracking/admin.py
Codeidea/budget-tracker
e07e8d6bb49b0a3de428942a57f090912c191d3e
[ "MIT" ]
null
null
null
apps/tracking/admin.py
Codeidea/budget-tracker
e07e8d6bb49b0a3de428942a57f090912c191d3e
[ "MIT" ]
null
null
null
apps/tracking/admin.py
Codeidea/budget-tracker
e07e8d6bb49b0a3de428942a57f090912c191d3e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import LogCategory, BudgetLog # Register your models here. admin.site.register(LogCategory) admin.site.register(BudgetLog)
33.6
42
0.833333
0
0
0
0
0
0
0
0
28
0.166667
8276d754ae9e540d8e94f8e6e543d48ce3a9e8c7
2,060
py
Python
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
4
2021-06-01T02:06:57.000Z
2022-02-23T02:14:07.000Z
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
null
null
null
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
2
2021-01-28T05:48:20.000Z
2022-01-24T11:59:13.000Z
# -*- coding: UTF-8 -*- #!/usr/bin/python3 """ Embedding Layer """ #************************************************************ # Imported Libraries #************************************************************ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from gensim.models i...
30.294118
94
0.662136
1,706
0.828155
0
0
0
0
0
0
472
0.229126
827728c1d9e6e7856cb8f43e7465659d4d505df0
17,810
py
Python
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
import abc import socket import logging import asyncio import warnings import h2.config import h2.exceptions from .utils import DeadlineWrapper from .const import Status from .stream import send_message, recv_message from .stream import StreamIterator from .metadata import Metadata, Deadline from .protocol import H2P...
34.921569
80
0.600842
13,407
0.752695
0
0
160
0.008983
12,665
0.711038
6,465
0.362958
82789f2ad5480b27da525091f877dbbf7fb5f30c
3,923
py
Python
examples/vector_dot.py
Wheest/EVA
6d19da1d454f398f0ade297d3a76a4ee9e773929
[ "MIT" ]
null
null
null
examples/vector_dot.py
Wheest/EVA
6d19da1d454f398f0ade297d3a76a4ee9e773929
[ "MIT" ]
null
null
null
examples/vector_dot.py
Wheest/EVA
6d19da1d454f398f0ade297d3a76a4ee9e773929
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from eva import EvaProgram, Input, Output from eva.ckks import CKKSCompiler from eva.seal import generate_keys import numpy as np import time from eva.std.numeric import horizontal_sum def dot(x, y): return np.dot(x, y) def generate_inputs_naive(size, label="x"): inputs...
28.845588
87
0.640836
0
0
0
0
0
0
0
0
809
0.20622
8278ddae26be1d01817d1cce51811bee77e0e097
5,903
py
Python
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function # -*- coding: utf-8 -*- # Copyright 2020 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.a...
34.723529
79
0.750127
1,406
0.238184
0
0
974
0.165001
0
0
3,563
0.603591
8279df0466383aeaceedee24127f9a8045b9a674
401
py
Python
src/sales/migrations/0029_auto_20191025_1058.py
vladimirtkach/yesjob
83800f4d29bf2dab30b14fc219d3150e3bc51e15
[ "MIT" ]
null
null
null
src/sales/migrations/0029_auto_20191025_1058.py
vladimirtkach/yesjob
83800f4d29bf2dab30b14fc219d3150e3bc51e15
[ "MIT" ]
18
2020-02-12T00:41:40.000Z
2022-02-10T12:00:03.000Z
src/sales/migrations/0029_auto_20191025_1058.py
vladimirtkach/yesjob
83800f4d29bf2dab30b14fc219d3150e3bc51e15
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-10-25 10:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sales', '0028_auto_20191024_1736'), ] operations = [ migrations.AlterField( model_name='interaction', name='result', ...
21.105263
64
0.608479
310
0.773067
0
0
0
0
0
0
98
0.244389
8279e33b741621fbcfe10f065044f83eff6d9a93
41,238
py
Python
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
""" UI for controlling how api classes and mel commands are combined into pymel classes. This UI modifies factories.apiToMelData which is pickled out to apiMelBridge. It controls: which mel methods correspond to api methods disabling of api methods preference for overloaded methods (since currently only o...
42.295385
151
0.591299
34,512
0.836898
802
0.019448
837
0.020297
0
0
10,561
0.256099
827aae5cfb257b722009084fcdc82d1efd26e382
35
py
Python
src/test/data/pa3/sample/list_get_element_oob_3.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
src/test/data/pa3/sample/list_get_element_oob_3.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
4
2020-05-18T01:06:15.000Z
2020-06-12T19:33:14.000Z
src/test/data/pa3/sample/list_get_element_oob_3.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
5
2019-11-27T05:11:05.000Z
2021-06-29T14:31:14.000Z
x:[int] = None x = [] print(x[0])
7
14
0.457143
0
0
0
0
0
0
0
0
0
0
827ac159b8342adeb18a832d9a86cfcb0600fb29
62
py
Python
modules/vqvc/__init__.py
reppy4620/VCon
cac3441443cb9b28ffbaa0646ed1826d71cb16e0
[ "MIT" ]
4
2021-05-22T03:14:44.000Z
2022-01-03T04:32:54.000Z
modules/vqvc/__init__.py
reppy4620/VCon
cac3441443cb9b28ffbaa0646ed1826d71cb16e0
[ "MIT" ]
null
null
null
modules/vqvc/__init__.py
reppy4620/VCon
cac3441443cb9b28ffbaa0646ed1826d71cb16e0
[ "MIT" ]
null
null
null
from .model import VQVCModel from .pl_model import VQVCModule
20.666667
32
0.83871
0
0
0
0
0
0
0
0
0
0
827b053defe8919cad9935212546496cfc58073c
1,040
py
Python
kornia/constants.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-17T16:57:14.000Z
2020-06-17T16:57:14.000Z
kornia/constants.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/constants.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-26T13:39:34.000Z
2022-01-26T13:39:34.000Z
from typing import Union, TypeVar from enum import Enum import torch pi = torch.tensor(3.14159265358979323846) T = TypeVar('T', bound='Resample') U = TypeVar('U', bound='BorderType') class Resample(Enum): NEAREST = 0 BILINEAR = 1 BICUBIC = 2 @classmethod def get(cls, value: Union[str, int, T]) ...
24.761905
65
0.567308
849
0.816346
0
0
676
0.65
0
0
140
0.134615
827beb02ef352cf0444f8df3acec604c0da03a1c
1,731
py
Python
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
2
2021-04-25T17:38:03.000Z
2022-03-20T20:48:50.000Z
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
1
2016-11-30T22:25:00.000Z
2017-01-16T22:43:39.000Z
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
null
null
null
import intrepyd from intrepyd.iec611312py.plcopen import parse_plc_open_file from intrepyd.iec611312py.stmtprinter import StmtPrinter import unittest from . import from_fixture_path class TestOpenPLC(unittest.TestCase): def test_simple_1(self): pous = parse_plc_open_file(from_fixture_path('openplc/simple1....
37.630435
139
0.688619
1,499
0.865973
0
0
0
0
0
0
433
0.250144
827d64df2b74d446113ab304669eb3fd477b0e80
3,506
py
Python
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
31
2015-07-14T16:21:25.000Z
2021-06-30T14:10:44.000Z
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
null
null
null
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
11
2016-08-21T03:07:20.000Z
2020-03-07T03:17:05.000Z
__author__ = 'Georgios Rizos ([email protected])' import numpy as np import scipy.sparse as sparse from reveal_graph_embedding.common import get_file_row_generator def read_adjacency_matrix(file_path, separator): """ Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdina...
33.711538
118
0.688534
0
0
0
0
0
0
0
0
1,576
0.449515
827fbde3f6b49a475e21f72342cbd95940e44a4d
1,255
py
Python
create_tweet_classes.py
jmcguinness11/StockPredictor
9dd545a11ca9beab6e108d5b8f001f69501af606
[ "MIT" ]
null
null
null
create_tweet_classes.py
jmcguinness11/StockPredictor
9dd545a11ca9beab6e108d5b8f001f69501af606
[ "MIT" ]
null
null
null
create_tweet_classes.py
jmcguinness11/StockPredictor
9dd545a11ca9beab6e108d5b8f001f69501af606
[ "MIT" ]
null
null
null
# create_tweet_classes.py # this assumes the existence of a get_class(day, hour, ticker) function # that returns the class (0, 1, or -1) for a given hour and ticker import collections import json import random refined_tweets = collections.defaultdict(list) #returns label for company and time def getLabel(ticker, mon...
24.607843
73
0.6749
0
0
0
0
0
0
0
0
277
0.220717
827fdac046ac07902d8fa5e1aeb478e27e40e24c
11,538
py
Python
integration_tests/test_router.py
madfish-solutions/quipuswap-token2token-core
41fd4293029e2094a564141fb389fd9a1ef19185
[ "MIT" ]
null
null
null
integration_tests/test_router.py
madfish-solutions/quipuswap-token2token-core
41fd4293029e2094a564141fb389fd9a1ef19185
[ "MIT" ]
null
null
null
integration_tests/test_router.py
madfish-solutions/quipuswap-token2token-core
41fd4293029e2094a564141fb389fd9a1ef19185
[ "MIT" ]
null
null
null
from unittest import TestCase import json from helpers import * from pytezos import ContractInterface, pytezos, MichelsonRuntimeError from pytezos.context.mixin import ExecutionContext token_a = "KT1AxaBxkFLCUi3f8rdDAAxBKHfzY8LfKDRA" token_b = "KT1PgHxzUXruWG5XAahQzJAjkk4c2sPcM3Ca" token_c = "KT1RJ6PbjHpwc3M5rw5s2Nb...
30.68617
101
0.477639
10,128
0.877795
0
0
381
0.033021
0
0
2,349
0.203588
8281775b2d035df5a898df5ea5c2730c011f5d85
109
py
Python
practice/practice_perfect/ex7.py
recursivelycurious/wordnik-repl
9d9e96a8ebc79b95f135d5bc871602b65d2d2b79
[ "MIT" ]
null
null
null
practice/practice_perfect/ex7.py
recursivelycurious/wordnik-repl
9d9e96a8ebc79b95f135d5bc871602b65d2d2b79
[ "MIT" ]
8
2017-12-29T21:19:00.000Z
2018-04-01T05:05:05.000Z
practice/practice_perfect/ex7.py
recursivelycurious/wordnik-repl
9d9e96a8ebc79b95f135d5bc871602b65d2d2b79
[ "MIT" ]
1
2017-12-27T23:45:58.000Z
2017-12-27T23:45:58.000Z
def remove_duplicates(lst): new = [] for x in lst: if x not in new: new.append(x) return new
15.571429
27
0.59633
0
0
0
0
0
0
0
0
0
0
8281bdb342d8804d5733ed2d9e90e2c325ef1463
4,013
py
Python
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
1
2021-03-19T15:02:38.000Z
2021-03-19T15:02:38.000Z
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
null
null
null
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
1
2021-03-19T15:02:38.000Z
2021-03-19T15:02:38.000Z
import datetime from datetime import timedelta import pprint from config import * from helper import * import time import logging from logging.handlers import RotatingFileHandler logger = logging.getLogger('Twitch Relay Monitor') logger.setLevel(logging.DEBUG) handler = RotatingFileHandler('/home/pi/twitch_relay_monit...
31.351563
107
0.76601
0
0
0
0
0
0
0
0
1,300
0.323947
8283520b4c3b447717f6ff9b6cc63100ada20554
793
py
Python
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
56
2018-03-21T07:04:44.000Z
2021-12-26T15:01:42.000Z
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
181
2018-06-07T10:35:23.000Z
2022-02-26T10:22:54.000Z
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
9
2018-05-04T10:04:49.000Z
2019-10-07T15:53:50.000Z
class Config: # helps to store settings for an experiment. def __init__(self, _experiments_folder_path='experiments', _dataset_name='dataset', _column_names='unknown', _types={1:'integer', 2:'string', 3:'float', 4:'boolean', 5:'gender', 6:'unknown', 7:'date-iso-8601', 8:'date-eu', 9:'date-non-s...
49.5625
175
0.630517
793
1
0
0
0
0
0
0
239
0.301387
828565457c47cac1020f3188fe499892855af43c
12,928
py
Python
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
import os from collections import defaultdict from rbc.omnisci_backend import Array from rbc.errors import OmnisciServerError from numba import types as nb_types import pytest rbc_omnisci = pytest.importorskip('rbc.omniscidb') available_version, reason = rbc_omnisci.is_available() pytestmark = pytest.mark.skipif(not a...
27.274262
98
0.586556
0
0
1,513
0.117033
7,942
0.614325
0
0
3,075
0.237856
82857e9a33dbe718b0d5cc5a60fda6fb7a1add58
4,666
py
Python
env/lib/python3.8/site-packages/unidecode/x093.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
48
2021-11-20T08:17:53.000Z
2022-03-19T13:57:15.000Z
venv/lib/python3.6/site-packages/unidecode/x093.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
392
2015-07-30T14:37:05.000Z
2022-03-21T16:56:09.000Z
venv/lib/python3.6/site-packages/unidecode/x093.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
15
2015-10-01T21:31:08.000Z
2020-05-05T00:03:27.000Z
data = ( 'Lun ', # 0x00 'Kua ', # 0x01 'Ling ', # 0x02 'Bei ', # 0x03 'Lu ', # 0x04 'Li ', # 0x05 'Qiang ', # 0x06 'Pou ', # 0x07 'Juan ', # 0x08 'Min ', # 0x09 'Zui ', # 0x0a 'Peng ', # 0x0b 'An ', # 0x0c 'Pi ', # 0x0d 'Xian ', # 0x0e 'Ya ', # 0x0f 'Zhui ', # 0x10 'Le...
18.015444
21
0.388556
0
0
0
0
0
0
0
0
3,119
0.668453
82858d5820f148f4cd403dae133ec9b5dc1ebb08
1,785
py
Python
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
2
2022-02-28T02:51:59.000Z
2022-03-24T15:23:18.000Z
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
from dataclasses import dataclass import re from tokenize import group from core.constructs.resource import ResourceModel from core.constructs.workspace import Workspace RUUID = "cdev::simple::bucket" def get_cloud_output_from_cdev_name(component_name: str, cdev_name: str) -> str: try: ws = Workspace.in...
25.869565
86
0.678431
86
0.048179
0
0
97
0.054342
0
0
258
0.144538
8285973ff004a3b86ceb55d9c1d9f9899c59ee73
7,434
py
Python
examples/blank_cylinders.py
reflectometry/osrefl
ddf55d542f2eab2a29fd6ffc862379820a06d5c7
[ "BSD-3-Clause" ]
2
2015-05-21T15:16:46.000Z
2015-10-23T17:47:36.000Z
examples/blank_cylinders.py
reflectometry/osrefl
ddf55d542f2eab2a29fd6ffc862379820a06d5c7
[ "BSD-3-Clause" ]
null
null
null
examples/blank_cylinders.py
reflectometry/osrefl
ddf55d542f2eab2a29fd6ffc862379820a06d5c7
[ "BSD-3-Clause" ]
null
null
null
from greens_thm_form import greens_form_line, greens_form_shape from numpy import arange, linspace, float64, indices, zeros_like, ones_like, pi, sin, complex128, array, exp, newaxis, cumsum, sum, cos, sin, log, log10 from osrefl.theory.DWBAGISANS import dwbaWavefunction class shape: def __init__(self, name): ...
37.356784
152
0.644471
139
0.018698
0
0
0
0
0
0
1,071
0.144068
82866aa0a6c01bbd11d8219aa01d2f4e9089b2ed
3,750
py
Python
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
2
2018-10-29T12:01:55.000Z
2021-03-05T10:28:59.000Z
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
1
2019-01-23T04:46:52.000Z
2019-01-23T04:46:52.000Z
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
2
2018-11-30T07:52:14.000Z
2021-05-28T23:00:20.000Z
# -*- coding: utf-8 -*- # Demo: MACD strategy # src: ./test_backtest/MACD_JCSC.py # jupyter: ./test_backtest/QUANTAXIS回测分析全过程讲解.ipynb # paper: ./test_backtest/QUANTAXIS回测分析全过程讲解.md import QUANTAXIS as QA import numpy as np import pandas as pd import datetime st1=datetime.datetime.now() # define the MACD strategy def M...
32.051282
123
0.6464
0
0
0
0
0
0
0
0
1,156
0.301513
8286a3142dc78c8279d55cc22186d074f451c53d
6,247
py
Python
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
3
2020-10-06T13:54:40.000Z
2021-07-04T21:02:14.000Z
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
34
2020-04-30T02:52:31.000Z
2022-03-30T19:19:14.000Z
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
5
2020-06-24T10:57:01.000Z
2021-07-09T01:14:16.000Z
from zquantum.core.interfaces.ansatz_test import AnsatzTests from zquantum.core.circuits import Circuit, H, RX, RZ from zquantum.core.utils import compare_unitary from zquantum.core.openfermion import change_operator_type from zquantum.qaoa.ansatzes.farhi_ansatz import ( QAOAFarhiAnsatz, create_farhi_qaoa_circu...
29.328638
88
0.664959
4,228
0.676805
0
0
1,003
0.160557
0
0
346
0.055387
8287b90a2bda6ffe57a0b5c598cfc436f9b7c2a3
3,297
py
Python
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
from html.parser import HTMLParser class Paper(): def __init__(self): self.title = "" self.source_link = "" self.authr_and_pub = "" # self.publication = "" self.abstract = "" self.star_link = "" def add_title(self, title): self.title = title retu...
30.813084
129
0.578101
3,257
0.987868
0
0
0
0
0
0
201
0.060965
8288331b93be5bebcd8bf3d2c82ccd107597d65b
1,067
py
Python
ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py
MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb
1f9ca7db685733a3df924db1269bd852acf27602
[ "MIT" ]
null
null
null
ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py
MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb
1f9ca7db685733a3df924db1269bd852acf27602
[ "MIT" ]
1
2019-08-16T12:59:01.000Z
2019-08-18T06:36:47.000Z
ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py
MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb
1f9ca7db685733a3df924db1269bd852acf27602
[ "MIT" ]
null
null
null
"""Wrapper for pygame, which exports the PSP Python API on non-PSP systems.""" __author__ = "Per Olofsson, <[email protected]>" import pygame pygame.init() _vol_music = 255 _vol_sound = 255 def setMusicVolume(vol): global _vol_music if vol >= 0 and vol <= 255: _vol_music = vol pygame...
21.34
78
0.62418
592
0.554827
0
0
0
0
0
0
117
0.109653
82884c2f951413f34a94ee10615c1c83e1f50fe8
1,540
py
Python
utility_parseCMUMovie.py
bipulkumar22/pyTextClassification
7ed92949aa5648d3198588d0c5d6db89b48025ac
[ "Apache-2.0" ]
11
2016-09-16T10:38:19.000Z
2021-12-13T19:38:24.000Z
utility_parseCMUMovie.py
tyiannak/pyTextClassification
7ed92949aa5648d3198588d0c5d6db89b48025ac
[ "Apache-2.0" ]
null
null
null
utility_parseCMUMovie.py
tyiannak/pyTextClassification
7ed92949aa5648d3198588d0c5d6db89b48025ac
[ "Apache-2.0" ]
6
2016-11-19T15:35:13.000Z
2020-03-29T17:09:22.000Z
import os import csv import ast # used to generate folder-seperated corpus from CMUMovie dataset # just type python utility_parseCMUMovie.py in a terminal and the data will be downloaded and split to subfolders in the moviePlots/ path os.system("wget http://www.cs.cmu.edu/~ark/personas/data/MovieSummaries.tar.gz") o...
37.560976
143
0.595455
0
0
0
0
0
0
0
0
492
0.319481
8288f27e4f9f25b68044be3e4af91d23dfa24bd3
1,923
py
Python
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models import numpy as np class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters(): param.requires_gr...
36.980769
126
0.631825
1,825
0.949038
0
0
0
0
0
0
167
0.086843
828aa1df6ebc3553389f760e5439ccc3f6c4765d
981
py
Python
App/items/models/items.py
fmgar/BlackMarker-API
a185d61d518ad505d2fd8882f0e8cd15474786cb
[ "MIT" ]
null
null
null
App/items/models/items.py
fmgar/BlackMarker-API
a185d61d518ad505d2fd8882f0e8cd15474786cb
[ "MIT" ]
null
null
null
App/items/models/items.py
fmgar/BlackMarker-API
a185d61d518ad505d2fd8882f0e8cd15474786cb
[ "MIT" ]
null
null
null
"""Items model. """ # Django from django.db import models # Utilities from App.utils.models import BlackMarketModel # Models from .category import Category from .unit import Unit from .owner import Owner class Item(BlackMarketModel): """Items model. Is a model to items we goin to sell """ name = mode...
32.7
92
0.734964
771
0.785933
0
0
0
0
0
0
115
0.117227
828b34c1c1112e8cd47750832efbc80f1a49fc80
2,241
py
Python
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
import json import time from multiprocessing import Process from utils.paths import PATHS from years.AoC2021.tasks import TASKS2021 # Constants PARALLEL_COMPUTATION = True TASKS = { 2021: TASKS2021 } def asses_task(task: type, answers: dict, year: int) -> None: """ Run a task 4 times (part 1 test, part 1...
37.983051
111
0.617135
0
0
0
0
0
0
0
0
1,024
0.456939
828cb262d3250d0e1b3f07edb7bc92fd873589c5
1,467
py
Python
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
90
2020-04-21T01:46:10.000Z
2022-02-10T09:09:34.000Z
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
37
2018-03-02T22:41:15.000Z
2020-04-22T16:48:36.000Z
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
34
2018-03-02T23:28:25.000Z
2020-03-25T08:50:29.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.6
74
0.712338
542
0.369461
0
0
0
0
0
0
737
0.502386
828ccbf87f380dbc253cd5ac125a944fc9a7bd55
4,262
py
Python
src/commercetools/services/types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
src/commercetools/services/types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
src/commercetools/services/types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
import typing from commercetools import schemas, types from commercetools.services import abstract from commercetools.typing import OptionalListStr __all__ = ["TypeService"] class TypeDeleteSchema(abstract.AbstractDeleteSchema): pass class TypeQuerySchema(abstract.AbstractQuerySchema): pass class TypeSe...
30.22695
87
0.585171
4,077
0.956593
0
0
0
0
0
0
230
0.053965
828db07d0c0f0f1db466402e002749cf071a28f8
3,454
py
Python
augraphy/augmentations/noisetexturize.py
RyonSayer/augraphy
be1e8dcf0f129ac3fc30ba1cad0d8de02443f67f
[ "MIT" ]
36
2021-06-25T02:17:57.000Z
2022-03-29T02:36:09.000Z
augraphy/augmentations/noisetexturize.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
136
2021-06-25T07:39:46.000Z
2022-03-31T13:00:30.000Z
augraphy/augmentations/noisetexturize.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
24
2021-06-27T21:15:11.000Z
2022-03-08T03:28:17.000Z
import random import cv2 import numpy as np from augraphy.base.augmentation import Augmentation class NoiseTexturize(Augmentation): """Creates a random noise based texture pattern to emulate paper textures. Consequently applies noise patterns to the original image from big to small. :param sigma_range:...
33.533981
118
0.606543
3,353
0.970759
0
0
0
0
0
0
1,559
0.451361
828dc1f2bed1b15e7518a1fcf0598cc4397058a0
50,333
py
Python
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
7
2021-06-25T15:39:49.000Z
2022-02-28T10:58:53.000Z
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
6
2021-06-29T18:18:45.000Z
2021-09-17T12:04:24.000Z
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
3
2021-06-28T23:25:38.000Z
2022-02-28T10:57:32.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2021, kevin-dot-g-dot-stewart-at-gmail-dot-com # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Version: 1.0.1 #### Updates: #### 1.0.1 - added 9.0 support # - changed max version # - added clie...
36.955213
492
0.580573
29,833
0.592713
0
0
6,308
0.125325
0
0
25,577
0.508156
828ee62b4ffbbb1d5dea12315eaccdf681093a66
52,854
py
Python
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
2
2021-01-11T13:10:27.000Z
2022-03-09T16:31:48.000Z
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
3
2020-11-11T10:44:47.000Z
2022-01-05T07:28:58.000Z
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
1
2021-03-05T18:31:00.000Z
2021-03-05T18:31:00.000Z
""" This module defines pipelines - sets of tasks in nemo that we sometimes want to do on different inputs (e.g., real data or simulated data). """ import os import sys import glob import shutil import time import astropy.io.fits as pyfits import astropy.table as atpy from astLib import astWCS import numpy as np fro...
54.941788
220
0.592235
0
0
0
0
0
0
0
0
20,550
0.388807
828f0e49b2ff5b08550d07840cd6144c5f6a6f99
5,026
py
Python
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
1
2020-04-04T10:25:42.000Z
2020-04-04T10:25:42.000Z
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
null
null
null
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
3
2021-09-07T08:44:33.000Z
2021-12-07T23:49:39.000Z
#!/usr/bin/env python ''' This program is free software; you can redistribute it and/or modify it under the terms of the Revised BSD License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FO...
45.279279
149
0.729208
0
0
0
0
0
0
0
0
1,204
0.239554
829007d1ff44f42bdcbdcc5f79b823572db44839
194
py
Python
10/testtime.py
M0nica/python-foundations
fe5065d3af71511bdd0fcf437d1d9f15f9faf1ee
[ "MIT" ]
null
null
null
10/testtime.py
M0nica/python-foundations
fe5065d3af71511bdd0fcf437d1d9f15f9faf1ee
[ "MIT" ]
null
null
null
10/testtime.py
M0nica/python-foundations
fe5065d3af71511bdd0fcf437d1d9f15f9faf1ee
[ "MIT" ]
null
null
null
import time print (time.strftime("%B %e, %Y")) # Guides: # how to formate date: # http://strftime.net/ # how to use time: # http://www.cyberciti.biz/faq/howto-get-current-date-time-in-python/
19.4
69
0.680412
0
0
0
0
0
0
0
0
151
0.778351
8292fb356f36b5d5f890f807991392f40a46cdec
514
py
Python
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
1
2020-12-12T19:34:59.000Z
2020-12-12T19:34:59.000Z
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
import re with open('input.txt', 'r') as f: pw_ok=0 for line in f: (rule,s,space_and_pw) = line.partition(':') (lowhigh,s,c) = rule.partition(' ') (low,s,high) = lowhigh.partition('-') pw=space_and_pw[1:-1] c1=pw[int(low)-1] c2=pw[int(high)-1] if (c1==c ...
27.052632
53
0.486381
0
0
0
0
0
0
0
0
39
0.075875
82959d9cf1c7742a4ce7e67d8116a609f7ef7317
8,399
py
Python
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
31
2016-02-16T15:11:25.000Z
2021-06-21T15:58:58.000Z
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
11
2017-06-23T17:23:47.000Z
2022-03-31T14:19:27.000Z
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
4
2016-12-15T22:08:04.000Z
2019-10-24T23:12:53.000Z
# Copyright (c) 2019, CRS4 # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribu...
46.921788
120
0.654245
7,014
0.835099
0
0
0
0
0
0
1,726
0.205501
8296d1c9102045de4d1df9fbc075b8f844636279
4,772
py
Python
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
5
2021-01-25T09:52:09.000Z
2022-01-29T14:35:41.000Z
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
7
2021-01-23T10:49:01.000Z
2021-01-30T08:17:38.000Z
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
1
2021-05-25T05:42:10.000Z
2021-05-25T05:42:10.000Z
"""Global config management This module provides functions for initializing, accessing and destroying a global config object. You can initialize a global config from any object. However, in the context of pyppy, only the instance attributes of the object are used and work with the decorators ``fill_args`` and ``condit...
28.404762
79
0.676027
0
0
0
0
0
0
0
0
4,073
0.853521
82974de24f0cc3cfa731bcef6d90cc11159650a2
878
py
Python
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
def three_sum(nums): """ Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. :param nums: list[int] :return: list[list[int]] """ if len(nums) < 3: return [] nums.sort() ...
30.275862
98
0.425968
0
0
0
0
0
0
0
0
237
0.269932