hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b0fd1d21a57ae1f72f842d8b057cfcf5fa68da79
1,970
py
Python
playground.py
BogyMitutoyoCTL/Riesen-Tetris-2
af308d900ca7386c42d9debf85c53029588c9430
[ "MIT" ]
2
2019-09-15T18:22:22.000Z
2019-12-30T15:30:19.000Z
playground.py
BogyMitutoyoCTL/Riesen-Tetris-2
af308d900ca7386c42d9debf85c53029588c9430
[ "MIT" ]
12
2019-07-19T15:00:35.000Z
2020-01-03T10:53:13.000Z
playground.py
BogyMitutoyoCTL/Riesen-Tetris-2
af308d900ca7386c42d9debf85c53029588c9430
[ "MIT" ]
null
null
null
import tetris_blocks class Playground: def __init__(self, hight, width): self.height = hight self.width = width self.list_pixel = [] for h in range(self.height): line = [] self.list_pixel.append(line) for w in range(self.width): l...
36.481481
112
0.565482
c520b5239e6c60457852c9a0cada3127f8fc9437
51
py
Python
gaoqilai.py
1378056564/dream
d6e9318b8d025bfd61d9a57a81687a999ecc19b9
[ "Apache-2.0" ]
null
null
null
gaoqilai.py
1378056564/dream
d6e9318b8d025bfd61d9a57a81687a999ecc19b9
[ "Apache-2.0" ]
null
null
null
gaoqilai.py
1378056564/dream
d6e9318b8d025bfd61d9a57a81687a999ecc19b9
[ "Apache-2.0" ]
null
null
null
girls and boys 我们应该 开始搞点项目了 一起搞起来吧 如果不搞 我们一辈子都是人下人
7.285714
14
0.843137
2f4dcb6c02e1352ee04904504865dc2e684ce9b7
4,153
py
Python
test/collection_client_test.py
agsimmons/bynder-python-sdk
4ed23bbd159f1cb03dc9c94205a11ad137ca769a
[ "MIT" ]
4
2019-03-29T12:14:38.000Z
2020-11-14T03:32:28.000Z
test/collection_client_test.py
agsimmons/bynder-python-sdk
4ed23bbd159f1cb03dc9c94205a11ad137ca769a
[ "MIT" ]
12
2017-12-01T15:13:09.000Z
2022-01-05T21:27:10.000Z
test/collection_client_test.py
agsimmons/bynder-python-sdk
4ed23bbd159f1cb03dc9c94205a11ad137ca769a
[ "MIT" ]
8
2017-11-02T19:16:54.000Z
2022-02-08T10:35:58.000Z
import json from unittest import mock, TestCase from test import create_bynder_client class CollectionClientTest(TestCase): """ Test the collection client. """ def setUp(self): self.bynder_client = create_bynder_client() self.collection_client = self.bynder_client.collection_client ...
37.080357
87
0.640982
ee4325866cfba8146619fa5601e11f135d4c3cbb
1,371
py
Python
src/csharp/CSharpTemplate.py
suryadesu/codenn
4d2e1b75ac3b9debb37671b1d7d7216b7520fee2
[ "MIT" ]
null
null
null
src/csharp/CSharpTemplate.py
suryadesu/codenn
4d2e1b75ac3b9debb37671b1d7d7216b7520fee2
[ "MIT" ]
null
null
null
src/csharp/CSharpTemplate.py
suryadesu/codenn
4d2e1b75ac3b9debb37671b1d7d7216b7520fee2
[ "MIT" ]
null
null
null
import antlr4 from csharp.CSharp4Lexer import CSharp4Lexer import re def parseCSharp(code): code = code.replace('\\n', '\n') parsedVersion = [] stream = antlr4.InputStream(code) lexer = CSharp4Lexer(stream) toks = antlr4.CommonTokenStream(lexer) toks.fetch(500) identifiers = {} identCount = 0 for t...
32.642857
202
0.633115
300f201e02c3f8249bc3a51638a26ed250b6c543
2,820
py
Python
plumbum/machines/base.py
octarinesec/plumbum
9645cd3b2ebd92ab3b5f657c5068384d60f8fb71
[ "MIT" ]
1
2018-09-10T10:01:25.000Z
2018-09-10T10:01:25.000Z
src/plumbum/machines/base.py
ownport/playbook
6d3196ddf68f2c3c3efc4a52e26719c3e5596dca
[ "MIT" ]
null
null
null
src/plumbum/machines/base.py
ownport/playbook
6d3196ddf68f2c3c3efc4a52e26719c3e5596dca
[ "MIT" ]
null
null
null
from plumbum.commands.processes import CommandNotFound from plumbum.commands.processes import ProcessExecutionError from plumbum.commands.processes import ProcessTimedOut class PopenAddons(object): """This adds a verify to popen objects to that the correct command is attributed when an error is thrown.""" ...
36.623377
93
0.611348
d8ac3c19e595d869c0a8c36ff7b69a431a0b5e98
511
py
Python
Python Programming/09. Collections Module/01-Counter.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
1
2021-07-15T18:40:26.000Z
2021-07-15T18:40:26.000Z
Python Programming/09. Collections Module/01-Counter.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
Python Programming/09. Collections Module/01-Counter.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
# A counter is a sub-class of the dictionary. It is used to keep # the count of the elements in an iterable in the form of an unordered # dictionary where the key represents the element in the iterable and # value represents the count of that element in the iterable. from collections import Counter # with a list of ...
30.058824
70
0.677104
9f47367c69dc5066280fb5ab8617693114889904
1,590
py
Python
Python Files/barchart.py
r-jain8/Job-Cred-Meter
2580bbdcd8cd2b3c53772dc4df588f111f2b29d8
[ "MIT" ]
null
null
null
Python Files/barchart.py
r-jain8/Job-Cred-Meter
2580bbdcd8cd2b3c53772dc4df588f111f2b29d8
[ "MIT" ]
null
null
null
Python Files/barchart.py
r-jain8/Job-Cred-Meter
2580bbdcd8cd2b3c53772dc4df588f111f2b29d8
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import requests import json import matplotlib.pyplot as plt #data=pandas.read_csv('ham.csv',sep=';',na_values='.') f=open("hamfeed.csv","r") g=open("list.csv","r") #file with names and ids of pages and groups list = {} #dictionary to store names and count of posts of any gr...
28.909091
113
0.618239
f3e6755d28064d0e98613def73e7b084c65f10cf
3,965
py
Python
tests/test_serializers.py
mikoblog/splitio-requests
c09b069e49f5224cbe3f892a5731c62885fd6151
[ "MIT" ]
null
null
null
tests/test_serializers.py
mikoblog/splitio-requests
c09b069e49f5224cbe3f892a5731c62885fd6151
[ "MIT" ]
4
2020-11-22T12:07:45.000Z
2021-03-26T23:44:12.000Z
tests/test_serializers.py
mikoblog/splitio-requests
c09b069e49f5224cbe3f892a5731c62885fd6151
[ "MIT" ]
null
null
null
import pytest import marshmallow from splitiorequests.serializers import ( load_split, load_splits, load_split_definition, load_split_definitions, load_environment, load_environments, load_workspaces, load_traffic_types, load_tags, load_segment, load_segment_keys ) class TestSerializers: def test_loa...
45.056818
98
0.768222
2db626ac8a2945d6b1a1709b8e87c14048e72085
1,057
py
Python
app/core/migrations/0004_recipe.py
cdcasey/recipe-app-api
3b9c54b01de82710a754741bcc74e0843149e6b1
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
cdcasey/recipe-app-api
3b9c54b01de82710a754741bcc74e0843149e6b1
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
cdcasey/recipe-app-api
3b9c54b01de82710a754741bcc74e0843149e6b1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-08-27 13:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_ingredient'), ] operations = [ migrations.CreateModel( name='Recipe', ...
35.233333
95
0.554399
9d1ad3f306d36e915ec0edf0fe4d8964ebbbce2c
6,489
py
Python
nats/aio/js/models/consumers.py
databasedav/nats.py
75aa768f4e2aae87f7a2820e2a76aa7eeff71f46
[ "Apache-2.0" ]
1
2022-01-18T05:26:13.000Z
2022-01-18T05:26:13.000Z
nats/aio/js/models/consumers.py
databasedav/nats.py
75aa768f4e2aae87f7a2820e2a76aa7eeff71f46
[ "Apache-2.0" ]
1
2021-11-05T23:16:21.000Z
2021-11-06T21:58:31.000Z
nats/aio/js/models/consumers.py
databasedav/nats.py
75aa768f4e2aae87f7a2820e2a76aa7eeff71f46
[ "Apache-2.0" ]
1
2021-12-09T19:49:57.000Z
2021-12-09T19:49:57.000Z
# Copyright 2021 - Guillaume Charbonnier # # 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 w...
26.703704
163
0.693019
ce1ac0c8d74aa4b8e7d88c938845f7296a65bfb4
5,496
py
Python
netapp/santricity/models/symbol/drive_temperature_data.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/drive_temperature_data.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/drive_temperature_data.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ DriveTemperatureData.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are ...
36.157895
844
0.636645
1c90379c9d3a16a11c3c15d38029fcbcd803a14c
8,219
py
Python
backend/config_app/config_orgues/config_app_styles.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_orgues/config_app_styles.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_orgues/config_app_styles.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_app_styles_config = [ ### TIERS LIEUX STYLES ### GLOBAL STYLES { "field" : "app_colors", ### COLOR INPUTS AS HEXA "content" : { ### DEFAULTS "navbar-border-color" : '#3D3A39' , #'#0...
49.215569
211
0.536318
523140c2701c94abce66f35bef2fd1657501ef4e
3,020
py
Python
fiddles/python/fiddle-0008-WikipediaScrapy/wikiSpider/wikiSpider/settings.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
48
2016-01-06T14:34:26.000Z
2021-07-14T16:10:36.000Z
fiddles/python/fiddle-0008-WikipediaScrapy/wikiSpider/wikiSpider/settings.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
311
2016-05-28T12:35:22.000Z
2022-03-25T14:57:06.000Z
fiddles/python/fiddle-0008-WikipediaScrapy/wikiSpider/wikiSpider/settings.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
33
2015-11-07T06:39:17.000Z
2020-12-22T18:59:14.000Z
# -*- coding: utf-8 -*- # Scrapy settings for wikiSpider project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/lat...
35.116279
109
0.786093
1b11266edf5ee39349fc6669c41a7b32cf726f28
14,802
py
Python
contrib/python/generate-manifest-2.6.py
andreimironenko/arago-oe-dev
4e1175f61be9d0dd68873e4847fe531e5f93b52a
[ "MIT" ]
70
2015-02-23T04:18:51.000Z
2022-03-15T02:01:27.000Z
contrib/python/generate-manifest-2.6.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
contrib/python/generate-manifest-2.6.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
88
2015-02-11T12:03:16.000Z
2022-03-30T11:33:42.000Z
#!/usr/bin/env python # generate Python Manifest for the OpenEmbedded build system # (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de> # (C) 2007 Jeremy Laine # licensed under MIT, see COPYING.MIT import os import sys import time VERSION = "2.6.6" __author__ = "Michael 'Mickey' Lauer <mlauer@vanille-me...
40.77686
177
0.601878
81864df9ab09674f67a9e3928f090e5ca1c4adfc
776
py
Python
src/rozbieznosci_if/migrations/0002_auto_20210323_0106.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/rozbieznosci_if/migrations/0002_auto_20210323_0106.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/rozbieznosci_if/migrations/0002_auto_20210323_0106.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.11 on 2021-03-23 00:06 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ("rozbieznosci_if", "0001_initial"), ] operations = [ migrations.AlterModelOptions( ...
25.032258
85
0.597938
8f3823c806fcd786f07fc0cbf6643ffb5e8cf4b7
11,565
py
Python
src/freedreno/vulkan/vk_format_parse.py
thermasol/mesa3d
6f1bc4e7edfface197ef281cffdf399b5389e24a
[ "MIT" ]
null
null
null
src/freedreno/vulkan/vk_format_parse.py
thermasol/mesa3d
6f1bc4e7edfface197ef281cffdf399b5389e24a
[ "MIT" ]
null
null
null
src/freedreno/vulkan/vk_format_parse.py
thermasol/mesa3d
6f1bc4e7edfface197ef281cffdf399b5389e24a
[ "MIT" ]
null
null
null
''' /************************************************************************** * * Copyright 2009 VMware, Inc. * All Rights Reserved. * * 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 Softwar...
29.730077
128
0.540164
01ac1d9a69ae76073b229968481418cfb5b669e9
2,717
py
Python
qa/rpc-tests/mempool_spendcoinbase.py
itgoldcoins/itgoldcoins
2373f5877d8294063ac89ff106d7fe2347b2f5cb
[ "MIT" ]
1
2019-04-25T07:56:04.000Z
2019-04-25T07:56:04.000Z
qa/rpc-tests/mempool_spendcoinbase.py
aron10/itgoldcoins
2373f5877d8294063ac89ff106d7fe2347b2f5cb
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_spendcoinbase.py
aron10/itgoldcoins
2373f5877d8294063ac89ff106d7fe2347b2f5cb
[ "MIT" ]
1
2019-04-25T07:56:08.000Z
2019-04-25T07:56:08.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Itgoldcoins Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test spending coinbase transactions. # The coinbase transaction in block N can appear in block # ...
40.552239
91
0.688995
b2ed13bb4ce1b590cffe5cf1f8023cf1a551359f
4,565
py
Python
setup.py
fair-data-austria/invenio-rdm-records
e4bb79e4d2bdaf3d57041db0e43aafb342d56179
[ "MIT" ]
null
null
null
setup.py
fair-data-austria/invenio-rdm-records
e4bb79e4d2bdaf3d57041db0e43aafb342d56179
[ "MIT" ]
null
null
null
setup.py
fair-data-austria/invenio-rdm-records
e4bb79e4d2bdaf3d57041db0e43aafb342d56179
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # Copyright (C) 2019-2020 Northwestern University. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """DataCite-based data model for Invenio.""" import o...
30.231788
82
0.617963
bcedf09913b157fc3455a2e389b241cd2edb8bfa
1,227
py
Python
source/assets/projectile.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
source/assets/projectile.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
4
2021-06-20T21:32:53.000Z
2021-08-12T11:12:17.000Z
source/assets/projectile.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from math import cos, sin, radians class Projectile(pygame.sprite.Sprite): def __init__(self, x_pos, y_pos, angle, screen, level_rules): pygame.sprite.Sprite.__init__(self) self.rules = level_rules self.speed = self.rules['speed'] self.da...
26.673913
72
0.615322
47d0a46d230375d40c2fc2dbd498bc6f2297ecf6
88
py
Python
utils/nn/modules/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2020-04-29T08:48:53.000Z
2020-12-23T10:11:39.000Z
utils/nn/modules/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
2
2020-01-11T08:31:06.000Z
2021-06-09T12:41:32.000Z
utils/nn/modules/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2019-11-20T02:49:03.000Z
2020-09-17T15:27:34.000Z
from .crf import * from .sparse import * from .attention import * from .linear import *
17.6
24
0.727273
a57aae50acccb08330c9107fe40a469c326622eb
3,155
py
Python
sdk/python/pulumi_aws/ec2/get_instances.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/get_instances.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/get_instances.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-08T15:05:29.000Z
2021-03-08T15:05:29.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 json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class GetInstancesResult: """ ...
43.819444
135
0.684628
721580c23f092c725d2c719314961754e4f035eb
522
py
Python
config.py
kangalah/News-Api
ded938d380f0291dc4bce84399d02fe7dc3c5ceb
[ "Unlicense" ]
null
null
null
config.py
kangalah/News-Api
ded938d380f0291dc4bce84399d02fe7dc3c5ceb
[ "Unlicense" ]
null
null
null
config.py
kangalah/News-Api
ded938d380f0291dc4bce84399d02fe7dc3c5ceb
[ "Unlicense" ]
null
null
null
import os class Config: NEWS_SOURCES_BASE_URL ='https://newsapi.org/v2/sources?language=en&apiKey=267d7fe5843144d9b8f75ea889ea51f7' ARTICLES_BASE_URL = 'https://newsapi.org/v2/top-headlines?sources=bbc-news&apiKey=267d7fe5843144d9b8f75ea889ea51f7' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') @staticm...
21.75
119
0.735632
0679c43c7a3fe9d82ff5bcde67e3b6db2f97b570
375
py
Python
pysyncgateway/__init__.py
constructpm/pysyncgateway
653db702b2f872e18fa15ab41920276ffc07aa45
[ "Apache-2.0" ]
2
2018-04-04T17:13:25.000Z
2018-07-21T13:30:42.000Z
pysyncgateway/__init__.py
constructpm/pysyncgateway
653db702b2f872e18fa15ab41920276ffc07aa45
[ "Apache-2.0" ]
14
2018-03-22T11:35:28.000Z
2021-11-12T17:46:54.000Z
pysyncgateway/__init__.py
constructpm/pysyncgateway
653db702b2f872e18fa15ab41920276ffc07aa45
[ "Apache-2.0" ]
1
2018-06-15T13:37:00.000Z
2018-06-15T13:37:00.000Z
from .admin_client import AdminClient from .database import Database from .document import Document from .query import Query from .session import Session from .stats import Stats from .user import User from .user_client import UserClient __all__ = [ "AdminClient", "Database", "Document", "Query", "...
18.75
37
0.701333
5e539a9ce4d14ed465c6d31a78c535730590df36
2,607
py
Python
examples/tdm/ant_position_and_velocity.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
56
2019-10-20T03:09:02.000Z
2022-03-25T09:21:40.000Z
examples/tdm/ant_position_and_velocity.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
3
2020-10-01T07:33:51.000Z
2021-05-12T03:40:57.000Z
examples/tdm/ant_position_and_velocity.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
10
2019-11-04T16:56:09.000Z
2022-03-25T09:21:41.000Z
import rlkit.torch.pytorch_util as ptu from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.exploration_strategies.base import \ PolicyWrappedWithExplorationStrategy from rlkit.exploration_strategies.ou_strategy import OUStrategy from rlkit.launchers.launcher_util import setup_logger from rlkit.torch.modules...
28.648352
75
0.644802
bdf5b78a838a2c4211d3c518cedb903c75d02baa
856
py
Python
PyGitUp/tests/test_fast_forwarded.py
hugovk/PyGitUp
c3da6c8db8628c1e23da22fe2fcbf5d96c6a7a44
[ "MIT" ]
431
2015-01-01T15:33:40.000Z
2022-03-02T22:41:06.000Z
PyGitUp/tests/test_fast_forwarded.py
hugovk/PyGitUp
c3da6c8db8628c1e23da22fe2fcbf5d96c6a7a44
[ "MIT" ]
86
2015-01-12T14:41:06.000Z
2021-10-02T14:30:09.000Z
PyGitUp/tests/test_fast_forwarded.py
hugovk/PyGitUp
c3da6c8db8628c1e23da22fe2fcbf5d96c6a7a44
[ "MIT" ]
38
2015-01-20T09:46:07.000Z
2021-10-12T02:06:31.000Z
# System imports import os from os.path import join from git import * from PyGitUp.tests import basepath, init_master, update_file test_name = 'fast-forwarded' repo_path = join(basepath, test_name + os.sep) def setup(): master_path, master = init_master(test_name) # Prepare master repo master.git.check...
21.4
60
0.695093
71249e2c4deaf856bcc1a8fe49bef144821f5a77
1,110
py
Python
notesapp/notes/migrations/0001_initial.py
KrishangSaharia/Notes-App
f246f068904b1145e5ef0280db9e0c5cfe5627f5
[ "MIT" ]
null
null
null
notesapp/notes/migrations/0001_initial.py
KrishangSaharia/Notes-App
f246f068904b1145e5ef0280db9e0c5cfe5627f5
[ "MIT" ]
null
null
null
notesapp/notes/migrations/0001_initial.py
KrishangSaharia/Notes-App
f246f068904b1145e5ef0280db9e0c5cfe5627f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-10-21 07:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ...
32.647059
114
0.574775
0b13a18eb5e3225758fbe9505a741acc8e371d99
14,585
py
Python
store/neo_wrapper.py
drorgarti/SatoriLab
6e57bad2c01d6ee8baa97f915abc001bed974785
[ "MIT" ]
1
2019-06-12T09:02:34.000Z
2019-06-12T09:02:34.000Z
store/neo_wrapper.py
drorgarti/SatoriLab
6e57bad2c01d6ee8baa97f915abc001bed974785
[ "MIT" ]
null
null
null
store/neo_wrapper.py
drorgarti/SatoriLab
6e57bad2c01d6ee8baa97f915abc001bed974785
[ "MIT" ]
null
null
null
import logging from utils.acurerate_utils import AcureRateUtils from enrichment.enrichment_service_config import EnrichmentServiceConfig from entities.acurerate_attributes import P, C, G from entities. acurerate_job import AcureRateJob from neo4j.v1 import GraphDatabase, basic_auth, CypherError class NeoWrapper(obj...
44.063444
164
0.569421
8a7c7c6eef229e4ec5b0c4a12331322bba5afab0
1,405
py
Python
src/darkslide/utils.py
santosh653/python-darkslide
248bf9dd5da9b0f26adecf46cd1f409d45b4a4db
[ "Apache-2.0" ]
82
2015-06-01T01:17:29.000Z
2022-01-28T18:33:03.000Z
src/darkslide/utils.py
santosh653/python-darkslide
248bf9dd5da9b0f26adecf46cd1f409d45b4a4db
[ "Apache-2.0" ]
25
2015-11-04T01:23:54.000Z
2022-01-30T14:53:09.000Z
src/darkslide/utils.py
santosh653/python-darkslide
248bf9dd5da9b0f26adecf46cd1f409d45b4a4db
[ "Apache-2.0" ]
28
2015-11-03T23:08:00.000Z
2022-01-20T17:21:56.000Z
# -*- coding: utf-8 -*- import base64 import mimetypes import os # add woff2 font type: not here by default... mimetypes.add_type('font/woff2', '.woff2') def get_path_url(path, relative=False): """ Returns an absolute or relative path url given a path """ if relative is False: return 'file://%s' ...
25.545455
77
0.639146
5be89e0d0c05bc599e3ae62d9c8cd64c9e54ba8e
3,809
py
Python
ds4se/vis.py
LeyliG/ds4se
ed8191cfb62c53a0ea9626a54f54f23bd31c3e59
[ "Apache-2.0" ]
1
2021-01-21T04:24:03.000Z
2021-01-21T04:24:03.000Z
ds4se/vis.py
LeyliG/ds4se
ed8191cfb62c53a0ea9626a54f54f23bd31c3e59
[ "Apache-2.0" ]
null
null
null
ds4se/vis.py
LeyliG/ds4se
ed8191cfb62c53a0ea9626a54f54f23bd31c3e59
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/5.0_vis.ipynb (unless otherwise specified). __all__ = ['get_contours', 'visualize_gt_ngt', 'visualize_events', 'plot_counts', 'vis_3d', 'reduce_dims', 'clusterize_w_entropy'] # Cell # Imports import matplotlib.pyplot as plt import numpy as np #from ds4se.des...
31.221311
137
0.658178
947c6e0de5460b8092ea60bfbf1152c4e065eaab
4,832
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/sensu_subscription.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/sensu_subscription.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/sensu_subscription.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Anders Ingemann <aim@secoya.dk> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: sensu_subscription ...
31.581699
97
0.632243
de3670b9425028ef4b1824ceda3be8e3e0f1eec0
21
py
Python
seglearn/_version.py
tylerwmarrs/seglearn
01fa65b3e326091671043f30c0310eead0e78bc2
[ "BSD-3-Clause" ]
9
2019-02-28T04:38:30.000Z
2021-07-31T03:04:56.000Z
seglearn/_version.py
tylerwmarrs/seglearn
01fa65b3e326091671043f30c0310eead0e78bc2
[ "BSD-3-Clause" ]
1
2019-08-01T09:14:41.000Z
2019-08-01T09:14:41.000Z
seglearn/_version.py
tylerwmarrs/seglearn
01fa65b3e326091671043f30c0310eead0e78bc2
[ "BSD-3-Clause" ]
3
2020-08-02T04:24:34.000Z
2022-03-07T13:41:36.000Z
__version__ = "1.0.9"
21
21
0.666667
826fce7312568cd240100637d3e5a86a1eeb25ac
6,789
py
Python
extract_heartrate_data.py
ddboline/garmin_scripts
08545d3a5de22014f4d57d8ae596af9d57ae9f0f
[ "MIT" ]
null
null
null
extract_heartrate_data.py
ddboline/garmin_scripts
08545d3a5de22014f4d57d8ae596af9d57ae9f0f
[ "MIT" ]
null
null
null
extract_heartrate_data.py
ddboline/garmin_scripts
08545d3a5de22014f4d57d8ae596af9d57ae9f0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import socket import traceback import webbrowser import datetime import requests import pandas as pd from dateutil.parser import parse from urllib.parse import urlencode from pytz import timezone from time import strftime, sleep from base64 import b64encode import fitbit f...
29.517391
91
0.580498
844c5afd226e1626cee6807a1eb512b4711e3282
1,906
py
Python
tests/unit/utils/test_get_synapse_team_ids.py
zaro0508/cfn-cr-synapse-tagger
c9f6f71aa2e9111f6e184c046b7851e7883feba5
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_get_synapse_team_ids.py
zaro0508/cfn-cr-synapse-tagger
c9f6f71aa2e9111f6e184c046b7851e7883feba5
[ "Apache-2.0" ]
10
2020-09-03T16:45:31.000Z
2021-01-29T18:10:44.000Z
tests/unit/utils/test_get_synapse_team_ids.py
zaro0508/cfn-cr-synapse-tagger
c9f6f71aa2e9111f6e184c046b7851e7883feba5
[ "Apache-2.0" ]
3
2020-09-02T16:21:05.000Z
2021-06-07T16:53:00.000Z
import unittest import boto3 from unittest.mock import patch from set_tags import utils from botocore.stub import Stubber MOCK_GET_PARAMETER_RESPONSE = { "Parameter": { "Name": "/service-catalog/TeamToRoleArnMap", "Type": "String", "Value": "[ {\"teamId\":\"1111111\",\"roleArn\":\"arn:aws:...
37.372549
124
0.681532
66589f6de5572dabf5fb21bc82269f2568ebd283
2,247
py
Python
tests/parsers/winreg_plugins/usb.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
1
2020-12-04T10:26:34.000Z
2020-12-04T10:26:34.000Z
tests/parsers/winreg_plugins/usb.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
tests/parsers/winreg_plugins/usb.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the USB Windows Registry plugin.""" from __future__ import unicode_literals import unittest from plaso.parsers.winreg_plugins import usb from tests.parsers.winreg_plugins import test_lib class USBPluginTest(test_lib.RegistryPluginTestCase): """Tests fo...
31.647887
73
0.728082
5a3ec07980e93e0bf85600800d15dbbad4ed9477
355
py
Python
Day 14/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
9
2021-03-02T12:16:24.000Z
2021-03-26T11:06:08.000Z
Day 14/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
65
2021-03-02T04:57:47.000Z
2021-04-02T19:31:30.000Z
Day 14/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
94
2021-03-02T04:42:28.000Z
2021-06-28T10:38:20.000Z
# To find whether a number is Perfect or not. # Perfect number is a positive integer which is equal to the sum of its proper positive divisors. num=0 sum=0; num = int(input("enter a number : ")) for i in range(0, num): if num%i==0: sum+=i if sum==num: print(sum," is a perfect number.") else: print...
25.357143
97
0.653521
89b979e1de000a5acf3e5900ffc0ad635ab8a376
62,228
py
Python
conf/city_code.py
zhoumh1988/12306
8ce07ea28d2eda88ca8af7bc2ccc5a2cadabe4c0
[ "MIT" ]
2
2021-03-18T11:19:49.000Z
2022-02-07T01:36:26.000Z
conf/city_code.py
zhoumh1988/12306
8ce07ea28d2eda88ca8af7bc2ccc5a2cadabe4c0
[ "MIT" ]
null
null
null
conf/city_code.py
zhoumh1988/12306
8ce07ea28d2eda88ca8af7bc2ccc5a2cadabe4c0
[ "MIT" ]
1
2022-02-07T01:35:59.000Z
2022-02-07T01:35:59.000Z
CITY_NAME = [ "北京北", "北京东", "北京", "北京南", "北京西", "广州南", "重庆北", "重庆", "重庆南", "重庆西", "广州东", "上海", "上海南", "上海虹桥", "上海西", "天津北", "天津", "天津南", "天津西", "香港西九龙", "长春", "长春南", "长春西", "成都东", "成都南", "成都", "长沙", "长沙南", ...
10.843004
102
0.261522
148f4e6a449fc65d325a9f306eb64f74fa4f17c2
943
py
Python
setup.py
NeoDrags/yash
189adf1dcb8baf06d183914dca9e928a93d08db3
[ "MIT" ]
4
2021-07-25T13:58:21.000Z
2021-10-19T08:57:49.000Z
setup.py
NeoDrags/yash
189adf1dcb8baf06d183914dca9e928a93d08db3
[ "MIT" ]
1
2021-05-24T12:03:35.000Z
2021-05-24T12:03:35.000Z
setup.py
NeoDrags/yash
189adf1dcb8baf06d183914dca9e928a93d08db3
[ "MIT" ]
null
null
null
from os import name from setuptools import setup, find_packages import pathlib HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup( name = "neosh", packages = ["neosh", "neosh.neosh", "neosh.themes"], version = "0.0.2", description = "Yet Another SHell written in pytho...
29.46875
65
0.639449
21aa0fdb8a35aafb73f4db1b6683022853976a5e
1,443
py
Python
T2/src/main.py
pedromsfernandes/VCOM1920
c50874c32e1e470bd30bed5b732737ac55ef40a5
[ "MIT" ]
null
null
null
T2/src/main.py
pedromsfernandes/VCOM1920
c50874c32e1e470bd30bed5b732737ac55ef40a5
[ "MIT" ]
null
null
null
T2/src/main.py
pedromsfernandes/VCOM1920
c50874c32e1e470bd30bed5b732737ac55ef40a5
[ "MIT" ]
1
2021-03-04T01:29:57.000Z
2021-03-04T01:29:57.000Z
import keras.backend.tensorflow_backend as tfback import tensorflow as tf import sys import os from task1 import task1_CNN, task1_BOVW from task2 import task2 from task3 import task3 def _get_available_gpus(): """Get a list of available gpu devices (formatted as strings). # Returns A list of availabl...
28.294118
121
0.644491
c293adbe6ba0a7121b5c62747c0b5538b898700a
2,549
py
Python
lib/sqlalchemy/dialects/mssql/zxjdbc.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
137
2015-01-12T19:29:04.000Z
2022-02-25T04:51:02.000Z
lib/sqlalchemy/dialects/mssql/zxjdbc.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
24
2015-01-06T08:36:13.000Z
2019-04-08T13:59:05.000Z
lib/sqlalchemy/dialects/mssql/zxjdbc.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
57
2015-01-01T00:42:44.000Z
2022-03-10T20:54:41.000Z
# mssql/zxjdbc.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Support for the Microsoft SQL Server database via the zxjdbc JDBC connector. JDBC ...
33.539474
84
0.675167
979ea6202598a555cee892771c4e0b5dc79574e2
22,676
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_azure_ad_administrators_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_azure_ad_administrators_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_azure_ad_administrators_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.072072
214
0.671062
bdcda2b61c398ec291118a658b3a6c1d2dcc8891
2,064
py
Python
src/watchpoints/watch_print.py
KikeM/watchpoints
d101035efef45bab7670e1a05a141c74c34c1f9e
[ "Apache-2.0" ]
null
null
null
src/watchpoints/watch_print.py
KikeM/watchpoints
d101035efef45bab7670e1a05a141c74c34c1f9e
[ "Apache-2.0" ]
null
null
null
src/watchpoints/watch_print.py
KikeM/watchpoints
d101035efef45bab7670e1a05a141c74c34c1f9e
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/watchpoints/blob/master/NOTICE.txt import sys import pprint import threading class WatchPrint: def __init__(self, file=sys.stderr, stack_limit=None): self.file = file ...
32.25
98
0.593508
d115e139038683711ae498195b5cbddebf51d4d8
1,840
py
Python
tests/command_line/test_stereographic_projections.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/command_line/test_stereographic_projections.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/command_line/test_stereographic_projections.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import json import os from pathlib import Path import procrunner from dials.command_line import stereographic_projection def test_stereographic_projection(dials_data, tmp_path): result = procrunner.run( ( "dials.stereographic_projection", dials...
25.915493
88
0.57337
f83458d1cc6ce0ec3cf05f6b66cc3b6ce0071af6
1,946
py
Python
awx/ui/conf.py
alexander-bauer/awx
d1319b739406dad988f97c41cb92093f180ba822
[ "Apache-2.0" ]
1
2018-02-25T17:56:18.000Z
2018-02-25T17:56:18.000Z
awx/ui/conf.py
alexander-bauer/awx
d1319b739406dad988f97c41cb92093f180ba822
[ "Apache-2.0" ]
null
null
null
awx/ui/conf.py
alexander-bauer/awx
d1319b739406dad988f97c41cb92093f180ba822
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. # Django from django.utils.translation import ugettext_lazy as _ # Tower from awx.conf import register, fields from awx.ui.fields import * # noqa register( 'PENDO_TRACKING_STATE', field_class=PendoTrackingStateField, choices=[ ('off', _(...
29.484848
89
0.649024
89956d6d83688671daf07fc4654ccb8c7253e830
1,459
py
Python
notebooks/boston_housing_hmc.py
janosh/thermo
0202a47ec8abacfd49b065ddd13ad060b0b9a1a3
[ "MIT" ]
9
2019-10-08T20:47:30.000Z
2021-11-20T07:51:25.000Z
notebooks/boston_housing_hmc.py
janosh/thermo
0202a47ec8abacfd49b065ddd13ad060b0b9a1a3
[ "MIT" ]
4
2021-12-10T12:42:20.000Z
2022-03-01T21:24:18.000Z
notebooks/boston_housing_hmc.py
janosh/thermo
0202a47ec8abacfd49b065ddd13ad060b0b9a1a3
[ "MIT" ]
3
2019-10-28T21:50:24.000Z
2021-11-10T18:41:20.000Z
""" This notebook essentially runs an end-to-end test comparing RF vs MAP NN vs HMC NN performance on the simple Boston housing dataset. """ # %% import tensorflow as tf import tensorflow_probability as tfp from thermo.bnn.hmc import hmc_predict from thermo.bnn.map import map_predict from thermo.plots import plot_ou...
22.446154
83
0.722413
6707c043dbf346da6bf6fc253bf44c0a9c57ec70
5,209
py
Python
backend/tests/unit/client/schemas/test_transaction.py
sdediego/blockchain
786246c3fc4d80a827d5a6f54e2257b836cc1cf3
[ "MIT" ]
null
null
null
backend/tests/unit/client/schemas/test_transaction.py
sdediego/blockchain
786246c3fc4d80a827d5a6f54e2257b836cc1cf3
[ "MIT" ]
null
null
null
backend/tests/unit/client/schemas/test_transaction.py
sdediego/blockchain
786246c3fc4d80a827d5a6f54e2257b836cc1cf3
[ "MIT" ]
null
null
null
# encoding: utf-8 import json import random import uuid from pydantic import ValidationError from src.client.models.utils import get_utcnow_timestamp from src.client.models.wallet import Wallet from src.client.schemas.transaction import TransactionSchema from tests.unit.client.utilities import ClientMixin class Tr...
39.165414
106
0.645997
a8473e56e01831113f3cc5bd2604adaa6442e259
2,450
py
Python
alipay/aop/api/domain/AlipayEcoEduCampusJobPublishModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
32
2018-05-24T08:40:15.000Z
2019-04-04T20:54:55.000Z
alipay/aop/api/domain/AlipayEcoEduCampusJobPublishModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
7
2018-05-24T08:42:59.000Z
2020-09-06T23:18:46.000Z
alipay/aop/api/domain/AlipayEcoEduCampusJobPublishModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
13
2018-04-25T11:27:58.000Z
2021-03-15T12:22:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEcoEduCampusJobPublishModel(object): def __init__(self): self._gmt_expired = None self._gmt_refresh = None self._source_code = None self._source_id = None ...
28.488372
73
0.597551
0878b1422bcfaa568440194feb90c7363c24bd1b
312
py
Python
scratch/picnic.py
kaiiam/biosys-analytics
dd2d176c7006274b5abc5ba1c070720c328d4fce
[ "MIT" ]
null
null
null
scratch/picnic.py
kaiiam/biosys-analytics
dd2d176c7006274b5abc5ba1c070720c328d4fce
[ "MIT" ]
null
null
null
scratch/picnic.py
kaiiam/biosys-analytics
dd2d176c7006274b5abc5ba1c070720c328d4fce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """docstring""" import os import sys items = sys.argv[1:] def main(): items = [] while(True): item = input('What are you bringing? ["quit" to quit] ') items.append(item) if item == 'quit': break print('You are bringing {}'.format(items)) main()
15.6
62
0.567308
59d3c3e2363556500052529ae5f75040caa51a5c
27,496
py
Python
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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...
44.928105
102
0.650822
061ffe83487304ef52d05637d4aaffaa35b94777
2,883
py
Python
neodroid/messaging/networking_utils.py
cnHeider/neo
30c03bb142bbe25f6d7b61f22f66747076f08aa6
[ "Apache-2.0" ]
null
null
null
neodroid/messaging/networking_utils.py
cnHeider/neo
30c03bb142bbe25f6d7b61f22f66747076f08aa6
[ "Apache-2.0" ]
null
null
null
neodroid/messaging/networking_utils.py
cnHeider/neo
30c03bb142bbe25f6d7b61f22f66747076f08aa6
[ "Apache-2.0" ]
1
2018-09-27T14:31:20.000Z
2018-09-27T14:31:20.000Z
from threading import Thread import zmq from .FlatBufferModels import FlatBufferState as FlatBufferState from .FlatBufferUtilities import build_flat_reaction, create_state _connected = False _waiting_for_response = False _ctx = zmq.Context.instance() _req_socket = _ctx.socket(zmq.REQ) _use_inter_process_communicatio...
31
72
0.732917
d25e843c9c76c09d8c307489e5a5968cc1eea021
3,442
py
Python
iDict/iDict/iDict.py
gaufung/CodeBase
0292b06cfe002b3ad0299e43bb51192816a02c74
[ "MIT" ]
1
2018-10-06T23:50:53.000Z
2018-10-06T23:50:53.000Z
iDict/iDict.py
gaufung/iDict
9ff1d1dcb473d8a28bbea61a4fad207f76ab7408
[ "MIT" ]
null
null
null
iDict/iDict.py
gaufung/iDict
9ff1d1dcb473d8a28bbea61a4fad207f76ab7408
[ "MIT" ]
1
2018-10-06T23:50:50.000Z
2018-10-06T23:50:50.000Z
""" iDict is a command line tool for look up word by local database or from bing dict """ import sys import argparse import os import logging from termcolor import colored from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from iDict.parser import BingParser, DbParser from iDict.word import Ba...
37.010753
115
0.604881
94fe841efd8d577e06a83f7475866ec1676bfe0c
1,615
py
Python
setup.py
leandro-ro/aea-ledger-ethereum-tud
55ff0405da1f6ee47b9b6f527099ff31e71de330
[ "Apache-2.0" ]
null
null
null
setup.py
leandro-ro/aea-ledger-ethereum-tud
55ff0405da1f6ee47b9b6f527099ff31e71de330
[ "Apache-2.0" ]
null
null
null
setup.py
leandro-ro/aea-ledger-ethereum-tud
55ff0405da1f6ee47b9b6f527099ff31e71de330
[ "Apache-2.0" ]
1
2022-01-31T07:45:26.000Z
2022-01-31T07:45:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
35.888889
81
0.617957
18d4b9a6965764c2118379c4871f5d34a847a259
178
py
Python
tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
5
2019-02-15T16:47:50.000Z
2021-12-26T18:52:23.000Z
tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
null
null
null
tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
2
2021-08-09T02:29:09.000Z
2021-08-20T03:30:11.000Z
from djmodels.db import migrations class Migration(migrations.Migration): replaces = [ ("migrations", "0001_initial"), ("migrations", "0002_second"), ]
19.777778
39
0.640449
8b7a2ffd3f6df47cfad55d1ed4f3684d6597de80
9,652
py
Python
src/game.py
dphennessy/BrassLands
085c2ea1732f669eb7198c33aa6776a37a729749
[ "MIT" ]
2
2019-02-11T18:11:11.000Z
2019-02-26T11:25:00.000Z
src/game.py
dphennessy/BrassLands
085c2ea1732f669eb7198c33aa6776a37a729749
[ "MIT" ]
9
2019-02-11T07:39:55.000Z
2019-03-28T19:32:45.000Z
src/game.py
dphennessy/BrassLands
085c2ea1732f669eb7198c33aa6776a37a729749
[ "MIT" ]
7
2019-02-15T13:17:48.000Z
2019-02-26T13:16:27.000Z
# libraries import pygame as pg import json from config import Config # Class meant to be inherited by anything that should display a tooltip when hovered over class Hover: def __init__(self, name, description, icon=Config['resources']['ui']['icons']['default']): # Fetches resources needed font =...
38.150198
118
0.604952
75f1de2902bcd7196f2a06a98f403cb757baef98
18,945
py
Python
rpython/jit/backend/llsupport/test/test_regalloc.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/backend/llsupport/test/test_regalloc.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/backend/llsupport/test/test_regalloc.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
import py from rpython.jit.metainterp.history import BoxInt, ConstInt, BoxFloat, INT, FLOAT,\ BoxPtr from rpython.jit.backend.llsupport.regalloc import FrameManager, LinkedList from rpython.jit.backend.llsupport.regalloc import RegisterManager as BaseRegMan def newboxes(*values): return [BoxInt(v) for v in va...
33.236842
92
0.566376
90a992b5a21d6304a3d60244d0770775e08a1d37
436
py
Python
Python3/1081-Smallest-Subsequence-of-Distinct-Characters/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1081-Smallest-Subsequence-of-Distinct-Characters/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1081-Smallest-Subsequence-of-Distinct-Characters/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def smallestSubsequence(self, text: str) -> str: last = {ch : i for i, ch in enumerate(text)} stack = [] ins = set() for i, ch in enumerate(text): if ch not in ins: while stack and ch < stack[-1] and last[stack[-1]] > i: ...
33.538462
71
0.479358
0b5cfac3ace322443006c40333851b3d3c92f890
2,076
py
Python
Threading In Python/Locks/locks_doesnot_lock_any_thing.py
abdelrhman-adel-ahmed/concurrency-parallelism-Programming
6267d5502189bb11ceade7244bcd1c7222388c51
[ "MIT" ]
null
null
null
Threading In Python/Locks/locks_doesnot_lock_any_thing.py
abdelrhman-adel-ahmed/concurrency-parallelism-Programming
6267d5502189bb11ceade7244bcd1c7222388c51
[ "MIT" ]
null
null
null
Threading In Python/Locks/locks_doesnot_lock_any_thing.py
abdelrhman-adel-ahmed/concurrency-parallelism-Programming
6267d5502189bb11ceade7244bcd1c7222388c51
[ "MIT" ]
null
null
null
""" A primitive lock is in one of two states, "locked" or "unlocked". It is created in the unlocked state. It has two basic methods, acquire() and release(). When the state is unlocked, acquire() changes the state to locked and returns immediately. When the state is locked, acquire() blocks until a call to release(...
32.952381
136
0.716281
60fc6ab10401878451f19075d5472b1cf8b7b6e2
1,358
py
Python
test_get_types.py
mconlon17/vivo-foundation
202f458bc72fb76c7d89240091c4fb00522cfe3f
[ "BSD-3-Clause" ]
null
null
null
test_get_types.py
mconlon17/vivo-foundation
202f458bc72fb76c7d89240091c4fb00522cfe3f
[ "BSD-3-Clause" ]
1
2015-04-04T01:38:51.000Z
2015-04-04T01:38:51.000Z
tools/test_get_types.py
mconlon17/vivo-1.5-improvement
44d8335eb7bbe518374a53c0e1f9f39014023ee7
[ "BSD-3-Clause" ]
null
null
null
""" test_get_types.py -- Given a URI, get the types Version 0.1 MC 2014-06-21 -- Initial version. Version 0.2 MC 2014-07-25 -- Updated for Tools 2.0 """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2014, University of Florida" __license__ = "BSD 3-Clause license" __version__ = "0.2" ...
23.016949
61
0.735641
15d7b2d27338bdade9c2a746833380bab2f07093
4,059
py
Python
revoice/pyin.py
tuxzz/roca_prototype
cd2ba182b7b81c56314766f2f95ed2d9dd844dd6
[ "Apache-2.0" ]
null
null
null
revoice/pyin.py
tuxzz/roca_prototype
cd2ba182b7b81c56314766f2f95ed2d9dd844dd6
[ "Apache-2.0" ]
null
null
null
revoice/pyin.py
tuxzz/roca_prototype
cd2ba182b7b81c56314766f2f95ed2d9dd844dd6
[ "Apache-2.0" ]
null
null
null
import numpy as np from .common import * from . import yin def normalized_pdf(a, b, begin, end, number): x = np.arange(0, number, dtype = np.float64) * ((end - begin) / number) v = np.power(x, a - 1.0) * np.power(1.0 - x, b - 1.0) for i in range(2, len(v) + 1): i = len(v) - i if(v[i] < v[i...
39.407767
151
0.542991
65d7989c3fcb68dda20a0ffb237110c07cf31248
20,654
py
Python
toontown/pets/PetBrain.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
toontown/pets/PetBrain.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
toontown/pets/PetBrain.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from panda3d.core import * from libtoontown import * from direct.showbase.PythonUtil import weightedChoice, randFloat, Functor from direct.showbase.PythonUtil import list2dict from direct.showbase import DirectObject from direct.distributed import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal f...
36.685613
117
0.589135
6b0384d1d81262d417397561fc846315d54b1594
33
py
Python
Week 3: Real numbers/3 (22).py
MLunov/Python-programming-basics-HSE
7df8bba105db84d6b932c454fdc39193a648254e
[ "MIT" ]
null
null
null
Week 3: Real numbers/3 (22).py
MLunov/Python-programming-basics-HSE
7df8bba105db84d6b932c454fdc39193a648254e
[ "MIT" ]
null
null
null
Week 3: Real numbers/3 (22).py
MLunov/Python-programming-basics-HSE
7df8bba105db84d6b932c454fdc39193a648254e
[ "MIT" ]
null
null
null
print(input().replace('@', ''))
16.5
32
0.515152
6af412a24710e80b8d6d8e61ed9d54e47e2312cf
86
py
Python
rest_access_policy/__init__.py
tanonl/drf-access-policy
acd2ef74bd30981ffae671360c1f5edea5cd1982
[ "MIT" ]
null
null
null
rest_access_policy/__init__.py
tanonl/drf-access-policy
acd2ef74bd30981ffae671360c1f5edea5cd1982
[ "MIT" ]
null
null
null
rest_access_policy/__init__.py
tanonl/drf-access-policy
acd2ef74bd30981ffae671360c1f5edea5cd1982
[ "MIT" ]
null
null
null
from .exceptions import AccessPolicyException from .access_policy import AccessPolicy
28.666667
45
0.883721
f5afd9d590a4201c1a511d3fb66f55918b2b34fd
847
py
Python
generate_gt.py
Zhonghao2016/SNIPER
33f721a36f568b7a60b93562d87c30853e4aa06b
[ "Apache-2.0" ]
1
2021-02-18T16:55:54.000Z
2021-02-18T16:55:54.000Z
generate_gt.py
Zhonghao2016/SNIPER
33f721a36f568b7a60b93562d87c30853e4aa06b
[ "Apache-2.0" ]
null
null
null
generate_gt.py
Zhonghao2016/SNIPER
33f721a36f568b7a60b93562d87c30853e4aa06b
[ "Apache-2.0" ]
null
null
null
import csv import os import pdb ''' words = lines.split(',') imid = words[0] classid = self._class_to_ind_image[words[1]] x1 = float(words[2]) y1 = float(words[3]) x2 = float(words[4]) y2 = float(words[5]) crowd = int(words[6]) ...
28.233333
77
0.571429
04be678c56f7838e6a542019c6eaa0b017a49f70
4,922
py
Python
setup.py
jab/pytest-flask
41f985ffdb469a487bf1fba9f0386b7a63cddaa5
[ "MIT" ]
null
null
null
setup.py
jab/pytest-flask
41f985ffdb469a487bf1fba9f0386b7a63cddaa5
[ "MIT" ]
null
null
null
setup.py
jab/pytest-flask
41f985ffdb469a487bf1fba9f0386b7a63cddaa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ pytest-flask ============ A set of `pytest <https://docs.pytest.org>`_ fixtures to test Flask extensions and applications. Features -------- Plugin provides some fixtures to simplify app testing: - ``client`` - an instance of ``app.test_client``, - ``client_class`` - ``client`` fixture for...
28.125714
78
0.658879
61e37e9ce2d63fe590b3ef4b6bc0cba88228a180
51,828
py
Python
grblas/matrix.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
null
null
null
grblas/matrix.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
null
null
null
grblas/matrix.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
null
null
null
import itertools import warnings import numpy as np from . import _automethods, backend, binary, ffi, lib, monoid, semiring, utils from ._ss.matrix import ss from .base import BaseExpression, BaseType, call from .dtypes import _INDEX, lookup_dtype, unify from .exceptions import NoValue, check_status from .expr import...
37.665698
100
0.544474
30a2c524f55c57dc6b52b295ecabf12fe060fcd4
52
py
Python
src/LacosDeRepeticao/for/exemplo-for 2-0.py
santa-python/python-workshop
00a17b96218625933681df85f73268326adbeb22
[ "MIT" ]
1
2019-03-16T14:49:27.000Z
2019-03-16T14:49:27.000Z
src/LacosDeRepeticao/for/exemplo-for 2-0.py
santa-python/python-workshop
00a17b96218625933681df85f73268326adbeb22
[ "MIT" ]
null
null
null
src/LacosDeRepeticao/for/exemplo-for 2-0.py
santa-python/python-workshop
00a17b96218625933681df85f73268326adbeb22
[ "MIT" ]
null
null
null
for i in range(5): print(i) # 0 # 1 # 2 # 3 # 4
6.5
18
0.442308
7be0b5761a0b33dcb957230b6c9a376315639944
479
py
Python
data/text/metadata2raw.py
egirgin/cmpe493-term-project
8af20fe33bf3b18d1b8bd66159da7559fe3387a3
[ "MIT" ]
null
null
null
data/text/metadata2raw.py
egirgin/cmpe493-term-project
8af20fe33bf3b18d1b8bd66159da7559fe3387a3
[ "MIT" ]
null
null
null
data/text/metadata2raw.py
egirgin/cmpe493-term-project
8af20fe33bf3b18d1b8bd66159da7559fe3387a3
[ "MIT" ]
null
null
null
import pandas as pd metadata = pd.read_csv("./data/text/metadata.csv", low_memory=False) raw_data = metadata[["cord_uid", "title", "abstract"]] print("Original shape: " + str(raw_data.shape)) with open("./data/doc_list.txt" ,"r") as docFile: doc_list = docFile.readlines() doc_list = list(map(lambda x: x[:-1], ...
23.95
68
0.697286
bafc38d6fc5b9561e728cfa6adcb1cb2a5f145f1
5,808
py
Python
core/preprocess_test.py
yekeren/Cap2Det
727b3025f666e2053b3bbf94cf18f9ab56fb1599
[ "Apache-2.0" ]
32
2019-07-30T11:46:31.000Z
2022-03-30T07:38:03.000Z
core/preprocess_test.py
yekeren/Cap2Det
727b3025f666e2053b3bbf94cf18f9ab56fb1599
[ "Apache-2.0" ]
33
2019-07-28T21:58:28.000Z
2022-03-11T23:54:44.000Z
core/preprocess_test.py
yekeren/Cap2Det
727b3025f666e2053b3bbf94cf18f9ab56fb1599
[ "Apache-2.0" ]
11
2019-07-30T11:46:16.000Z
2021-09-08T20:58:14.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from google.protobuf import text_format import os import cv2 from core import preprocess from protos import preprocess_pb2 _TESTDATA = "testdata" _TESTFILE = "114144.jpg" _TMPDIR = "tm...
33
78
0.614325
7168fdbc7d87b6c2af0b4dcc9974ba06fefc57dd
963
py
Python
steemexchange/deep_eq.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
1
2017-04-08T05:08:35.000Z
2017-04-08T05:08:35.000Z
steemexchange/deep_eq.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
null
null
null
steemexchange/deep_eq.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
null
null
null
def deep_eq(_v1, _v2): import operator import types def _deep_dict_eq(d1, d2): k1 = sorted(d1.keys()) k2 = sorted(d2.keys()) if k1 != k2: # keys should be exactly equal return False return sum(deep_eq(d1[k], d2[k]) for k in k1) == len(k1) def _deep_iter_eq(...
26.75
82
0.554517
6ae63ca292b1b18856424f4364423b93970d6624
1,515
py
Python
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_create_artifact_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_create_artifact_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_create_artifact_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
32.934783
85
0.768317
675719b1765f6a976e411657fb798de94180f6c5
3,930
py
Python
examples/asr/speech_to_text_infer.py
ttyio/NeMo
ad0edf2e6910b7b6de3ae93fba9b728f6479c50e
[ "Apache-2.0" ]
1
2021-01-26T21:54:36.000Z
2021-01-26T21:54:36.000Z
examples/asr/speech_to_text_infer.py
aiskumo/NeMo
b51a39f9834ad50db77c4246aeb6e2349695add5
[ "Apache-2.0" ]
null
null
null
examples/asr/speech_to_text_infer.py
aiskumo/NeMo
b51a39f9834ad50db77c4246aeb6e2349695add5
[ "Apache-2.0" ]
2
2021-02-04T14:45:50.000Z
2021-02-04T14:56:05.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.910891
119
0.695929
0ce74d8e5fe02fb630c722b208a5b443f2ba942c
4,684
py
Python
sauce.py
brunogenaro/webex-js-sdk
c32ff65d1b8b2e45e682fea5335ff4df5d758fd1
[ "MIT" ]
null
null
null
sauce.py
brunogenaro/webex-js-sdk
c32ff65d1b8b2e45e682fea5335ff4df5d758fd1
[ "MIT" ]
null
null
null
sauce.py
brunogenaro/webex-js-sdk
c32ff65d1b8b2e45e682fea5335ff4df5d758fd1
[ "MIT" ]
null
null
null
import csv import os import subprocess import threading # Gather the packages to test. PREFIX = './packages/node_modules/' CISCOSPARK = os.path.join(PREFIX, '@ciscospark') WEBEX = os.path.join(PREFIX, '@webex') PROD_ENV_VARS = { 'CONVERSATION_SERVICE': 'https://conv-a.wbx2.com/conversation/api/v1', 'ENCRYPTION_S...
34.441176
117
0.720111
e5397fc5e247d992922943daff3096634e31cc47
2,985
py
Python
paasta_tools/mesos/task.py
sobolevn/paasta
8b87e0b13816c09b3d063b6d3271e6c7627fd264
[ "Apache-2.0" ]
1,711
2015-11-10T18:04:56.000Z
2022-03-23T08:53:16.000Z
paasta_tools/mesos/task.py
sobolevn/paasta
8b87e0b13816c09b3d063b6d3271e6c7627fd264
[ "Apache-2.0" ]
1,689
2015-11-10T17:59:04.000Z
2022-03-31T20:46:46.000Z
paasta_tools/mesos/task.py
sobolevn/paasta
8b87e0b13816c09b3d063b6d3271e6c7627fd264
[ "Apache-2.0" ]
267
2015-11-10T19:17:16.000Z
2022-02-08T20:59:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.421053
87
0.666667
0a0ef0d4018e1eb8e64caf05cc7062d1ba94d7bb
2,374
py
Python
testcases/technical_ratio_test.py
daxlab/pyalgotrade
5517c2644da97e7ef143d344d813232d6845a29f
[ "Apache-2.0" ]
1,000
2016-01-26T12:10:11.000Z
2022-03-01T23:59:50.000Z
testcases/technical_ratio_test.py
daxlab/pyalgotrade
5517c2644da97e7ef143d344d813232d6845a29f
[ "Apache-2.0" ]
22
2016-01-26T15:14:09.000Z
2019-01-30T02:36:38.000Z
testcases/technical_ratio_test.py
daxlab/pyalgotrade
5517c2644da97e7ef143d344d813232d6845a29f
[ "Apache-2.0" ]
613
2016-01-27T01:02:30.000Z
2022-03-21T01:38:58.000Z
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
32.972222
79
0.655434
67809467ca214294ee5948431422cf8f56a2d356
3,861
py
Python
hsdecomp/infer.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
99
2016-01-05T00:43:33.000Z
2021-08-06T15:23:34.000Z
hsdecomp/infer.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
5
2017-12-29T09:02:56.000Z
2020-12-07T01:54:19.000Z
hsdecomp/infer.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
21
2016-01-27T21:24:41.000Z
2020-11-28T09:11:18.000Z
from hsdecomp import show, optimize from hsdecomp.types import * bool_type = EnumType(constructor_names = {1: 'False', 2: 'True'}, complete = True) known_types = { 'ghczmprim_GHCziClasses_zeze_info': FunctionType(arg = UnknownType(), result = FunctionType(arg = UnknownType(), result = FunctionType(arg = UnknownTy...
54.380282
182
0.644911
15774919e869b1cc197dd28853c9be59d63d903d
954
py
Python
axcell/pipeline_logger.py
Kabongosalomon/axcell
f9c74910561f6064a04a10118824c99e871f8a38
[ "Apache-2.0" ]
335
2020-05-07T19:57:36.000Z
2022-03-16T07:05:51.000Z
axcell/pipeline_logger.py
doc22940/axcell
b41c1623377d89c3c45a61907f0a47ea029269de
[ "Apache-2.0" ]
16
2020-06-12T16:43:29.000Z
2021-11-24T11:19:09.000Z
axcell/pipeline_logger.py
doc22940/axcell
b41c1623377d89c3c45a61907f0a47ea029269de
[ "Apache-2.0" ]
50
2020-05-07T20:35:18.000Z
2022-02-16T06:37:31.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import re class PipelineLogger: def __init__(self): self.observers = [] def reset(self): self.observers = [] def register(self, pattern, observer): if isinstance(pattern, str): pattern = re.compi...
28.909091
113
0.601677
17fd0827c1c6c66041d22c32854bdaf76a00be79
19,288
py
Python
AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2021-08-08T19:54:51.000Z
2021-08-08T19:54:51.000Z
AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
2
2022-01-13T04:29:38.000Z
2022-03-12T01:05:31.000Z
AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test case ID : C4976201 # Test Case Title : Verify that the value assigned to the Mass of the object, gets a...
50.624672
155
0.663262
1a445ca6f37cd4d17a568d56c7337c882a76710d
237
py
Python
deepdanbooru/model/__init__.py
fredgido/DeepDanbooru
044a92472bd153e227287be29c6f32ce7feb28a6
[ "MIT" ]
4
2020-04-01T09:55:31.000Z
2022-01-07T08:40:52.000Z
deepdanbooru/model/__init__.py
Amaotomiyabi/DeepDanbooru
bf98806390ced6e78e8d4a05e006c1216bf48508
[ "MIT" ]
null
null
null
deepdanbooru/model/__init__.py
Amaotomiyabi/DeepDanbooru
bf98806390ced6e78e8d4a05e006c1216bf48508
[ "MIT" ]
1
2020-11-25T06:54:52.000Z
2020-11-25T06:54:52.000Z
import deepdanbooru.model.layers import deepdanbooru.model.losses from .resnet import create_resnet_152 from .resnet import create_resnet_custom_v1 from .resnet import create_resnet_custom_v2 from .resnet import create_resnet_custom_v3
29.625
43
0.877637
f8a096bb6e9d7cfb1beb7447fbd542d8288d0406
8,766
py
Python
tests/test_md_utils.py
deklanw/obsidiantools
8c1903021438f3a421592ab3444bbb25ab47cc36
[ "CNRI-Python", "RSA-MD" ]
59
2021-09-14T01:19:56.000Z
2022-03-30T18:49:30.000Z
tests/test_md_utils.py
deklanw/obsidiantools
8c1903021438f3a421592ab3444bbb25ab47cc36
[ "CNRI-Python", "RSA-MD" ]
9
2021-10-30T11:58:05.000Z
2022-03-01T21:02:53.000Z
tests/test_md_utils.py
deklanw/obsidiantools
8c1903021438f3a421592ab3444bbb25ab47cc36
[ "CNRI-Python", "RSA-MD" ]
8
2021-09-18T15:00:28.000Z
2022-02-22T14:53:57.000Z
import pytest from glob import glob from obsidiantools.md_utils import (_get_all_wikilinks_from_html_content, _get_all_embedded_files_from_html_content, _get_unique_wikilinks, _get_all_md_link_info_from_ascii_pl...
37.948052
192
0.645562
3b1de371bb2a003671dcb9b06c6888c73c65fcfc
399
py
Python
backend_crm/wsgi.py
mobius-labs/app
bdf8226d8b16cea609a7af01be51c9bd4b867ab3
[ "MIT" ]
1
2021-11-13T10:52:08.000Z
2021-11-13T10:52:08.000Z
backend_crm/wsgi.py
mobius-labs/app
bdf8226d8b16cea609a7af01be51c9bd4b867ab3
[ "MIT" ]
1
2021-11-13T04:25:00.000Z
2021-11-13T04:25:00.000Z
backend_crm/wsgi.py
mobius-labs/app
bdf8226d8b16cea609a7af01be51c9bd4b867ab3
[ "MIT" ]
null
null
null
""" WSGI config for backend_crm project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
ceccf9b5b0611ccbab6c623abe05486b99fb93a2
26,013
py
Python
PcmPy/model.py
DiedrichsenLab/PcmPy
4d9e476793f628c8529906103c3cbee50e7915a8
[ "MIT" ]
4
2019-09-20T15:16:33.000Z
2022-02-07T20:46:38.000Z
PcmPy/model.py
DiedrichsenLab/PcmPy
4d9e476793f628c8529906103c3cbee50e7915a8
[ "MIT" ]
1
2022-03-11T20:49:47.000Z
2022-03-11T20:49:47.000Z
PcmPy/model.py
DiedrichsenLab/PcmPy
4d9e476793f628c8529906103c3cbee50e7915a8
[ "MIT" ]
1
2021-11-17T18:40:48.000Z
2021-11-17T18:40:48.000Z
import numpy as np from numpy import exp, eye, log, sqrt from numpy.linalg import solve, eigh, cholesky, pinv import PcmPy as pcm import pandas as pd class Model: """ Abstract PCM Model Class """ def __init__(self,name): """ Args: name ([str]): Name of the the model ...
34.182654
143
0.557414
49e71f1e2ad18751b402845c07470d98f7f082a4
1,087
py
Python
ICA .py
tusharmishra288/Dimensionality-reduction
af6f89f6c52a050fe1f8c7e16c27b91c4b88ee7e
[ "Apache-2.0" ]
2
2020-03-26T10:02:00.000Z
2020-04-24T17:14:42.000Z
ICA .py
tusharmishra288/Dimensionality-reduction
af6f89f6c52a050fe1f8c7e16c27b91c4b88ee7e
[ "Apache-2.0" ]
null
null
null
ICA .py
tusharmishra288/Dimensionality-reduction
af6f89f6c52a050fe1f8c7e16c27b91c4b88ee7e
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.decomposition import FastICA as ICA import sklearn.model_selection as k r=pd.read_csv('bank_contacts.csv') x=r.drop('credit_application',axis=1) y=r['credit_application'] train_x,test_x,train_y,te...
33.96875
84
0.792088
c2aa804ea0832731f9951100edd6e124171be484
1,113
py
Python
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/__init__.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/__init__.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/__init__.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. """A console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. The secondary task of ranger is to figure out which p...
29.289474
78
0.7646
c9a9ce1e275a310d7727a9187f45dd120a47dd0a
236
py
Python
python/users/urls.py
Sult/dnd_social
ecbc5b3e847e74b29e9b05478f68566f03ef34e8
[ "MIT" ]
4
2018-09-10T14:02:23.000Z
2021-07-17T20:58:50.000Z
python/users/urls.py
SocialBuddies/dnd_social
993950ac59d394c1a0268cf6e87a63193f7bd3a7
[ "MIT" ]
null
null
null
python/users/urls.py
SocialBuddies/dnd_social
993950ac59d394c1a0268cf6e87a63193f7bd3a7
[ "MIT" ]
null
null
null
from django.urls import path from users import views app_name = 'users' urlpatterns = [ path('', views.index, name='index'), path('guest/', views.guest, name='guest'), path('logout/', views.user_logout, name='logout'), ]
19.666667
54
0.65678
307627959bcdb07749f768da4348e882915bf13d
1,129
py
Python
Calibration/HcalAlCaRecoProducers/python/ALCARECOHcalCalHBHEMuon_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Calibration/HcalAlCaRecoProducers/python/ALCARECOHcalCalHBHEMuon_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Calibration/HcalAlCaRecoProducers/python/ALCARECOHcalCalHBHEMuon_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # output block for alcastream HCAL HBHEMuon # output module # module alcastreamHcalHBHEMuonOutput = PoolOutputModule OutALCARECOHcalCalHBHEMuon_noDrop = cms.PSet( # use this in case of filter available SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstr...
34.212121
75
0.708592
964588b3ece992bfd2ef0d20d03dafbef605a52e
530
py
Python
nmt/collections.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
7
2018-09-10T03:49:06.000Z
2020-06-15T06:10:28.000Z
nmt/collections.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
1
2019-02-18T10:01:44.000Z
2019-02-18T10:01:44.000Z
nmt/collections.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
1
2018-09-15T05:49:31.000Z
2018-09-15T05:49:31.000Z
import tensorflow as tf ITERATOR = "dataset_iterator" def add_to_collection(key, value): tf.add_to_collection(key, value) def get_from_collection(key): return tf.get_collection(key) def add_dict_to_collection(name, _dict): for k, v in _dict.items(): tf.add_to_collection(name + "_key", k) ...
22.083333
48
0.701887
4a2294c64152cf6107175b8ad3ae9351af9474d5
3,667
py
Python
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
""" FIND FIRST CHARACTER THAT REPEATS Create a function that takes a string and returns the first character that repeats. If there is no repeat of a character, then return '-1' (string). Examples: - first_repeat('legolas') -> 'l' - first_repeat('Gandalf') -> 'a' - first_repeat('Balrog') -> '-1' - firs...
34.59434
260
0.647123
1484dec531733e5fada9e44b36612d5004cd17bb
510
py
Python
regularexp20.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
regularexp20.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
regularexp20.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Create A Regular Expression To Search At The Ending Of A String By Ignoring The Case ''' Function Name : Regular Expression To Search String Using re.IGNORECASE Function Date : 29 Sep 2020 Function Author : Prasad Dangare Input : String Output : String ''' ...
28.333333
105
0.64902
42d091a2337ba12830b807ad12dec1cb54053c58
1,149
py
Python
pyrep/robots/arms/manipulator.py
taitoushiyun/PyRep
ed9c2ca82f54ab3b88f6736031c43ce8afcd26b9
[ "MIT" ]
null
null
null
pyrep/robots/arms/manipulator.py
taitoushiyun/PyRep
ed9c2ca82f54ab3b88f6736031c43ce8afcd26b9
[ "MIT" ]
null
null
null
pyrep/robots/arms/manipulator.py
taitoushiyun/PyRep
ed9c2ca82f54ab3b88f6736031c43ce8afcd26b9
[ "MIT" ]
null
null
null
from pyrep.robots.arms.arm import Arm from pyrep.objects.collision import Collision from pyrep.objects.dummy import Dummy from pyrep.objects.shape import Shape from typing import List, Tuple class Manipulator(Arm): def __init__(self, count=0, name='manipulator', num_joints=12, collision_cnt= 15): super()...
37.064516
106
0.684943
0c4066277fdfa71f9946906f6640db47a8253b1d
14,483
py
Python
lemur/plugins/lemur_acme/tests/test_acme.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_acme/tests/test_acme.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_acme/tests/test_acme.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
import unittest from mock import MagicMock, Mock, patch from lemur.plugins.lemur_acme import plugin class TestAcme(unittest.TestCase): @patch('lemur.plugins.lemur_acme.plugin.dns_provider_service') def setUp(self, mock_dns_provider_service): self.ACMEIssuerPlugin = plugin.ACMEIssuerPlugin() ...
45.11838
117
0.683215
c84e4e6f094e0e62ac0113a9453a044e151f4a7e
1,115
py
Python
tests/lowlevel/mount.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
tests/lowlevel/mount.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
tests/lowlevel/mount.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
import seamless from seamless.core import macro_mode_on from seamless.core import context, cell, transformer import os os.makedirs("/tmp/mount-test", exist_ok=True) with macro_mode_on(): ctx = context(toplevel=True) ctx.cell1 = cell().set(1) ctx.cell2 = cell().set(2) ctx.result = cell() ctx.tf = t...
28.589744
75
0.659193
5985bae2dd1f53f43440f3070377fdedb954c3d1
1,462
py
Python
motion.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
1
2022-03-23T07:13:58.000Z
2022-03-23T07:13:58.000Z
motion.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
null
null
null
motion.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
null
null
null
import numpy as np # ---------------------------------------------------------------------------------------------- # # --------------------------------- ODOMETRY MOTION MODEL -------------------------------------- # # ----------------------------------------------------------------------------------------------...
34.809524
100
0.400821
74a485bae55fbd91e6b68d25035ddc0cc55e7089
13,287
py
Python
scripts/s3/migrate_to_external_accounts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
scripts/s3/migrate_to_external_accounts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
scripts/s3/migrate_to_external_accounts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
import logging import os import sys import urlparse from modularodm import Q from modularodm.exceptions import NoResultsFound from framework.mongo import database from framework.transactions.context import TokuTransaction from website import settings from website.app import init_app from website.models import User, ...
40.263636
165
0.625499
2c4cee124a79aa82a21b5f9b51b2fa2837461fbf
3,433
py
Python
nlpir/__init__.py
lihea/nlpir-python
62bae60ff93c5f3447d26c2817bbbdce40445cc5
[ "MIT" ]
null
null
null
nlpir/__init__.py
lihea/nlpir-python
62bae60ff93c5f3447d26c2817bbbdce40445cc5
[ "MIT" ]
null
null
null
nlpir/__init__.py
lihea/nlpir-python
62bae60ff93c5f3447d26c2817bbbdce40445cc5
[ "MIT" ]
null
null
null
# coding : utf-8 import os import typing import re import logging import sys import functools __version__ = "0.0.1" PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__)) logger = logging.getLogger("nlpir") class NLPIRException(Exception): pass def clean_logs(data_path: typing.Optional[str] = None, include_c...
32.695238
109
0.687154
415e8dc55ec17899315a208fa9eba2ce10e1e5dc
144
py
Python
HanderCode/aidaiwangApp/aidaiwangApp/ChangePassword_from_aidaiwangApp.py
mocne/PycharmProjects
b009e530f4f01e5b1826bbe2364d86b65bcd66e3
[ "MIT" ]
null
null
null
HanderCode/aidaiwangApp/aidaiwangApp/ChangePassword_from_aidaiwangApp.py
mocne/PycharmProjects
b009e530f4f01e5b1826bbe2364d86b65bcd66e3
[ "MIT" ]
null
null
null
HanderCode/aidaiwangApp/aidaiwangApp/ChangePassword_from_aidaiwangApp.py
mocne/PycharmProjects
b009e530f4f01e5b1826bbe2364d86b65bcd66e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'aidai_TEC_QA' # -*- date:'2017/8/1 0001' -*- def start_to_changepassword(): print(u'change password')
24
30
0.638889
10eb83f297ee075de917f16728d8d265ecb4f2db
5,965
py
Python
src/cli.py
TheBossProSniper/electric-windows
0c41bb4c7da614ef193b314a92ed98f9cd893da2
[ "Apache-2.0" ]
210
2021-03-03T05:26:46.000Z
2022-02-21T17:25:06.000Z
src/cli.py
TheBossProSniper/electric-windows
0c41bb4c7da614ef193b314a92ed98f9cd893da2
[ "Apache-2.0" ]
7
2021-03-22T14:25:48.000Z
2022-03-18T04:29:22.000Z
src/cli.py
TheBossProSniper/electric-windows
0c41bb4c7da614ef193b314a92ed98f9cd893da2
[ "Apache-2.0" ]
9
2021-03-11T15:46:36.000Z
2021-09-21T09:13:58.000Z
###################################################################### # SUPERCHARGECLI (EXTENSIONS) # ###################################################################### # -*- coding: utf-8 -*- """ Extension for the python ``click`` module to provide a group with a ...
32.955801
87
0.591618
93f5f6192d3c9986958c7769c0cf82aab9f413aa
26
py
Python
imgtda/locally_striped/__init__.py
rachellevanger/tda-image-analysis
5560e6ec9e2b7b74f91cad25a9cdefa1df172711
[ "MIT" ]
6
2017-04-08T19:46:14.000Z
2019-11-12T04:43:10.000Z
imgtda/locally_striped/__init__.py
rachellevanger/tda-image-analysis
5560e6ec9e2b7b74f91cad25a9cdefa1df172711
[ "MIT" ]
1
2019-08-23T21:20:03.000Z
2019-08-23T21:20:03.000Z
imgtda/locally_striped/__init__.py
rachellevanger/tda-image-analysis
5560e6ec9e2b7b74f91cad25a9cdefa1df172711
[ "MIT" ]
null
null
null
from image import Image
6.5
23
0.769231
0c54caf6d281e4add6a83c8fdf437a92dfcda757
6,247
py
Python
singlepath/plot_singlepath.py
LARG/regression-importance-sampling
8cf2acf9313ab270c192fda29e1d5c1db68c2acc
[ "MIT" ]
8
2019-06-06T17:56:08.000Z
2021-11-27T05:42:40.000Z
singlepath/plot_singlepath.py
LARG/regression-importance-sampling
8cf2acf9313ab270c192fda29e1d5c1db68c2acc
[ "MIT" ]
1
2020-12-21T16:08:01.000Z
2021-01-04T13:53:48.000Z
singlepath/plot_singlepath.py
LARG/regression-importance-sampling
8cf2acf9313ab270c192fda29e1d5c1db68c2acc
[ "MIT" ]
6
2019-06-14T00:18:31.000Z
2022-02-05T21:50:27.000Z
"""Plot singlepath results.""" from __future__ import print_function from __future__ import division import os import argparse import numpy as np from matplotlib import pyplot as plt import results_pb2 parser = argparse.ArgumentParser() parser.add_argument('result_directory', help='Result directory with results to lo...
30.473171
106
0.582199
371fc9d09ea3eda96514da7afe64c2d3d161f4d5
1,167
py
Python
layers/activation.py
colinrgodsey/sm-depth
01fef37fe35c88964b358f2c4203e6490aa818ee
[ "MIT" ]
null
null
null
layers/activation.py
colinrgodsey/sm-depth
01fef37fe35c88964b358f2c4203e6490aa818ee
[ "MIT" ]
null
null
null
layers/activation.py
colinrgodsey/sm-depth
01fef37fe35c88964b358f2c4203e6490aa818ee
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.utils import get_custom_objects class Clampazzo(tf.keras.layers.Layer): def __init__(self, beta=1., **kwargs): super(Clampazzo, self).__init__(**kwargs) self.beta = beta def get_config(self): config = { 'beta': self.beta } config.update(supe...
23.816327
69
0.664953
b0d65d8fe8a120207bca38eb4b807e47d2c4f590
1,307
py
Python
tests/classification/logistic_regression.py
MartinBCN/BasicML
7ad7bd075c62d883143dd10b54c80287d06a99b0
[ "MIT" ]
null
null
null
tests/classification/logistic_regression.py
MartinBCN/BasicML
7ad7bd075c62d883143dd10b54c80287d06a99b0
[ "MIT" ]
null
null
null
tests/classification/logistic_regression.py
MartinBCN/BasicML
7ad7bd075c62d883143dd10b54c80287d06a99b0
[ "MIT" ]
null
null
null
import unittest import numpy as np from src.classification.logistic_regression import LogReg class TestStringMethods(unittest.TestCase): def setUp(self): self.X = np.random.randn(100, 4) self.Y = np.random.randn(100, 2) self.lr = LogReg() self.lr.initialize_weights(self.X, self.Y...
29.704545
63
0.555471
d66c62cfa935a0919db959b1e85bdf7a70bb7156
2,093
py
Python
tests/functional/test_59_delete.py
tomberek/liberaforms
5830acea9d456208ae612c6c548eb35c2d3c4106
[ "MIT" ]
null
null
null
tests/functional/test_59_delete.py
tomberek/liberaforms
5830acea9d456208ae612c6c548eb35c2d3c4106
[ "MIT" ]
null
null
null
tests/functional/test_59_delete.py
tomberek/liberaforms
5830acea9d456208ae612c6c548eb35c2d3c4106
[ "MIT" ]
null
null
null
""" This file is part of LiberaForms. # SPDX-FileCopyrightText: 2021 LiberaForms.org # SPDX-License-Identifier: AGPL-3.0-or-later """ import os import pytest from liberaforms.models.form import Form from liberaforms.models.answer import Answer, AnswerAttachment from liberaforms.models.log import FormLog from .utils i...
38.054545
79
0.555184