hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5ea007a2b53efa3763616ae1425044471321276f
983
py
Python
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
2
2018-05-14T02:16:36.000Z
2019-07-15T03:16:02.000Z
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
1
2018-04-08T09:32:53.000Z
2018-04-10T08:14:31.000Z
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
2
2017-11-27T05:34:34.000Z
2018-09-25T05:06:53.000Z
#!/usr/bin/env python # coding=utf-8 from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.exceptions import ServerException from aliyunsdkcore.client import AcsClient # from aliyunsdkcr.request.v20160607 import GetImageLayerRequest from aliyunsdkcr.request.v20160607 import...
35.107143
84
0.811801
0
0
0
0
0
0
0
0
518
0.476541
5ea16b9669c920b19a570aba76fefeba84415d6c
1,564
py
Python
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
1
2018-11-09T19:50:13.000Z
2018-11-09T19:50:13.000Z
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
null
null
null
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2015 Jason Mar # # 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 writi...
36.372093
116
0.704604
0
0
0
0
0
0
0
0
1,269
0.811381
5ea1798f91ee38f995fef76c2802897a9c6e8ae0
2,212
py
Python
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
29
2015-02-16T08:22:14.000Z
2022-02-01T09:33:35.000Z
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
null
null
null
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
8
2016-02-09T16:21:55.000Z
2020-11-18T09:08:32.000Z
import math import json import os import optparse def H(data): entropy = 0 for x in range(256): p_x = float(data.count(chr(x)))/len(data) if p_x > 0: entropy += - p_x*math.log(p_x, 2) return entropy def bytes_from_file(filename, chunksize...
27.308642
92
0.417722
0
0
286
0.129295
0
0
0
0
65
0.029385
5ea31af3452ac5977baccd33685b8b5716d9de5e
11,654
py
Python
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
null
null
null
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
10
2021-05-05T14:51:04.000Z
2022-03-03T19:42:37.000Z
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
null
null
null
import time from abc import ABC, abstractmethod import pytest from unittest.mock import Mock from nextline.registry import PdbCIRegistry from nextline.utils import Registry from nextline.state import ( Initialized, Running, Exited, Finished, Closed, StateObsoleteError, StateMethodError ) ...
27.813842
101
0.659259
8,409
0.721555
1,936
0.166123
8,618
0.739489
7,723
0.662691
1,005
0.086236
5ea45dff1c1b5a7b9a7139fec69340289fa5afd9
89
py
Python
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
n_sum = 0 for n in range(1000): n_sum += n if not n % 3 or not n % 5 else 0 print(n_sum)
22.25
65
0.629213
0
0
0
0
0
0
0
0
0
0
5ea4ab72c6095ad5621af4df3773f6f0b18d8cda
783
py
Python
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
1
2022-02-14T08:03:32.000Z
2022-02-14T08:03:32.000Z
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
null
null
null
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode: l_a = self.findLength(headA) l_b = self.findLength(headB) while ...
27
80
0.494253
648
0.827586
0
0
0
0
0
0
129
0.164751
5ea50b0a6baa34ab53b43f4b399dabbba9754ddb
12,968
py
Python
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
import os from os import path import socket # Import socket module import asyncio import sys """ Notes ============== socket.gethostname() gets the current machines hostname, for example "DESKTOP-1337PBJ" string.encode('UTF-8') encodes the given string into a 'bytes' liter...
33.859008
140
0.589297
0
0
0
0
0
0
0
0
4,023
0.310225
5ea5b896308612a702c41a31972ca1127a9b11ad
923
py
Python
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from swagger_client.api.administration_api import AdministrationApi from swagger_client.api.authentication_api import AuthenticationApi from swagger_client.api.configuration_api import ConfigurationApi from swagger_client.api.data_so...
46.15
83
0.889491
0
0
0
0
0
0
0
0
44
0.047671
5ea974a5486e0838fd0233122ecdd398fad7f25f
928
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
# Generated by Django 1.11.28 on 2020-02-19 16:50 import collections import jsonfield.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('site_configuration', '0003_auto_20200217_1058'), ] operations = [ migrations.AddField( mo...
33.142857
209
0.661638
796
0.857759
0
0
0
0
0
0
249
0.268319
5eaa3697b5bd970332387efa36b0b10e0887039a
2,767
py
Python
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
null
null
null
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
1
2017-08-23T17:10:19.000Z
2017-08-23T21:57:17.000Z
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
3
2020-02-05T13:26:31.000Z
2021-07-24T15:02:02.000Z
""" Python class to represent a layer within an ingest """ class Layer(object): """Construct layer to ingest""" def __init__(self, id, output_uri, sources, cell_size, crs="epsg:3857", pyramid=True, native=False, cell_type="uint16raw", histogram_buckets=512, tile_size=256, re...
42.569231
104
0.597398
2,705
0.977593
0
0
0
0
0
0
1,334
0.482111
5eaa41b5ba5c1b8a725e3ec84cce0eac16b60635
7,603
py
Python
diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
zhj-buffer/ROS2-driver-for-Realsense
936cf27be4e7dc3d699ff99499e72ea8638cc622
[ "Apache-2.0" ]
2
2021-07-14T12:33:55.000Z
2021-11-21T07:14:13.000Z
melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redist...
38.790816
93
0.639484
2,266
0.29804
0
0
0
0
0
0
2,600
0.34197
5eaa5b05829f7dff5f8b3654295d561566cbd3dd
861
py
Python
Jaccorot/0014/0014.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
Jaccorot/0014/0014.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
Jaccorot/0014/0014.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
#!/usr/bin/python # coding=utf-8 """ 第 0014 题: 纯文本文件 student.txt为学生信息, 里面的内容(包括花括号)如下所示, 请将上述内容写到 student.xls 文件中,如下图所示: """ import os import json import xlwt def read_txt(path): with open(path, 'r') as f: text = f.read().decode('utf-8') text_json = json.loads(text) return text_json def sav...
20.023256
84
0.610918
0
0
0
0
0
0
0
0
271
0.28377
5eaa87d463aba065e90433c5bc1e27fa235627ad
1,135
py
Python
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
1
2018-08-25T13:35:02.000Z
2018-08-25T13:35:02.000Z
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
null
null
null
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
null
null
null
import argparse as ap parser = ap.ArgumentParser(description='delete the blank line and keep sequence length less than 50') parser.add_argument('--input1', type=str) parser.add_argument('--input2', type=str) #parser.add_argument('--output', type=str, default=str + ".less50") parser.add_argument('--encoding',...
35.46875
108
0.663436
0
0
0
0
0
0
0
0
226
0.199119
5eac70af14d5975d4ffe25c63c27d1c08dbcf096
8,247
py
Python
test/utils/gtclang-tester/gtclang_tester/utility.py
mroethlin/gtclang
248b3637e3a438adc3bed3a684cee94798afff0b
[ "MIT" ]
6
2017-10-10T18:56:54.000Z
2020-05-28T15:29:19.000Z
test/utils/gtclang-tester/gtclang_tester/utility.py
twicki/gtclang
e87a7aa8612aad0df8c24117b9bbff6f8153a7fd
[ "MIT" ]
125
2017-10-18T14:33:57.000Z
2019-10-18T10:45:17.000Z
test/utils/gtclang-tester/gtclang_tester/utility.py
twicki/gtclang
e87a7aa8612aad0df8c24117b9bbff6f8153a7fd
[ "MIT" ]
9
2017-09-20T12:57:49.000Z
2019-08-26T09:32:20.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## _ _ ## | | | | ## __ _| |_ ___| | __ _ _ __ __ _ ## ...
33.388664
100
0.532921
348
0.042197
0
0
0
0
0
0
3,217
0.390081
5eacd7132e9640d00adac17dd7d9eef7046e867a
4,248
py
Python
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-15 15:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='InputType', fields=[ ...
48.272727
127
0.57839
4,122
0.970339
0
0
0
0
0
0
628
0.147834
5ead1fa1ac98ccb096f19b374bfc58038b3838ec
20,969
py
Python
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
"""show_PPP.py IOSXE parsers for the following show commands: * 'show ppp statistics' """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Optional # import parser utils from genie.libs.parser.utils.common import Common class ShowPppSt...
38.264599
84
0.409414
20,658
0.985169
0
0
0
0
0
0
8,215
0.391769
5ead8537ec1d2acc961e3c05d30fb2a7ac76c394
479
py
Python
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
7
2020-05-08T16:54:37.000Z
2022-03-20T08:47:02.000Z
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
5
2020-02-05T15:50:42.000Z
2021-05-23T20:23:18.000Z
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
1
2021-07-02T12:23:52.000Z
2021-07-02T12:23:52.000Z
# -*- coding: utf-8 -*- import warnings import pytest from skimage.data import retina from skimage.color import rgb2gray from skimage.transform import rescale from skimage.filters import sato @pytest.fixture(scope='session') def retina_speed_image(): with warnings.catch_warnings(): warnings.simplefilter...
25.210526
71
0.732777
0
0
0
0
282
0.588727
0
0
40
0.083507
5eae6de4f3755423f0ab73b4087cbfc0386ab861
1,046
py
Python
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import scipy.special import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec plt.style.use(['../optdynim.mplstyle']) import palettable import sys sys.path.append('../lib') import optdynlib import plotting import misc df = misc.loadnpz('data/data.npz') df['tauc']...
27.526316
117
0.673996
0
0
0
0
0
0
0
0
213
0.203633
5eaf2f860b2a78625d7dbcd11d01486b20f6661e
1,864
py
Python
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import login from django.contrib.auth.models import User from django.shortcuts import render, redirect from django.urls import reverse from django.views import View from application.forms import RegistrationForm from application.views import get_navbar, Page ...
42.363636
105
0.612124
1,541
0.826717
0
0
0
0
0
0
272
0.145923
5eb21f50c3a708d9eb64cb1111bacf94011dc947
554
py
Python
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
150
2018-02-25T23:38:05.000Z
2022-03-11T11:56:20.000Z
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
104
2018-02-23T22:16:24.000Z
2022-03-23T13:22:26.000Z
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
45
2018-03-15T20:13:28.000Z
2022-02-15T09:12:44.000Z
import unittest from meshcat.servers.zmqserver import start_zmq_server_as_subprocess class TestStartZmqServer(unittest.TestCase): """ Test the StartZmqServerAsSubprocess method. """ def test_default_args(self): proc, zmq_url, web_url = start_zmq_server_as_subprocess() self.assertIn("1...
30.777778
101
0.720217
466
0.841155
0
0
0
0
0
0
102
0.184116
5eb5b78acddacd990b0f73d93c0c7e56b2e47350
2,558
py
Python
cirq-core/cirq/interop/quirk/cells/all_cells.py
Saibaba-Alapati/Cirq
782efcd04c3bbf73a0d630306a3d1cfd9966521d
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-core/cirq/interop/quirk/cells/all_cells.py
resduo/Cirq
680f897345eb1c71c9242515edda8f04b8594319
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-core/cirq/interop/quirk/cells/all_cells.py
resduo/Cirq
680f897345eb1c71c9242515edda8f04b8594319
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2019 The Cirq Developers # # 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 ...
52.204082
99
0.839328
0
0
777
0.303753
0
0
0
0
639
0.249805
5eb5b8ff8b16c931358c38d5d6013b24e219911a
985
py
Python
falmer/featured/mutations.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
2
2017-04-27T19:35:59.000Z
2017-06-13T16:19:33.000Z
falmer/featured/mutations.py
sussexstudent/falmer
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
975
2017-04-13T11:31:07.000Z
2022-02-10T07:46:18.000Z
falmer/featured/mutations.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
3
2018-05-09T06:42:25.000Z
2020-12-10T18:29:30.000Z
import graphene from . import types from . import models from graphene.types.generic import GenericScalar class SlateInput(graphene.InputObjectType): data = GenericScalar(required=True) class UpdateSlate(graphene.Mutation): class Arguments: slate_id = graphene.Int(required=True) data = Slate...
25.921053
67
0.651777
870
0.883249
0
0
0
0
0
0
35
0.035533
5eb5d321fb0acf65b8501d4d01b3e4fdc85f9f98
140
py
Python
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
null
null
null
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
12
2020-08-02T04:37:36.000Z
2022-01-30T02:08:05.000Z
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
null
null
null
from . import commands if __name__ != "__main__": raise ImportError("This module should not be imported") commands.main_command.run()
20
59
0.742857
0
0
0
0
0
0
0
0
46
0.328571
5eb5ea4f079264cee855d8779563ead4bcecdf9b
702
py
Python
sandbox/play_options.py
MiroK/mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
2
2017-07-07T11:13:11.000Z
2019-01-03T17:58:28.000Z
sandbox/play_options.py
MiroK/Mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
null
null
null
sandbox/play_options.py
MiroK/Mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
null
null
null
from mbed.generation import make_line_mesh from mbed.meshing import embed_mesh1d import numpy as np import sys coords = np.array([[0, 0], [1, 0], [1, 1], [0, 1.]]) mesh1d = make_line_mesh(coords, close_path=True) embed_mesh1d(mesh1d, bounding_shape=0.1, how='as_lines', gmsh_arg...
24.206897
52
0.57265
0
0
0
0
0
0
0
0
84
0.119658
5eb7fbf95fc89c585b7a5a754022701d49577a00
7,235
py
Python
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
4
2021-02-26T10:25:18.000Z
2021-07-06T09:42:00.000Z
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
23
2021-03-01T22:44:10.000Z
2022-03-29T18:50:29.000Z
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
null
null
null
"""Models and enumerators.""" from enum import Enum from typing import (Optional, List, Tuple) from pydantic import BaseModel # pylint: disable=no-name-in-module # pylint: disable=too-few-public-methods # Sample-specific enumerators and models class SampleIds(BaseModel): """Sample identifiers and aliases. ...
31.320346
79
0.673531
6,854
0.947339
0
0
0
0
0
0
5,453
0.753697
5ebc0ca49c97237dbab2d1b22dcc83509de9b98d
1,394
py
Python
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 NeuStar, 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 required by applicable law or a...
34
75
0.761119
611
0.438307
0
0
0
0
0
0
963
0.690818
5ebfafba8e3e89bfdb938a860d40d86b69ddf3cf
4,267
py
Python
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
import math import torch def l1(params): # calc L1 error over all params in the network l1 = 0 for param in params: l1 += torch.norm(param, 1) return l1 def lp_norm(params, p): # calc Lp error over all params in the network loss = 0 for param in params: loss += torch.nor...
31.843284
120
0.586595
3,550
0.831966
0
0
0
0
0
0
914
0.214202
5ebffca8cd6561908205fab492db5573c047430d
10,298
py
Python
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.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...
40.703557
250
0.655176
6,325
0.614197
627
0.060886
5,603
0.544086
0
0
3,926
0.381239
5ec010616918b5f9eb7a19f2b69feb4ddf284575
59
py
Python
sklearn_gbm_ots/__init__.py
aradnaev/sklearn_gbm_ots
ed5d2afc02d8d3e8335c891770eb73b09b49c0ce
[ "MIT", "BSD-3-Clause" ]
null
null
null
sklearn_gbm_ots/__init__.py
aradnaev/sklearn_gbm_ots
ed5d2afc02d8d3e8335c891770eb73b09b49c0ce
[ "MIT", "BSD-3-Clause" ]
null
null
null
sklearn_gbm_ots/__init__.py
aradnaev/sklearn_gbm_ots
ed5d2afc02d8d3e8335c891770eb73b09b49c0ce
[ "MIT", "BSD-3-Clause" ]
null
null
null
from sklearn_gbm_ots.sklearn_gbm_wrapper import GBMwrapper
29.5
58
0.915254
0
0
0
0
0
0
0
0
0
0
5ec075408ba7dc145746d172546ed75b28e26a20
1,015
py
Python
policy_loader.py
donghun2018/adclick-simulator
2fc8a939a1d44865cf5a391a3d672ca47e45a058
[ "MIT" ]
2
2020-11-18T03:37:27.000Z
2021-06-19T03:51:56.000Z
policy_loader.py
donghun2018/adclick-simulator
2fc8a939a1d44865cf5a391a3d672ca47e45a058
[ "MIT" ]
null
null
null
policy_loader.py
donghun2018/adclick-simulator
2fc8a939a1d44865cf5a391a3d672ca47e45a058
[ "MIT" ]
null
null
null
""" Loads policies by 1. load the list of PUID from "puid_list.csv" 2. load "Policy_<PUID>" class that is defined in ./Policies/<PUID>.py by Donghun Lee 2018 """ import csv from importlib import import_module def get_pols(): puids = get_puids() mod_names = ["Policies" + "." + puid for puid in puids] pol...
26.710526
70
0.637438
0
0
0
0
0
0
0
0
361
0.355665
5ec5e51de1caabf24e1ac5fd5fb9e8661dce9f2e
20,378
py
Python
openmixup/models/backbones/resnext.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
openmixup/models/backbones/resnext.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
openmixup/models/backbones/resnext.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
# reference: https://github.com/open-mmlab/mmclassification/tree/master/mmcls/models/backbones # modified from mmclassification resnext.py import random import torch.nn as nn from mmcv.cnn import build_conv_layer, build_norm_layer from ..registry import BACKBONES from .resnet_mmcls import Bottleneck as _Bottleneck fro...
41.758197
97
0.587644
19,818
0.972519
0
0
16,795
0.824173
0
0
9,031
0.443174
5ec654e8773eaea1ffae8ab9316677812ce2b191
11,998
py
Python
cid-minting/tests/test_oclc_lookup.py
cdlib/zephir-services
87597190302114aea7d3ae694181eeaffa9d63fc
[ "BSD-3-Clause" ]
1
2018-11-15T21:33:32.000Z
2018-11-15T21:33:32.000Z
cid-minting/tests/test_oclc_lookup.py
cdlib/zephir-services
87597190302114aea7d3ae694181eeaffa9d63fc
[ "BSD-3-Clause" ]
17
2018-11-30T19:43:56.000Z
2021-12-08T00:45:18.000Z
cid-minting/tests/test_oclc_lookup.py
cdlib/zephir-services
87597190302114aea7d3ae694181eeaffa9d63fc
[ "BSD-3-Clause" ]
2
2018-11-30T19:29:48.000Z
2019-01-29T23:24:23.000Z
import os import msgpack import pytest import plyvel from click.testing import CliRunner from oclc_lookup import get_primary_ocn from oclc_lookup import get_ocns_cluster_by_primary_ocn from oclc_lookup import get_ocns_cluster_by_ocn from oclc_lookup import get_clusters_by_ocns from oclc_lookup import convert_set_to_l...
34.877907
144
0.657443
0
0
0
0
510
0.042507
0
0
3,429
0.285798
5ec7930b8c6c3894092804aae53648cb722fdd7b
751
py
Python
optimal_transport_morphometry/core/admin/preprocess.py
girder/otm-server
7abfe9c2d659c962784e28058d8f9a8ffc1f4991
[ "Apache-2.0" ]
null
null
null
optimal_transport_morphometry/core/admin/preprocess.py
girder/otm-server
7abfe9c2d659c962784e28058d8f9a8ffc1f4991
[ "Apache-2.0" ]
5
2022-03-10T19:39:22.000Z
2022-03-17T21:05:10.000Z
optimal_transport_morphometry/core/admin/preprocess.py
girder/otm-server
7abfe9c2d659c962784e28058d8f9a8ffc1f4991
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from optimal_transport_morphometry.core.models import ( FeatureImage, JacobianImage, RegisteredImage, SegmentedImage, ) class CommonAdmin(admin.ModelAdmin): list_display = ['id', 'atlas', 'blob', 'source_image'] list_display_links = ['id'] @admin.register(Ja...
22.088235
67
0.768309
440
0.585885
0
0
439
0.584554
0
0
73
0.097204
5ec961b19adfa565a12853c2adc2c965a0227de8
675
py
Python
commons/templatetags/i18n_utils.py
jaboutboul/almalinux.org
1dda8faff0e84e650fc9a90e9a104d387b4dd038
[ "MIT" ]
null
null
null
commons/templatetags/i18n_utils.py
jaboutboul/almalinux.org
1dda8faff0e84e650fc9a90e9a104d387b4dd038
[ "MIT" ]
null
null
null
commons/templatetags/i18n_utils.py
jaboutboul/almalinux.org
1dda8faff0e84e650fc9a90e9a104d387b4dd038
[ "MIT" ]
null
null
null
from typing import Dict from django import template from django.urls import resolve, reverse from django.urls.exceptions import Resolver404 from django.utils import translation register = template.Library() @register.simple_tag(takes_context=True) def current_path_for_language_code(context: Dict, code: str) -> str:...
25
72
0.724444
0
0
0
0
463
0.685926
0
0
12
0.017778
5eca5d623cda5a3b20dea4d0ab793ea0d10b5c10
2,113
py
Python
weather_forecast.py
pub12/weather-forecast
20eefaa3a290af659fe3cc69c67858891d449fba
[ "MIT" ]
1
2021-09-04T12:06:31.000Z
2021-09-04T12:06:31.000Z
weather_forecast.py
pub12/weather-forecast
20eefaa3a290af659fe3cc69c67858891d449fba
[ "MIT" ]
null
null
null
weather_forecast.py
pub12/weather-forecast
20eefaa3a290af659fe3cc69c67858891d449fba
[ "MIT" ]
null
null
null
import requests import datetime, pytz from quickchart import QuickChart OPEN_WEATHER_MAP_APIKEY = '16786afe8ea0f6b683ab9298e52ac247' def get_weather_data_by_location( lat, long): url = f'https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={long}&appid={OPEN_WEATHER_MAP_APIKEY}&units=metric' print(f"Getti...
29.760563
123
0.568859
0
0
0
0
0
0
0
0
1,231
0.582584
5eca95466b6c45dbaa04be04c01346c77b736894
2,269
py
Python
hack/graph.py
dofinn/cincinnati
9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837
[ "Apache-2.0" ]
null
null
null
hack/graph.py
dofinn/cincinnati
9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837
[ "Apache-2.0" ]
25
2021-09-15T04:27:06.000Z
2022-03-08T20:27:49.000Z
hack/graph.py
dofinn/cincinnati
9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import sys import json from typing import Dict, List def run(): parser = argparse.ArgumentParser(description=f'Output digraph data for Cincinnati json', usage="curl -sH 'Accept:application/json' 'https://api.openshift.com/api/upgrades_in...
36.015873
210
0.631556
0
0
0
0
0
0
0
0
792
0.349052
5ecb818dfb22cd3164c6594184c3fa42e6bdc1d1
543
py
Python
third_party/manipulate_images.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
29
2019-03-25T09:35:12.000Z
2022-01-08T22:09:03.000Z
third_party/manipulate_images.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
null
null
null
third_party/manipulate_images.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
4
2020-05-19T21:18:12.000Z
2021-05-18T12:49:21.000Z
import imageio import numpy as np import scipy.ndimage start_img = imageio.imread( "http://static.cricinfo.com/db/PICTURES/CMS/263600/263697.20.jpg" ) gray_inv_img = 255 - np.dot(start_img[..., :3], [0.299, 0.587, 0.114]) blur_img = scipy.ndimage.filters.gaussian_filter(gray_inv_img, sigma=5) def dodge(front, b...
25.857143
71
0.707182
0
0
0
0
0
0
0
0
83
0.152855
5ecbaa5972609aea0a8fb3c3542ad5f8dcd731c5
30
py
Python
jk.py
validio-web/JavaPrograms
ff05e10135e5d5a527f70f67af683f5f99cd7bd6
[ "MIT" ]
null
null
null
jk.py
validio-web/JavaPrograms
ff05e10135e5d5a527f70f67af683f5f99cd7bd6
[ "MIT" ]
null
null
null
jk.py
validio-web/JavaPrograms
ff05e10135e5d5a527f70f67af683f5f99cd7bd6
[ "MIT" ]
null
null
null
print "welcome to the jungle"
15
29
0.766667
0
0
0
0
0
0
0
0
23
0.766667
5ecdc8b1a11d72a44089a8ee90fca21bec3ec6e2
935
py
Python
dedupe/convenience.py
BrianSipple/dedupe
d276da675e319d5cc6e7cafd4963deebde0d485d
[ "MIT" ]
1
2015-11-06T01:33:04.000Z
2015-11-06T01:33:04.000Z
dedupe/convenience.py
BrianSipple/dedupe
d276da675e319d5cc6e7cafd4963deebde0d485d
[ "MIT" ]
null
null
null
dedupe/convenience.py
BrianSipple/dedupe
d276da675e319d5cc6e7cafd4963deebde0d485d
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
23.375
75
0.682353
0
0
0
0
0
0
0
0
158
0.168984
5ece0c2516a45ad3f70b047cfd0764e7f4392af9
2,459
py
Python
buildimages.py
scripsi/douglasreed.uk
be36e28f59f5542963b4cd36ed044ed07de7ebd8
[ "MIT" ]
null
null
null
buildimages.py
scripsi/douglasreed.uk
be36e28f59f5542963b4cd36ed044ed07de7ebd8
[ "MIT" ]
null
null
null
buildimages.py
scripsi/douglasreed.uk
be36e28f59f5542963b4cd36ed044ed07de7ebd8
[ "MIT" ]
null
null
null
import os from PIL import Image, ImageOps artwork_dir = "./docs/artworks" artwork_filename = "/artwork.jpg" thumbnail_filename = "/thumbnail.jpg" image_width_large = 2000 image_width_medium = 1000 image_width_small = 500 image_width_thumbnail = 300 save_as_jpg = True save_as_webp = False def save_image(output_image, ...
40.983333
132
0.708825
0
0
0
0
0
0
0
0
259
0.105327
5ece7144c7b2ec17653f0f9dba2cd6ae36bf25de
11,099
py
Python
bin/xpc_gsd_exp.py
gengala/Random-Probabilistic-Circuits
8871a9f1e6ace9d8ea7604b69abcc270c7792620
[ "Apache-2.0" ]
5
2021-05-20T10:39:47.000Z
2022-01-23T09:37:38.000Z
bin/xpc_gsd_exp.py
gengala/Random-Probabilistic-Circuits
8871a9f1e6ace9d8ea7604b69abcc270c7792620
[ "Apache-2.0" ]
null
null
null
bin/xpc_gsd_exp.py
gengala/Random-Probabilistic-Circuits
8871a9f1e6ace9d8ea7604b69abcc270c7792620
[ "Apache-2.0" ]
null
null
null
import argparse try: from time import perf_counter except: from time import time perf_counter = time import dataset import numpy as np import datetime import os import logging from src.inference import log_likelihood from src.xpc import create_xpc, SD_LEVEL_2 from src.cltree import create_cltree fr...
40.655678
111
0.441211
0
0
0
0
0
0
0
0
1,565
0.141004
5ed107e056877071199b1d13982f8ef865125b31
376
py
Python
banzai/utils/array_utils.py
gmbrandt/banzai
af6ddb529e8c35eaa87abf67372160f2dd99050b
[ "BSD-3-Clause" ]
null
null
null
banzai/utils/array_utils.py
gmbrandt/banzai
af6ddb529e8c35eaa87abf67372160f2dd99050b
[ "BSD-3-Clause" ]
null
null
null
banzai/utils/array_utils.py
gmbrandt/banzai
af6ddb529e8c35eaa87abf67372160f2dd99050b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np def array_indices_to_slices(a): return tuple(slice(0, x, 1) for x in a.shape) def prune_nans_from_table(table): nan_in_row = np.zeros(len(table), dtype=bool) for col in table.colnames: nan_in_ro...
26.857143
82
0.734043
0
0
0
0
0
0
0
0
0
0
5ed1a2ebe6b18d55c5ac39c8d12715c6e6c4aa9a
8,202
py
Python
src/mycocoparser.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
src/mycocoparser.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
src/mycocoparser.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
# Motivation for replacing the default `coco` parser # See Issue : https://github.com/airctic/icevision/issues/467 import json import os import pickle from collections import defaultdict from pathlib import Path from typing import Dict, Hashable, List, Tuple, Union import numpy as np from icevision import ClassMap f...
31.068182
88
0.547427
6,401
0.780419
54
0.006584
0
0
0
0
1,493
0.182029
5ed1fec47cb6b45bc795bc57689543768e765fc5
370
py
Python
python/qidoc/test/projects/prebuild/tools/gen_rst.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qidoc/test/projects/prebuild/tools/gen_rst.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qidoc/test/projects/prebuild/tools/gen_rst.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. " Generate source/generated.rst " def main(): with open("source/generated.rst", "w") as fp: fp.write("""\ Generated section ==============...
20.555556
72
0.640541
0
0
0
0
0
0
0
0
278
0.751351
5ed3804f209192e36d60aa99aa13e5c562c0312b
3,386
py
Python
test/test_manual_input.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
219
2017-12-12T09:42:46.000Z
2022-03-13T08:25:13.000Z
test/test_manual_input.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
11
2017-12-14T08:14:51.000Z
2021-08-09T18:37:45.000Z
test/test_manual_input.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
45
2017-12-14T07:26:36.000Z
2022-03-11T09:36:56.000Z
import os import sys import unittest from multiprocessing import Process, Queue import mock from xv_leak_tools.log import L from xv_leak_tools.manual_input import allow_manual_input, disallow_manual_input from xv_leak_tools.manual_input import message_and_await_string from xv_leak_tools.manual_input import message_a...
33.86
99
0.633786
2,979
0.879799
0
0
342
0.101004
0
0
973
0.28736
5ed4015a6c4a19ef552f600253d6f3d0dfc05c83
904
py
Python
setup.py
guillermo-carrasco/pytravis
da09d9f64d81b0db3ab8fa070d473f54cda1303a
[ "MIT" ]
3
2015-01-27T09:07:48.000Z
2021-01-09T17:45:44.000Z
setup.py
guillermo-carrasco/pytravis
da09d9f64d81b0db3ab8fa070d473f54cda1303a
[ "MIT" ]
null
null
null
setup.py
guillermo-carrasco/pytravis
da09d9f64d81b0db3ab8fa070d473f54cda1303a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import sys, os version = '0.3' setup(name='pytravis', version=version, description="Python wrapper for Travis-CI API", long_description="""\ Python wrapper for Travis-CI API. Set of scripts to get information from travis.""", classifiers=[], # Get st...
34.769231
95
0.668142
0
0
0
0
0
0
0
0
444
0.49115
5ed4893aa3d82971eb07e8a3cc9763f23cff15b4
30
py
Python
bibserver/auth/__init__.py
jgoldfar/bibserver
ccf0e60f1983bb5db4c2594bbd8187139556be90
[ "MIT" ]
47
2015-01-07T06:53:22.000Z
2021-02-27T08:48:43.000Z
bibserver/auth/__init__.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
10
2015-02-08T12:48:27.000Z
2018-11-08T02:47:19.000Z
bibserver/auth/__init__.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
21
2015-01-16T06:31:43.000Z
2021-02-27T08:49:18.000Z
import collection import user
10
17
0.866667
0
0
0
0
0
0
0
0
0
0
5ed60a3c5caf9c5dba8bc4729025fb3ca0156ca4
7,057
py
Python
Main.py
ShihaoWang/Contact-Transition-Tree
cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc
[ "MIT" ]
2
2019-02-19T19:05:15.000Z
2019-05-05T20:07:16.000Z
Main.py
ShihaoWang/Contact-Transition-Tree
cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc
[ "MIT" ]
null
null
null
Main.py
ShihaoWang/Contact-Transition-Tree
cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc
[ "MIT" ]
null
null
null
#!/usr/bin/python # import osqp import sys, os from klampt import * from klampt import vis from klampt.vis.glrobotprogram import GLSimulationPlugin import numpy as np import string import scipy as sp import scipy.sparse as sparse from klampt.model.trajectory import Trajectory import time import math sys.path.insert(0...
50.769784
176
0.700298
0
0
0
0
0
0
0
0
3,024
0.428511
5ed71fb1c4d7c7ac8578c5f7266cc08abffb712a
2,524
py
Python
exp/motivation/variable_throughput/nginx/analysis.py
sarsanaee/Backdraft
5c60bdb17901d402ebc6feea2d43f26e56d66668
[ "MIT" ]
null
null
null
exp/motivation/variable_throughput/nginx/analysis.py
sarsanaee/Backdraft
5c60bdb17901d402ebc6feea2d43f26e56d66668
[ "MIT" ]
null
null
null
exp/motivation/variable_throughput/nginx/analysis.py
sarsanaee/Backdraft
5c60bdb17901d402ebc6feea2d43f26e56d66668
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np import sys if len(sys.argv) < 3: print("Error: Invalid parameters: Path to trace not existed") print("usage: ./program window [<path_to_trace>]") exit(0) # data = np.loadtxt("1M_Req_1_Concurrency.txt") # data = np.loadtxt("/tmp/ab_stats_7.txt") ts_data = [] try: ...
23.155963
104
0.614501
0
0
0
0
0
0
0
0
1,225
0.485341
5ed80b7eb69a728a482933d1c1030be79406a25c
4,090
py
Python
examples/adafruit_io_mqtt/adafruit_io_groups.py
ryanplusplus/Adafruit_CircuitPython_AdafruitIO
5efcef473a7223e537c1910179da7fffd90a9185
[ "Unlicense", "MIT-0", "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
examples/adafruit_io_mqtt/adafruit_io_groups.py
ryanplusplus/Adafruit_CircuitPython_AdafruitIO
5efcef473a7223e537c1910179da7fffd90a9185
[ "Unlicense", "MIT-0", "MIT" ]
43
2019-02-22T03:20:22.000Z
2022-01-14T15:44:19.000Z
examples/adafruit_io_mqtt/adafruit_io_groups.py
ryanplusplus/Adafruit_CircuitPython_AdafruitIO
5efcef473a7223e537c1910179da7fffd90a9185
[ "Unlicense", "MIT-0", "MIT" ]
28
2019-02-19T21:35:20.000Z
2022-03-27T17:43:31.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # Subscribing to an Adafruit IO Group # and Publishing to the feeds in the group import time from random import randint import board import busio from digitalio import DigitalInOut from adafruit_esp32spi import adafruit_esp3...
31.705426
88
0.763081
0
0
0
0
0
0
0
0
2,311
0.565037
5ed8398d08d23ce47895ea9d5f261522c86dd1a4
1,082
py
Python
setup.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
1
2021-09-17T06:05:20.000Z
2021-09-17T06:05:20.000Z
setup.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
null
null
null
setup.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
null
null
null
import os import io from setuptools import setup, find_packages HERE = os.path.dirname(os.path.realpath(__file__)) README = os.path.join(HERE, 'README.md') with io.open(README, encoding='utf-8') as f: long_description = f.read() VERSION = os.path.join(HERE, 'ckb_toolkit', 'version.py') with io.open(VERSION, enco...
29.243243
60
0.641405
0
0
0
0
0
0
0
0
302
0.279113
5ed86b6aaa7016a6e2d535463b8dced4480c51e4
4,672
py
Python
ocbot/web/routes_slack.py
OperationCode/operationcode_pyback
c4b8d466baaef16f005c35b290cb48e597a65a32
[ "MIT" ]
16
2018-04-03T17:19:51.000Z
2020-09-12T16:00:43.000Z
ocbot/web/routes_slack.py
OperationCode/operation_code_pybot
c4b8d466baaef16f005c35b290cb48e597a65a32
[ "MIT" ]
34
2017-10-31T15:53:15.000Z
2018-03-02T17:24:13.000Z
ocbot/web/routes_slack.py
OperationCode/operationcode_pyback
c4b8d466baaef16f005c35b290cb48e597a65a32
[ "MIT" ]
10
2018-03-24T01:58:06.000Z
2021-01-21T06:50:54.000Z
import logging import threading from flask import request, make_response, json, redirect, url_for from config.configs import configs from ocbot import app from ocbot.pipeline.routing import RoutingHandler from ocbot.pipeline.slash_command_handlers.log_handlers import can_view_logs, get_temporary_url, handle_log_view ...
34.607407
112
0.704623
0
0
0
0
3,950
0.845462
0
0
1,995
0.427012
0d57ec22c55b9fe1a9b170349aaaf1d68422b908
2,936
py
Python
searchconsole/account.py
symbiotech/google-searchconsole
0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e
[ "MIT" ]
null
null
null
searchconsole/account.py
symbiotech/google-searchconsole
0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e
[ "MIT" ]
null
null
null
searchconsole/account.py
symbiotech/google-searchconsole
0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e
[ "MIT" ]
null
null
null
# encoding: utf-8 from . import query class Account: """ An account can be associated with a number of web properties. You should navigate to a web property to run queries. Usage: >>> import searchconsole >>> account = searchconsole.authenticate( ... client_config='auth/client_s...
29.959184
79
0.61921
2,892
0.985014
0
0
538
0.183243
0
0
1,499
0.510559
0d5856d272a973791b102401657f1a1822f8c781
145,280
py
Python
sdk/python/pulumi_opsgenie/outputs.py
pulumi/pulumi-opsgenie
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
[ "ECL-2.0", "Apache-2.0" ]
1
2021-12-01T20:57:42.000Z
2021-12-01T20:57:42.000Z
sdk/python/pulumi_opsgenie/outputs.py
pulumi/pulumi-opsgenie
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
[ "ECL-2.0", "Apache-2.0" ]
34
2021-02-03T20:15:32.000Z
2022-03-25T19:57:20.000Z
sdk/python/pulumi_opsgenie/outputs.py
pulumi/pulumi-opsgenie
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
[ "ECL-2.0", "Apache-2.0" ]
2
2021-07-08T15:16:09.000Z
2021-07-20T11:12:44.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 ...
37.327852
291
0.620643
140,781
0.969032
0
0
142,141
0.978393
0
0
64,228
0.442098
0d5944cf18ff876b7a19f160fdee473e30de7ffb
2,546
py
Python
src/pytorch_adapt/frameworks/lightning/lightning.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
1
2021-12-15T19:36:01.000Z
2021-12-15T19:36:01.000Z
src/pytorch_adapt/frameworks/lightning/lightning.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
null
null
null
src/pytorch_adapt/frameworks/lightning/lightning.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
null
null
null
from collections import defaultdict import pytorch_lightning as pl import torch from ...containers import Optimizers from .. import utils as f_utils def set_adapter_optimizers_to_pl(adapter, pl_optimizers): if isinstance(adapter.optimizers, Optimizers): keys = adapter.optimizers.keys() adapter.o...
34.405405
79
0.66143
1,826
0.717203
0
0
0
0
0
0
72
0.02828
0d5a9be19d355c1b2904b2d86faf394e45e5df77
5,740
py
Python
libvvtest/outpututils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
7
2021-03-26T21:33:09.000Z
2022-03-01T17:06:55.000Z
libvvtest/outpututils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
libvvtest/outpututils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. import os, sys from os.path import join as pjoin import time import traceback from . import ...
26.451613
79
0.566551
0
0
0
0
0
0
0
0
1,163
0.202613
0d5baa45120b260610692f203c5d97f0a7321995
13,956
py
Python
bay/plugins/build.py
eventbrite/bay
3a157457a55713067213aeafe385a1cc49aa2698
[ "Apache-2.0" ]
22
2017-03-01T19:52:30.000Z
2020-09-09T16:27:21.000Z
bay/plugins/build.py
eventbrite/bay
3a157457a55713067213aeafe385a1cc49aa2698
[ "Apache-2.0" ]
25
2017-02-23T23:08:56.000Z
2019-10-09T00:02:52.000Z
bay/plugins/build.py
eventbrite/bay
3a157457a55713067213aeafe385a1cc49aa2698
[ "Apache-2.0" ]
4
2017-03-12T03:51:17.000Z
2021-09-08T11:36:36.000Z
import attr import click import datetime import sys from docker.errors import NotFound from .base import BasePlugin from ..cli.colors import CYAN, GREEN, RED, remove_ansi from ..cli.argument_types import ContainerType, HostType from ..cli.tasks import Task from ..constants import PluginHook from ..docker.build import ...
42.036145
116
0.622743
5,509
0.394741
0
0
12,601
0.902909
0
0
3,556
0.254801
0d5c97ac015a15044eb61b7046d8427fedd68fcd
889
py
Python
nablapps/interactive/models/games.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
1
2019-10-07T13:59:19.000Z
2019-10-07T13:59:19.000Z
nablapps/interactive/models/games.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
2
2019-10-07T14:47:37.000Z
2019-10-07T14:49:49.000Z
nablapps/interactive/models/games.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
null
null
null
# Models for game_list from django import template from django.db import models register = template.Library() class Game(models.Model): class Meta: ordering = ["index"] index = models.IntegerField(help_text="Bruk helst 10, 20, 30 osv.") title = models.TextField() url = models.TextField( ...
32.925926
290
0.673791
783
0.87291
0
0
0
0
0
0
422
0.470457
0d5d476ef8064a1f801bca06d8f771721e4ae33b
288
py
Python
solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py
satyam857/HackerRank
b6c0c199a5e320b1b59fdedafda2630258314b76
[ "MIT" ]
null
null
null
solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py
satyam857/HackerRank
b6c0c199a5e320b1b59fdedafda2630258314b76
[ "MIT" ]
null
null
null
solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py
satyam857/HackerRank
b6c0c199a5e320b1b59fdedafda2630258314b76
[ "MIT" ]
1
2018-10-22T10:42:45.000Z
2018-10-22T10:42:45.000Z
# Complete the printLinkedList function below. # # For your reference: # # SinglyLinkedListNode: # int data # SinglyLinkedListNode next # # def printLinkedList(head): if head == None: return; n = head while(n != None): print(n.data) n = n.next
16.941176
46
0.607639
0
0
0
0
0
0
0
0
139
0.482639
0d5d5fe08b68a42bbf47cdd1e53e137159c13499
1,877
py
Python
python/section12-2.py
loveactualry/fluffy-octo-disco
e111282895350e348c660d31c83c3133fcd57ada
[ "Apache-2.0" ]
null
null
null
python/section12-2.py
loveactualry/fluffy-octo-disco
e111282895350e348c660d31c83c3133fcd57ada
[ "Apache-2.0" ]
null
null
null
python/section12-2.py
loveactualry/fluffy-octo-disco
e111282895350e348c660d31c83c3133fcd57ada
[ "Apache-2.0" ]
null
null
null
# Section12-2 # 파이썬 데이터베이스 연동(SQLite) import sqlite3 # DB 파일 조회(없으면 새로 생성) conn = sqlite3.connect('C:/pythonbasic/resource/database.db') # 본인 db 경로 # 커서 바인딩 c = conn.cursor() # 데이터 조회(전체) #c.execute("SELECT * FROM users") # 커서 위치가 변경 # 1개 로우 선택 #print('One -> \n', c.fetchone()) # 지정 로우 선택 #pr...
22.082353
78
0.598295
0
0
0
0
0
0
0
0
1,530
0.701513
0d5ee9999bbcd7a4fe2453d542df290189163476
3,182
py
Python
pyapprox/models/test_datafunction_model.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
26
2019-12-16T02:21:15.000Z
2022-03-17T09:59:18.000Z
pyapprox/models/test_datafunction_model.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
9
2020-03-03T03:04:55.000Z
2021-08-19T22:50:42.000Z
pyapprox/models/test_datafunction_model.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
7
2020-03-02T03:49:17.000Z
2021-02-17T02:07:53.000Z
import unittest import numpy as np from pyapprox.models.wrappers import DataFunctionModel class ModelWithCounter(object): def __init__(self): self.counter=0 def __call__(self,samples): self.counter+=samples.shape[1] return np.sum(samples**2,axis=0)[:,np.newaxis] class TestDataFunc...
34.967033
79
0.655248
2,863
0.899749
0
0
0
0
0
0
50
0.015713
0d5f794c240a2713b4e7ab394e05f2c97c787a51
4,945
py
Python
video/segment.py
ArseniKavalchuk/ffmpeg-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
1
2020-10-23T15:56:31.000Z
2020-10-23T15:56:31.000Z
video/segment.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
video/segment.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
import ffmpeg import os import logging import glob logger = logging.getLogger('segmenter') class BaseSegmenter: def __init__(self, in_src, out_dir, channel_id): if not channel_id or channel_id <= 0: raise ValueError("channel_id must be a positive integer") if not in_src or not out_dir...
35.833333
99
0.558342
4,836
0.977958
0
0
0
0
0
0
856
0.173104
0d5fae65bcad708f5d5bd66201a606879164f0e1
23,753
py
Python
npl_portfolio/property_collateral.py
open-risk/openNPL
fff1d219b5180305fd8b9e742e0e26dc0306f45d
[ "MIT" ]
16
2020-07-03T09:10:46.000Z
2021-06-28T09:31:37.000Z
npl_portfolio/property_collateral.py
open-risk/openNPL
fff1d219b5180305fd8b9e742e0e26dc0306f45d
[ "MIT" ]
2
2021-03-12T18:59:17.000Z
2021-03-30T23:10:26.000Z
npl_portfolio/property_collateral.py
open-risk/openNPL
fff1d219b5180305fd8b9e742e0e26dc0306f45d
[ "MIT" ]
7
2020-07-11T18:09:50.000Z
2021-09-20T07:47:02.000Z
# Copyright (c) 2020 - 2021 Open Risk (https://www.openriskmanagement.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
98.970833
437
0.69667
22,463
0.945691
0
0
0
0
0
0
14,468
0.609102
0d61c4eb539721622e0afd3f029768d48f3848b5
1,396
py
Python
src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:28.000Z
2020-12-18T21:37:28.000Z
src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
null
null
null
src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:31.000Z
2020-12-18T21:37:31.000Z
from injector import inject from pdip.cqrs import IQueryHandler from pdip.dependency import IScoped from pdi.application.dashboard.GetDataOperationJobExecutionWidget.GetDataOperationJobExecutionWidgetMapping import \ GetDataOperationJobExecutionWidgetMapping from pdi.application.dashboard.GetDataOperationJobExecut...
53.692308
123
0.852436
628
0.449857
0
0
159
0.113897
0
0
0
0
0d632ebfcf390e585a2cf63ec0c29c0477321357
1,947
py
Python
gecosistema_win_service/example.py
valluzzi/gecosistema_win_service
5bfd2e6e85eddb750bfb7715930ef5612c71a4e1
[ "MIT" ]
null
null
null
gecosistema_win_service/example.py
valluzzi/gecosistema_win_service
5bfd2e6e85eddb750bfb7715930ef5612c71a4e1
[ "MIT" ]
null
null
null
gecosistema_win_service/example.py
valluzzi/gecosistema_win_service
5bfd2e6e85eddb750bfb7715930ef5612c71a4e1
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------- # Licence: # Copyright (c) 2012-2020 Luzzi Valerio # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANT...
27.041667
100
0.639445
475
0.243965
0
0
0
0
0
0
1,346
0.69132
0d63537c7a3acbbe4a440b749ad98860f8d066ce
6,309
py
Python
scripts/nagios/check_jmxproxy.py
mk23/jmxproxy-test
d5b8145eef2b05560a3e2879cb5f15cbf491e4a7
[ "MIT" ]
1
2016-08-24T07:57:30.000Z
2016-08-24T07:57:30.000Z
scripts/nagios/check_jmxproxy.py
mk23/jmxproxy-test
d5b8145eef2b05560a3e2879cb5f15cbf491e4a7
[ "MIT" ]
null
null
null
scripts/nagios/check_jmxproxy.py
mk23/jmxproxy-test
d5b8145eef2b05560a3e2879cb5f15cbf491e4a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import argparse import json import re import sys import traceback import urllib import urllib2 SUCCESS, WARNING, CRITICAL, UNKNOWN = range(4) ERRORS = dict((v, k) for k, v in vars(sys.modules[__name__]).items() if type(v) == int) def lookup_val(host, port, expr, auth=None, proxy='http://loca...
45.388489
189
0.570772
0
0
0
0
0
0
0
0
1,287
0.203994
0d64a2a47538f87f2ae8c4d52adea915c9e65edb
14,042
py
Python
feature_mining/em_vector.py
nfreundlich/CS410_CourseProject
c50d0ff04472e48b0b59abe4467dc17d7c2cfab8
[ "MIT" ]
null
null
null
feature_mining/em_vector.py
nfreundlich/CS410_CourseProject
c50d0ff04472e48b0b59abe4467dc17d7c2cfab8
[ "MIT" ]
18
2018-10-24T01:35:45.000Z
2018-12-17T03:57:36.000Z
feature_mining/em_vector.py
nfreundlich/CS410_CourseProject
c50d0ff04472e48b0b59abe4467dc17d7c2cfab8
[ "MIT" ]
null
null
null
import numpy as np from scipy.sparse import csr_matrix from feature_mining.em_base import ExpectationMaximization class ExpectationMaximizationVector(ExpectationMaximization): """ Vectorized implementation of EM algorithm. """ def __init__(self, dump_path="../tests/data/em_01/"): print(type(s...
43.07362
127
0.543441
11,023
0.785002
0
0
0
0
0
0
6,940
0.494232
0d652795dab14c8112782292c58dcb2c2d1a4e6f
521
py
Python
api/migrations/0009_contributor_unique contributor.py
josayko/SoftDeskAPI
a168abb09b09c5cb5f8f4957d028ebde02f3d128
[ "MIT" ]
null
null
null
api/migrations/0009_contributor_unique contributor.py
josayko/SoftDeskAPI
a168abb09b09c5cb5f8f4957d028ebde02f3d128
[ "MIT" ]
null
null
null
api/migrations/0009_contributor_unique contributor.py
josayko/SoftDeskAPI
a168abb09b09c5cb5f8f4957d028ebde02f3d128
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-23 14:48 from django.db import migrations, models import django.db.models.expressions class Migration(migrations.Migration): dependencies = [ ('api', '0008_alter_contributor_unique_together'), ] operations = [ migrations.AddConstraint( ...
27.421053
157
0.681382
392
0.752399
0
0
0
0
0
0
140
0.268714
0d65822e35959222811499bf6a00a06314dc624b
2,706
py
Python
bib2reSTcitation.py
marvinbernhardt/bib2reSTcitation
b200412f3dccfee5718feb80b48c5cc5c61d884c
[ "MIT" ]
null
null
null
bib2reSTcitation.py
marvinbernhardt/bib2reSTcitation
b200412f3dccfee5718feb80b48c5cc5c61d884c
[ "MIT" ]
null
null
null
bib2reSTcitation.py
marvinbernhardt/bib2reSTcitation
b200412f3dccfee5718feb80b48c5cc5c61d884c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import sys import re def displaymatch(match): if match is None: return None return '<Match: %r, groups=%r>' % (match.group(), match.groups()) def bib2rest(input_bibfile, output_txtfile): fields = ('author', 'title', 'journal', 'year', 'doi') patterns =...
41
146
0.518108
0
0
0
0
0
0
0
0
540
0.199557
0d686dc9ef7836d9dcd1a98c972cedbc4f4e6b66
161
py
Python
command_handler/stats.py
felippemr/simple_kv
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
[ "BSD-3-Clause" ]
16
2015-12-04T18:36:16.000Z
2022-03-29T21:52:31.000Z
command_handler/stats.py
felippemr/simple_kv
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
[ "BSD-3-Clause" ]
null
null
null
command_handler/stats.py
felippemr/simple_kv
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
[ "BSD-3-Clause" ]
null
null
null
from settings import STATS_DICT def handle_stats(): """Return a tuple containing True and the contents of the STATS dict.""" return (True, STATS_DICT)
23
76
0.726708
0
0
0
0
0
0
0
0
72
0.447205
0d68fdce50c6e1052d14d5b7d0245789b81e2d22
276
py
Python
python/Data Structures/Arrays/replaceGreatestRight.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/replaceGreatestRight.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/replaceGreatestRight.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
class Solution: def replaceElements(self, arr: List[int]) -> List[int]: curr = -1 for idx in range(len(arr) -1, -1, -1): temp = arr[idx] arr[idx] = curr if temp > curr: curr = temp return arr
27.6
59
0.456522
276
1
0
0
0
0
0
0
0
0
0d69318abc11696433e4f1924cacaff09033b82a
658
py
Python
src/config.py
blockshift/hyperledger-cello-master
9e8dabe1606f277e327165b866cc70a0d569f3b4
[ "Apache-2.0" ]
null
null
null
src/config.py
blockshift/hyperledger-cello-master
9e8dabe1606f277e327165b866cc70a0d569f3b4
[ "Apache-2.0" ]
null
null
null
src/config.py
blockshift/hyperledger-cello-master
9e8dabe1606f277e327165b866cc70a0d569f3b4
[ "Apache-2.0" ]
null
null
null
# Copyright IBM Corp, All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # import os import bcrypt class Config(object): DEBUG = False SECRET_KEY = '?\xbf,\xb4\x8d\xa3"<\x9c\xb0@\x0f5\xab,w\xee\x8d$0\x13\x8b83' class ProductionConfig(Config): DEBUG = False class DevelopmentConfig(Config): ...
24.37037
79
0.696049
539
0.819149
0
0
0
0
0
0
272
0.413374
0d69578c10d2634307c060bc1241b6dc2f5a2d74
556
py
Python
geneal/applications/tsp/examples/world_capitals/_world_capitals.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
47
2020-07-10T14:28:52.000Z
2022-03-25T17:20:52.000Z
geneal/applications/tsp/examples/world_capitals/_world_capitals.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
10
2020-08-08T16:35:40.000Z
2022-03-08T00:07:19.000Z
geneal/applications/tsp/examples/world_capitals/_world_capitals.py
NeveIsa/geneal
064b0409912088886bf56fe9a729d74dac92a235
[ "MIT" ]
14
2020-08-07T20:49:18.000Z
2022-03-31T17:55:47.000Z
import os import pandas as pd try: module_path = os.path.abspath(os.path.join(".")) world_capitals = pd.read_csv(os.path.join(module_path, "data/world_capitals.csv")) except FileNotFoundError: module_path = os.path.abspath(os.path.join("..")) world_capitals = pd.read_csv(os.path.join(module_path, "da...
27.8
86
0.751799
0
0
0
0
0
0
0
0
77
0.138489
0d6b5bc99fe656be916957a3fe9bf8ca0a97853c
3,166
py
Python
singleImageHSV.py
josephwccheng/InvisibleCloakOpenCV
b3abb5a95b8f050e74ee97b701e0ecc51046d66e
[ "MIT" ]
null
null
null
singleImageHSV.py
josephwccheng/InvisibleCloakOpenCV
b3abb5a95b8f050e74ee97b701e0ecc51046d66e
[ "MIT" ]
null
null
null
singleImageHSV.py
josephwccheng/InvisibleCloakOpenCV
b3abb5a95b8f050e74ee97b701e0ecc51046d66e
[ "MIT" ]
null
null
null
import cv2 import numpy as np import time import matplotlib.pyplot as plt ##################################################### # # Author: Joseph Cheng # HSV: Hue Saturation Value # Hue is the color # Saturation is the greyness # Value is the brightness of the pixel # # ############################...
32.639175
104
0.679406
0
0
0
0
0
0
0
0
2,136
0.674668
0d6ba03cf017f1a2f946aece4eb5018d6320c47a
5,371
py
Python
netharn/layers/perceptron.py
VIAME/netharn
c9491d655c5d91cb0ee6055f30e68282108e6b67
[ "Apache-2.0" ]
null
null
null
netharn/layers/perceptron.py
VIAME/netharn
c9491d655c5d91cb0ee6055f30e68282108e6b67
[ "Apache-2.0" ]
null
null
null
netharn/layers/perceptron.py
VIAME/netharn
c9491d655c5d91cb0ee6055f30e68282108e6b67
[ "Apache-2.0" ]
null
null
null
from netharn.layers import common from netharn.layers import rectify from netharn.layers import conv_norm import numpy as np class MultiLayerPerceptronNd(common.Module): """ A multi-layer perceptron network for n dimensional data Choose the number and size of the hidden layers, number of output channels,...
40.383459
100
0.582945
5,243
0.976168
0
0
0
0
0
0
3,012
0.560789
0d6c6a31ee2dcded3d58deceaa07ea08c9e07ee6
11,116
py
Python
finicityapi/controllers/consumer_controller.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
finicityapi/controllers/consumer_controller.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
finicityapi/controllers/consumer_controller.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from finicityapi.api_helper import APIHelper from finicityapi.configuration import Configuration from finicityapi.controllers.base_controller import BaseController from finicityapi.http.auth.custom_header_auth import CustomHeaderAuth from finicityapi.models.consumer import Consumer from ...
41.17037
114
0.611011
10,642
0.956842
0
0
0
0
0
0
5,574
0.501169
0d6e573aac9be9a3ddc8cd881787cdec4d5f95b8
2,199
py
Python
tests/event_broker/test_multi_subscribe.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
5
2019-07-22T06:04:07.000Z
2021-07-23T06:01:51.000Z
tests/event_broker/test_multi_subscribe.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
15
2020-07-28T17:33:40.000Z
2021-08-23T17:30:05.000Z
tests/event_broker/test_multi_subscribe.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
4
2019-08-25T22:41:59.000Z
2020-10-21T14:28:15.000Z
from functools import partial from unittest import TestCase, main from expects import expect, be_empty, equal from twin_sister.expects_matchers import complain from twin_sister.fakes import FunctionSpy from questions_three.constants import TestEvent from questions_three.event_broker import EventBroker class TestMul...
33.830769
93
0.673488
1,851
0.841746
0
0
0
0
0
0
17
0.007731
0d6e9a3e1c2529b39e7ddfcb30d0694645fa2929
5,075
py
Python
opto/opto/classes/Optimizer.py
tholiao/opto
370a016a1ccef462b185b0f9538fb33aab81d566
[ "MIT" ]
5
2019-03-25T17:52:28.000Z
2022-03-19T06:20:41.000Z
opto/opto/classes/Optimizer.py
tholiao/opto
370a016a1ccef462b185b0f9538fb33aab81d566
[ "MIT" ]
null
null
null
opto/opto/classes/Optimizer.py
tholiao/opto
370a016a1ccef462b185b0f9538fb33aab81d566
[ "MIT" ]
6
2018-02-19T05:33:40.000Z
2019-11-21T04:17:22.000Z
# Compatibility Python 2/3 from __future__ import division, print_function, absolute_import from builtins import range # ---------------------------------------------------------------------------------------------------------------------- import numpy as np from dotmap import DotMap from .Logs import Logs fro...
39.038462
155
0.568079
4,618
0.909951
0
0
0
0
0
0
2,154
0.424433
0d704f2f7940709c3bf91f303ecaf73f3e4a2d3f
1,359
py
Python
tests/bugs/core_3675_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_3675_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_3675_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_3675 # title: CREATE INDEX considers NULL and empty string being the same in compound indices # decription: # tracker_id: CORE-3675 # min_versions: ['2.5.2'] # versions: 2.5.2 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Acti...
24.267857
95
0.552612
0
0
0
0
185
0.13613
0
0
901
0.662987
0d707813321db46119d80b8013c2b030f2c67f56
1,278
py
Python
tests/test_response_mockups.py
Shin--/django-sofortueberweisung
b410c358cbb3e3a3d047eedcff0a4046c493a7c7
[ "MIT" ]
3
2016-09-02T13:54:17.000Z
2017-06-21T22:42:03.000Z
tests/test_response_mockups.py
Shin--/django-sofortueberweisung
b410c358cbb3e3a3d047eedcff0a4046c493a7c7
[ "MIT" ]
4
2017-01-19T10:09:15.000Z
2019-10-28T10:39:40.000Z
tests/test_response_mockups.py
Shin--/django-sofortueberweisung
b410c358cbb3e3a3d047eedcff0a4046c493a7c7
[ "MIT" ]
3
2017-11-07T10:05:14.000Z
2019-02-06T10:01:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.template.loader import render_to_string from django.utils import timezone def get_refund_transaction_valid(transaction_id): return render_to_string(template_name='tests/transaction_refund.xml', context={'transaction': transactio...
51.12
173
0.676839
0
0
0
0
0
0
0
0
509
0.398279
0d73a3c5a76c4a1ecfc8ba69c9bdec3726bf3080
7,724
py
Python
analysisCodes/hotrgTc.py
brucelyu/tensorRGflow
e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06
[ "MIT" ]
12
2021-03-06T10:06:54.000Z
2022-01-31T14:20:28.000Z
analysisCodes/hotrgTc.py
brucelyu/tensorRGflow
e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06
[ "MIT" ]
null
null
null
analysisCodes/hotrgTc.py
brucelyu/tensorRGflow
e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : hotrgTc.py # Author : Xinliang(Bruce) Lyu <lyu@issp.u-tokyo.ac.jp> # Date : 22.02.2021 # Last Modified Date: 22.02.2021 # Last Modified By : Xinliang(Bruce) Lyu <lyu@issp.u-tokyo.ac.jp> # -*- coding: utf-8 -*- """ Created on S...
37.862745
89
0.576256
0
0
0
0
0
0
0
0
3,114
0.403159
0d7412d1cd28b6de9850ed3634e8ab4057bb4f22
32,442
py
Python
src/modeling.py
gengjia0214/jai
865ec9fdf432288ecab806cd1ecb8a4c747ee689
[ "BSD-3-Clause" ]
9
2020-02-20T23:14:55.000Z
2020-07-09T03:28:04.000Z
src/modeling.py
gengjia0214/jai
865ec9fdf432288ecab806cd1ecb8a4c747ee689
[ "BSD-3-Clause" ]
null
null
null
src/modeling.py
gengjia0214/jai
865ec9fdf432288ecab806cd1ecb8a4c747ee689
[ "BSD-3-Clause" ]
null
null
null
""" Modeling Pipeline Author: Jia Geng Email: gjia0214@gmail.com | jxg570@miami.edu """ import gc import os import random import copy import torch import torch.nn as nn from sklearn import metrics from torch.optim.lr_scheduler import * from torch.optim.optimizer import Optimizer from datautils.datahandler import Dat...
41.699229
145
0.607885
30,032
0.925714
0
0
0
0
0
0
12,472
0.38444
0d743fc5ff11340168a1f5be064069815e115ae3
5,805
py
Python
cogs/Competitive.py
DevvyDont/CraneDuels
a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4
[ "MIT" ]
null
null
null
cogs/Competitive.py
DevvyDont/CraneDuels
a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4
[ "MIT" ]
null
null
null
cogs/Competitive.py
DevvyDont/CraneDuels
a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4
[ "MIT" ]
null
null
null
from discord import Embed from discord.errors import InvalidArgument from discord.ext import commands import json import os.path from discord.ext.commands.core import command DEBUG = True """ Example of the structure of the json file for storing elos If we ever want to add a new mode we can just add a new enum to ...
30.552632
143
0.57261
4,170
0.718346
0
0
1,806
0.311111
1,685
0.290267
1,729
0.297847
0d7476879775d1d52aa3bcee7ee0cad81c8e65bd
653
py
Python
tests/sharepoint/test_client_side_component.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
tests/sharepoint/test_client_side_component.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
tests/sharepoint/test_client_side_component.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from tests.sharepoint.sharepoint_case import SPTestCase from office365.sharepoint.webs.web import Web class TestClientSideComponent(SPTestCase): target_web = None # type: Web @classmethod def setUpClass(cls): super(TestClientSideComponent, cls).setUpClass() def test1_get_all_client_side_co...
31.095238
81
0.744257
547
0.837672
0
0
94
0.143951
0
0
182
0.278714
0d7812855fb69eaa94b6d295abeec4a4d24cc06e
4,203
py
Python
discord-bot/music.py
rdebek/discord-bot
2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299
[ "MIT" ]
null
null
null
discord-bot/music.py
rdebek/discord-bot
2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299
[ "MIT" ]
null
null
null
discord-bot/music.py
rdebek/discord-bot
2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299
[ "MIT" ]
null
null
null
from discord.ext import commands from player import Player FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'} class Music(commands.Cog): def __init__(self, bot, color_theme): self.players = [] self.bot = bot ...
34.735537
98
0.630502
4,007
0.953367
0
0
3,454
0.821794
2,888
0.687128
560
0.133238
0d7937c2b3a48324e9a6ff27ade9cf323de26ee1
3,895
py
Python
TSP/TSPA.py
hiiroo/ModernHeuristics
2c02a76a571c1608a2096fed7491f60e0d3f9bde
[ "MIT" ]
null
null
null
TSP/TSPA.py
hiiroo/ModernHeuristics
2c02a76a571c1608a2096fed7491f60e0d3f9bde
[ "MIT" ]
null
null
null
TSP/TSPA.py
hiiroo/ModernHeuristics
2c02a76a571c1608a2096fed7491f60e0d3f9bde
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 Ali Mert Ceylan, Adopted from original resources provided by Korhan Karabulut for COMP 5658 Modern Heuristics Course Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
35.733945
95
0.576637
2,423
0.62208
0
0
953
0.244673
0
0
2,688
0.690116
0d799e5e74e58842353f606554f65d80dd705533
19,817
py
Python
template_container_human/labels/slice_16.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_16.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_16.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_E0E1E1 = ((127, 144), (127, 146), (128, 108), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 118), (129, 102), (129, 103), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 118), (129, 12...
396.34
865
0.492759
0
0
0
0
0
0
0
0
0
0
0d79f0e4cbdb7d5315b91cbc4c77238af366e46c
5,024
py
Python
theforce/deprecated/regression/kernels.py
changwmyung/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
19
2019-10-21T06:56:22.000Z
2022-03-14T06:43:42.000Z
theforce/deprecated/regression/kernels.py
17DongGeonKim/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
8
2019-10-23T07:48:49.000Z
2022-03-23T03:47:44.000Z
theforce/deprecated/regression/kernels.py
17DongGeonKim/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
4
2021-09-25T11:28:44.000Z
2022-02-25T06:50:48.000Z
import torch from torch.nn import Module, Parameter from theforce.regression.algebra import positive, free_form import warnings class RBF(Module): """ Parameters: scale, variance """ def __init__(self, scale, variance): super(RBF, self).__init__() self._scale = Parameter(free_form(sc...
32.205128
103
0.540406
3,917
0.779658
0
0
0
0
0
0
841
0.167396
0d7c091967c9affc83a4f4c6f7107024f844a0d2
229
py
Python
tests/files/autotest/tests_module/mixed.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
1
2016-05-08T13:21:04.000Z
2016-05-08T13:21:04.000Z
tests/files/autotest/tests_module/mixed.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
null
null
null
tests/files/autotest/tests_module/mixed.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
null
null
null
import tests_module import other_module class RegularObject(object): pass class RegularObject2(other_module.RegularObjectInOtherModule): pass class TestMixed(tests_module.TestCase): def test_it(self): pass
17.615385
62
0.772926
183
0.799127
0
0
0
0
0
0
0
0
0d7dd31165140749f8c07152e6e2e3b6c074eab6
223
py
Python
openscreenlapser/main.py
tybantarnusa/openscreenlapser
686c731bd1c50c1f3e400ada6fe629b7debc6a9a
[ "Apache-2.0" ]
1
2017-11-20T08:35:01.000Z
2017-11-20T08:35:01.000Z
openscreenlapser/main.py
tybantarnusa/openscreenlapser
686c731bd1c50c1f3e400ada6fe629b7debc6a9a
[ "Apache-2.0" ]
null
null
null
openscreenlapser/main.py
tybantarnusa/openscreenlapser
686c731bd1c50c1f3e400ada6fe629b7debc6a9a
[ "Apache-2.0" ]
null
null
null
from aesthetic import main_window from logic import capture def main(): app = main_window.MainWindow() app.after(1000, capture.instance.logicLoop, app) app.mainloop() if __name__ == '__main__': main()
20.272727
52
0.695067
0
0
0
0
0
0
0
0
10
0.044843
0d7eec1b47b1552221bc328ab841825e0535255e
66
py
Python
mmaction/models/backbones/__init__.py
sail-sg/dualformer
de0cdf858ca71a388ea006034cabcfa2e30fa33a
[ "Apache-2.0" ]
10
2021-12-13T05:57:24.000Z
2022-03-29T14:56:02.000Z
mmaction/models/backbones/__init__.py
sail-sg/dualformer
de0cdf858ca71a388ea006034cabcfa2e30fa33a
[ "Apache-2.0" ]
null
null
null
mmaction/models/backbones/__init__.py
sail-sg/dualformer
de0cdf858ca71a388ea006034cabcfa2e30fa33a
[ "Apache-2.0" ]
null
null
null
from .dualformer import DualFormer __all__ = [ 'DualFormer' ]
9.428571
34
0.712121
0
0
0
0
0
0
0
0
12
0.181818
0d7f4790c6df62a6fbce782e191af0e7f88e6ecd
21,431
py
Python
RLBotPack/Kamael/Kamael.py
robbai/RLBotPack
33afb2e28ff76e6c5774c03be20bdcdd356fb9d0
[ "MIT" ]
null
null
null
RLBotPack/Kamael/Kamael.py
robbai/RLBotPack
33afb2e28ff76e6c5774c03be20bdcdd356fb9d0
[ "MIT" ]
null
null
null
RLBotPack/Kamael/Kamael.py
robbai/RLBotPack
33afb2e28ff76e6c5774c03be20bdcdd356fb9d0
[ "MIT" ]
null
null
null
import math from rlbot.agents.base_agent import BaseAgent, SimpleControllerState from rlbot.utils.structures.game_data_struct import GameTickPacket from rlbot.utils.game_state_util import GameState, BallState, CarState, Physics, Vector3 as vector3, Rotator from Utilities import * from States import * import cProfile, p...
40.057944
210
0.604825
20,626
0.962438
0
0
0
0
0
0
3,094
0.14437
0d7fc6eb608bab4d322cdbf0abb9ca8e6b3bc5ff
1,048
py
Python
examples/pydoop_script/grep.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
1
2017-11-16T02:13:15.000Z
2017-11-16T02:13:15.000Z
examples/pydoop_script/grep.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
examples/pydoop_script/grep.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
# BEGIN_COPYRIGHT # # Copyright 2009-2014 CRS4. # # 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 a...
32.75
77
0.745229
0
0
0
0
0
0
0
0
940
0.896947
0d800898fe94588ed0a05be9c9de20e364588e5b
17,707
py
Python
Game Palace/rps.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
1
2021-01-08T01:44:23.000Z
2021-01-08T01:44:23.000Z
Game Palace/rps.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
null
null
null
Game Palace/rps.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
null
null
null
import random, sys, curses, threading, time import main_menu import leaderboard from methods.menus import * scissors=[" ▓▓▓▓▓▓ ", " ▓▓▓▓░░░░▓▓ ", " ...
42.770531
102
0.273112
0
0
0
0
0
0
0
0
10,545
0.484182
0d819bb7b839df183b133e4bb76bc64531f90d4a
1,901
py
Python
idconn/connectivity/estimateThresh.py
NBCLab/IDConn
0677e372c02fe35be28f70567e71e040e1d2a023
[ "MIT" ]
1
2021-06-24T19:37:46.000Z
2021-06-24T19:37:46.000Z
idconn/connectivity/estimateThresh.py
NBCLab/IDConn
0677e372c02fe35be28f70567e71e040e1d2a023
[ "MIT" ]
3
2020-10-01T19:57:26.000Z
2020-10-01T20:01:41.000Z
idconn/connectivity/estimateThresh.py
NBCLab/IDConn
0677e372c02fe35be28f70567e71e040e1d2a023
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx import pandas as pd import bct task_networks(dset_dir, subject, session, task, event_related, conditions, runs, connectivity_metric, space, atlas, confounds) for subject in subjects: print(subject) try: for i in np.arange(0,len(sessions)): print i ...
45.261905
126
0.4808
0
0
0
0
0
0
0
0
274
0.144135
0d821dc5c2dd6c4807f6af2be0673c13c7e4abd0
7,775
py
Python
HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py
warthan07/Nemaktis
54b1e64c1d40668e6dc22b11eac5487a09b58478
[ "MIT" ]
2
2020-02-25T08:13:32.000Z
2022-02-18T12:12:34.000Z
HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py
warthan07/Nemaktis
54b1e64c1d40668e6dc22b11eac5487a09b58478
[ "MIT" ]
null
null
null
HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py
warthan07/Nemaktis
54b1e64c1d40668e6dc22b11eac5487a09b58478
[ "MIT" ]
1
2022-02-18T12:13:40.000Z
2022-02-18T12:13:40.000Z
import time import os import json import dtmm dtmm.conf.set_fftlib("mkl_fft") import numpy as np import nemaktis as nm import matplotlib.pyplot as plt from copy import deepcopy from propagate_fields import * ######################## # Simulation constants # ######################## ne = 1.75 no = 1.5 wavelength ...
36.502347
113
0.567846
353
0.045396
0
0
0
0
0
0
1,533
0.197145
0d82b90cc315f19b41cd80b23354708ab0229874
6,240
py
Python
perms.py
dudkin-2005/PilotTelegramBot
3f92599de011aa63dc739712972637b781b5c4ae
[ "Apache-2.0" ]
null
null
null
perms.py
dudkin-2005/PilotTelegramBot
3f92599de011aa63dc739712972637b781b5c4ae
[ "Apache-2.0" ]
null
null
null
perms.py
dudkin-2005/PilotTelegramBot
3f92599de011aa63dc739712972637b781b5c4ae
[ "Apache-2.0" ]
null
null
null
import telebot bot = telebot.TeleBot('1073948237:AAGKs3HzRBZwBZGkoQ5moJIakWQn39nQtX4') def restrict(message): try: member = bot.get_chat_member(chat_id=message.chat.id, user_id=message.from_user.id) if member.status == 'creator' or member.status == 'administrat...
48.75
103
0.511218
0
0
0
0
0
0
0
0
1,226
0.183094
0d8349d4843939ae8db4d9bf00c2b6b4cf0f9c16
978
py
Python
parsec/commands/jobs/get_jobs.py
simonbray/parsec
c0e123cbf7cb1289ec722357a6262f716575e4d9
[ "Apache-2.0" ]
null
null
null
parsec/commands/jobs/get_jobs.py
simonbray/parsec
c0e123cbf7cb1289ec722357a6262f716575e4d9
[ "Apache-2.0" ]
null
null
null
parsec/commands/jobs/get_jobs.py
simonbray/parsec
c0e123cbf7cb1289ec722357a6262f716575e4d9
[ "Apache-2.0" ]
null
null
null
import click from parsec.cli import pass_context, json_loads from parsec.decorators import custom_exception, list_output @click.command('get_jobs') @pass_context @custom_exception @list_output def cli(ctx): """Get the list of jobs of the current user. Output: list of dictionaries containing summary job info...
28.764706
60
0.56135
0
0
0
0
854
0.873211
0
0
740
0.756646
0d83510c9b2aea13524aba6e26c438bd0f24e73f
1,208
py
Python
tests/test_serializers.py
Alzpeta/oarepo-validate
c3d917a833354bbbf569f2956424a27831e64de5
[ "MIT" ]
null
null
null
tests/test_serializers.py
Alzpeta/oarepo-validate
c3d917a833354bbbf569f2956424a27831e64de5
[ "MIT" ]
3
2020-11-05T16:58:38.000Z
2021-11-16T08:40:46.000Z
tests/test_serializers.py
Alzpeta/oarepo-validate
c3d917a833354bbbf569f2956424a27831e64de5
[ "MIT" ]
1
2021-09-22T11:59:47.000Z
2021-09-22T11:59:47.000Z
import uuid from invenio_pidstore.minters import recid_minter from invenio_records import Record from oarepo_validate import JSONSerializer def test_serializer(app, db): data = {'test': 'blah'} record_uuid = uuid.uuid4() pid = recid_minter(record_uuid, data) rec = Record.create(data, id_=record_uuid...
31.789474
117
0.647351
0
0
0
0
0
0
0
0
299
0.247517
0d83672a14d9bf74f5a3f7e74ed8fe2bf08bf3a4
3,741
py
Python
objects/CSCG/_3d/mesh/elements/element/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
1
2020-10-14T12:48:35.000Z
2020-10-14T12:48:35.000Z
objects/CSCG/_3d/mesh/elements/element/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
objects/CSCG/_3d/mesh/elements/element/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """""" import sys if './' not in sys.path: sys.path.append('./') from screws.freeze.main import FrozenOnly from objects.CSCG._3d.mesh.elements.element.sub_geometry.sub_geometry import ElementSubGeometry import numpy as np from objects.CSCG._3d.mesh.elements.element.sides.main import _3dCSCG_Mes...
32.25
105
0.65544
2,750
0.735098
0
0
2,209
0.590484
0
0
610
0.163058