hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6f4481f21ecbfcd293b7ed64ac82be4d1f1615b5
10,703
py
Python
src/utils.py
AayushGrover/text_style_transfer
3b8f3fe3080f60be4c190c8e1d8140b71aa4c492
[ "MIT" ]
2
2020-05-13T04:36:01.000Z
2020-05-13T04:36:10.000Z
src/utils.py
AayushGrover/text_style_transfer
3b8f3fe3080f60be4c190c8e1d8140b71aa4c492
[ "MIT" ]
null
null
null
src/utils.py
AayushGrover/text_style_transfer
3b8f3fe3080f60be4c190c8e1d8140b71aa4c492
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split import torch from transformers import BertModel, BertTokenizer, GPT2LMHeadModel, GPT2Tokenizer, pipeline from sentence_transformers import SentenceTransformer import config class BertUtil(): def __init__(self, pretrained_w...
45.739316
157
0.70924
e17bfdc7639273a12e99dfd7bdaf0320d766f472
2,960
py
Python
test3/test_IndexDeletionPolicy.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
5
2017-03-17T04:35:39.000Z
2021-04-06T07:20:04.000Z
test3/test_IndexDeletionPolicy.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test3/test_IndexDeletionPolicy.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
1
2018-02-19T13:17:14.000Z
2018-02-19T13:17:14.000Z
# ==================================================================== # 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 re...
30.833333
79
0.650676
cfc347c790eec74d842994c89929b7c029c01129
414
py
Python
backend/account_request/migrations/0009_accountrequest_end_date.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
null
null
null
backend/account_request/migrations/0009_accountrequest_end_date.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
2
2020-02-11T15:45:51.000Z
2020-07-17T16:47:06.000Z
backend/account_request/migrations/0009_accountrequest_end_date.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-03-07 19:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account_request', '0008_accountrequest_comment'), ] operations = [ migrations.AddField( model_name='accountrequest', ...
21.789474
59
0.618357
4924a919c4953d3478ded0d5e923cb0d90e77c0f
1,028
py
Python
Task1F.py
nicolerix/1A-Flood-risk-project
bd084a15abbd696813edb75fa824cfa8409e5c8f
[ "MIT" ]
null
null
null
Task1F.py
nicolerix/1A-Flood-risk-project
bd084a15abbd696813edb75fa824cfa8409e5c8f
[ "MIT" ]
null
null
null
Task1F.py
nicolerix/1A-Flood-risk-project
bd084a15abbd696813edb75fa824cfa8409e5c8f
[ "MIT" ]
null
null
null
#Identifying stations which have inconsitent data for typical high/low ranges (i).no data is available (ii).the typical high range is < typical low range reported from cProfile import label from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations from ...
36.714286
162
0.803502
46b0ca1f64a5b5d98f6f9415d5f49408746cc2d1
4,512
py
Python
profiles_api/views.py
manuelmillares/profiles-rest-api
e3662533daef8172614f81686d277431e5f38aa6
[ "MIT" ]
null
null
null
profiles_api/views.py
manuelmillares/profiles-rest-api
e3662533daef8172614f81686d277431e5f38aa6
[ "MIT" ]
6
2021-03-19T11:46:22.000Z
2022-02-10T14:13:35.000Z
profiles_api/views.py
manuelmillares/profiles-rest-api
e3662533daef8172614f81686d277431e5f38aa6
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
33.924812
76
0.662677
96dcccfaa864ca4e78b71d76310a93910fd25d43
570
py
Python
make_templates.py
kevinross/resume
649f13b6ecaf53d0ce5b6d5e9c7fbd3f122580bd
[ "MIT" ]
null
null
null
make_templates.py
kevinross/resume
649f13b6ecaf53d0ce5b6d5e9c7fbd3f122580bd
[ "MIT" ]
null
null
null
make_templates.py
kevinross/resume
649f13b6ecaf53d0ce5b6d5e9c7fbd3f122580bd
[ "MIT" ]
null
null
null
import sys sections = open('sections').read().splitlines() def get_template(fm): d = {'header': open('templates/%s/header' % fm).read()} for i, v in enumerate(sections): d['section%d' % (i+1)] = open('templates/%s/%s' % (fm, v)).read() if len(sections) < 6: for i in range(len(sections) + 1, 7): d['section%d'...
30
67
0.610526
b7cd0efb1b9a260897f734f5c77c0a586043c58a
17,730
py
Python
betterStats.py
Dominik-CH/InstagramRelationshipAnalytics
260d3d22aeac2b181c5aeb1139811c77192c9095
[ "MIT" ]
4
2020-08-12T18:16:17.000Z
2022-02-27T17:08:19.000Z
betterStats.py
Dominik-CH/InstagramRelationshipAnalytics
260d3d22aeac2b181c5aeb1139811c77192c9095
[ "MIT" ]
null
null
null
betterStats.py
Dominik-CH/InstagramRelationshipAnalytics
260d3d22aeac2b181c5aeb1139811c77192c9095
[ "MIT" ]
null
null
null
#https://github.com/realsirjoe/instagram-scraper/ from igramscraper.exception import InstagramException from igramscraper.instagram import Instagram from time import sleep import time import os import requests import sqlite3 import sys import random from config import USERNAME, PASSWORD, MAINPASSWORD, MAINUSE...
46.292428
337
0.608065
f564a32f841736ace4058831d6040dc6be3337f5
4,414
py
Python
task-library/ansible/AwxRunPlaybook.py
mlavi/blueprints
b4aca2f11acc39b11b11819e6d123fc243a61c95
[ "MIT" ]
60
2018-08-06T23:44:54.000Z
2022-03-02T21:21:30.000Z
task-library/ansible/AwxRunPlaybook.py
mlavi/blueprints
b4aca2f11acc39b11b11819e6d123fc243a61c95
[ "MIT" ]
16
2018-12-10T10:56:31.000Z
2021-11-23T08:12:10.000Z
task-library/ansible/AwxRunPlaybook.py
mlavi/blueprints
b4aca2f11acc39b11b11819e6d123fc243a61c95
[ "MIT" ]
95
2018-09-14T15:03:35.000Z
2021-12-21T10:45:19.000Z
# region headers # escript-template v20190605 / stephane.bourdeaud@nutanix.com # * author: jose.gomez@nutanix.com # * version: 20200218 # task_type: Execute # task_name: LaunchJobTemplate # description: Launch a job template or also known playbook # endregion # region capture Calm variables # * Capture ...
26.590361
98
0.548482
56bf57afa8b9026780a40663435a2b6223eccba0
4,774
py
Python
suites/Operations/CommitteeMember/CommitteeFrozenBalanceWithdraw.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
1
2021-03-12T05:17:02.000Z
2021-03-12T05:17:02.000Z
suites/Operations/CommitteeMember/CommitteeFrozenBalanceWithdraw.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
1
2019-11-19T12:10:59.000Z
2019-11-19T12:10:59.000Z
suites/Operations/CommitteeMember/CommitteeFrozenBalanceWithdraw.py
echoprotocol/pytests
5dce698558c2ba703aea03aab79906af1437da5d
[ "MIT" ]
2
2019-04-29T10:46:48.000Z
2019-10-29T10:01:03.000Z
# -*- coding: utf-8 -*- import time from common.base_test import BaseTest from project import INIT0_PK, REQUIRED_DEPOSIT_AMOUNT, UNFREEZE_DURATION_SECONDS import lemoncheesecake.api as lcc from lemoncheesecake.matching import check_that, equal_to SUITE = { "description": "Operation 'committee_frozen_balance_with...
48.222222
120
0.718266
ed99f11782aa6a67cefddb241f49db65b57cee73
4,214
py
Python
pyethereum/apiserver.py
mrmayfield/pyethereum
6a3cad803f256b012d5a3c6a254c214f9ebe815d
[ "MIT" ]
1
2015-11-05T19:27:58.000Z
2015-11-05T19:27:58.000Z
pyethereum/apiserver.py
mrmayfield/pyethereum
6a3cad803f256b012d5a3c6a254c214f9ebe815d
[ "MIT" ]
null
null
null
pyethereum/apiserver.py
mrmayfield/pyethereum
6a3cad803f256b012d5a3c6a254c214f9ebe815d
[ "MIT" ]
null
null
null
import logging import threading import json import bottle from pyethereum.chainmanager import chain_manager from pyethereum.peermanager import peer_manager import pyethereum.dispatch as dispatch from pyethereum.blocks import block_structure import pyethereum.signals as signals from pyethereum.transactions import Tran...
28.093333
78
0.649027
ae73feb3ab30e10e49f6953f48e42dc5eee83b4a
870
py
Python
test/test_interface.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
1
2021-12-28T18:53:52.000Z
2021-12-28T18:53:52.000Z
test/test_interface.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
null
null
null
test/test_interface.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ Thola REST API for Thola. For more information look at our Github : https://github.com/inexio/thola # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest impor...
21.219512
112
0.683908
062c3c035844b5adf510331716119627f40f017e
4,156
py
Python
examples/plotting/hmi_cutout.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/hmi_cutout.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/hmi_cutout.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
null
null
null
""" ==================== HMI Showcase: Cutout ==================== This example demonstrates how to plot a cutout region of a `~sunpy.map.Map` with connector lines that indicate the region of interest in the full-disk image. Since this example deals with the creation of a specific style of image, there are multiple l...
38.12844
93
0.713426
4132600bc865bcd7ef0fd0c1221153aff3bbd3a0
439
py
Python
price_picker/views/main/validators.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
3
2019-08-03T16:52:36.000Z
2020-04-13T10:06:38.000Z
price_picker/views/main/validators.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
null
null
null
price_picker/views/main/validators.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
1
2021-01-02T11:31:25.000Z
2021-01-02T11:31:25.000Z
from wtforms.validators import ValidationError from price_picker.models import CouponCode class CouponCodeValidator(object): def __init__(self, message=None): if message is None: message = 'Ungültiger Code.' self.message = message def __call__(self, form, field): code = Co...
29.266667
66
0.683371
66af5b756de02b6cc4aedfe8e1b619517e232a20
1,382
py
Python
app/views/main/photos.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/main/photos.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/main/photos.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, request from app import db, logger from app.controllers.app_controller import app_controller from app.controllers.qustion_phone import question_phone from app.models.photo_catalogs import PhotoCatalogs from app.models.photos import Photos from app.views.main import...
39.485714
125
0.696816
31da8b4b2f25113381afa6f49ef642d7e91d48c8
7,163
py
Python
sdk/python/pulumi_aws/ec2/get_instance_type_offerings.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/ec2/get_instance_type_offerings.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/ec2/get_instance_type_offerings.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
38.510753
311
0.656987
a6c14cd18b926fdfe8c73fa4569e1b044322cb20
1,740
py
Python
puf_stage2/stage2.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
puf_stage2/stage2.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
puf_stage2/stage2.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
import os import glob import numpy as np import pandas as pd from dataprep import dataprep CUR_PATH = os.path.abspath(os.path.dirname(__file__)) # Read private CPS-matched-PUF file into a Pandas DataFrame puf = pd.read_csv(os.path.join(CUR_PATH, "../puf_data/cps-matched-puf.csv")) # Read stage1 factors and stage2 t...
28.52459
87
0.698276
3334f3f75a0f0ab9893baba1b11f8d5b5197c5c2
871
py
Python
scripts/takethecleanest.py
multimedia-eurecat/ELFW
98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2
[ "Apache-2.0" ]
15
2020-07-10T08:19:13.000Z
2022-02-24T08:52:24.000Z
scripts/takethecleanest.py
multimedia-eurecat/ELFW
98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2
[ "Apache-2.0" ]
7
2020-08-11T06:26:54.000Z
2021-04-23T08:32:21.000Z
scripts/takethecleanest.py
multimedia-eurecat/ELFW
98a6eca7ab9152a7cf8c447ee9f4a62b5629e3b2
[ "Apache-2.0" ]
5
2020-08-11T09:09:42.000Z
2020-11-25T12:02:54.000Z
# This script takes all non-ground-truth-labeled images in LFW and copies them apart. # Rafael Redondo - 2019 import os import sys import shutil if len(sys.argv) != 3: print "Usage: $ takethecleanest <filelist> <output folder>" exit(0) filelist = sys.argv[1] f = open(filelist,"r") labels = [] for line in f: label...
21.775
85
0.709529
991f6bacf00735c1c25215d3b1a5d3b69ceade09
7,765
py
Python
process-datasets.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
null
null
null
process-datasets.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
null
null
null
process-datasets.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CERN@school - Processing Datasets See the README.md file for more information. """ # Import the code needed to manage files. import os, glob #...for parsing the arguments. import argparse #...for the logging. import logging as lg #...for file manipulation. fro...
32.086777
100
0.524404
c0cf78c1b797ae3949a6a96b74267aace1a3fbc3
5,911
py
Python
docs/source/conf.py
sanis/zip
2206cfd9c0024f7d21ce65250e96cc6d89e19655
[ "MIT" ]
null
null
null
docs/source/conf.py
sanis/zip
2206cfd9c0024f7d21ce65250e96cc6d89e19655
[ "MIT" ]
null
null
null
docs/source/conf.py
sanis/zip
2206cfd9c0024f7d21ce65250e96cc6d89e19655
[ "MIT" ]
null
null
null
import sys import os current_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(current_dir) sys.path.append(current_dir + '/sphinxPHP') import sensio extensions = ['sensio.sphinx.refinclude', 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode'] extensions = [] templates_path = ['_templates'] ...
29.853535
102
0.711386
035aef627324e7db41588c5929fd90a6a244463d
2,397
py
Python
psi/migrations/versions/40_e1f806a716b9_.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
33
2018-10-19T03:41:56.000Z
2022-01-23T16:26:02.000Z
psi/migrations/versions/40_e1f806a716b9_.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
318
2018-09-23T15:16:54.000Z
2022-03-31T22:58:55.000Z
psi/migrations/versions/40_e1f806a716b9_.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
19
2018-10-22T18:04:18.000Z
2021-12-06T19:49:05.000Z
""" Add create date field to supplier model, make role.is_system and shipping.type_id not null. Revision ID: e1f806a716b9 Revises: 052340beb7b5 Create Date: 2017-05-25 08:12:35.839903 """ # revision identifiers, used by Alembic. revision = 'e1f806a716b9' down_revision = '052340beb7b5' from alembic import op import ...
38.047619
139
0.670004
74c98c4baa4440b934486336f5e4b9ebbc1e7eaa
483
py
Python
tag/views.py
farhad0085/django-money-management
d4622192d6b9df3f785abd5f4ef1bfcbf465d045
[ "MIT" ]
null
null
null
tag/views.py
farhad0085/django-money-management
d4622192d6b9df3f785abd5f4ef1bfcbf465d045
[ "MIT" ]
null
null
null
tag/views.py
farhad0085/django-money-management
d4622192d6b9df3f785abd5f4ef1bfcbf465d045
[ "MIT" ]
null
null
null
from .serializers import TagSerializer from .models import Tag from rest_framework.viewsets import ModelViewSet class TagViewSet(ModelViewSet): queryset = Tag.objects.all() serializer_class = TagSerializer def get_serializer(self, *args, **kwargs): """ if an array is passed, set serializer to man...
34.5
70
0.689441
a83427cd529ee911c97e0c2908a48199e212ee3f
150
py
Python
anuvaad-etl/anuvaad-extractor/document-processor/word-detector/craft/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/document-processor/word-detector/craft/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/document-processor/word-detector/craft/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
from .routes import Word_Detector_BLUEPRINT from .routes import Word_Detector_BLUEPRINT_WF #from .documentstructure import DOCUMENTSTRUCTURE_BLUEPRINT
50
59
0.9
3d4bdbf9b603b630dbcc0d42709b2de06aeef154
86,612
py
Python
networking_p4/agent/agent_drivers/bmv2/adaptor/bmv2/runtime_api.py
osinstom/networking-p4
3b82025090b6b2bf1e9faa58492d13ed1da6c34f
[ "Apache-2.0" ]
2
2019-12-26T08:53:25.000Z
2020-05-13T11:53:51.000Z
networking_p4/agent/agent_drivers/bmv2/adaptor/bmv2/runtime_api.py
osinstom/networking-dppx
3b82025090b6b2bf1e9faa58492d13ed1da6c34f
[ "Apache-2.0" ]
null
null
null
networking_p4/agent/agent_drivers/bmv2/adaptor/bmv2/runtime_api.py
osinstom/networking-dppx
3b82025090b6b2bf1e9faa58492d13ed1da6c34f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
36.529734
172
0.619071
bd0789f5e1a93d01586ba30704cbd107a248cfa7
45,996
py
Python
restapi/services/authentication.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
8
2018-07-04T09:54:46.000Z
2022-03-17T08:21:06.000Z
restapi/services/authentication.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
19
2018-04-18T07:24:55.000Z
2022-03-04T01:03:15.000Z
restapi/services/authentication.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
7
2018-07-03T12:17:50.000Z
2021-05-05T04:33:32.000Z
import base64 import re from abc import ABCMeta, abstractmethod from datetime import datetime, timedelta from enum import Enum from functools import lru_cache from io import BytesIO from pathlib import Path from typing import ( TYPE_CHECKING, Any, Dict, List, Optional, Tuple, TypedDict, ...
31.809129
88
0.592791
f8571344edc69dc4b19f2efa009b42cb8128dfd5
393
py
Python
landing/migrations/0007_auto_20210416_1917.py
cactus-computing/product-recommendation
b5d9bb27205a4fb032fd19934ecab56a5a8c6d81
[ "MIT" ]
null
null
null
landing/migrations/0007_auto_20210416_1917.py
cactus-computing/product-recommendation
b5d9bb27205a4fb032fd19934ecab56a5a8c6d81
[ "MIT" ]
null
null
null
landing/migrations/0007_auto_20210416_1917.py
cactus-computing/product-recommendation
b5d9bb27205a4fb032fd19934ecab56a5a8c6d81
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-04-16 19:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('landing', '0006_auto_20210416_1817'), ] operations = [ migrations.AddField( model_name='contact', name='created_at',...
20.684211
54
0.605598
51e6f4f88ed90bde22dd3cf737d51770b60491da
658
py
Python
amplify/agent/util/loader.py
digideskio/digidesk-amplified
547f899d6fd47dc726df28ee90bf3511f02bd6cf
[ "BSD-2-Clause" ]
null
null
null
amplify/agent/util/loader.py
digideskio/digidesk-amplified
547f899d6fd47dc726df28ee90bf3511f02bd6cf
[ "BSD-2-Clause" ]
null
null
null
amplify/agent/util/loader.py
digideskio/digidesk-amplified
547f899d6fd47dc726df28ee90bf3511f02bd6cf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Mike Belov" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __credits__ = ["Mike Belov", "Andrei Belov", "Ivan Poluyanov", "Oleg Mamontov", "Andrew Alexeev"] __license__ = "" __maintainer__ = "Mike Belov" __email__ = "dedm@nginx.com" def import_class(klass): ...
27.416667
97
0.656535
def8b0aec954f6cdbd24d74e37b1af7436efa0a7
1,442
py
Python
conductor/conductor/common/utils/basic_auth_util.py
onap/optf-has
dd06e2675aedd7ae6344f2f51e70bbd468f36ce5
[ "Apache-2.0" ]
4
2019-02-14T19:18:09.000Z
2019-10-21T17:17:59.000Z
conductor/conductor/common/utils/basic_auth_util.py
onap/optf-has
dd06e2675aedd7ae6344f2f51e70bbd468f36ce5
[ "Apache-2.0" ]
null
null
null
conductor/conductor/common/utils/basic_auth_util.py
onap/optf-has
dd06e2675aedd7ae6344f2f51e70bbd468f36ce5
[ "Apache-2.0" ]
4
2019-05-09T07:05:54.000Z
2020-11-20T05:56:47.000Z
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2018 AT&T Intellectual Property # # 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 # # ...
36.974359
106
0.638696
069e4c0507370f6176175763df8a27df9cf56367
407
py
Python
backend/iris_lite_29300/wsgi.py
crowdbotics-apps/iris-lite-29300
49e487d9888b2ac95e23714c3ce22c03a1a3ab1f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/iris_lite_29300/wsgi.py
crowdbotics-apps/iris-lite-29300
49e487d9888b2ac95e23714c3ce22c03a1a3ab1f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/iris_lite_29300/wsgi.py
crowdbotics-apps/iris-lite-29300
49e487d9888b2ac95e23714c3ce22c03a1a3ab1f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for iris_lite_29300 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
4b2de3f4fa6b152697dea3402627288271d878ec
15,425
py
Python
bookworm/reader.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/reader.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/reader.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 import os from contextlib import suppress from pathlib import Path from bookworm import typehints as t from bookworm import app from bookworm import config from bookworm.commandline_handler import run_subcommand_in_a_new_process from bookworm.database import DocumentPositionInfo from bookworm.i18n impo...
35.706019
117
0.629303
4364b963d25110c23dcefd8b5f495021deec4b0e
24,817
py
Python
featuretools/computational_backends/pandas_backend.py
gaybro8777/featuretools
575fced6a3de6ec4190dc12c7c65a13d20e1c804
[ "BSD-3-Clause" ]
1
2019-07-29T14:47:06.000Z
2019-07-29T14:47:06.000Z
featuretools/computational_backends/pandas_backend.py
Anyz01/FeatureTools
0bb7b29045107e10acfab07322ef00934ec21c14
[ "BSD-3-Clause" ]
null
null
null
featuretools/computational_backends/pandas_backend.py
Anyz01/FeatureTools
0bb7b29045107e10acfab07322ef00934ec21c14
[ "BSD-3-Clause" ]
null
null
null
import cProfile import os import pstats import sys import warnings from datetime import datetime import numpy as np import pandas as pd import pandas.api.types as pdtypes from .base_backend import ComputationalBackend from .feature_tree import FeatureTree from featuretools import variable_types from featuretools.exc...
44.715315
122
0.576218
f10a60a12a95651771558eba8bd95b1e3e915974
8,497
py
Python
scripts/legacy/gradcam.py
rhong3/pancan_imaging
969006a13e2fc2cbc05b695d48c8c45c30089704
[ "MIT" ]
null
null
null
scripts/legacy/gradcam.py
rhong3/pancan_imaging
969006a13e2fc2cbc05b695d48c8c45c30089704
[ "MIT" ]
null
null
null
scripts/legacy/gradcam.py
rhong3/pancan_imaging
969006a13e2fc2cbc05b695d48c8c45c30089704
[ "MIT" ]
null
null
null
import argparse import cv2 import numpy as np import torch from torch.autograd import Function from torchvision import models import torch.nn.functional as F import matplotlib.pyplot as plt class GuidedBackpropReLU(Function): @staticmethod def forward(self, input): positive_mask = (input > 0).type_as...
33.321569
103
0.610098
85d20d8ca73e63ebdcfe0f384c485daf798c6864
672
py
Python
rx/linq/groupedobservable.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/linq/groupedobservable.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/linq/groupedobservable.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-04T11:13:49.000Z
2021-11-04T11:13:49.000Z
from rx import AnonymousObservable, Observable from rx.disposables import CompositeDisposable class GroupedObservable(Observable): def __init__(self, key, underlying_observable, merged_disposable=None): super(GroupedObservable, self).__init__(self._subscribe) self.key = key def subscribe(...
37.333333
119
0.767857
9afd733ea63952e83599722592308f117a834d6b
1,793
py
Python
StudArt/authentication/views.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
null
null
null
StudArt/authentication/views.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
10
2020-11-06T08:37:02.000Z
2020-12-09T23:08:25.000Z
StudArt/authentication/views.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
1
2021-09-16T10:56:02.000Z
2021-09-16T10:56:02.000Z
from django.db.models import Q from rest_framework import generics, permissions from rest_framework.response import Response from authentication.serializers import RegisterUserSerializer from core.models import UserModel # /api/v1/auth/register # methods: # - post: # - username: string # - email: strin...
24.561644
83
0.645845
f6dcc7e8ebb20940a9bf8adb90460dbb63d69373
4,168
py
Python
skywire-xns.py
devzone777/skywire-xns
dea50f53a5936c9bd3a28f28b1da38f3f5c70220
[ "BSD-3-Clause" ]
null
null
null
skywire-xns.py
devzone777/skywire-xns
dea50f53a5936c9bd3a28f28b1da38f3f5c70220
[ "BSD-3-Clause" ]
null
null
null
skywire-xns.py
devzone777/skywire-xns
dea50f53a5936c9bd3a28f28b1da38f3f5c70220
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # # Program: # Install skywire-xns on Linux running python 2.7/3.0 and python-zmq # # ################################################################################ import readline ...
31.816794
80
0.440019
8f04ca53407b16d120f95f48ccd3d072d1a3fbab
507
py
Python
back/api_1_0/decorators.py
aninstein/sex_code_blog
483fcb566f2873204e545db2e4688dba3bee9db9
[ "BSD-2-Clause" ]
116
2019-09-19T01:00:48.000Z
2022-03-16T08:52:15.000Z
back/api_1_0/decorators.py
aninstein/sex_code_blog
483fcb566f2873204e545db2e4688dba3bee9db9
[ "BSD-2-Clause" ]
13
2019-08-13T14:39:21.000Z
2022-03-22T02:36:46.000Z
back/api_1_0/decorators.py
aninstein/sex_code_blog
483fcb566f2873204e545db2e4688dba3bee9db9
[ "BSD-2-Clause" ]
30
2019-08-13T10:13:07.000Z
2022-01-19T09:50:31.000Z
# -*- coding: utf-8 -*- from functools import wraps from flask import g from .errors import forbidden def permission_required(permission): """ 用于权限检测(rbac?) :param permission: :return: """ def decorator(f): @wraps(f) def decorator_function(*args, **kwargs): if not...
22.043478
60
0.617357
3095b6f70cdbecb46b9230237cd661ca671e711d
444
py
Python
projects/kc_projects/height_conv.py
nduprincekc/python-mini-projects
5501399694ca2361f251c6190a1e450011101477
[ "MIT" ]
null
null
null
projects/kc_projects/height_conv.py
nduprincekc/python-mini-projects
5501399694ca2361f251c6190a1e450011101477
[ "MIT" ]
null
null
null
projects/kc_projects/height_conv.py
nduprincekc/python-mini-projects
5501399694ca2361f251c6190a1e450011101477
[ "MIT" ]
null
null
null
import tkinter from tkinter import Tk,Label,DoubleVar,Entry window = Tk() window.configure(background= 'yellow') #print(window) #window.size = 34,1112 window.geometry('323x222') # setting the width and the height of the app window.title('kc app') # title of the app window.resizable(width=False, height=False) ft_lbl = ...
27.75
73
0.736486
9a9851042acfe8fea516877c0ce6f350c1c931f1
2,802
py
Python
Docs_Geometry_File_IO.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
2
2021-11-09T01:59:36.000Z
2021-12-20T07:04:02.000Z
Docs_Geometry_File_IO.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
null
null
null
Docs_Geometry_File_IO.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
1
2021-11-09T01:59:38.000Z
2021-11-09T01:59:38.000Z
import open3d as o3d # http://www.open3d.org/docs/release/tutorial/geometry/file_io.html ######################################################################################################################## # 1. Point cloud ###########################################################################################...
50.945455
120
0.507138
3d762ad8d0287629c748ebc3754c1f7d30b9cd50
804
py
Python
django_comments_xtd/__init__.py
rockmaga/django-comments-xtd
29a49f29fddc0ec16bdfc77e16b46d97e83d2363
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/__init__.py
rockmaga/django-comments-xtd
29a49f29fddc0ec16bdfc77e16b46d97e83d2363
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/__init__.py
rockmaga/django-comments-xtd
29a49f29fddc0ec16bdfc77e16b46d97e83d2363
[ "BSD-2-Clause" ]
null
null
null
from django.utils.module_loading import import_string import django_comments from django_comments.feeds import LatestCommentFeed from django_comments.signals import comment_was_posted default_app_config = 'django_comments_xtd.apps.CommentsXtdConfig' def get_model(): from django_comments_xtd.conf import set...
25.935484
65
0.722637
f1f301a916ed06865cd685cc71b1cc7a079a8cc8
15,112
py
Python
unittests/tools/test_anchore_grype_parser.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
2
2022-03-29T11:37:23.000Z
2022-03-31T18:32:35.000Z
unittests/tools/test_anchore_grype_parser.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
39
2022-01-13T23:52:59.000Z
2022-03-28T21:22:27.000Z
unittests/tools/test_anchore_grype_parser.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
null
null
null
from ..dojo_test_case import DojoTestCase from dojo.models import Finding, Test from dojo.tools.anchore_grype.parser import AnchoreGrypeParser class TestAnchoreGrypeParser(DojoTestCase): def test_parser_has_no_findings(self): testfile = open("unittests/scans/anchore_grype/no_vuln.json") parser =...
59.731225
727
0.712149
6e520a6e43ff993b8d0a45bc164c430d25358e15
180
py
Python
tutor_scheduler/scheduler/admin.py
tylertaewook/tutor-scheduler-django
5d767fe548960952ac9deae25c00aa1ba98a77ac
[ "MIT" ]
1
2021-12-14T04:49:05.000Z
2021-12-14T04:49:05.000Z
tutor_scheduler/scheduler/admin.py
tylertaewook/tutor-scheduler-django
5d767fe548960952ac9deae25c00aa1ba98a77ac
[ "MIT" ]
5
2022-01-27T17:42:55.000Z
2022-03-28T17:30:47.000Z
tutor_scheduler/scheduler/admin.py
tylertaewook/tutor-scheduler-django
5d767fe548960952ac9deae25c00aa1ba98a77ac
[ "MIT" ]
null
null
null
from django.contrib import admin from tutor_scheduler.scheduler.models import Issue, Session # Register your models here. admin.site.register(Session) admin.site.register(Issue)
22.5
59
0.822222
b4e18546fd3008b35405e6a4ede5154374d90c2b
1,348
py
Python
aalh_iit_buildings_011/populate-cov-long-lat.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_011/populate-cov-long-lat.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_011/populate-cov-long-lat.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook import re filename = 'aalh_iit_buildings_011.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 1357 iterationrow = 7 desccol = 8 covcol = 10 latcol = 11 longcol = 12 for row in ws.iter_rows(m...
36.432432
105
0.646142
57032d6549fe9dda319061a782e2638724ecbfc0
5,161
py
Python
klever/deploys/install_klever_bridge.py
PRITI1999/klever
ac80edf4301c15f6b63e35837f4ffbf7e3e68809
[ "Apache-2.0" ]
1
2021-01-09T08:44:37.000Z
2021-01-09T08:44:37.000Z
klever/deploys/install_klever_bridge.py
Abhik1998/klever
827bbd31b29e213bf74cb1d1b158153e62a2933e
[ "Apache-2.0" ]
3
2021-03-19T09:15:16.000Z
2021-09-22T19:24:40.000Z
klever/deploys/install_klever_bridge.py
Abhik1998/klever
827bbd31b29e213bf74cb1d1b158153e62a2933e
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
39.7
112
0.692889
e3e9e0844e9b768dee82efb822a5b0c842dd3612
3,144
py
Python
pogo/POGOProtos_o/Networking/Requests/Messages/UseItemPotionMessage_pb2.py
josenavarro-famoco/flask-pg
501f8561b3532d0c8b122128384d3e855f0f6cb4
[ "MIT" ]
183
2016-07-26T11:43:40.000Z
2022-03-01T07:40:19.000Z
pogo/POGOProtos_o/Networking/Requests/Messages/UseItemPotionMessage_pb2.py
josenavarro-famoco/flask-pg
501f8561b3532d0c8b122128384d3e855f0f6cb4
[ "MIT" ]
60
2016-07-26T18:07:05.000Z
2017-05-22T12:09:55.000Z
pogo/POGOProtos_o/Networking/Requests/Messages/UseItemPotionMessage_pb2.py
josenavarro-famoco/flask-pg
501f8561b3532d0c8b122128384d3e855f0f6cb4
[ "MIT" ]
58
2016-07-26T11:54:07.000Z
2022-03-01T09:17:09.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Networking/Requests/Messages/UseItemPotionMessage.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mes...
39.3
339
0.798664
77a5d0b4c0d33e28979998af1ae7f7f64b344169
1,978
py
Python
tests/parser/integration/test_escrow.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
null
null
null
tests/parser/integration/test_escrow.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
null
null
null
tests/parser/integration/test_escrow.py
lrettig/viper
4abdd2b59b58fe87ca0aee05c792a6e0363b5358
[ "MIT" ]
1
2018-09-02T22:47:00.000Z
2018-09-02T22:47:00.000Z
import pytest from tests.setup_transaction_tests import chain as s, tester as t, ethereum_utils as u, check_gas, \ get_contract_with_gas_estimation, get_contract def test_arbitration_code(): arbitration_code = """ buyer: address seller: address arbitrator: address @public def setup(_seller: address, _arbitra...
24.725
100
0.674419
4db8366130b20a3d661bcd9dd3541fa1981b2cca
230
py
Python
setup.py
mistamun/repo2dockerspawner
fb9cf490735c576eb05d6a086f03d0e5354a2849
[ "BSD-3-Clause" ]
5
2019-06-16T12:53:24.000Z
2021-07-27T10:53:30.000Z
setup.py
mistamun/repo2dockerspawner
fb9cf490735c576eb05d6a086f03d0e5354a2849
[ "BSD-3-Clause" ]
6
2019-05-19T00:16:01.000Z
2020-09-22T18:39:55.000Z
setup.py
mistamun/repo2dockerspawner
fb9cf490735c576eb05d6a086f03d0e5354a2849
[ "BSD-3-Clause" ]
4
2019-06-12T14:57:58.000Z
2019-11-14T20:22:53.000Z
from setuptools import setup, find_packages setup( name='jupyterhub-repo2dockerspawner', version='0.1', packages=find_packages(), install_requires=[ 'dockerspawner', 'jupyter-repo2docker' ], )
19.166667
43
0.66087
960c7124383b0b311eba34ff2e81bc73715681e1
6,881
py
Python
pytorch_lightning/core/hooks.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/hooks.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/hooks.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
null
null
null
from typing import Any import torch from torch import Tensor from torch.optim.optimizer import Optimizer from pytorch_lightning.utilities import move_data_to_device try: from apex import amp except ImportError: APEX_AVAILABLE = False else: APEX_AVAILABLE = True class ModelHooks(torch.nn.Module): #...
33.896552
110
0.593518
4c2ce44786720c852df419782722893edd9718e9
4,169
py
Python
cfdi/hooks.py
dacosta2213/cfdi
d383940cb1b333207fce9c2e70d55907dd441ca1
[ "MIT" ]
null
null
null
cfdi/hooks.py
dacosta2213/cfdi
d383940cb1b333207fce9c2e70d55907dd441ca1
[ "MIT" ]
null
null
null
cfdi/hooks.py
dacosta2213/cfdi
d383940cb1b333207fce9c2e70d55907dd441ca1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "cfdi" app_title = "Cfdi" app_publisher = "CODIGO BINARIO" app_description = "CFDI for Frappe" app_icon = " 'octicon octicon-file-binary'" app_color = " 'octicon octicon-file-binary' , icon color: #2488e...
28.751724
206
0.65987
e964ed3c609b1eb1fe5be7276a6692f85571f9fd
9,756
py
Python
mmflow/datasets/pipelines/loading.py
ArlenCHEN/mmflow
8e26e8dd049376d90c569ab6009c36b9af11ff10
[ "Apache-2.0" ]
null
null
null
mmflow/datasets/pipelines/loading.py
ArlenCHEN/mmflow
8e26e8dd049376d90c569ab6009c36b9af11ff10
[ "Apache-2.0" ]
null
null
null
mmflow/datasets/pipelines/loading.py
ArlenCHEN/mmflow
8e26e8dd049376d90c569ab6009c36b9af11ff10
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp import mmcv import numpy as np from mmcv import flow_from_bytes, sparse_flow_from_bytes from ..builder import PIPELINES from ..utils import read_pfm @PIPELINES.register_module() class LoadImageFromFile: """Load image1 and image2 from file. ...
34.111888
88
0.590816
dd2cd398e4e139e6809f456add9a00eb17f4537d
3,436
py
Python
iaso/analysis/__init__.py
identifiers-org/cmd-iaso
18d9fb8cab2361eebe9102873eaac991126ee940
[ "MIT" ]
null
null
null
iaso/analysis/__init__.py
identifiers-org/cmd-iaso
18d9fb8cab2361eebe9102873eaac991126ee940
[ "MIT" ]
2
2020-07-29T07:34:14.000Z
2020-09-03T10:04:31.000Z
iaso/analysis/__init__.py
identifiers-org/cmd-iaso
18d9fb8cab2361eebe9102873eaac991126ee940
[ "MIT" ]
null
null
null
import gc import json import os import re import signal import time from functools import partial from multiprocessing import Pipe, Process from pathlib import Path from tqdm import tqdm from .common_fragments import extract_common_fragments_per_lui from .shared_fragments import extract_shared_fragments_from_tree fr...
24.542857
88
0.605646
061fcd31c92492ec6f44aa73d711746a02407dba
14,810
py
Python
model_i3d.py
SocialHelpers/Inception3d_for_Indian_Sign_language
c48cd95fd1b87b25ba5aba6da12f9bf7462311bf
[ "MIT" ]
1
2019-11-02T19:04:49.000Z
2019-11-02T19:04:49.000Z
model_i3d.py
SocialHelpers/Inception3d_for_Indian_Sign_language
c48cd95fd1b87b25ba5aba6da12f9bf7462311bf
[ "MIT" ]
4
2019-11-04T11:21:59.000Z
2022-02-09T23:33:12.000Z
model_i3d.py
SocialHelpers/Inception3d_for_Indian_Sign_language
c48cd95fd1b87b25ba5aba6da12f9bf7462311bf
[ "MIT" ]
3
2019-09-16T15:51:07.000Z
2022-03-16T10:18:01.000Z
""" Keras implementation of Inception-v1 Inflated 3D ConvNet used for Kinetics CVPR paper and introduced in "Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset" by Joao Carreira, Andrew Zisserman https://arxiv.org/abs/1705.07750v1 """ from __future__ import print_function from __future__ import absolu...
39.179894
184
0.648616
2e146bccb657a276022a0ea42ce7a5a35fe4cf2b
763
py
Python
zdgen/backend/listing/generator.py
fprimex/zdgen
f351e979cf719e526450fb00ba27689455dbf736
[ "MIT" ]
2
2019-11-30T20:26:44.000Z
2021-07-24T04:05:47.000Z
zdgen/backend/listing/generator.py
fprimex/zdgen
f351e979cf719e526450fb00ba27689455dbf736
[ "MIT" ]
null
null
null
zdgen/backend/listing/generator.py
fprimex/zdgen
f351e979cf719e526450fb00ba27689455dbf736
[ "MIT" ]
null
null
null
import itertools def _sanitize(q): return q.replace('[', '_').replace(']', '') def generate(api_items, duplicate_api_items, dupe_info): content = '' # sort api_items by path alphabetically for name in sorted(list(api_items.keys()), key=lambda i: api_items[i]['path']): ...
24.612903
77
0.550459
3a9bdd79c86faad0101c574aab8c9b6eb4bae8a2
472
py
Python
apps/jobs/migrations/0011_Change_submission_visibility_default_to_public.py
geekayush/EvalAI
3b6e3c20c9a9f08da84426566a8bfe0753e46782
[ "BSD-3-Clause" ]
3
2019-02-24T10:57:09.000Z
2019-02-24T16:49:32.000Z
apps/jobs/migrations/0011_Change_submission_visibility_default_to_public.py
geekayush/EvalAI
3b6e3c20c9a9f08da84426566a8bfe0753e46782
[ "BSD-3-Clause" ]
2
2019-02-09T04:51:10.000Z
2019-02-09T04:51:23.000Z
apps/jobs/migrations/0011_Change_submission_visibility_default_to_public.py
geekayush/EvalAI
3b6e3c20c9a9f08da84426566a8bfe0753e46782
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-01-21 19:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0010_Add_blank_in_submission_metadata'), ] operations = [ migratio...
22.47619
58
0.633475
3a971dfb374cdd8a6678ad80cdcce45ae05992f1
2,618
py
Python
app/core/models.py
jhgutsol1290/recipe-app-api
1c2ca015a05b0309f80b074e4df08e5180a1cbe7
[ "MIT" ]
null
null
null
app/core/models.py
jhgutsol1290/recipe-app-api
1c2ca015a05b0309f80b074e4df08e5180a1cbe7
[ "MIT" ]
null
null
null
app/core/models.py
jhgutsol1290/recipe-app-api
1c2ca015a05b0309f80b074e4df08e5180a1cbe7
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings def recipe_image_file_path(instance, filename): """Generate file path for new recipe image""" ...
28.769231
76
0.672269
ca92bbb69c8ba17d47b2d85ad88906b0c03f21d8
3,392
py
Python
SelfPlay/environment/mazebase_wrapper.py
denisergashbaev/memory-augmented-self-play
7a916d5b7b622713465d570e810356ac72e8a74c
[ "MIT" ]
48
2018-05-29T03:13:22.000Z
2021-12-10T03:26:12.000Z
SelfPlay/environment/mazebase_wrapper.py
denisergashbaev/memory-augmented-self-play
7a916d5b7b622713465d570e810356ac72e8a74c
[ "MIT" ]
1
2018-07-20T15:11:46.000Z
2018-07-20T22:50:33.000Z
SelfPlay/environment/mazebase_wrapper.py
denisergashbaev/memory-augmented-self-play
7a916d5b7b622713465d570e810356ac72e8a74c
[ "MIT" ]
7
2018-05-30T00:57:57.000Z
2021-09-29T17:21:24.000Z
import random from copy import deepcopy import mazebase # These weird import statements are taken from https://github.com/facebook/MazeBase/blob/23454fe092ecf35a8aab4da4972f231c6458209b/py/example.py#L12 import mazebase.games as mazebase_games import numpy as np from mazebase.games import curriculum from mazebase.game...
30.836364
147
0.61763
f2726b3fa23251d76804d1a812ef90e4d7fde1dc
1,130
py
Python
testing/wsgi.py
theY4Kman/django-jinja
03e05b6689582a0af4b82d93f188ecbcb7a85f23
[ "BSD-3-Clause" ]
210
2015-05-21T16:54:05.000Z
2022-01-06T01:24:52.000Z
testing/wsgi.py
theY4Kman/django-jinja
03e05b6689582a0af4b82d93f188ecbcb7a85f23
[ "BSD-3-Clause" ]
139
2015-05-15T11:01:03.000Z
2022-03-29T21:13:04.000Z
testing/wsgi.py
theY4Kman/django-jinja
03e05b6689582a0af4b82d93f188ecbcb7a85f23
[ "BSD-3-Clause" ]
84
2015-05-15T09:35:22.000Z
2021-09-03T13:14:44.000Z
""" WSGI config for arandomtable project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATIO...
43.461538
79
0.809735
07d15e5aa69e4f332786bdfe7264f9e99cc432cc
3,593
py
Python
dataloaders.py
hannesroth88/dermatologist-ai
9b0222a88ca3f3c59bd2d6acd460fc42767c3dfb
[ "MIT" ]
null
null
null
dataloaders.py
hannesroth88/dermatologist-ai
9b0222a88ca3f3c59bd2d6acd460fc42767c3dfb
[ "MIT" ]
3
2021-06-08T21:05:26.000Z
2022-01-13T02:23:20.000Z
dataloaders.py
hannesroth88/dermatologist-ai
9b0222a88ca3f3c59bd2d6acd460fc42767c3dfb
[ "MIT" ]
null
null
null
import torch from torchvision import datasets import torchvision.transforms as transforms from torch.utils.data.sampler import SubsetRandomSampler # Set PIL to be tolerant of image files that are truncated. from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True from config import Config as config class Da...
42.270588
121
0.569441
dc90d0d75024d784a9bfd9653dd52db8d0469f0b
24,235
py
Python
datanator/schema_2/transform.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
10
2018-11-20T17:04:09.000Z
2021-08-24T18:29:06.000Z
datanator/schema_2/transform.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
59
2018-11-23T20:42:11.000Z
2020-11-08T19:51:36.000Z
datanator/schema_2/transform.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
3
2018-12-15T00:53:54.000Z
2021-08-24T18:29:08.000Z
from datanator_query_python.util import mongo_util from datanator_query_python.config import config import copy import numpy as np import re class Transform(mongo_util.MongoUtil): def __init__(self, MongoDB=None, db=None, des_col=None, username=N...
49.866255
124
0.417908
c7148b6fe938885b7ae45ebdd10814dadcb30270
5,449
py
Python
student_soil_view.py
kowsalya2398/agrihelplinesystem
2bb775fba84958fe1fdaf68538d05ede5f956bf7
[ "MIT" ]
null
null
null
student_soil_view.py
kowsalya2398/agrihelplinesystem
2bb775fba84958fe1fdaf68538d05ede5f956bf7
[ "MIT" ]
null
null
null
student_soil_view.py
kowsalya2398/agrihelplinesystem
2bb775fba84958fe1fdaf68538d05ede5f956bf7
[ "MIT" ]
null
null
null
#!C:/Users/KowsRaji/AppData/Local/Programs/Python/Python37/python.exe print("content-type:html \r\n\r\n") import cgi,os import cgitb; cgitb.enable() import pymysql as ps form = cgi.FieldStorage() # Get filename here. pid = form.getvalue("id") conn=ps.connect("localhost","root","","myproject") cur=con...
37.840278
276
0.580841
e69a723627dfa11626dee3249c847ba20487b06d
99,914
py
Python
src/framework/navigation/pyrecast.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
25
2015-01-19T20:09:31.000Z
2022-03-04T12:49:05.000Z
src/framework/navigation/pyrecast.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
2
2016-01-16T00:00:24.000Z
2019-08-17T03:38:11.000Z
src/framework/navigation/pyrecast.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
15
2015-10-22T18:18:00.000Z
2020-07-01T08:17:21.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.6 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import ...
60.407497
167
0.815041
e5cad4e4204fa021d670502ddc4dc4cbeb04e7a2
196
py
Python
Pi-Web_Example/server/html_template.py
tmly115/Pi-Web-Example-Site
7d2213ca057522345b52c4c250e20300aff1bf32
[ "Apache-2.0" ]
null
null
null
Pi-Web_Example/server/html_template.py
tmly115/Pi-Web-Example-Site
7d2213ca057522345b52c4c250e20300aff1bf32
[ "Apache-2.0" ]
null
null
null
Pi-Web_Example/server/html_template.py
tmly115/Pi-Web-Example-Site
7d2213ca057522345b52c4c250e20300aff1bf32
[ "Apache-2.0" ]
null
null
null
class HTML_Template: def __init__(self, template_path): template_file = open(template_path, 'r') self.html = template_file.read() def generate_html(self): return self.html
16.333333
43
0.693878
833bd2faa9769a377a4dd3945e61b22dfd55e226
33,954
py
Python
DiffPrivate_FedLearning.py
chaomeng-chen/PFAT
64d0da9693e91a20cfdfa50e322b098ffd58ce4e
[ "Apache-2.0" ]
null
null
null
DiffPrivate_FedLearning.py
chaomeng-chen/PFAT
64d0da9693e91a20cfdfa50e322b098ffd58ce4e
[ "Apache-2.0" ]
null
null
null
DiffPrivate_FedLearning.py
chaomeng-chen/PFAT
64d0da9693e91a20cfdfa50e322b098ffd58ce4e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED, FIRST_COMPLETED,as_completed import threading import time import numpy as np import tensorflow as tf import math import random im...
55.937397
185
0.556459
f04513d8a52e2b2f005e1b339084909e7473832b
3,930
py
Python
src/data.py
BlueViper8907/Air-Quality
5947c08bc96cf00e8efa609c1470c2de1c86ae86
[ "MIT" ]
2
2021-09-02T17:03:13.000Z
2021-09-08T14:59:38.000Z
src/data.py
BlueViper8907/Air-Quality
5947c08bc96cf00e8efa609c1470c2de1c86ae86
[ "MIT" ]
34
2021-06-24T00:32:03.000Z
2022-03-21T21:58:18.000Z
src/data.py
BlueViper8907/Air-Quality
5947c08bc96cf00e8efa609c1470c2de1c86ae86
[ "MIT" ]
3
2021-09-14T02:48:16.000Z
2021-11-18T01:06:46.000Z
from datetime import datetime from datetime import timedelta import pandas as pd import requests def pull_airnow_sensor_data( api_key: str, start_date: str, end_date: str, measures: list=['OZONE','PM25','CO'], bbox: list=[-87.912584,41.587576,-87.522570,42.109292] ): ''' Pulls all AirNow ...
34.473684
212
0.634097
0e1f09bd16318c053c60d0edbbf752aca28f4f22
152
py
Python
About/admin.py
Django-Development/marketing-your-own-service-on-django
7bd4f20c1c0cd7319b546f1e09fda7c1403ec89c
[ "MIT" ]
null
null
null
About/admin.py
Django-Development/marketing-your-own-service-on-django
7bd4f20c1c0cd7319b546f1e09fda7c1403ec89c
[ "MIT" ]
null
null
null
About/admin.py
Django-Development/marketing-your-own-service-on-django
7bd4f20c1c0cd7319b546f1e09fda7c1403ec89c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(AboutItems) admin.site.register(OurCustomers)
19
33
0.802632
fded30c60a38056298d6bfa20b56f493ec52b467
216
py
Python
hokudai_furima/matching_offer/templatetags/details_images_carousel.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-02-13T03:51:42.000Z
2021-02-13T03:51:42.000Z
hokudai_furima/matching_offer/templatetags/details_images_carousel.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
null
null
null
hokudai_furima/matching_offer/templatetags/details_images_carousel.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-09-18T09:25:48.000Z
2021-09-18T09:25:48.000Z
from django import template register = template.Library() @register.inclusion_tag('matching_offer/_details_images_carousel.html') def details_images_carousel(details_images): return {'images': details_images}
24
71
0.814815
3770b04d765f2ab5efa1bbf950c464f147d0e0c9
459
py
Python
arista.py
snehapatekar1/sneha
a4b9eea1915e8f35ec8695f037608e9b9f6e4ad6
[ "Apache-2.0" ]
null
null
null
arista.py
snehapatekar1/sneha
a4b9eea1915e8f35ec8695f037608e9b9f6e4ad6
[ "Apache-2.0" ]
null
null
null
arista.py
snehapatekar1/sneha
a4b9eea1915e8f35ec8695f037608e9b9f6e4ad6
[ "Apache-2.0" ]
null
null
null
import getpass import sys import telnetlib HOST="192.168.146.150" user=raw_input("Enter your username:") password=getpass.getpass() tn=telnetlib.Telnet(HOST, timeout=5) tn.read_until("Username:") tn.write(user+"\n") if password: tn.read_until("Password:") tn.write(password+"\n") tn.write("en\n") tn.write("co...
19.125
48
0.697168
8346226b6fc2b56b07e4d812380750bfefedfd75
6,120
py
Python
source/lambda/quicksight-custom-resources/util/dataset.py
awslabs/aws-devops-monitoring-dashboard
26a75acb2a5bf006e6dd86f9f6608a5c56a11258
[ "Apache-2.0" ]
39
2021-03-26T17:20:41.000Z
2021-09-11T16:19:37.000Z
source/lambda/quicksight-custom-resources/util/dataset.py
awslabs/aws-devops-monitoring-dashboard
26a75acb2a5bf006e6dd86f9f6608a5c56a11258
[ "Apache-2.0" ]
11
2021-03-25T18:33:56.000Z
2021-07-27T12:58:44.000Z
source/lambda/quicksight-custom-resources/util/dataset.py
awslabs/aws-devops-monitoring-dashboard
26a75acb2a5bf006e6dd86f9f6608a5c56a11258
[ "Apache-2.0" ]
4
2021-06-09T18:56:17.000Z
2021-09-05T16:49:22.000Z
# ##################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
51
148
0.576144
ec2a9136d42ebe043e9c0e8bf8539911439a1bca
31,135
py
Python
cmdchannel/cmdchannel.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
1
2022-03-17T02:06:37.000Z
2022-03-17T02:06:37.000Z
cmdchannel/cmdchannel.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
2
2022-03-07T03:29:33.000Z
2022-03-17T06:51:43.000Z
cmdchannel/cmdchannel.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
2
2021-11-24T19:31:55.000Z
2022-01-02T06:34:22.000Z
from .AAA3A_utils.cogsutils import CogsUtils # isort:skip from redbot.core import commands # isort:skip from redbot.core.i18n import Translator, cog_i18n # isort:skip from redbot.core.bot import Red # isort:skip import discord # isort:skip import typing # isort:skip from redbot.core import Config # Credits: # Th...
53.681034
229
0.637964
c0f4e2a773890721ecd880b703ffa0e4cc031d70
337
py
Python
radical/radical.py
ndarwin314/symbolicPy
ce2e48bf1557b5995db6c324ada9fbd4767df1e3
[ "MIT" ]
null
null
null
radical/radical.py
ndarwin314/symbolicPy
ce2e48bf1557b5995db6c324ada9fbd4767df1e3
[ "MIT" ]
null
null
null
radical/radical.py
ndarwin314/symbolicPy
ce2e48bf1557b5995db6c324ada9fbd4767df1e3
[ "MIT" ]
null
null
null
import numbers class Radical(numbers.Real): __slots__ = ("radicand", "degree") def __init__(self, radicand, degree): # radicand ** (1/degree) self.radicand = radicand self.degree = degree def __float__(self): return pow(self.radicand, 1 / self.degree) def __eq_...
22.466667
68
0.608309
e345c02900c0c413f4de04fa3bc399c4c309f06e
5,493
py
Python
src/demo/ai/solarix/DeSR/desr-1.3.2/script/treeCombine.py
name212/GrammarEngine
1912809d6a19977c9d2fff88279b76a6152b659d
[ "MIT" ]
55
2015-04-11T17:39:27.000Z
2022-01-07T17:52:22.000Z
src/demo/ai/solarix/DeSR/desr-1.3.2/script/treeCombine.py
name212/GrammarEngine
1912809d6a19977c9d2fff88279b76a6152b659d
[ "MIT" ]
17
2017-11-22T13:31:11.000Z
2021-06-06T08:30:43.000Z
src/demo/ai/solarix/DeSR/desr-1.3.2/script/treeCombine.py
qwazer/GrammarEngine
08e1eb7bdfd77f29a51a7063848d74b9171291c4
[ "MIT" ]
28
2015-05-21T08:27:31.000Z
2022-02-24T21:42:36.000Z
#!/usr/bin/env python #---------------------------------------------------------------------- # Copyright (c) 2008 Giuseppe Attardi (attardi@di.unipi.it). # Copyright (c) 2008 Felice Dell'Orletta (dellorle@di.unipi.it). #---------------------------------------------------------------------- # Combines three parse t...
26.795122
135
0.653923
f8f1a97e80a349acff0194aa5c73bf0eaef76d89
6,468
py
Python
tensorflow_probability/python/math/ode/runge_kutta_util_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
tensorflow_probability/python/math/ode/runge_kutta_util_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/math/ode/runge_kutta_util_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-06-04T23:26:31.000Z
2020-06-04T23:26:31.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.197452
80
0.694496
52d266d9f22a23c4f4623c885f9c01b4c59ad836
1,227
py
Python
api/urls.py
aaxelb/SHARE
896e4f0c0e119436c0aaea364ea19389e7099d59
[ "Apache-2.0" ]
1
2019-10-12T20:51:06.000Z
2019-10-12T20:51:06.000Z
api/urls.py
aaxelb/SHARE
896e4f0c0e119436c0aaea364ea19389e7099d59
[ "Apache-2.0" ]
21
2020-06-01T13:59:32.000Z
2021-08-01T06:20:29.000Z
api/urls.py
aaxelb/SHARE
896e4f0c0e119436c0aaea364ea19389e7099d59
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include from django.conf.urls import url from api import views from api.base.views import RootView app_name = 'api' urlpatterns = [ url('^$', RootView.as_view()), url('^', include('api.banners.urls')), url('^', include('api.formattedmetadatarecords.urls')), url('^', incl...
36.088235
74
0.644662
3153714975fcab1c9e004bd1f6229ff6f08b8ae4
8,508
py
Python
asdl/typed_arith_parse.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
null
null
null
asdl/typed_arith_parse.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
null
null
null
asdl/typed_arith_parse.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ typed_arith_parse.py: Parse shell-like and C-like arithmetic. """ from __future__ import print_function import sys from _devbuild.gen.typed_arith_asdl import ( arith_expr, arith_expr_e, arith_expr_t, arith_expr__Binary, arith_expr__FuncCall, arith_expr__Const) from typing import Dic...
25.097345
78
0.58968
571fad8055a12302bbe2ff14fef7429820d7292c
5,690
py
Python
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/2-extending_bound_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/2-extending_bound_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/2-extending_bound_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
38.187919
89
0.634446
8c1e7198f65df63d140f89ce46d0128201c2ecca
606
py
Python
benchmarks/conftest.py
hershd23/SyMPC
af178dbc99cd1077871346113a4a05abbb510ffc
[ "MIT" ]
64
2020-12-12T21:58:55.000Z
2022-03-30T20:46:37.000Z
benchmarks/conftest.py
hershd23/SyMPC
af178dbc99cd1077871346113a4a05abbb510ffc
[ "MIT" ]
244
2020-11-28T17:09:24.000Z
2022-03-23T15:41:59.000Z
benchmarks/conftest.py
hershd23/SyMPC
af178dbc99cd1077871346113a4a05abbb510ffc
[ "MIT" ]
55
2020-11-28T17:43:15.000Z
2022-02-10T02:45:04.000Z
"""Configuration file to share fixtures across benchmarks.""" # stdlib from typing import Any from typing import Callable from typing import List # third party import pytest import syft as sy @pytest.fixture def get_clients() -> Callable[[int], List[Any]]: """Generate a list of clients given a number. Retu...
21.642857
62
0.665017
3c327540762b59b6540cb75db376517a2de1f63f
8,309
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_load_balancer_probes_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_load_balancer_probes_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_load_balancer_probes_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 may ...
46.161111
192
0.660007
b0554b4103173db2b2b7b8905d711bca3a72c4b8
8,594
py
Python
sdk/python/pulumi_azure_nextgen/cache/database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/cache/database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/cache/database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
44.071795
243
0.65313
6adad3d4b8b7605909645e62e96eca273e684f11
2,501
py
Python
src/primaires/perso/commandes/m/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/perso/commandes/m/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/perso/commandes/m/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2015 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # lis...
45.472727
79
0.719712
fbd09c951759208d1f7907c238b803c1f32b5b1d
3,796
py
Python
app/api/users.py
TopKeingt/MHS-code
3173f16ef2cc625f9979eb382aee84633131bc29
[ "MIT" ]
null
null
null
app/api/users.py
TopKeingt/MHS-code
3173f16ef2cc625f9979eb382aee84633131bc29
[ "MIT" ]
null
null
null
app/api/users.py
TopKeingt/MHS-code
3173f16ef2cc625f9979eb382aee84633131bc29
[ "MIT" ]
null
null
null
from flask import jsonify, request, url_for from app import db from app.models import User from app.api import bp from app.api.auth import token_auth from app.api.errors import bad_request import gspread from oauth2client.service_account import ServiceAccountCredentials from datetime import datetime @bp.route('/users...
41.26087
189
0.601159
838a572ac76a408a480d5ae9c29942808d7c1a4e
15,297
py
Python
securesystemslib/ed25519_keys.py
lukpueh/securesystemslib
23fd8a23c8da38d337aaa6fff4d5110db5964e83
[ "MIT" ]
null
null
null
securesystemslib/ed25519_keys.py
lukpueh/securesystemslib
23fd8a23c8da38d337aaa6fff4d5110db5964e83
[ "MIT" ]
1
2019-09-03T10:15:08.000Z
2019-10-01T11:04:52.000Z
securesystemslib/ed25519_keys.py
lukpueh/securesystemslib
23fd8a23c8da38d337aaa6fff4d5110db5964e83
[ "MIT" ]
null
null
null
""" <Program Name> ed25519_keys.py <Author> Vladimir Diaz <vladimir.v.diaz@gmail.com> <Started> September 24, 2013. <Copyright> See LICENSE for licensing information. <Purpose> The goal of this module is to support ed25519 signatures. ed25519 is an elliptic-curve public key signature scheme, its main s...
37.309756
81
0.740668
384fba6c855efd44c90b92f3144bc8d0d8cd022e
126
py
Python
redbrick/cli/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2020-11-26T04:25:15.000Z
2020-11-26T04:25:15.000Z
redbrick/cli/__init__.py
redbrick-ai/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
33
2021-02-04T17:51:53.000Z
2022-03-17T07:28:36.000Z
redbrick/cli/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2021-06-09T10:06:35.000Z
2021-06-09T10:06:35.000Z
"""CLI for RedBrick SDK.""" from redbrick.cli.project import CLIProject from redbrick.cli.public import cli_parser, cli_main
25.2
52
0.793651
4555646559c205362ffcd96596f3d05ea673323f
506
py
Python
plotly/validators/carpet/baxis/_minorgridcolor.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/carpet/baxis/_minorgridcolor.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/carpet/baxis/_minorgridcolor.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='minorgridcolor', parent_name='carpet.baxis', **kwargs ): super(MinorgridcolorValidator, self).__init__( plotly_n...
26.631579
75
0.618577
59015888ca572743199b40c98765555c4c06248c
11,855
py
Python
tests/transformers/test_sysmon_transformer.py
limkokhian/beagle
791e83db94e5a8ab1965b155bb79d32bb259d2b3
[ "MIT" ]
1,139
2019-03-24T09:09:05.000Z
2022-03-27T14:54:38.000Z
tests/transformers/test_sysmon_transformer.py
limkokhian/beagle
791e83db94e5a8ab1965b155bb79d32bb259d2b3
[ "MIT" ]
78
2019-03-24T16:56:06.000Z
2022-02-27T21:31:38.000Z
tests/transformers/test_sysmon_transformer.py
limkokhian/beagle
791e83db94e5a8ab1965b155bb79d32bb259d2b3
[ "MIT" ]
149
2019-03-24T16:44:45.000Z
2022-03-11T12:20:51.000Z
import pytest from beagle.nodes import File, Process, Domain, IPAddress, RegistryKey from beagle.transformers.sysmon_transformer import SysmonTransformer @pytest.fixture def transformer() -> SysmonTransformer: return SysmonTransformer(None) def test_dns_event(transformer): event = { "Provider_Name"...
36.702786
134
0.614677
005c863066fbf7b7841f3ce091c08c4f62225dd9
10,530
py
Python
federation/tests/fixtures/payloads/diaspora.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
federation/tests/fixtures/payloads/diaspora.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
federation/tests/fixtures/payloads/diaspora.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
DIASPORA_PUBLIC_PAYLOAD = """<?xml version='1.0' encoding='UTF-8'?> <me:env xmlns:me="http://salmon-protocol.org/ns/magic-env"> <me:encoding>base64url</me:encoding> <me:alg>RSA-SHA256</me:alg> <me:data type="application/xml">PHN0YXR1c19tZXNzYWdlPjxmb28-YmFyPC9mb28-PC9zdGF0dXNfbWVzc2FnZT4=</me:data> <me:...
42.804878
737
0.718803
7d95f74f5697483bec6bdddee19240a1191f8a4d
4,961
py
Python
lib/config.py
qvant/idle_rpg_bot
a9090568383de8250d9a84a0b459fb764ee87892
[ "MIT" ]
null
null
null
lib/config.py
qvant/idle_rpg_bot
a9090568383de8250d9a84a0b459fb764ee87892
[ "MIT" ]
null
null
null
lib/config.py
qvant/idle_rpg_bot
a9090568383de8250d9a84a0b459fb764ee87892
[ "MIT" ]
null
null
null
import codecs import datetime import json from .consts import LOG_CONFIG from .security import is_password_encrypted, encrypt_password, decrypt_password from .utility import get_logger CONFIG_PARAM_LOG_LEVEL = "LOG_LEVEL" CONFIG_PARAM_QUEUE_PASSWORD = "QUEUE_PASSWORD" CONFIG_PARAM_QUEUE_USER = "QUEUE_USER" CONFIG_PARA...
45.513761
106
0.689579
b0ba865f88c63ce8a7537fb97e810be5af74e908
7,292
py
Python
tests/test_user_model.py
MK1230/blog_instance
6bf50328909624fe58ccfe60971620ca4b142ecb
[ "MIT" ]
null
null
null
tests/test_user_model.py
MK1230/blog_instance
6bf50328909624fe58ccfe60971620ca4b142ecb
[ "MIT" ]
3
2020-03-24T15:28:48.000Z
2021-02-02T21:41:35.000Z
tests/test_user_model.py
weqopy/blog_instance
6bf50328909624fe58ccfe60971620ca4b142ecb
[ "MIT" ]
null
null
null
import unittest import time from datetime import datetime from app import create_app, db from app.models import User, Role, Permission, AnonymousUser, Follow class UserModelTestCase(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() ...
36.46
80
0.620817
b44747ffbd8ec85081e81b14bf8618f933aa7141
24,524
py
Python
ddos/Zeus/ZeusCloryV2.py
mr-kritik/android_soft
f484895c72d140efcdab53e5777494de1515a4b1
[ "Apache-2.0" ]
null
null
null
ddos/Zeus/ZeusCloryV2.py
mr-kritik/android_soft
f484895c72d140efcdab53e5777494de1515a4b1
[ "Apache-2.0" ]
null
null
null
ddos/Zeus/ZeusCloryV2.py
mr-kritik/android_soft
f484895c72d140efcdab53e5777494de1515a4b1
[ "Apache-2.0" ]
null
null
null
import random import socket import threading import time import os useragents = [ 'Mozilla/5.0 (Android; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1', 'Mozilla/5.0 (Android; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1', 'Mozilla/5.0 (WindowsCE 6.0; rv...
66.281081
366
0.612176
002431a429892ecd738e8089d6e1c677635924fe
1,392
py
Python
qcfractal/dashboard/index.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/dashboard/index.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/dashboard/index.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output from .app import app from .navbar import navbar from . import dash_managers from . import dash_queue from . import dash_service body = dbc.Container( [ ...
26.769231
91
0.545259
8432c2029ef5376b83d52ba91169b9459550664b
15,663
py
Python
bridgedb/test/test_https.py
emmapeel2/bridgedb
c91498a3287be9717e6a1203e60b9503ad537de8
[ "BSD-3-Clause-Clear" ]
4
2016-04-18T06:30:54.000Z
2019-07-17T14:02:45.000Z
bridgedb/test/test_https.py
emmapeel2/bridgedb
c91498a3287be9717e6a1203e60b9503ad537de8
[ "BSD-3-Clause-Clear" ]
null
null
null
bridgedb/test/test_https.py
emmapeel2/bridgedb
c91498a3287be9717e6a1203e60b9503ad537de8
[ "BSD-3-Clause-Clear" ]
1
2019-04-11T23:00:02.000Z
2019-04-11T23:00:02.000Z
# -*- coding: utf-8 -*- #_____________________________________________________________________________ # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: trygve <tor-dev@lists.torproject.org> # :copyright: (c) 2014, trygve # (c) 2014-2017, The Tor Project, Inc. # ...
36.767606
82
0.605057
14971e35d62b0d7138554c9af3d9672897a7b897
1,251
py
Python
solutions/12-highly-divisible-triangle-number.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
solutions/12-highly-divisible-triangle-number.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
solutions/12-highly-divisible-triangle-number.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
# problem 12 # highly divisible triangle number """ The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... Let us list the factors of the first seven triangl...
25.02
174
0.61231
e13dcfb320f0c3fe2644c04cb861df86e94ccd07
964
py
Python
subdomain-examiner/examiner.py
bitfede/subomain-examiner
f9faa4fa7bff6c136867c35045a9763da6f160e2
[ "MIT" ]
null
null
null
subdomain-examiner/examiner.py
bitfede/subomain-examiner
f9faa4fa7bff6c136867c35045a9763da6f160e2
[ "MIT" ]
null
null
null
subdomain-examiner/examiner.py
bitfede/subomain-examiner
f9faa4fa7bff6c136867c35045a9763da6f160e2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import socket import nmap nm = nmap.PortScanner() def examine(subdomain_data): try: ip_addr = socket.gethostbyname(subdomain_data) except socket.error: return {} print(f"[*] Examining {subdomain_data} | IP: {ip_addr}") nm.scan(subdomain_data, arguments='-sS ...
21.422222
60
0.58195
0c15373296cca0577e7e08b108c3bc9523d69392
787
py
Python
src/localCacheHelper.py
gopaljigaur/github-gitea-mirror
de3b97ef9fd36fd352f94ceee7e79de02cc6ebef
[ "MIT" ]
79
2020-10-14T03:05:45.000Z
2022-03-27T01:07:52.000Z
src/localCacheHelper.py
Ta180m/github-gitea-mirror
0238264eda182f8ad946a28a95405297ef12e6e7
[ "MIT" ]
2
2021-02-20T01:26:07.000Z
2021-03-16T00:52:06.000Z
src/localCacheHelper.py
Ta180m/github-gitea-mirror
0238264eda182f8ad946a28a95405297ef12e6e7
[ "MIT" ]
12
2020-10-18T01:31:47.000Z
2021-11-09T23:44:57.000Z
#!/usr/bin/env python giteaExistsRepos = dict() from helper import logError,log,getConfig import json config = getConfig() def writeLocalCache(content): try: with open(config['local_cache']['file_path'], 'w') as file: file.write(json.dumps(content, indent=4, sort_keys=True)) except: ...
25.387097
70
0.663278
16ac304ce55b96016d40f933b1cd1fa5c54010cf
49
py
Python
runAtrix.py
felipedeoliveirarios/Atrix
403da137fb9c74136d192da656efa5eea19012aa
[ "MIT" ]
1
2021-06-25T13:34:34.000Z
2021-06-25T13:34:34.000Z
runAtrix.py
felipedeoliveirarios/Atrix
403da137fb9c74136d192da656efa5eea19012aa
[ "MIT" ]
null
null
null
runAtrix.py
felipedeoliveirarios/Atrix
403da137fb9c74136d192da656efa5eea19012aa
[ "MIT" ]
null
null
null
from main import updater updater.start_polling()
16.333333
24
0.836735
1b6950adf8b6c7ced97378a31a9e12cfb8dd1e22
714
py
Python
geoweb/skiresorts/migrations/0001_initial.py
RitzAnthony/Ski_GeoDjango
7a06e9393abc328fe5008ba13c51e116d9b560cb
[ "MIT" ]
null
null
null
geoweb/skiresorts/migrations/0001_initial.py
RitzAnthony/Ski_GeoDjango
7a06e9393abc328fe5008ba13c51e116d9b560cb
[ "MIT" ]
null
null
null
geoweb/skiresorts/migrations/0001_initial.py
RitzAnthony/Ski_GeoDjango
7a06e9393abc328fe5008ba13c51e116d9b560cb
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-20 19:29 import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Skiresort', fields...
26.444444
114
0.57423
57eb8a85e570bac30dfcf3bcaaa4800c167fd1f1
2,023
py
Python
patterns.py
adiah80/Game-Of-Life
c1922e9cff04b6d1cc567bbeccb6af8e562d3e41
[ "MIT" ]
null
null
null
patterns.py
adiah80/Game-Of-Life
c1922e9cff04b6d1cc567bbeccb6af8e562d3e41
[ "MIT" ]
null
null
null
patterns.py
adiah80/Game-Of-Life
c1922e9cff04b6d1cc567bbeccb6af8e562d3e41
[ "MIT" ]
null
null
null
patternsDict = { ########## STILL LIFES ########## "Block" : [ [0,0], [0,1], [1,0], [1,1], ], "BeeHive" : [ [0,1], [0,2], [1,0], [1,3], [2,1], [2,2] ], "Loaf" : [ [0,1], [0,2], [1,0], [1,3], [2,1], [2,3], [3,2] ], "Boat" : [ [0,0], [0,1], [1,0], [1,2], [2,1] ]...
8.951327
34
0.265942
4138f48ac5f9a52e6af1b2580158f3b540e7fb8f
236
py
Python
util/print_included_projects.py
doitintl/iris3
3534bd590fa6dc1d28fc8434300a187831da1090
[ "MIT" ]
30
2021-02-02T20:17:44.000Z
2022-03-27T09:17:32.000Z
util/print_included_projects.py
doitintl/iris3
3534bd590fa6dc1d28fc8434300a187831da1090
[ "MIT" ]
14
2021-03-08T19:54:31.000Z
2022-03-12T20:32:30.000Z
util/print_included_projects.py
doitintl/iris3
3534bd590fa6dc1d28fc8434300a187831da1090
[ "MIT" ]
12
2021-07-08T18:50:27.000Z
2022-03-11T17:10:35.000Z
from util.config_utils import configured_projects """Used from deploy.sh""" def print_included_projects(): projects = configured_projects() print(" ".join(projects)) if __name__ == "__main__": print_included_projects()
18.153846
49
0.728814
92d69cb542072d873d7405a9dfcc32e2741e410a
97
py
Python
TideRec/core/Base.py
Zangshihui/TideRec
4d1ffce1e08b0a15429b84b5058ddc37f3df6219
[ "Apache-2.0" ]
null
null
null
TideRec/core/Base.py
Zangshihui/TideRec
4d1ffce1e08b0a15429b84b5058ddc37f3df6219
[ "Apache-2.0" ]
null
null
null
TideRec/core/Base.py
Zangshihui/TideRec
4d1ffce1e08b0a15429b84b5058ddc37f3df6219
[ "Apache-2.0" ]
null
null
null
class Base(object): def __init__(self, *args, **kwargs): super(Base, self).__init__()
32.333333
40
0.628866
e05d0bbdf0b21919d0490cfbd0a72f9948288ccf
271
py
Python
app/common/helpers.py
samousli/ikiru
4a4a002db398dd7ba1b112ea406c92b0a8cb6c37
[ "MIT" ]
null
null
null
app/common/helpers.py
samousli/ikiru
4a4a002db398dd7ba1b112ea406c92b0a8cb6c37
[ "MIT" ]
null
null
null
app/common/helpers.py
samousli/ikiru
4a4a002db398dd7ba1b112ea406c92b0a8cb6c37
[ "MIT" ]
null
null
null
import re EMAIL_RFC5322 = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)") def is_valid_email(candidate): """ Validates an email address using RFC5322 Courtesy of: https://emailregex.com/ """ return EMAIL_RFC5322.match(candidate)
20.846154
81
0.634686
dc55648719ae3e1f72b5fbb4668d5a1e9001f2ba
229
py
Python
picokitadv/demo_codes/Project_16_1_channel_relay_module.py
yoyojacky/my_pico
bb9fb61d92635ad8c294b008e12615857aca6219
[ "MIT" ]
3
2021-06-07T16:17:35.000Z
2021-12-31T20:28:36.000Z
picokitadv/demo_codes/Project_16_1_channel_relay_module.py
yoyojacky/my_pico
bb9fb61d92635ad8c294b008e12615857aca6219
[ "MIT" ]
null
null
null
picokitadv/demo_codes/Project_16_1_channel_relay_module.py
yoyojacky/my_pico
bb9fb61d92635ad8c294b008e12615857aca6219
[ "MIT" ]
2
2021-07-06T04:42:22.000Z
2022-03-06T06:19:31.000Z
from machine import Pin from time import sleep # GP4 - IN relay_pin = Pin(4, Pin.OUT) while True: print("turn on relay!") relay_pin.value(1) sleep(5) print("turn off relay!") relay_pin.value(0) sleep(5)
17.615385
28
0.641921
d2b717e2157ac020a91cee3be3b2188b74ec16cc
3,560
py
Python
create_function_pages.py
jaxbulsara/pqm-guide
9708cf5d16c1bd1e04dce979eb4d2be67e487b90
[ "MIT" ]
1
2021-07-12T09:23:15.000Z
2021-07-12T09:23:15.000Z
create_function_pages.py
jaxbulsara/pqm-guide
9708cf5d16c1bd1e04dce979eb4d2be67e487b90
[ "MIT" ]
null
null
null
create_function_pages.py
jaxbulsara/pqm-guide
9708cf5d16c1bd1e04dce979eb4d2be67e487b90
[ "MIT" ]
null
null
null
from pathlib import Path class FunctionPageCreator: def __init__(self): self.function_list_filename = "power_m_functions.txt" self.function_path = Path.cwd().joinpath("functions") def run(self): self._read_function_list() self._create_function_pages() def _read_function_l...
38.27957
126
0.541011
e8339c2606980e8c155c85c496f4ce65737d5265
18,492
py
Python
main.py
YA-androidapp/Selenium-Talent
1a53eee165d22be930bc1acb5388cc541da3051d
[ "Apache-2.0" ]
null
null
null
main.py
YA-androidapp/Selenium-Talent
1a53eee165d22be930bc1acb5388cc541da3051d
[ "Apache-2.0" ]
6
2021-03-31T20:04:14.000Z
2022-03-12T00:44:56.000Z
main.py
YA-androidapp/Selenium-Talent
1a53eee165d22be930bc1acb5388cc541da3051d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 YA-androidapp(https://github.com/YA-androidapp) All rights reserved. # pip install icrawler # pip install opencv-python opencv-contrib-python # pip install selenium from bs4 import BeautifulSoup from icrawler.builtin import BingImageCrawler from selenium import webdriver from selenium.webdriver....
41.369128
190
0.480748