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
0ceeb3c1bfe04dffa13af9f7fbc8e2fc13284202
1,162
py
Python
python/webserver.py
AndyQ/UbercornFrame
721d6cf2dcf550e338ac2b03c52b116c72a7ba42
[ "MIT" ]
1
2020-04-21T20:01:23.000Z
2020-04-21T20:01:23.000Z
python/webserver.py
AndyQ/UbercornFrame
721d6cf2dcf550e338ac2b03c52b116c72a7ba42
[ "MIT" ]
3
2021-03-23T13:48:16.000Z
2022-03-11T23:34:52.000Z
python/webserver.py
AndyQ/UbercornFrame
721d6cf2dcf550e338ac2b03c52b116c72a7ba42
[ "MIT" ]
null
null
null
import glob from time import sleep import threading from queue import Queue import web from web.httpserver import StaticMiddleware render = web.template.render('templates/') dataQueue = None def startWebServer( queue ): global dataQueue dataQueue = queue wst = threading.Thread(target=initWebServer) ws...
21.127273
108
0.615318
85299d920077a4850dfb99307f29ce6e20a384da
3,608
py
Python
dashlivesim/tests/test_xlinkperiod.py
Dash-Industry-Forum/dash-live-source-simulator
23cb15c35656a731d9f6d78a30f2713eff2ec20d
[ "BSD-3-Clause" ]
133
2015-04-26T04:37:35.000Z
2022-02-27T16:37:40.000Z
dashlivesim/tests/test_xlinkperiod.py
Mani5GRockers/dash-live-source-simulator
747cb23ba130049fd01c6446533f8dc1d3e9f62a
[ "BSD-3-Clause" ]
83
2015-05-18T07:56:07.000Z
2022-01-26T16:09:25.000Z
dashlivesim/tests/test_xlinkperiod.py
Mani5GRockers/dash-live-source-simulator
747cb23ba130049fd01c6446533f8dc1d3e9f62a
[ "BSD-3-Clause" ]
49
2015-06-29T22:46:21.000Z
2022-01-07T14:32:34.000Z
# The copyright in this software is being made available under the BSD License, # included below. This software may be subject to other third party and contributor # rights, including patent rights, and no such rights are granted under this license. # # Copyright (c) 2015, Dash Industry Forum. # All rights reserved. # ...
50.816901
112
0.730876
e1298f705db0d744029895bd0e2dec1b9269382c
567
py
Python
core/webapi/judge_api.py
Ran350/DaaS
947e9b9a738beb994c5e8f0369f2f0d6c3fe8354
[ "MIT" ]
1
2021-07-05T13:37:46.000Z
2021-07-05T13:37:46.000Z
core/webapi/judge_api.py
Ran350/DaaS
947e9b9a738beb994c5e8f0369f2f0d6c3fe8354
[ "MIT" ]
null
null
null
core/webapi/judge_api.py
Ran350/DaaS
947e9b9a738beb994c5e8f0369f2f0d6c3fe8354
[ "MIT" ]
null
null
null
from flask import Blueprint from flask_restful import Api from .api import API from core import engine class JudgeAPI(API): def _args_validation(self, args): return 'dajare' in args def _processing(self, args): result = { 'is_dajare': None, 'applied_rule': None, ...
21
70
0.645503
d84348a6446e6871eb5c15fd4c0146d5f65ff1fc
15,308
py
Python
gsflow/builder/builder_defaults.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
17
2019-11-11T02:49:29.000Z
2022-02-17T03:45:19.000Z
gsflow/builder/builder_defaults.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
21
2019-07-10T21:45:11.000Z
2022-02-22T17:57:20.000Z
gsflow/builder/builder_defaults.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
8
2019-11-11T02:49:36.000Z
2021-09-30T18:43:45.000Z
try: import simplejson as json except ImportError: import json import os class _DefaultsBase: """ Base class for all defaults classes. Not to be instantiated directly! """ def __init__(self, f=None): if f is None: ws = os.path.abspath(os.path.dirname(__file...
28.191529
79
0.488699
a662d17fb950a370efb1586199c50b93fa61b04e
2,406
py
Python
week3-numpy_pandas/mini-project-1/scheduled_investment_sol.py
jixintong813/2021-march-bootcamp
8bc2b1e2ec217927214e729c2409fb8470ea457e
[ "Apache-2.0" ]
1
2021-07-27T14:17:10.000Z
2021-07-27T14:17:10.000Z
week3-numpy_pandas/mini-project-1/scheduled_investment_sol.py
jixintong813/2021-march-bootcamp
8bc2b1e2ec217927214e729c2409fb8470ea457e
[ "Apache-2.0" ]
4
2021-07-31T13:05:53.000Z
2021-08-21T05:58:53.000Z
week3-numpy_pandas/mini-project-1/scheduled_investment_sol.py
jixintong813/2021-march-bootcamp
8bc2b1e2ec217927214e729c2409fb8470ea457e
[ "Apache-2.0" ]
9
2021-07-24T15:05:21.000Z
2021-08-05T13:55:56.000Z
# 注意 - Copy this file and rename as scheduled_investment_{first_name}.py then complete code with a PR. # 注意 - Copy this file and rename as scheduled_investment_{first_name}.py then complete code with a PR. # 注意 - Copy this file and rename as scheduled_investment_{first_name}.py then complete code with a PR. """ DO NOT...
30.075
102
0.658354
e27a57671e420c6f820abae48b087516b965ab40
12,111
py
Python
venv/lib/python3.7/site-packages/PIL/EpsImagePlugin.py
alexzacher/BMI-Body-Mass-Index-Calculator-APP
f54473757992568b73b066d507059e1053357174
[ "MIT" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Lib/PIL/EpsImagePlugin.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
virtual/lib/python3.6/site-packages/PIL/EpsImagePlugin.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # The Python Imaging Library. # $Id$ # # EPS file handling # # History: # 1995-09-01 fl Created (0.1) # 1996-05-18 fl Don't choke on "atend" fields, Ghostscript interface (0.2) # 1996-08-22 fl Don't choke on floating point BoundingBox values # 1996-08-23 fl Handle files from Macintosh (0.3) # 2001-02-17 fl ...
28.835714
124
0.499876
5c2c95aa7fd868be27bacc36230d733750d04af1
2,477
py
Python
Lib/irix5/cdplayer.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/irix5/cdplayer.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/irix5/cdplayer.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
# This file implements a class which forms an interface to the .cdplayerrc # file that is maintained by SGI's cdplayer program. # # Usage is as follows: # # import readcd # r = readcd.Readcd() # c = Cdplayer(r.gettrackinfo()) # # Now you can use c.artist, c.title and c.track[trackno] (where trackno # starts at 1). Whe...
27.522222
76
0.591038
b1d878e6c57d35a7c3e3912e7de49bc03b3ef598
38,894
py
Python
tests/test_modeling_bart.py
voltek62/transformers
8e2b318c3c0525f5adb8674d48104a2f401a1b5c
[ "Apache-2.0" ]
3
2020-03-25T01:53:43.000Z
2020-05-25T15:49:38.000Z
tests/test_modeling_bart.py
voltek62/transformers
8e2b318c3c0525f5adb8674d48104a2f401a1b5c
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_bart.py
voltek62/transformers
8e2b318c3c0525f5adb8674d48104a2f401a1b5c
[ "Apache-2.0" ]
1
2020-08-24T11:22:14.000Z
2020-08-24T11:22:14.000Z
# coding=utf-8 # Copyright 2020 Huggingface # # 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 ...
84.00432
7,208
0.735358
40dcf7c26e50c45d00cf2cc0da53e7140d8c3dfa
8,925
py
Python
jetscape_analysis/analysis/analyze_events_base_STAT.py
raymondEhlers/JETSCAPE-analysis
c650fac0f8bfc4a2efa9342d47531420daf54f35
[ "BSD-3-Clause" ]
null
null
null
jetscape_analysis/analysis/analyze_events_base_STAT.py
raymondEhlers/JETSCAPE-analysis
c650fac0f8bfc4a2efa9342d47531420daf54f35
[ "BSD-3-Clause" ]
null
null
null
jetscape_analysis/analysis/analyze_events_base_STAT.py
raymondEhlers/JETSCAPE-analysis
c650fac0f8bfc4a2efa9342d47531420daf54f35
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Base class to analyze a JETSCAPE output file You should create a user class that inherits from this one. See analyze_events_STAT.py for an example. The outputdir should contain a JETSCAPE output file in parquet format See README for pre-requisites. .. codeauthor:: James Mulligan <james.m...
39.317181
102
0.549132
fe344e382e4a762433ea8c8b9f951eb1c224849c
70,911
py
Python
tests/driver/runner_test.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
null
null
null
tests/driver/runner_test.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
null
null
null
tests/driver/runner_test.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
32.951208
209
0.458786
9cb406b2f145ab280a036441ebd89f7816f20734
1,586
py
Python
server/task_manager/urls.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
server/task_manager/urls.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
6
2021-11-01T01:35:40.000Z
2022-02-11T03:33:06.000Z
server/task_manager/urls.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
"""task_manager URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
39.65
102
0.692308
72052d803785b26305dbbaa867b6fe85c74d4f2b
573
py
Python
ampa/peticions/migrations/0014_auto_20210307_2137.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/peticions/migrations/0014_auto_20210307_2137.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/peticions/migrations/0014_auto_20210307_2137.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-07 21:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('peticions', '0013_auto_20210307_2136'), ] operations = [ migrations.AlterField( model_name='category', name='name', ...
23.875
64
0.588133
f86c1e9c0da1920e727108a7c0d417e0ac1799d7
2,049
py
Python
locations/spiders/curaleaf.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/curaleaf.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/curaleaf.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem import re class CuraleafSpider(scrapy.Spider): name = "curaleaf" allowed_domains = ["curaleaf.com"] start_urls = ( 'https://curaleaf.com/locations/', ) def parse(self, response): urls = ...
39.403846
118
0.577355
d1336f1d7014c63f0ad5aa77647bba796f61046d
11,628
py
Python
robotcon/yumi/yumi_robot.py
Photon26/wrs-main-210414
71efab6f8680af48ba269244136acf69c36cb730
[ "MIT" ]
null
null
null
robotcon/yumi/yumi_robot.py
Photon26/wrs-main-210414
71efab6f8680af48ba269244136acf69c36cb730
[ "MIT" ]
null
null
null
robotcon/yumi/yumi_robot.py
Photon26/wrs-main-210414
71efab6f8680af48ba269244136acf69c36cb730
[ "MIT" ]
null
null
null
''' Abstraction for the YuMi Robot Authors: Jacky Liang ''' import logging from robotcon.yumi.yumi_arm import YuMiArm, YuMiArmFactory from robotcon.yumi.yumi_constants import YuMiConstants as YMC from time import sleep class YuMiRobot: """ Interface to both arms of an ABB YuMi robot_s. Communicates with the ro...
34.814371
137
0.564499
cf5614bdbcb34befa63d58e4aa6607ab74573461
15,166
py
Python
Lib/site-packages/astropy/io/misc/hdf5.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/astropy/io/misc/hdf5.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/astropy/io/misc/hdf5.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This package contains functions for reading and writing HDF5 tables that are not meant to be used directly, but instead are available as readers/writers in `astropy.table`. See :ref:`table_io` for more details. """ import os import warnings import nu...
38.492386
99
0.613807
2c90833f0ec3e94ac5c40995469e15e27632dc66
1,068
py
Python
road_safety/forecast/test_model.py
twarik/presidential-election-pipeline
1423178d4c1afb9a9da2e7ed6f1c505319ba389e
[ "MIT" ]
null
null
null
road_safety/forecast/test_model.py
twarik/presidential-election-pipeline
1423178d4c1afb9a9da2e7ed6f1c505319ba389e
[ "MIT" ]
null
null
null
road_safety/forecast/test_model.py
twarik/presidential-election-pipeline
1423178d4c1afb9a9da2e7ed6f1c505319ba389e
[ "MIT" ]
null
null
null
import argparse import joblib import numpy as np from sklearn.metrics import mean_absolute_error as MAE from sklearn.metrics import mean_squared_error as MSE from sklearn.metrics import r2_score from fbprophet import Prophet def test_model(test, model_path): test_data = np.load(x_test, allow_pickle=True) mode...
30.514286
104
0.716292
28ab23c5f6db9ee65092973a496cfa36e2432db3
1,322
py
Python
class8/exercise6.py
bonno800/pynet
e699479bc0574e332868b587d01e7e363fe0f76e
[ "Apache-2.0" ]
null
null
null
class8/exercise6.py
bonno800/pynet
e699479bc0574e332868b587d01e7e363fe0f76e
[ "Apache-2.0" ]
null
null
null
class8/exercise6.py
bonno800/pynet
e699479bc0574e332868b587d01e7e363fe0f76e
[ "Apache-2.0" ]
null
null
null
from netmiko import ConnectHandler from datetime import datetime from net_system.models import NetworkDevice, Credentials import django import Queue import threading import time def show_ver(q, a_device): creds = a_device.credentials remote_conn = ConnectHandler(device_type=a_device.device_type, ...
28.12766
72
0.628593
07bc335a35fb2c3c3d197d091c561141128905ca
1,106
py
Python
chapter05/dags/08_trigger_rules.py
add54/Data_PipeLine_Apache_Airflow
40b52ba6fcda3203b194be9e1c2850135997215a
[ "BSD-Source-Code" ]
303
2019-09-30T10:59:15.000Z
2022-03-30T17:03:27.000Z
chapter05/dags/08_trigger_rules.py
andreaschandra/data-pipelines-with-apache-airflow
40b52ba6fcda3203b194be9e1c2850135997215a
[ "BSD-Source-Code" ]
13
2020-04-08T12:28:30.000Z
2021-12-30T06:40:37.000Z
chapter05/dags/08_trigger_rules.py
andreaschandra/data-pipelines-with-apache-airflow
40b52ba6fcda3203b194be9e1c2850135997215a
[ "BSD-Source-Code" ]
148
2020-01-03T03:30:39.000Z
2022-03-28T04:19:43.000Z
import airflow from airflow import DAG from airflow.operators.dummy import DummyOperator from airflow.operators.python import PythonOperator def _fetch_sales(**context): if context["execution_date"] > airflow.utils.dates.days_ago(2): raise Exception("Something when wrong") with DAG( dag_id="08_trig...
31.6
85
0.754069
2ec95cd35037daa7fa0c58d1689c32fc93e67498
5,716
py
Python
run.py
zhaojing1995/Exploit-Unknown-Gradually
9dc6b8222d573843f05067e1679a66425585a531
[ "MIT" ]
1
2019-08-09T01:31:06.000Z
2019-08-09T01:31:06.000Z
run.py
zhaojing1995/Exploit-Unknown-Gradually
9dc6b8222d573843f05067e1679a66425585a531
[ "MIT" ]
null
null
null
run.py
zhaojing1995/Exploit-Unknown-Gradually
9dc6b8222d573843f05067e1679a66425585a531
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import from reid.eug import * from reid import datasets from reid import models import numpy as np import torch import argparse import os from reid.utils.logging import Logger import os.path as osp import sys from torch.backends import cudnn from reid.utils.serialization...
39.42069
135
0.645206
f40a99a8bea21471137ad40f8731359bb2ca6a0d
48,295
py
Python
core/domain/stats_services.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
1
2020-08-17T06:19:38.000Z
2020-08-17T06:19:38.000Z
core/domain/stats_services.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
null
null
null
core/domain/stats_services.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
40.112126
116
0.721234
20a809d61ee743f78232d8eadc45a3a2d4a580b3
1,139
py
Python
attic/ngfrontman/reset_options.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
attic/ngfrontman/reset_options.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
attic/ngfrontman/reset_options.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os basepath = os.path.sep.join(os.path.abspath(os.path.dirname(__file__)).split(os.path.sep)[:-1]) sys.path.append(basepath) os.environ['DJANGO_SETTINGS_MODULE'] = 'ngfrontman.settings' from django.conf import settings from django.db import connections settings.DATABASES['wp...
33.5
152
0.733099
7b9ec37eceb4b2cc0c923d9d265d9b27da97474f
15,073
py
Python
BST_AVL_PseudoPandas/bst_e_avl.py
VictorVenites/Mestrado
94727e12e29c7f5423784377ea8f497854eb7feb
[ "MIT" ]
null
null
null
BST_AVL_PseudoPandas/bst_e_avl.py
VictorVenites/Mestrado
94727e12e29c7f5423784377ea8f497854eb7feb
[ "MIT" ]
null
null
null
BST_AVL_PseudoPandas/bst_e_avl.py
VictorVenites/Mestrado
94727e12e29c7f5423784377ea8f497854eb7feb
[ "MIT" ]
null
null
null
# Compilação baseada no código de #- https://medium.com/@aksh0001/avl-trees-in-python-bc3d0aeb9150 from typing import List # ------------------------------------------------------------------------------------------ # Base Tree Node class TreeNode: def __init__(self, key, val=None): self.key = key ...
40.628032
118
0.576395
0878d642df8174dac0398aeeeaf49ddbf6cc7b5b
1,858
py
Python
au500/parse_MUDetect_findings.py
ALP-active-miner/ALP
5b5030e2da1297032f59e23c43a4bb20f402878a
[ "MIT" ]
null
null
null
au500/parse_MUDetect_findings.py
ALP-active-miner/ALP
5b5030e2da1297032f59e23c43a4bb20f402878a
[ "MIT" ]
null
null
null
au500/parse_MUDetect_findings.py
ALP-active-miner/ALP
5b5030e2da1297032f59e23c43a4bb20f402878a
[ "MIT" ]
null
null
null
""" Use this to parse the output of MUdetect: e.g. the stuff in findings/xmlgraphics-fop-findings-output.yml findings/.*-findings-output.yml Print the output to mudetect_findings.csv """ import sys locations_and_APIs = [] with open(sys.argv[1]) as infile: current_file = None current_method = None locatio...
31.491525
122
0.540366
46be4ee77a0dc86f05df3e37b35ef1f5283fa555
319,035
py
Python
src/azure-cli/azure/cli/command_modules/network/custom.py
kceiw/azure-cli
1278999f52059ceb184c3f21596667d49e312d38
[ "MIT" ]
1
2016-09-15T23:10:48.000Z
2016-09-15T23:10:48.000Z
src/azure-cli/azure/cli/command_modules/network/custom.py
kceiw/azure-cli
1278999f52059ceb184c3f21596667d49e312d38
[ "MIT" ]
1
2021-06-02T02:50:00.000Z
2021-06-02T02:50:00.000Z
src/azure-cli/azure/cli/command_modules/network/custom.py
kceiw/azure-cli
1278999f52059ceb184c3f21596667d49e312d38
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
50.384555
204
0.675105
c57ee2d28b69c81bb002fb9bf73a64d3740f1479
3,134
py
Python
logger/utils/test_read_config.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
1
2020-06-29T17:25:44.000Z
2020-06-29T17:25:44.000Z
logger/utils/test_read_config.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
logger/utils/test_read_config.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import json import logging import re import sys import tempfile import threading import unittest import warnings from os.path import dirname, realpath; sys.path.append(dirname(dirname(dirname(realpath(__file__))))) from logger.utils import read_config SAMPLE_JSON = """{ # Here's a sample...
31.656566
101
0.575303
81b96aa90a3ca7a17c343ed3c4a0756db79c5ced
1,276
py
Python
cFunction.py
SkyLined/cBugId
fde6d3eff9d73c71fe6ac81c975c1a3e43afad3c
[ "CC-BY-4.0" ]
22
2016-08-11T14:50:55.000Z
2021-06-06T09:39:26.000Z
cFunction.py
SkyLined/cBugId
fde6d3eff9d73c71fe6ac81c975c1a3e43afad3c
[ "CC-BY-4.0" ]
19
2016-09-07T05:54:40.000Z
2020-07-02T07:46:38.000Z
cFunction.py
SkyLined/cBugId
fde6d3eff9d73c71fe6ac81c975c1a3e43afad3c
[ "CC-BY-4.0" ]
11
2016-09-03T22:42:50.000Z
2018-10-01T18:28:59.000Z
class cFunction(object): def __init__(oSelf, oModule, sbSymbol): assert oModule.sb0BinaryName, \ "Cannot have a function in a module without a binary name: %s" % repr(oModule); assert oModule.sb0SimplifiedName, \ "Cannot have a function in a module without a simplified binary name: %s" % repr(...
47.259259
103
0.623041
e259228edceda73787a418995ee767d4f0b4fcad
1,893
py
Python
src/messengers/facebook_messenger/facebook_messenger_notifications.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/messengers/facebook_messenger/facebook_messenger_notifications.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
src/messengers/facebook_messenger/facebook_messenger_notifications.py
debendda/multimessenger
0b20c4a511cb06c85309306d513c8942ae7adbeb
[ "MIT" ]
null
null
null
from json_mockup.notification import MessageDeliveredNotification, MessageNotification, MessageReadNotification, UserTypingNotification, UserActiveNotification from json_mockup.messages import Message from fbchat import ThreadsRead, MessagesDelivered, MessageEvent, Typing, Presence class FacebookMessengerNotifications...
48.538462
159
0.703645
200fe1c7ee7c1e6c9f5cd22c4b201a87d4c6d88c
57,080
py
Python
pywinauto/controls/uia_controls.py
AleksandrPanov/pywinauto
5fc0a7f05fa626c1830be5ef32878f76bea08f34
[ "BSD-3-Clause" ]
1
2022-01-13T06:45:26.000Z
2022-01-13T06:45:26.000Z
pywinauto/controls/uia_controls.py
springcolor/pywinauto
5fc0a7f05fa626c1830be5ef32878f76bea08f34
[ "BSD-3-Clause" ]
2
2019-11-03T13:01:46.000Z
2020-12-08T18:22:55.000Z
pywinauto/controls/uia_controls.py
airelil/pywinauto
187b84de20f7980d4f5cff4abdb3bbff17cc049e
[ "BSD-3-Clause" ]
null
null
null
# GUI Application automation and testing library # Copyright (C) 2006-2018 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
38.489548
119
0.532095
94b115f5263ce445cf174b74b64176957432faff
12,164
py
Python
torch/utils/checkpoint.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
7
2021-05-29T16:31:51.000Z
2022-02-21T18:52:25.000Z
torch/utils/checkpoint.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
1
2022-01-18T12:17:29.000Z
2022-01-18T12:17:29.000Z
torch/utils/checkpoint.py
brooks-anderson/pytorch
dd928097938b6368fc7e2dc67721550d50ab08ea
[ "Intel" ]
2
2021-07-02T10:18:21.000Z
2021-08-18T10:10:28.000Z
import torch import warnings from typing import Any, Iterable, List, Tuple def detach_variable(inputs: Tuple[Any, ...]) -> Tuple[torch.Tensor, ...]: if isinstance(inputs, tuple): out = [] for inp in inputs: if not isinstance(inp, torch.Tensor): out.append(inp) ...
43.755396
102
0.665159
6a75e9d2c79c35a5dff8bf0323a3dad5c918c6ef
6,154
py
Python
backup.py
occulte/DOTFiles
954e858f85e0dbf6cddda94dad56853b7ef5db11
[ "MIT" ]
1
2020-02-04T21:01:57.000Z
2020-02-04T21:01:57.000Z
backup.py
occulte/DOTFiles
954e858f85e0dbf6cddda94dad56853b7ef5db11
[ "MIT" ]
null
null
null
backup.py
occulte/DOTFiles
954e858f85e0dbf6cddda94dad56853b7ef5db11
[ "MIT" ]
null
null
null
import github import os import re import sys from signal import signal, SIGINT import datetime import json usage = '''baCkup. keep your settings files in sync usage: python baCkup.py backup sync your config files to your gist. python baCkup.py [options] restore restore the config files to your s...
34.573034
276
0.651609
22cd9d5aacb1b8556b6b1982d02f4106da2df3fc
2,084
py
Python
scripts/train.py
TVlaic/Mozgalo
842df60f9650405d6506f8a9934dcbb1d5f751da
[ "MIT" ]
1
2021-04-20T07:58:26.000Z
2021-04-20T07:58:26.000Z
scripts/train.py
Mungosin/Mozgalo
842df60f9650405d6506f8a9934dcbb1d5f751da
[ "MIT" ]
null
null
null
scripts/train.py
Mungosin/Mozgalo
842df60f9650405d6506f8a9934dcbb1d5f751da
[ "MIT" ]
null
null
null
import os import argparse import configparser from shutil import copyfile from importlib import import_module #pip install tf-nightly-gpu #pip install toposort networkx pytest # from tensorflow.python.keras._impl.keras import backend as K # import memory_saving_gradients # K.__dict__["gradients"] = memory_saving_grad...
36.561404
229
0.797505
9c9c31f182cfa330189ee8bae17bb7dc81d6421d
4,519
py
Python
similarity_score_new_weight/translation.py
gmichalo/LexSubCon
7c5b3fec90520add2b032cb1277cab8e7bf0f07e
[ "Apache-2.0" ]
null
null
null
similarity_score_new_weight/translation.py
gmichalo/LexSubCon
7c5b3fec90520add2b032cb1277cab8e7bf0f07e
[ "Apache-2.0" ]
null
null
null
similarity_score_new_weight/translation.py
gmichalo/LexSubCon
7c5b3fec90520add2b032cb1277cab8e7bf0f07e
[ "Apache-2.0" ]
null
null
null
from transformers import MarianMTModel, MarianTokenizer class back_translation: def __init__(self, target_model_name='Helsinki-NLP/opus-mt-en-ROMANCE', target_model_name_three_translation='Helsinki-NLP/opus-mt-fr-es', en_model_name='Helsinki-NLP/opus-mt-ROMANCE-en'): self...
53.164706
118
0.684001
45c5620d6c238adac399d601dc77bb5fcf33f665
1,200
py
Python
instasave/utils/decorator.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
1
2020-07-05T19:42:44.000Z
2020-07-05T19:42:44.000Z
instasave/utils/decorator.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
null
null
null
instasave/utils/decorator.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
2
2019-09-10T20:21:35.000Z
2019-09-19T09:43:03.000Z
import functools import uuid from hashlib import blake2b def unique_filename(func): """Return filename with an unique id appended to it's end.""" @functools.wraps(func) def wrapper(*args, **kwargs): filename = func(*args, **kwargs) # Convert the random UUID to bytes. id = str.enco...
29.268293
65
0.62
4d5d713339be8f159a71247fa4e534c7f260e19d
20
py
Python
db/queries/auth_queries.py
kerstentw/GenAuthPy
a3d1b391be9dc4050e2b5cd6e9d3721f95ea82d5
[ "Unlicense" ]
null
null
null
db/queries/auth_queries.py
kerstentw/GenAuthPy
a3d1b391be9dc4050e2b5cd6e9d3721f95ea82d5
[ "Unlicense" ]
null
null
null
db/queries/auth_queries.py
kerstentw/GenAuthPy
a3d1b391be9dc4050e2b5cd6e9d3721f95ea82d5
[ "Unlicense" ]
null
null
null
AUTH_QUERIES = { }
5
16
0.6
8bc7b93b75a89a80e0f3a21a79cc8f6410beef7e
20,152
py
Python
graphsage/models.py
mainuliitkgp/Weighted_GraphSAGE
525a84e842cc8a489a0e15a8e0d481a42653752a
[ "MIT" ]
1
2020-08-29T05:19:35.000Z
2020-08-29T05:19:35.000Z
graphsage/models.py
mainuliitkgp/Weighted_GraphSAGE
525a84e842cc8a489a0e15a8e0d481a42653752a
[ "MIT" ]
null
null
null
graphsage/models.py
mainuliitkgp/Weighted_GraphSAGE
525a84e842cc8a489a0e15a8e0d481a42653752a
[ "MIT" ]
null
null
null
from collections import namedtuple import tensorflow as tf import math import graphsage.layers as layers import graphsage.metrics as metrics from .prediction import BipartiteEdgePredLayer from .aggregators import MeanAggregator, MaxPoolingAggregator, MeanPoolingAggregator, SeqAggregator, GCNAggregator flags = tf.ap...
41.983333
130
0.625992
0b05e635c25a3ed622bbf56ed86cd201a9be8b7e
4,942
py
Python
ml_model.py
Calsowah/testingAzurePython
9c046490b3a37e90e9c73b3b483f33f82034bf64
[ "MIT" ]
null
null
null
ml_model.py
Calsowah/testingAzurePython
9c046490b3a37e90e9c73b3b483f33f82034bf64
[ "MIT" ]
null
null
null
ml_model.py
Calsowah/testingAzurePython
9c046490b3a37e90e9c73b3b483f33f82034bf64
[ "MIT" ]
null
null
null
import pandas as pd import re import numpy as np import math from sklearn.naive_bayes import BernoulliNB from sklearn.naive_bayes import MultinomialNB from sklearn.model_selection import ShuffleSplit from collections import Counter, defaultdict # data = '/Users/bryankamau/Documents/SPRING 2019/CS 5412/testingAzurePyth...
30.134146
107
0.726427
30982d8571d4dad1ce9b6954c05b40fc13c130a6
3,858
py
Python
homeassistant/components/nam/sensor.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
2
2020-03-29T05:32:57.000Z
2021-06-13T06:55:05.000Z
homeassistant/components/nam/sensor.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/nam/sensor.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
1
2020-11-18T21:04:18.000Z
2020-11-18T21:04:18.000Z
"""Support for the Nettigo Air Monitor service.""" from __future__ import annotations from datetime import timedelta from typing import Any from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_DEVICE_CLASS,...
33.258621
93
0.68844
57452c0f9e77efb213866f4b1f17d36d31c09bfe
128,981
py
Python
zerver/models.py
akornor/zulip
451ef6395677f6cdeb7149677d04d12fb30dc4cb
[ "Apache-2.0" ]
1
2020-08-24T08:26:03.000Z
2020-08-24T08:26:03.000Z
zerver/models.py
tejpratap545/zulip
77bea3de7aec9b38bf51f619393b4f83540a51dd
[ "Apache-2.0" ]
null
null
null
zerver/models.py
tejpratap545/zulip
77bea3de7aec9b38bf51f619393b4f83540a51dd
[ "Apache-2.0" ]
null
null
null
import ast import datetime import re import time from collections import defaultdict from datetime import timedelta from typing import ( AbstractSet, Any, Callable, DefaultDict, Dict, Iterable, List, Optional, Sequence, Set, Tuple, TypeVar, Union, ) import django.con...
41.353318
131
0.703483
756e203e805d796b1f4f94b207b294bfc0c2c4f1
16,546
py
Python
tensorflow/python/profiler/option_builder.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/profiler/option_builder.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/profiler/option_builder.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2016 The TensorFlow 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 applica...
35.813853
128
0.642089
f893aa053a1651d59067d499e3e67727b7fd4372
6,169
py
Python
wtpy/StrategyDefs.py
msincenselee/wtpy
af1ca67b6f194a853d7aff9c9858bd678dd00491
[ "MIT" ]
null
null
null
wtpy/StrategyDefs.py
msincenselee/wtpy
af1ca67b6f194a853d7aff9c9858bd678dd00491
[ "MIT" ]
null
null
null
wtpy/StrategyDefs.py
msincenselee/wtpy
af1ca67b6f194a853d7aff9c9858bd678dd00491
[ "MIT" ]
null
null
null
from wtpy import CtaContext, SelContext, HftContext class BaseCtaStrategy: ''' CTA策略基础类,所有的策略都从该类派生\n 包含了策略的基本开发框架 ''' def __init__(self, name:str): self.__name__ = name def name(self) -> str: return self.__name__ def on_init(self, context:CtaC...
23.191729
156
0.497974
bb592d185e0c5a3acb314cb624240e7f7c30252b
7,631
py
Python
deep_qa-master/tests/layers/tuple_matchers/threshold_tuple_matcher_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
1
2017-04-11T13:03:55.000Z
2017-04-11T13:03:55.000Z
deep_qa-master/tests/layers/tuple_matchers/threshold_tuple_matcher_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
deep_qa-master/tests/layers/tuple_matchers/threshold_tuple_matcher_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-self-use import numpy from numpy.testing import assert_array_almost_equal from keras import backend as K from keras.initializers import Constant from keras.layers import Input from keras.models import Model from keras import activations from deep_qa.tensors.backend import apply_feed_forward from d...
55.297101
112
0.625999
8194174571df186616050ec51ea978fd4a5f61df
17,442
py
Python
nova/scheduler/host_manager.py
venusource/nova
0c6e6f180eebe71a3431abf726a0fd0c66578162
[ "Apache-2.0" ]
null
null
null
nova/scheduler/host_manager.py
venusource/nova
0c6e6f180eebe71a3431abf726a0fd0c66578162
[ "Apache-2.0" ]
null
null
null
nova/scheduler/host_manager.py
venusource/nova
0c6e6f180eebe71a3431abf726a0fd0c66578162
[ "Apache-2.0" ]
1
2020-07-24T00:41:17.000Z
2020-07-24T00:41:17.000Z
# Copyright (c) 2011 OpenStack Foundation # 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 ...
40.18894
79
0.613634
1ae4ad09e1cb4bceca04b5fe35c740400fedfd3f
2,774
py
Python
pyntcloud/plot/voxelgrid.py
soyoung9306/pyntcloud
490d58015e351c2f745a247587ea245d45f4bb25
[ "MIT" ]
null
null
null
pyntcloud/plot/voxelgrid.py
soyoung9306/pyntcloud
490d58015e351c2f745a247587ea245d45f4bb25
[ "MIT" ]
null
null
null
pyntcloud/plot/voxelgrid.py
soyoung9306/pyntcloud
490d58015e351c2f745a247587ea245d45f4bb25
[ "MIT" ]
null
null
null
import os import shutil import numpy as np try: import matplotlib.pyplot as plt except ImportError: plt = None try: from IPython.display import IFrame except ImportError: IFrame = None def plot_voxelgrid(voxelgrid, mode="binary", cmap="Oranges", ...
29.2
77
0.629056
c1da4db692812e965904480df3b17af7be29ac94
21,759
py
Python
geopandas/tests/test_geom_methods.py
BoBednar/geopandas
f89a6e34de2b32c1e2160f0c079b7e50067304eb
[ "BSD-3-Clause" ]
null
null
null
geopandas/tests/test_geom_methods.py
BoBednar/geopandas
f89a6e34de2b32c1e2160f0c079b7e50067304eb
[ "BSD-3-Clause" ]
null
null
null
geopandas/tests/test_geom_methods.py
BoBednar/geopandas
f89a6e34de2b32c1e2160f0c079b7e50067304eb
[ "BSD-3-Clause" ]
1
2020-01-06T09:22:38.000Z
2020-01-06T09:22:38.000Z
from __future__ import absolute_import import string import numpy as np from pandas import Series, DataFrame, MultiIndex from shapely.geometry import ( Point, LinearRing, LineString, Polygon, MultiPoint) from shapely.geometry.collection import GeometryCollection from shapely.ops import unary_union from geopandas...
39.134892
79
0.588584
9d62e7735d73014bfe4f78cff538d22676595268
590
py
Python
LeetCode/2019-07-20-377-Combination-Sum-IV.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
5
2018-10-30T05:07:32.000Z
2019-06-18T08:11:38.000Z
LeetCode/2019-07-20-377-Combination-Sum-IV.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
1
2020-05-09T09:05:16.000Z
2020-05-09T09:05:16.000Z
LeetCode/2019-07-20-377-Combination-Sum-IV.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
2
2020-05-09T09:02:22.000Z
2020-12-09T13:23:00.000Z
# -*- coding: utf-8 -*- # @Author: 何睿 # @Create Date: 2019-07-20 07:58:21 # @Last Modified by: 何睿 # @Last Modified time: 2019-07-20 08:33:22 from typing import List class Solution: def combinationSum4(self, nums: List[int], target: int) -> int: if not nums: return 0 ...
28.095238
87
0.508475
f94a25fe81b0a9ac8dbd0782e69be2fddc7695d9
776
py
Python
Python/My general experiments.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
1
2022-01-19T04:22:21.000Z
2022-01-19T04:22:21.000Z
Python/My general experiments.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
Python/My general experiments.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 17 15:05:05 2022 @author: Guruprasada """ # My experiments print(tuple('random')) print(list('random')) print(set('random')) print(" it's my birthday") print('she said "I am hungry" ') ##### test = 'hello guru' print(test.index("l")) print(test[1:4]) print...
16.869565
36
0.587629
f369a56d900c6f4f0e6c26db5fead9f1c8a62b49
368
py
Python
src/server/MessageHandlers/Time.py
JSchneidler/python-irc
f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c
[ "MIT" ]
null
null
null
src/server/MessageHandlers/Time.py
JSchneidler/python-irc
f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c
[ "MIT" ]
null
null
null
src/server/MessageHandlers/Time.py
JSchneidler/python-irc
f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c
[ "MIT" ]
null
null
null
from datetime import datetime from lib.Message import Message from .Handler import Handler from .Reply import time # https://datatracker.ietf.org/doc/html/rfc2812#section-3.4.6 class Time(Handler): def handle(self, message: Message): self._replyNumeric( self.client, time(self.serverState.get...
24.533333
87
0.709239
c20105b1fd46b4754f7364280430422649dbf768
1,684
py
Python
rigid.py
BillXu2000/taichiCourse01_cpic
8282ed9b8387cf910353eaba975eb80ae1f6007d
[ "MIT" ]
null
null
null
rigid.py
BillXu2000/taichiCourse01_cpic
8282ed9b8387cf910353eaba975eb80ae1f6007d
[ "MIT" ]
null
null
null
rigid.py
BillXu2000/taichiCourse01_cpic
8282ed9b8387cf910353eaba975eb80ae1f6007d
[ "MIT" ]
null
null
null
import taichi as ti from utils import * @ti.data_oriented class Rigid: def __init__(self, n): self.pos = ti.Vector.field(2, dtype = real, shape = ()) self.v = ti.Vector.field(2, dtype = real, shape = ()) self.theta = ti.field(dtype = real, shape = ()) self.w = ti.field(dtype = real...
35.083333
119
0.529097
61fdc78e78a264bf5293afe86d477bccc22be844
725
py
Python
A-V/STUN/turn-client-master/py-tcp-echo-server.py
mosxuqian/CodeCollection
40622739f7fcb7326ee85db3bf5ecf1148c3aa08
[ "Apache-2.0" ]
1
2021-10-09T03:31:49.000Z
2021-10-09T03:31:49.000Z
A-V/STUN/turn-client-master/py-tcp-echo-server.py
zzilla/CodeCollection
40622739f7fcb7326ee85db3bf5ecf1148c3aa08
[ "Apache-2.0" ]
null
null
null
A-V/STUN/turn-client-master/py-tcp-echo-server.py
zzilla/CodeCollection
40622739f7fcb7326ee85db3bf5ecf1148c3aa08
[ "Apache-2.0" ]
4
2017-05-20T02:52:51.000Z
2019-04-03T01:01:47.000Z
#!/usr/bin/python ''' python TCP echo sever by Chris <nodexy@gmail> USAGE: %s <server_ip> <server_port> ''' # 2012-2-22 Shenzhen, China import socket from sys import argv def f(host,port): sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.bind((host,port)) sock.listen(10) while True: ...
17.682927
59
0.575172
11974d25d72d30f0c7a32b3c96cd6989800836bd
41,880
py
Python
pandas/io/excel/_base.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/io/excel/_base.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/io/excel/_base.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import abc import datetime from distutils.version import LooseVersion import inspect from io import BytesIO import os from textwrap import fill from typing import Any, Dict, Mapping, Optional, Union, cast import warnings import zipfile from pandas._config import config from pandas....
35.163728
88
0.606328
392a9a8c1c2bd25d86d52d7c414f66d176f5d37b
800
py
Python
setup.py
tcprescott/racetime-bot
0028579599e5e3a33156ecd86aebe5c61bd9b5cf
[ "MIT" ]
null
null
null
setup.py
tcprescott/racetime-bot
0028579599e5e3a33156ecd86aebe5c61bd9b5cf
[ "MIT" ]
null
null
null
setup.py
tcprescott/racetime-bot
0028579599e5e3a33156ecd86aebe5c61bd9b5cf
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='racetime-bot', description='Foundation system for creating chat bots for racetime.gg', license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approve...
27.586207
75
0.59625
a9fb1054e52518494ddb31325ba951b5ea7839d5
11,377
py
Python
tests/cupy_tests/core_tests/test_ndarray_scatter.py
mattvend/cupy
522eda0e147f8560c7883233ea737e2491e6105d
[ "MIT" ]
null
null
null
tests/cupy_tests/core_tests/test_ndarray_scatter.py
mattvend/cupy
522eda0e147f8560c7883233ea737e2491e6105d
[ "MIT" ]
null
null
null
tests/cupy_tests/core_tests/test_ndarray_scatter.py
mattvend/cupy
522eda0e147f8560c7883233ea737e2491e6105d
[ "MIT" ]
null
null
null
import unittest import numpy import cupy from cupy import testing @testing.parameterize( # array only {'shape': (2, 3, 4), 'slices': numpy.array(-1), 'value': 1}, {'shape': (2, 3, 4), 'slices': numpy.array([1, 0]), 'value': 1}, {'shape': (2, 3, 4), 'slices': (slice(None), [1, 2]), 'value': 1}, {...
40.92446
77
0.531511
efd9f2f8537ebd039ed08470d11d65e046b02635
21,556
py
Python
tensorflow_probability/python/mcmc/random_walk_metropolis.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "Apache-2.0" ]
1
2022-03-22T11:56:31.000Z
2022-03-22T11:56:31.000Z
tensorflow_probability/python/mcmc/random_walk_metropolis.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/random_walk_metropolis.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
# 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...
37.685315
103
0.705326
5150b9a036a9671aa3039bdb51050a5b2f6d3819
18,383
py
Python
hm_con.py
zjl123001/DD-TIG-constraint
480aa6395b8509cb5982e79d4026890d5678f3da
[ "MIT" ]
null
null
null
hm_con.py
zjl123001/DD-TIG-constraint
480aa6395b8509cb5982e79d4026890d5678f3da
[ "MIT" ]
null
null
null
hm_con.py
zjl123001/DD-TIG-constraint
480aa6395b8509cb5982e79d4026890d5678f3da
[ "MIT" ]
null
null
null
import collections import os from param import args import pandas import numpy as np from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F import time from torch.utils.data.dataloader import DataLoader from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_scor...
37.593047
172
0.55263
b034530a9dbd58262907042040ec8013e8538f85
2,980
py
Python
scripts/addons/animation_nodes/graphics/interpolation_preview.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/graphics/interpolation_preview.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/graphics/interpolation_preview.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import gpu import numpy from bgl import * from . rectangle import Rectangle from gpu_extras.batch import batch_for_shader shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR') class InterpolationPreview: def __init__(self, interpolation, position, width, resolution): self.interpolation = interpolation ...
33.863636
71
0.628188
0f27de74c0c4c9cdad79ce1c3e2c3fa4bda47a39
1,960
py
Python
cq/contrib/django/storages.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
4
2017-03-15T15:01:44.000Z
2021-02-05T03:08:41.000Z
cq/contrib/django/storages.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
14
2017-01-09T11:15:40.000Z
2021-03-25T21:58:14.000Z
cq/contrib/django/storages.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
1
2017-03-12T18:03:38.000Z
2017-03-12T18:03:38.000Z
from cq.contrib.django.models import Event as EventModel from cq.contrib.django.models import UniqueItem from cq.events import Event from cq.storages import Storage from django.db import IntegrityError class DjangoStorage(Storage): def append(self, event): obj = to_model(event) obj.save() ...
31.612903
98
0.675
d3f017763be774f0d3a8e6ee97cfd1aa768db03b
14,244
py
Python
tests/unit/modules/test_random_org.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
tests/unit/modules/test_random_org.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_random_org.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> ''' # Import Python Libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase # Import Salt Libs import salt.modules.random_or...
46.397394
88
0.459141
ec1aba25f782f8568b522a6bf602878b55c7aea6
878
py
Python
app/search.py
jimmybutton/microblog
be8bd4e80d4ea163544a3a2530e9a16b40e50eee
[ "MIT" ]
null
null
null
app/search.py
jimmybutton/microblog
be8bd4e80d4ea163544a3a2530e9a16b40e50eee
[ "MIT" ]
1
2021-06-02T00:41:27.000Z
2021-06-02T00:41:27.000Z
app/search.py
jimmybutton/microblog
be8bd4e80d4ea163544a3a2530e9a16b40e50eee
[ "MIT" ]
null
null
null
from flask import current_app def add_to_index(index, model): if not current_app.elasticsearch: return payload = {} for field in model.__searchable__: payload[field] = getattr(model, field) current_app.elasticsearch.index(index=index, id=model.id, body=payload) def remove_from_index(in...
35.12
75
0.649203
c495850422f5fbf44dd2802690927b501eabfe64
5,902
py
Python
tests/test_db.py
KyleKaniecki/django-environ
44ac6649ad6135ff4246371880298bf732cd1c52
[ "MIT" ]
2,518
2015-01-09T03:30:05.000Z
2022-03-30T12:52:05.000Z
tests/test_db.py
KyleKaniecki/django-environ
44ac6649ad6135ff4246371880298bf732cd1c52
[ "MIT" ]
334
2015-01-02T13:03:41.000Z
2022-03-16T09:13:40.000Z
tests/test_db.py
KyleKaniecki/django-environ
44ac6649ad6135ff4246371880298bf732cd1c52
[ "MIT" ]
327
2015-01-02T12:59:05.000Z
2022-03-31T15:39:27.000Z
# This file is part of the django-environ. # # Copyright (c) 2021, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. import wa...
29.51
75
0.587767
a6a8346b74fb97ae569ea0c3191cda43c4e94191
23,319
py
Python
gym_round_bot/envs/round_bot_window.py
robotsthatdream/gym-round_bot
fa5c672b068bb9a38348e3d0103a7ef5135b2aaa
[ "MIT" ]
2
2018-10-22T08:13:40.000Z
2018-10-22T10:24:49.000Z
gym_round_bot/envs/round_bot_window.py
Lcressot/gym-round_bot
fa5c672b068bb9a38348e3d0103a7ef5135b2aaa
[ "MIT" ]
null
null
null
gym_round_bot/envs/round_bot_window.py
Lcressot/gym-round_bot
fa5c672b068bb9a38348e3d0103a7ef5135b2aaa
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Cressot Loic ISIR - CNRS / Sorbonne Université 02/2018 code started from : https://github.com/fogleman/Minecraft """ import math import numpy as np from sys import platform import copy import scipy.misc from collections import deque from pyglet import image...
37.73301
155
0.5806
152d4c8cc27be7b58a5a53616b62540757b5c215
3,315
py
Python
src/dataset.py
meyson/bengaliai-cv19
9e528a51192dc86c212780663da1a70e41716179
[ "Unlicense" ]
null
null
null
src/dataset.py
meyson/bengaliai-cv19
9e528a51192dc86c212780663da1a70e41716179
[ "Unlicense" ]
null
null
null
src/dataset.py
meyson/bengaliai-cv19
9e528a51192dc86c212780663da1a70e41716179
[ "Unlicense" ]
null
null
null
import numpy as np import pandas as pd import torch from PIL import Image from torch.utils.data import Dataset from tqdm import tqdm import joblib def decode_png(image_fn): return Image.open(f'data/train_images_png/{image_fn}.png') def decode_pkl(image_fn): img_array = joblib.load(f'data/train_images_pkl/{i...
29.336283
120
0.592459
853f3bd79f183f07a9503ef7dc4e9dccf192bc82
1,559
py
Python
flask-restful/fullexample_quickstart.py
cams7/python-samples
518e4d0fe73534e52d19acf27c0c380aef9a485a
[ "Apache-2.0" ]
null
null
null
flask-restful/fullexample_quickstart.py
cams7/python-samples
518e4d0fe73534e52d19acf27c0c380aef9a485a
[ "Apache-2.0" ]
null
null
null
flask-restful/fullexample_quickstart.py
cams7/python-samples
518e4d0fe73534e52d19acf27c0c380aef9a485a
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_restful import reqparse, abort, Api, Resource app = Flask(__name__) api = Api(app) TODOS = { 'todo1': {'task': 'build an API'}, 'todo2': {'task': '?????'}, 'todo3': {'task': 'profit!'}, } def abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODO...
25.145161
68
0.604875
bdba8186b271586780331503d90da75eb4b01554
727
py
Python
setup.py
sander76/fab-dep
df0ee1c9fb7dab2af69f125a3764b9730b5b4866
[ "MIT" ]
null
null
null
setup.py
sander76/fab-dep
df0ee1c9fb7dab2af69f125a3764b9730b5b4866
[ "MIT" ]
2
2021-04-23T08:23:58.000Z
2021-04-23T08:31:43.000Z
setup.py
sander76/fab-dep
df0ee1c9fb7dab2af69f125a3764b9730b5b4866
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from fab_deploy import __version__ setup( name="fab-dep", version=__version__, packages=["fab_deploy"], install_requires=[ "asn1crypto==0.24.0", "certifi==2019.3.9", "cffi==1.12.3", "chardet==3.0.4", "click==7.0", ...
23.451613
67
0.528198
5f29a00934fd29d4b655f669af1f8dc826b30244
1,373
py
Python
FRAS/Train_Image.py
ciroiriarte/Face-Recognition-Attendance-System
b838bcdab25a0fca6bc64599418b5c63f194331e
[ "MIT" ]
1
2022-03-03T16:19:25.000Z
2022-03-03T16:19:25.000Z
FRAS/Train_Image.py
ciroiriarte/Face-Recognition-Attendance-System
b838bcdab25a0fca6bc64599418b5c63f194331e
[ "MIT" ]
3
2021-06-08T20:49:52.000Z
2022-01-13T02:06:09.000Z
FRAS/Train_Image.py
ciroiriarte/Face-Recognition-Attendance-System
b838bcdab25a0fca6bc64599418b5c63f194331e
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np from PIL import Image # -------------- image labesl ------------------------ def getImagesAndLabels(path): # get the path of all the files in the folder imagePaths = [os.path.join(path, f) for f in os.listdir(path)] # print(imagePaths) # create empth face lis...
32.690476
80
0.648216
d1ad59c33cfe80d7822502361341edd3909ddadf
314
py
Python
sheldon_servos/setup.py
shinselrobots/sheldon
911148cd82d28e37aebc5e083fbf830d1c9768ab
[ "Apache-2.0" ]
1
2021-01-02T18:17:52.000Z
2021-01-02T18:17:52.000Z
sheldon_servos/setup.py
shinselrobots/sheldon
911148cd82d28e37aebc5e083fbf830d1c9768ab
[ "Apache-2.0" ]
null
null
null
sheldon_servos/setup.py
shinselrobots/sheldon
911148cd82d28e37aebc5e083fbf830d1c9768ab
[ "Apache-2.0" ]
4
2017-09-16T03:56:01.000Z
2018-09-19T02:15:57.000Z
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['sheldon_servos'], package_dir={'': 'src'}, ) setup(**setup_args)
24.153846
61
0.764331
7d0c9cbe0066a3737d583a0582c578679309b9b7
6,729
py
Python
test/unit/object/test_item.py
GabeLambda/box-python-sdk
6597e930929f3ee49d4930a53304277167c0a4db
[ "Apache-2.0" ]
null
null
null
test/unit/object/test_item.py
GabeLambda/box-python-sdk
6597e930929f3ee49d4930a53304277167c0a4db
[ "Apache-2.0" ]
null
null
null
test/unit/object/test_item.py
GabeLambda/box-python-sdk
6597e930929f3ee49d4930a53304277167c0a4db
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import json import pytest @pytest.fixture(params=('file', 'folder')) def test_item_and_response(test_file, test_folder, mock_file_response, mock_folder_response, request): if request.param == 'file': return test_file, mock_file_response elif req...
46.406897
142
0.759994
d7fd8412cd4de1a32e0ca201d167f163974ce204
188
py
Python
courses/tests.py
lumeijin/FITA
84b34f58bc1d3351c2caa3f02619fa09212f14a0
[ "Apache-2.0" ]
null
null
null
courses/tests.py
lumeijin/FITA
84b34f58bc1d3351c2caa3f02619fa09212f14a0
[ "Apache-2.0" ]
null
null
null
courses/tests.py
lumeijin/FITA
84b34f58bc1d3351c2caa3f02619fa09212f14a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2018/6/29 23:36 # @Author : TrumanGu # @Email : 1227085585@qq.com # @Software: PyCharm from django.test import TestCase # Create your tests here.
18.8
32
0.643617
ce4a975a19de4aecc4c929750ff002d509a8601e
4,904
py
Python
dglt/train/metrics.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
3
2022-02-06T09:13:51.000Z
2022-02-19T15:03:35.000Z
dglt/train/metrics.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
1
2022-02-14T23:16:27.000Z
2022-02-14T23:16:27.000Z
dglt/train/metrics.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
null
null
null
import math from typing import List, Callable, Union from sklearn.metrics import accuracy_score, mean_squared_error, roc_auc_score, mean_absolute_error, r2_score, \ precision_recall_curve, auc, recall_score, confusion_matrix def accuracy(targets: List[int], preds: List[float], threshold: float = 0.5) -> float: ...
36.058824
134
0.696574
3b34fc0134fb1d55260022e9d2b0abb99f4c170b
3,968
py
Python
progressbar.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
2
2015-06-01T18:33:38.000Z
2018-11-21T19:40:37.000Z
progressbar.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
102
2015-01-20T17:26:52.000Z
2017-12-28T17:32:51.000Z
progressbar.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
3
2020-03-02T06:54:18.000Z
2021-01-07T16:36:35.000Z
################################################################################ # Example usage: # $ python # >>> import Progress # >>> total = 100 # >>> message = 'Doing this task ' # >>> with Progress.Bar(total, message) as bar: # ... for n in range(total): # ... time.sleep(0.1) # ... bar.update(...
31.492063
80
0.486391
3381d7376fffcce32bebbbea349462ef66995641
11,538
py
Python
deepfrier/Predictor.py
flatironinstitute/DeepFRI
4ec8da52217c7dbb891f00f13febde405081dca8
[ "BSD-3-Clause" ]
103
2020-04-25T06:46:03.000Z
2022-03-20T14:00:22.000Z
deepfrier/Predictor.py
flatironinstitute/DeepFRI
4ec8da52217c7dbb891f00f13febde405081dca8
[ "BSD-3-Clause" ]
15
2020-05-13T22:50:37.000Z
2022-03-21T20:51:19.000Z
deepfrier/Predictor.py
flatironinstitute/DeepFRI
4ec8da52217c7dbb891f00f13febde405081dca8
[ "BSD-3-Clause" ]
28
2020-04-25T06:46:05.000Z
2022-01-23T08:03:47.000Z
import os import csv import glob import json import gzip import secrets import numpy as np import tensorflow as tf from .utils import load_catalogue, load_FASTA, load_predicted_PDB, seq2onehot from .layers import MultiGraphConv, GraphConv, FuncPredictor, SumPooling class GradCAM(object): """ GradCAM for pro...
46.524194
152
0.569943
db88d0e7f9e810e7498a6c5efa716de400203014
10,042
py
Python
tests/test_deep_link.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
62
2019-08-13T11:24:36.000Z
2022-03-11T16:24:55.000Z
tests/test_deep_link.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
58
2019-08-13T13:27:27.000Z
2022-03-28T11:00:56.000Z
tests/test_deep_link.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
35
2019-10-11T18:26:02.000Z
2022-03-29T08:33:00.000Z
from pylti1p3.deep_link_resource import DeepLinkResource from .base import TestLinkBase from .django_mixin import DjangoMixin from .flask_mixin import FlaskMixin class DeepLinkBase(TestLinkBase): # pylint: disable=abstract-method iss = 'http://imsglobal.org' jwt_canvas_keys = { "keys": [ ...
51.497436
113
0.645091
fcd0fcaf979dd7108cc4ae77823798afb1e5a49f
38,286
py
Python
test/test_aa.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
test/test_aa.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
test/test_aa.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
import six from unittest import TestCase from itertools import product from dark.aa import ( PROPERTIES, ALL_PROPERTIES, PROPERTY_NAMES, ACIDIC, ALIPHATIC, AROMATIC, BASIC_POSITIVE, HYDROPHILIC, HYDROPHOBIC, HYDROXYLIC, NEGATIVE, NONE, POLAR, SMALL, SULPHUR, TINY, NAMES, NAMES_TO_ABBREV1, ABBREV3, ABBR...
32.473282
79
0.495873
594de0d2d1d616ae4f6469056808f6959c1db9d5
1,568
py
Python
rookie/rookie/urls.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
1
2021-07-02T09:05:51.000Z
2021-07-02T09:05:51.000Z
rookie/rookie/urls.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
rookie/rookie/urls.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
"""rookie URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
34.844444
86
0.702168
49fdf3fc089f01676a89acd3479502d1ce3f4a09
34,918
py
Python
SVM_22_output.py
william-letton/ASSIST
b1b998de257a38f02206bccc8a1465bbd908b4f3
[ "Unlicense" ]
null
null
null
SVM_22_output.py
william-letton/ASSIST
b1b998de257a38f02206bccc8a1465bbd908b4f3
[ "Unlicense" ]
null
null
null
SVM_22_output.py
william-letton/ASSIST
b1b998de257a38f02206bccc8a1465bbd908b4f3
[ "Unlicense" ]
null
null
null
##Program requires installatioon of SciKit from https://scikit-learn.org/stable/install.html ##Program demo can be found at https://www.datacamp.com/community/tutorials/svm-classification-scikit-learn-python ##Input the starting parameters for running the classifier. ##Define the number of classifiers to be traine...
42.949569
140
0.67206
f8775734d5c86a4daab64444a84f15e9ee198fc6
5,012
py
Python
python_modules/dagster/dagster/core/definitions/job.py
RBrossard/dagster
254d4274f592621b83947446789de2651bbc9fea
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/job.py
RBrossard/dagster
254d4274f592621b83947446789de2651bbc9fea
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/job.py
RBrossard/dagster
254d4274f592621b83947446789de2651bbc9fea
[ "Apache-2.0" ]
null
null
null
import warnings from typing import TYPE_CHECKING, AbstractSet, Any, Dict, List, Optional from dagster import check from dagster.core.definitions.policy import RetryPolicy from .graph import GraphDefinition from .hook import HookDefinition from .mode import ModeDefinition from .pipeline import PipelineDefinition from ...
36.318841
97
0.674581
814cc24957d0a43dc96a0e0dd3e7faa39053d822
11,427
py
Python
cool/views/view.py
007gzs/django-cool
3b4ed1a8ca020e6f798ca47e20169e5a854b4f24
[ "BSD-3-Clause" ]
11
2020-05-19T09:52:35.000Z
2022-02-25T10:39:56.000Z
cool/views/view.py
007gzs/django-cool
3b4ed1a8ca020e6f798ca47e20169e5a854b4f24
[ "BSD-3-Clause" ]
null
null
null
cool/views/view.py
007gzs/django-cool
3b4ed1a8ca020e6f798ca47e20169e5a854b4f24
[ "BSD-3-Clause" ]
1
2020-12-24T08:14:58.000Z
2020-12-24T08:14:58.000Z
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import json import logging import time from collections import OrderedDict from django.conf import settings from django.core.exceptions import ValidationError as CoreValidationError from django.db.models import Model, QuerySet from django.form...
34.522659
119
0.633412
a3942f4d079fc4c8c26cc5aed944ba98b46a4dac
493
py
Python
main.py
Bikram-ghuku/traffic-symbol-recognition
0eec3f39740ae3104979986c74a246f19d3d5b2d
[ "MIT" ]
1
2022-03-14T12:58:19.000Z
2022-03-14T12:58:19.000Z
main.py
Bikram-ghuku/traffic-symbol-recognition
0eec3f39740ae3104979986c74a246f19d3d5b2d
[ "MIT" ]
null
null
null
main.py
Bikram-ghuku/traffic-symbol-recognition
0eec3f39740ae3104979986c74a246f19d3d5b2d
[ "MIT" ]
null
null
null
from PIL import Image from detect import get_data import cv2 import os import time video = cv2.VideoCapture(0) try: os.mkdir('./cur-img') print("Made cur image folder") except FileExistsError: print("Folder already exists, skipped") while True: ret, frame = video.read() frame = cv2.resize(frame, (3...
23.47619
45
0.667343
6e8812dd04aa375493a47d96d0cb6972cfe3ec26
190
py
Python
division_into_terms_3.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
division_into_terms_3.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
division_into_terms_3.py
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
n = int(input()) def div_slug(n, low = 1, res = []): if n < 0: return elif n == 0: print(*res) return for i in range(low, n + 1): div_slug(n - i, i, res + [i]) div_slug(n)
10.555556
35
0.515789
dce4b05cc7e6624fbd446bc5e50f8502e679f3d1
613
py
Python
octicons16px/book.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
1
2021-01-28T06:47:39.000Z
2021-01-28T06:47:39.000Z
octicons16px/book.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
octicons16px/book.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
OCTICON_BOOK = """ <svg class="octicon octicon-book" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M0 1.75A.75.75 0 01.75 1h4.253c1.227 0 2.317.59 3 1.501A3.744 3.744 0 0111.006 1h4.245a.75.75 0 01.75.75v10.5a.75.75 0 01-.75.75h-4.507a2.25 2.25 0 00-1.591.65...
122.6
588
0.67863
ad24e3ab47cd0ca9620066a44feaeea72697d348
151
py
Python
apps/admin/models.py
haisome/django-Julyblog
272b0f240cb9695c742ae85a538a7e3e952474e4
[ "MIT" ]
1
2018-09-26T18:14:47.000Z
2018-09-26T18:14:47.000Z
apps/admin/models.py
haisome/django-Julyblog
272b0f240cb9695c742ae85a538a7e3e952474e4
[ "MIT" ]
null
null
null
apps/admin/models.py
haisome/django-Julyblog
272b0f240cb9695c742ae85a538a7e3e952474e4
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Images(models.Model): image = models.ImageField(upload_to='%Y/%m', max_length=100)
21.571429
64
0.735099
1d4434dfc39b54b2a93bf77f0e0072adb9ade57b
10,576
py
Python
pypacker/ppcap.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
null
null
null
pypacker/ppcap.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
null
null
null
pypacker/ppcap.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
null
null
null
""" Packet read and write routines for pcap format. See http://wiki.wireshark.org/Development/LibpcapFileFormat """ import sys import logging import struct from pypacker import pypacker # avoid unneeded references for performance reasons unpack = struct.unpack logger = logging.getLogger("pypacker") # File magic num...
26.243176
91
0.695064
77adbe3dd2c385cd5aa00bb70f69d9931f87e347
4,589
py
Python
pybamm/solvers/scikits_dae_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/scikits_dae_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/scikits_dae_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
# # Solver class using Scipy's adaptive time stepper # import casadi import pybamm import numpy as np import importlib import scipy.sparse as sparse scikits_odes_spec = importlib.util.find_spec("scikits") if scikits_odes_spec is not None: scikits_odes_spec = importlib.util.find_spec("scikits.odes") if scikits...
32.546099
79
0.58248
010bfc5798ad7cedd197f11348c91f726d4965e1
202
py
Python
src/tensordataclasses/__init__.py
leaprovenzano/tensordataclasses
a70637dfd30614d1b20e48817f1087f46d2a877f
[ "MIT" ]
null
null
null
src/tensordataclasses/__init__.py
leaprovenzano/tensordataclasses
a70637dfd30614d1b20e48817f1087f46d2a877f
[ "MIT" ]
null
null
null
src/tensordataclasses/__init__.py
leaprovenzano/tensordataclasses
a70637dfd30614d1b20e48817f1087f46d2a877f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for tensordataclasses.""" __author__ = """Lea Provenzano""" __email__ = 'leaprovenzano@gmail.com' __version__ = '0.0.0' from .base import tensordataclass
20.2
46
0.69802
2c7ad5fd8d52d85027433c34462f6174373c9090
477
py
Python
localiser-ui/database/migrations/0007_localisedkey_contains_html.py
skydemarcoa/localiser
fe1780b60aa6c8691b933a4dde2e66dee9475233
[ "Unlicense" ]
9
2019-06-17T03:59:28.000Z
2022-01-18T02:45:56.000Z
localiser-ui/database/migrations/0007_localisedkey_contains_html.py
skydemarcoa/localiser
fe1780b60aa6c8691b933a4dde2e66dee9475233
[ "Unlicense" ]
69
2019-06-15T17:33:20.000Z
2022-03-28T04:12:27.000Z
localiser-ui/database/migrations/0007_localisedkey_contains_html.py
skydemarcoa/localiser
fe1780b60aa6c8691b933a4dde2e66dee9475233
[ "Unlicense" ]
3
2020-10-12T14:30:42.000Z
2020-10-15T09:40:39.000Z
# Generated by Django 2.2.2 on 2019-08-28 06:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('database', '0006_auto_20190629_0916'), ] operations = [ migrations.AddField( model_name='localisedkey', name='contai...
25.105263
129
0.645702
58da99f3e5fd258818dcbf20125cbca293300222
5,856
py
Python
samplers.py
Guneet-Dhillon/uniform-episodic-sampling
2256ab03b94a14e52ca252393e80292c00ed3988
[ "Apache-2.0" ]
3
2021-09-10T21:25:48.000Z
2021-12-20T09:46:42.000Z
samplers.py
Guneet-Dhillon/uniform-episodic-sampling
2256ab03b94a14e52ca252393e80292c00ed3988
[ "Apache-2.0" ]
null
null
null
samplers.py
Guneet-Dhillon/uniform-episodic-sampling
2256ab03b94a14e52ca252393e80292c00ed3988
[ "Apache-2.0" ]
2
2021-10-30T04:54:10.000Z
2021-12-12T13:21:55.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
25.025641
79
0.634051
e9556f86bb54254d0a4759c87cfc235e88cacd22
464
py
Python
data/scripts/templates/object/mobile/shared_dressed_fed_dub_supporter_human_male_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_fed_dub_supporter_human_male_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_fed_dub_supporter_human_male_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_fed_dub_supporter_human_male_01.iff" result.attribute_...
27.294118
85
0.741379
f4a189bb3a45a238af6bdf750a90f65ca33fe98b
4,329
py
Python
cytopy/tests/conftest.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
41
2020-04-08T11:01:28.000Z
2022-03-11T17:17:18.000Z
cytopy/tests/conftest.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
27
2020-04-07T14:59:24.000Z
2022-03-01T20:43:34.000Z
cytopy/tests/conftest.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
8
2020-04-28T15:16:24.000Z
2022-03-02T19:02:14.000Z
from cytopy.tests import assets from ..data.population import Population from ..data.project import Project from ..data.experiment import FileGroup from mongoengine.connection import connect, disconnect import pandas as pd import numpy as np import pytest import shutil import sys import os @pytest.fixture(scope='sess...
32.795455
101
0.584893
f0d7d03464ffdc54f1ea986d156093683649592a
15,814
py
Python
MISSIONS/sr_tasks/multiagent/environment_hi3d.py
binary-husky/hmp2g
1a4f4093cd296f07348f4db4c7503aca6e1fb05c
[ "MIT" ]
2
2022-02-25T12:04:55.000Z
2022-03-15T02:37:59.000Z
MISSIONS/sr_tasks/multiagent/environment_hi3d.py
binary-husky/hmp2g
1a4f4093cd296f07348f4db4c7503aca6e1fb05c
[ "MIT" ]
null
null
null
MISSIONS/sr_tasks/multiagent/environment_hi3d.py
binary-husky/hmp2g
1a4f4093cd296f07348f4db4c7503aca6e1fb05c
[ "MIT" ]
null
null
null
import gym from gym import spaces from gym.envs.registration import EnvSpec import numpy as np from multiagent.multi_discrete import MultiDiscrete from .scenarios.hunter_invader3d import ScenarioConfig def normalize(mat): return mat / (np.linalg.norm(mat, axis=-1)+1e-10) # environment for all agents in the multi...
39.046914
124
0.565701
e4e35904f53911d4bfe4a9b38fb16304703d35ce
1,135
py
Python
src/Python/101-200/130.SurroundedRegions.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
2
2018-05-03T07:50:03.000Z
2018-06-17T04:32:13.000Z
src/Python/101-200/130.SurroundedRegions.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
null
null
null
src/Python/101-200/130.SurroundedRegions.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
3
2018-11-09T14:18:11.000Z
2021-11-17T15:23:52.000Z
class Solution: def solve(self, board): """ Do not return anything, modify board in-place instead. """ if not board: return row = len(board) col = len(board[0]) if row < 3 or col < 3: return def dfs(i, j): if i < ...
26.395349
76
0.346256
b2de52948ef7b4b76e6fc5a7b269ca3f41203d8b
15,263
py
Python
lib/streamlit/elements/slider.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/slider.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/slider.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
from datetime import date, time, datetime, timedelta, timezone from streamlit.proto.Slider_pb2 import Slider as SliderProto from streamlit.errors import StreamlitAPIException from streamlit.js_number import JSNumber from streamlit.js_number import JSNumberBoundsException from .utils import _get_widget_ui_value class...
40.593085
94
0.572234
a3d4cf992076f7b3e7a153b94705c4a991fddcc1
6,990
py
Python
moto/kinesis/responses.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/kinesis/responses.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/kinesis/responses.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
import json from moto.core.responses import BaseResponse from .models import kinesis_backends class KinesisResponse(BaseResponse): @property def parameters(self): return json.loads(self.body) @property def kinesis_backend(self): return kinesis_backends[self.region] def create_st...
36.789474
87
0.661803
6b69c1b83746526379838a60d4f8f94ae7b32bb1
14,906
py
Python
models/planeTR_HRNet.py
SarahwXU/PlaneTR3D
09b6df2e339bbadeb254af5c893174df0896353b
[ "Apache-2.0" ]
1
2021-10-05T10:47:16.000Z
2021-10-05T10:47:16.000Z
models/planeTR_HRNet.py
cherubicXN/PlaneTR3D
09b6df2e339bbadeb254af5c893174df0896353b
[ "Apache-2.0" ]
null
null
null
models/planeTR_HRNet.py
cherubicXN/PlaneTR3D
09b6df2e339bbadeb254af5c893174df0896353b
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import logging import os from models.position_encoding import build_position_encoding from models.transformer import build_transformer from models.HRNet import build_hrnet logger = logging.getLogger(__name__) use_biase = False use_align_corners = Fals...
41.636872
144
0.602912
1e0ae0a220273184e2ac187c2eae6c8c6b0dff52
4,028
py
Python
nova/virt/images.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
1
2015-07-15T08:51:16.000Z
2015-07-15T08:51:16.000Z
nova/virt/images.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/virt/images.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
2
2019-06-12T00:52:15.000Z
2020-07-24T10:35:29.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
33.016393
78
0.613952
7f158f7dd28b5b37481a84cee8859794d5d1b6a1
371
py
Python
COMTRIS/modules/bs4_crawler/db_init.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
null
null
null
COMTRIS/modules/bs4_crawler/db_init.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
null
null
null
COMTRIS/modules/bs4_crawler/db_init.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
5
2021-01-17T14:28:31.000Z
2021-01-24T09:05:18.000Z
import os from pymongo import * def db_init(): myclient = MongoClient(os.environ["COMTRIS_MONGODB_URI"]) db = myclient['COMTRIS'] col = db["master_config"] cnt_check = col.find_one({'key': 'quote_cnt'}) if not cnt_check: col.insert_one({'key':'quote_cnt', 'value': 0}) print("bs4 init ...
24.733333
61
0.644205
ef012756fe923278717de4c50daac857d3ac63f9
2,879
py
Python
tests/runner.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
null
null
null
tests/runner.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
null
null
null
tests/runner.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
36.443038
88
0.678013
45243274f00c9c5175a167a6e36ccc47880bda82
935
py
Python
Intermediate/025/exercise_1/main.py
AguilaDFG/Python
23b7e69964e4214d9da1a9e5e09b1f48ed8c62f8
[ "MIT" ]
null
null
null
Intermediate/025/exercise_1/main.py
AguilaDFG/Python
23b7e69964e4214d9da1a9e5e09b1f48ed8c62f8
[ "MIT" ]
null
null
null
Intermediate/025/exercise_1/main.py
AguilaDFG/Python
23b7e69964e4214d9da1a9e5e09b1f48ed8c62f8
[ "MIT" ]
null
null
null
#with open("weather_data.csv") as data: # weather_data = data.readlines() # print(weather_data) #import csv #with open("weather_data.csv") as data: # weather_data = csv.reader(data) # temperatures = [] # for row in weather_data: # if row != "temp": # temperatures.append(int(row[1])) # ...
27.5
66
0.706952
6d6b7de1618e4353fd79d5358683726518e0567a
4,607
py
Python
FreCog_Face_Detector_App/app.py
LasalJayawardena/Streamlit-Apps
c978af5bf14af92d9d7e2464331fa7b9c2643bc2
[ "MIT" ]
null
null
null
FreCog_Face_Detector_App/app.py
LasalJayawardena/Streamlit-Apps
c978af5bf14af92d9d7e2464331fa7b9c2643bc2
[ "MIT" ]
null
null
null
FreCog_Face_Detector_App/app.py
LasalJayawardena/Streamlit-Apps
c978af5bf14af92d9d7e2464331fa7b9c2643bc2
[ "MIT" ]
1
2021-09-06T20:57:59.000Z
2021-09-06T20:57:59.000Z
# Import Libraries import streamlit as st import cv2 from PIL import Image,ImageEnhance import numpy as np import os @st.cache def load_image(img): im = Image.open(img) return im face_cascade = cv2.CascadeClassifier('frecog/haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('frecog/haarcas...
28.614907
111
0.702843
76df5513308cc804a4475e20f3ce368e8654ac34
24,467
py
Python
gslib/tests/util.py
matarrese/gsutil
b0972781e3e531dd2c740540861efdf854f1046d
[ "Apache-2.0" ]
null
null
null
gslib/tests/util.py
matarrese/gsutil
b0972781e3e531dd2c740540861efdf854f1046d
[ "Apache-2.0" ]
null
null
null
gslib/tests/util.py
matarrese/gsutil
b0972781e3e531dd2c740540861efdf854f1046d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. 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 require...
32.797587
84
0.720113
dbfe9989e62137b3d641416cdcb1069e46a8221a
3,679
py
Python
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
4
2020-09-20T19:37:26.000Z
2021-12-12T08:03:17.000Z
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
28
2020-11-13T18:50:46.000Z
2022-03-02T14:53:59.000Z
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
2
2021-03-23T11:32:43.000Z
2021-03-24T03:50:37.000Z
# Generated by Django 3.0.5 on 2020-04-27 08:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import summarize.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USE...
43.282353
165
0.583854
2b691a6d70224ded801a9a4942ec3e94c9daca7b
19,487
py
Python
final/card/untitled.py
JosuX/Albie
417bb0065139e118bfacd45c58ac0272ee37ea90
[ "MIT" ]
null
null
null
final/card/untitled.py
JosuX/Albie
417bb0065139e118bfacd45c58ac0272ee37ea90
[ "MIT" ]
null
null
null
final/card/untitled.py
JosuX/Albie
417bb0065139e118bfacd45c58ac0272ee37ea90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtG...
53.389041
177
0.713399