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
d5ab4988e7871ee69682e36554918210cbdcc91a
37,491
py
Python
oss_src/unity/python/sframe/util/cloudpickle.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/unity/python/sframe/util/cloudpickle.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/unity/python/sframe/util/cloudpickle.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (C) 2015 Dato, Inc. All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. ''' """ This class is defined to override standard pickle functionality The goals of it follow: -Serialize lambdas and nested functions to compile...
37.193452
144
0.619055
30e0368287de7918f586e68038890e4315f548b4
250
py
Python
students/K33402/Beresnev_Andrey/practical2.3/django_project_beresnev/project_first_app/forms.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33402/Beresnev_Andrey/practical2.3/django_project_beresnev/project_first_app/forms.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33402/Beresnev_Andrey/practical2.3/django_project_beresnev/project_first_app/forms.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
from django import forms from .models import Car, Owner class AddCarForm(forms.ModelForm): class Meta: model = Car fields = [ "brand", "model", "color", "plate_number" ]
15.625
34
0.496
f307a8a9ba0dee1a00e2a362e176a0730d62ae4a
955
py
Python
architect.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
11
2019-08-12T07:47:03.000Z
2021-06-07T06:14:49.000Z
architect.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
1
2020-01-30T09:50:15.000Z
2020-01-31T00:51:37.000Z
architect.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
2
2019-08-12T08:54:36.000Z
2020-02-29T11:47:44.000Z
import torch import numpy as np import torch.nn as nn class Architect () : def __init__(self, model, args): self.network_momentum = args.momentum self.network_weight_decay = args.weight_decay self.model = model self.optimizer = torch.optim.Adam(self.model.arch_parameters(), ...
31.833333
89
0.651309
1b31ded4c61f4c9c7ef4942289ff6ca6ecc766db
8,183
py
Python
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_MPLS_LSR_EXT_STD_MIB.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_MPLS_LSR_EXT_STD_MIB.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_MPLS_LSR_EXT_STD_MIB.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" CISCO_MPLS_LSR_EXT_STD_MIB Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved. This MIB module contains generic object definitions for MPLS LSR in transport networks. """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity...
43.759358
295
0.618111
d68bdec232d69055000ccd0752df89bb8016b49d
284
py
Python
Lista_Introducao/Lista 1/Ex9.py
beatrizdaddea/Ex.Python
052cfa4f31c90d83d1904f8c63abfdbe8181177c
[ "MIT" ]
null
null
null
Lista_Introducao/Lista 1/Ex9.py
beatrizdaddea/Ex.Python
052cfa4f31c90d83d1904f8c63abfdbe8181177c
[ "MIT" ]
null
null
null
Lista_Introducao/Lista 1/Ex9.py
beatrizdaddea/Ex.Python
052cfa4f31c90d83d1904f8c63abfdbe8181177c
[ "MIT" ]
null
null
null
"""9.Escreva uma expressão para determinar se uma pessoa deve ou não pagar imposto. Considere que pagam imposto pessoas cujo salário é maior que R$ 1.200,00""" salario = float(input("Digite seu salário: ")) pagar_imposto = salario > 1200 print("Vai pagar imporsto: ", pagar_imposto)
47.333333
159
0.757042
268acb15a53985085e8d1c12f2c24bcc829820b3
1,373
py
Python
assignment_fourteen_2021_10_21/student.py
Soyvolon/CISS_380
81ba41ef45ba8f4a4cfc55f9e20b87c5feddba08
[ "Unlicense" ]
null
null
null
assignment_fourteen_2021_10_21/student.py
Soyvolon/CISS_380
81ba41ef45ba8f4a4cfc55f9e20b87c5feddba08
[ "Unlicense" ]
null
null
null
assignment_fourteen_2021_10_21/student.py
Soyvolon/CISS_380
81ba41ef45ba8f4a4cfc55f9e20b87c5feddba08
[ "Unlicense" ]
null
null
null
# 2. Write Python program that will allow a professor to maintain a list of # students for a given course. The program should contain a basic Student # class with attributes for the first name, last name and test score. Write # the basic __init__, __str__ methods and get and set methods for the attributes. class Stude...
32.690476
86
0.631464
f389570f741fd6171adb3290a92791527b196bef
715
py
Python
10082/wertyu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
10082/wertyu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
10082/wertyu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
correct = ['1','2','3','4','5','6','7','8','9','0','-','=','W','E', 'R','T','Y','U','I','O','P','[',']',chr(92),'S','D','F','G','H','J', 'K','L',';',"'",'X','C','V','B','N','M',',','.','/',' ']; new = ['`','1','2','3','4','5','6','7','8','9','0','-','Q','W','E', 'R','T','Y','U','I','O','P','[',']','A','S','D','F'...
21.666667
69
0.359441
a88e844197a3f2fab279a323db19e11eea7421f6
450
py
Python
blousebrothers/catalogue/migrations/0011_product_for_sale.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/catalogue/migrations/0011_product_for_sale.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/catalogue/migrations/0011_product_for_sale.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-10-31 15:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogue', '0010_product_conf'), ] operations = [ migrations.AddField( ...
21.428571
53
0.615556
d73bed8faa822a28420b4783c3b9f615c58a490c
495
py
Python
tarambay/tarambay/users/migrations/0005_auto_20150816_0329.py
radeinla/tarambay
7146ce785a8844f3c2dc229c713722bb63d78200
[ "MIT" ]
null
null
null
tarambay/tarambay/users/migrations/0005_auto_20150816_0329.py
radeinla/tarambay
7146ce785a8844f3c2dc229c713722bb63d78200
[ "MIT" ]
null
null
null
tarambay/tarambay/users/migrations/0005_auto_20150816_0329.py
radeinla/tarambay
7146ce785a8844f3c2dc229c713722bb63d78200
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import uuid from django.db import models, migrations def add_uuid(apps, schema_editor): Invited = apps.get_model('users', 'Invited') for invited in Invited.objects.all(): invited.uuid = u'' + str(uuid.uuid1().hex) invited.save() ...
20.625
50
0.648485
0c3652fcd12d22c721bd95a9a010be5065904305
6,706
py
Python
scripts/eval_tuned.py
qai222/CompAugCycleGAN
1a9d54237f4470a4fd5ab215993ed5b373a87e86
[ "CC-BY-4.0" ]
null
null
null
scripts/eval_tuned.py
qai222/CompAugCycleGAN
1a9d54237f4470a4fd5ab215993ed5b373a87e86
[ "CC-BY-4.0" ]
null
null
null
scripts/eval_tuned.py
qai222/CompAugCycleGAN
1a9d54237f4470a4fd5ab215993ed5b373a87e86
[ "CC-BY-4.0" ]
null
null
null
import glob import logging import os.path import pprint from collections import Counter from cacgan.data import FormulaDataset, GroupAB from cacgan.gans import Trainer from cacgan.utils import * """ evaluate the tuned model download the tuned model from https://doi.org/10.5281/zenodo.5721355 (you can also use `zenodo...
37.049724
120
0.632717
5038099c197ea2e6216b975ae00632e830277481
3,911
py
Python
web/tron-sql/deploy/db_create.py
b01lers/bootcamp-2020
6246c6ecb7c7e2c3a2a275e367cc9bf8469e610c
[ "MIT" ]
22
2020-10-05T01:10:51.000Z
2021-07-14T03:22:37.000Z
web/tron-sql/deploy/db_create.py
b01lers/bootcamp-2020
6246c6ecb7c7e2c3a2a275e367cc9bf8469e610c
[ "MIT" ]
null
null
null
web/tron-sql/deploy/db_create.py
b01lers/bootcamp-2020
6246c6ecb7c7e2c3a2a275e367cc9bf8469e610c
[ "MIT" ]
1
2020-10-05T10:00:35.000Z
2020-10-05T10:00:35.000Z
#!/usr/bin/env python3 import MySQLdb import random import csv from time import sleep import os def get_name(name_list): name = name_list[random.randint(0, len(name_list) - 1)] name += "-" + str(round(random.random()*9999, 4)) return name def get_loc(to_derezz=False): value_list = ["unknown", "game...
28.34058
120
0.625671
872f3879c2ddc76ca0eca99df5eb48ed7953a325
17
py
Python
Python/IK.py
KobayashiRui/Robot_kinematics
0282cb4f5a2d65a2bd2db3a011c4a21562f1d5b7
[ "MIT" ]
1
2021-02-26T04:39:57.000Z
2021-02-26T04:39:57.000Z
Python/IK.py
KobayashiRui/Robot_kinematics
0282cb4f5a2d65a2bd2db3a011c4a21562f1d5b7
[ "MIT" ]
null
null
null
Python/IK.py
KobayashiRui/Robot_kinematics
0282cb4f5a2d65a2bd2db3a011c4a21562f1d5b7
[ "MIT" ]
null
null
null
# 逆運動学の実装(数値解析)
5.666667
15
0.647059
2fe3f0314e88d229a584838c40b261dffeaf2749
109
py
Python
10. Inheritance - Exercise/players_and_monsters_03/project/blade_knight.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-27T16:56:30.000Z
2021-03-27T16:56:30.000Z
10. Inheritance - Exercise/players_and_monsters_03/project/blade_knight.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
null
null
null
10. Inheritance - Exercise/players_and_monsters_03/project/blade_knight.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-15T14:50:39.000Z
2021-03-15T14:50:39.000Z
from players_and_monsters_03.project.dark_knight import DarkKnight class BladeKnight(DarkKnight): pass
18.166667
66
0.834862
b14465f083a0abe7f408a877b419561168781b54
4,140
py
Python
ccx_messaging/downloaders/http_downloader.py
tisnik/insights-ccx-messaging
4d601673079a9242cdb7572b165b8a5af6d64f7f
[ "Apache-2.0" ]
1
2022-02-10T13:24:23.000Z
2022-02-10T13:24:23.000Z
ccx_messaging/downloaders/http_downloader.py
tisnik/insights-ccx-messaging
4d601673079a9242cdb7572b165b8a5af6d64f7f
[ "Apache-2.0" ]
13
2022-02-10T07:46:34.000Z
2022-02-24T09:44:59.000Z
ccx_messaging/downloaders/http_downloader.py
tisnik/insights-ccx-messaging
4d601673079a9242cdb7572b165b8a5af6d64f7f
[ "Apache-2.0" ]
3
2022-02-09T11:24:18.000Z
2022-03-07T10:41:54.000Z
# Copyright 2022 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
33.658537
90
0.624155
921291d658142cb6d4d16997cac1e7026acf4d4e
264
py
Python
src/main/resources/docs/tests/E1004.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/E1004.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/E1004.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
##Patterns: E1004 class OldStyleClass(object): def __init__(self): pass class AnotherOldStyleClass(OldStyleClass): def __init__(self): ##Err: E1004 super().__init__() # Marking this file as Python 2 raise Exception, "lala"
24
42
0.651515
db8267a7c40403d16bf95db2810b9e9a813c18d3
5,445
py
Python
metis_lib/kong.py
CS-METIS/minimetis
74c0bca0d12d7ba810095c26a45b4929cebb7541
[ "Apache-2.0" ]
5
2021-08-24T08:31:39.000Z
2022-02-02T14:37:56.000Z
metis_lib/kong.py
CS-METIS/minimetis
74c0bca0d12d7ba810095c26a45b4929cebb7541
[ "Apache-2.0" ]
null
null
null
metis_lib/kong.py
CS-METIS/minimetis
74c0bca0d12d7ba810095c26a45b4929cebb7541
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List, Optional import os import requests from metis_lib import service class Kong: def __init__( self, kong_url: str = f"http://{os.environ.get('DOMAIN', 'localhost')}:8001" ) -> None: self.kong_url = kong_url def wait_ready(self, timeout: Optional[float] = N...
35.588235
127
0.570983
6281313dd4936bdfc24c6b816134fbc582842a72
921
py
Python
setup.py
aryangulati/codemod
41d6eabad7b055a83923150efd5518813831c9a5
[ "Apache-2.0" ]
3,811
2015-02-12T07:04:37.000Z
2021-06-09T13:13:37.000Z
setup.py
aryangulati/codemod
41d6eabad7b055a83923150efd5518813831c9a5
[ "Apache-2.0" ]
86
2015-02-12T00:10:12.000Z
2021-04-22T22:30:40.000Z
setup.py
aryangulati/codemod
41d6eabad7b055a83923150efd5518813831c9a5
[ "Apache-2.0" ]
175
2015-02-16T23:24:37.000Z
2021-05-27T09:22:19.000Z
try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages description = ( 'Codemod is a tool/library to assist you with large-scale codebase ' 'refactors that can be partially automated but still require human ' 'oversight and occasional in...
27.909091
72
0.693811
6d5156ad6720958a039d54b798d5d83dad1fb42c
256
py
Python
src/05_Numbers/02_int_method.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
5
2021-05-29T23:30:50.000Z
2022-01-15T16:35:20.000Z
src/05_Numbers/02_int_method.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
null
null
null
src/05_Numbers/02_int_method.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
4
2021-03-18T17:48:06.000Z
2021-07-22T19:32:36.000Z
# Instructions: Insert the correct syntax to convert x into a integer. x = 5.5 # Solution: int() x = int(x) print(x) ''' The int() method can be used to transform a float to an int. Read more here: https://www.w3schools.com/python/python_numbers.asp '''
21.333333
70
0.707031
96e95045edf2464764ac853feff246e386e19138
41,344
py
Python
xmpp_tg/xmpp.py
vitlav/tg4xmpp
97a65c2f49288504c88d079ba3585de98c77385f
[ "Apache-2.0" ]
8
2017-12-25T09:11:30.000Z
2020-11-16T14:50:51.000Z
xmpp_tg/xmpp.py
vitlav/tg4xmpp
97a65c2f49288504c88d079ba3585de98c77385f
[ "Apache-2.0" ]
5
2017-12-23T12:21:49.000Z
2021-11-20T19:30:19.000Z
xmpp_tg/xmpp.py
vitlav/tg4xmpp
97a65c2f49288504c88d079ba3585de98c77385f
[ "Apache-2.0" ]
6
2018-01-05T12:00:58.000Z
2020-04-03T17:01:22.000Z
import re, sys, os, io, sqlite3, hashlib, time, datetime import xml.etree.ElementTree as ET from sleekxmpp.componentxmpp import ComponentXMPP from sleekxmpp import Presence, Message from telethon.tl.functions.messages import GetDialogsRequest, SendMessageRequest, SendMediaRequest, EditMessageRequest, DeleteMessagesRe...
50.419512
297
0.552511
54a737b706882ec2c5b07c8d80bd9ae75056fdd9
3,516
py
Python
pirates/tutorial/ShipWreck.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/tutorial/ShipWreck.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/tutorial/ShipWreck.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.tutorial.ShipWreck from direct.interval.IntervalGlobal import * from direct.gui.DirectGui import * from direct.actor import Acto...
38.637363
104
0.677474
2354522b60138b91831be0296f32c2ac92f818e2
3,704
py
Python
Backend/Murphi/MurphiModular/Types/Enums/SubEnums/GenArchEnums.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
1
2022-01-12T15:52:07.000Z
2022-01-12T15:52:07.000Z
Backend/Murphi/MurphiModular/Types/Enums/SubEnums/GenArchEnums.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
null
null
null
Backend/Murphi/MurphiModular/Types/Enums/SubEnums/GenArchEnums.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
1
2021-12-14T18:03:37.000Z
2021-12-14T18:03:37.000Z
# Copyright (c) 2021. Nicolai Oswald # Copyright (c) 2021. University of Edinburgh # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above c...
46.3
106
0.705994
2922ff7b550fb71b93270b533afec554e0e117c1
4,207
py
Python
clothings/views.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
clothings/views.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
clothings/views.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from django.core import serializers from django.core.urlresolvers import reverse_lazy from django.db.models import Q from django.views.generic.base import View from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView from django.views.generi...
27.141935
100
0.60851
7d3370bb1c4584f51c6da9ecc4c8341670ac45f2
585
py
Python
2019/8.py
20Koen02/adventofcode
72f897b280ced4cdd2b72ff7182795e3c7ee9aa7
[ "MIT" ]
6
2021-12-01T16:39:29.000Z
2021-12-10T14:00:03.000Z
2019/8.py
20Koen02/adventofcode
72f897b280ced4cdd2b72ff7182795e3c7ee9aa7
[ "MIT" ]
null
null
null
2019/8.py
20Koen02/adventofcode
72f897b280ced4cdd2b72ff7182795e3c7ee9aa7
[ "MIT" ]
1
2021-12-09T12:42:11.000Z
2021-12-09T12:42:11.000Z
import numpy as np def getInput(): with open("inout/8_input.txt") as f: lines = f.read() return lines.strip() def main(): lines = getInput() w = 25 h = 6 pixels = w * h layers = len(lines) // pixels data = np.zeros((h, w, 3), dtype=np.uint8) for i in range(pixels): ...
18.870968
75
0.466667
25ad92e96f65c0541d7d4495d689d1c023720017
11,564
py
Python
src/algorithms/utils.py
jbustospelegri/breast_cancer_diagnosis
38eb990ef716912c6acabb443e6eb5c21d9b4e0d
[ "MIT" ]
5
2022-02-10T12:36:41.000Z
2022-03-23T17:28:35.000Z
src/algorithms/utils.py
jbustospelegri/breast_cancer_diagnosis
38eb990ef716912c6acabb443e6eb5c21d9b4e0d
[ "MIT" ]
null
null
null
src/algorithms/utils.py
jbustospelegri/breast_cancer_diagnosis
38eb990ef716912c6acabb443e6eb5c21d9b4e0d
[ "MIT" ]
1
2022-03-16T10:41:17.000Z
2022-03-16T10:41:17.000Z
import pandas as pd import numpy as np import utils.config as conf from multiprocessing import Queue from typing import Union, io from sklearn.metrics import roc_curve from sklearn.utils import resample from tensorflow.keras import models from tensorflow.keras.preprocessing.image import Iterator from tensorflow.kera...
50.942731
120
0.695866
728be79cae9f01d3de6e37197947c599ff13cbef
9,357
py
Python
accounts/views.py
SiddharthKumar02/Acko_1.0
9d84b3aefc6416b58ccfbdbe061f46a91e99ec57
[ "MIT" ]
1
2022-02-04T00:19:05.000Z
2022-02-04T00:19:05.000Z
accounts/views.py
SiddharthKumar02/Acko_1.0
9d84b3aefc6416b58ccfbdbe061f46a91e99ec57
[ "MIT" ]
3
2018-12-17T09:42:18.000Z
2021-06-10T21:04:20.000Z
accounts/views.py
SiddharthKumar02/Acko_1.0
9d84b3aefc6416b58ccfbdbe061f46a91e99ec57
[ "MIT" ]
4
2018-12-15T06:42:43.000Z
2019-10-24T13:00:20.000Z
import json import ast from django.contrib.auth import authenticate, login from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework import status from r...
34.400735
104
0.599124
5b3defae893c9fb4c6e05601b53e7ef4598bb398
4,251
py
Python
kubernetes/client/models/v2alpha1_cron_job_status.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
kubernetes/client/models/v2alpha1_cron_job_status.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
kubernetes/client/models/v2alpha1_cron_job_status.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
27.425806
105
0.586685
c2b89b3403da66e212a4c162f1cf3ba517000d22
2,209
py
Python
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import sys import copy def findVertexGroup(vertex,index): if vertex[index] != index: path = [index] index = vertex[index] while vertex[index] != index: path.append(index) index = vertex[index] for i in path: ...
31.112676
84
0.549117
5126ee86067923ea8b7c8dcca9d34c87b9a80578
513
py
Python
cracking_the_code/chapter1/Q1.1_is_unique.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
61
2020-09-26T19:57:44.000Z
2022-03-09T18:51:44.000Z
cracking_the_code/chapter1/Q1.1_is_unique.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
88
2020-09-19T20:00:27.000Z
2021-10-31T09:41:57.000Z
cracking_the_code/chapter1/Q1.1_is_unique.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
218
2020-09-20T08:18:03.000Z
2022-01-30T23:13:16.000Z
ALPHLEN = 128 def is_unique(string): if len(string) > ALPHLEN: return False else: alph = [0 for x in range(ALPHLEN)] for c in string: if alph[ord(c)] == 1: return False else: alph[ord(c)] = 1 return True if __name__ == '...
19.730769
66
0.534113
0b360580ba992f47635834ae7f1b34f2c736f7de
26,742
py
Python
mktoExportActivities.py
i001962/py-marketo-extract
fee1b46c251962dc9cedd487caec2a3dcb91fdb8
[ "MIT" ]
null
null
null
mktoExportActivities.py
i001962/py-marketo-extract
fee1b46c251962dc9cedd487caec2a3dcb91fdb8
[ "MIT" ]
null
null
null
mktoExportActivities.py
i001962/py-marketo-extract
fee1b46c251962dc9cedd487caec2a3dcb91fdb8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ mktoExportActivities.py: Extracting Leads Activities via Marketo REST API Usage: mktoExportActivities.py <options> Options: -h this help -i --instance <instance> Marketo Instance URL such as https://app-abj.marketo.com -o --...
38.257511
183
0.52139
2b7d8d450b10ff989b1669e087ab800e841b0105
670
py
Python
migrations/versions/045fce8e2e82_.py
vincentbello/ember-flask-chat
2c07878fd75e7f8e26d4cdab9d139f32c755d191
[ "BSD-3-Clause" ]
1
2018-11-03T14:48:34.000Z
2018-11-03T14:48:34.000Z
migrations/versions/045fce8e2e82_.py
vincentbello/ember-flask-chat
2c07878fd75e7f8e26d4cdab9d139f32c755d191
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/045fce8e2e82_.py
vincentbello/ember-flask-chat
2c07878fd75e7f8e26d4cdab9d139f32c755d191
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 045fce8e2e82 Revises: eb065a6b31be Create Date: 2017-09-04 16:58:05.896358 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '045fce8e2e82' down_revision = 'eb065a6b31be' branch_labels = None depends_on = None def upgrade(): # ...
23.103448
91
0.697015
7257647dcc688b803fee836647d926cdf9046af2
6,765
py
Python
experiments/hyperparam_search/meta_svgd_hyperparam.py
shlu2019/meta_learning_pacoh
376349e66bdd782e3d06b4bac2ecb56a2a10bcf6
[ "MIT" ]
23
2020-02-13T12:45:42.000Z
2022-03-07T20:37:14.000Z
experiments/hyperparam_search/meta_svgd_hyperparam.py
JeremyAlain/meta_learning_pacoh
b4c2c37d9715e74542bab556ac1f5d778cc3409c
[ "MIT" ]
3
2020-09-01T15:24:04.000Z
2021-06-03T10:39:16.000Z
experiments/hyperparam_search/meta_svgd_hyperparam.py
JeremyAlain/meta_learning_pacoh
b4c2c37d9715e74542bab556ac1f5d778cc3409c
[ "MIT" ]
9
2020-04-15T09:43:22.000Z
2021-07-18T13:37:38.000Z
import ray import copy import torch import numpy as np import pandas as pd import os import sys import math from ray import tune from ray.tune.suggest.hyperopt import HyperOptSearch from ray.tune import Analysis from hyperopt import hp from datetime import datetime import argparse import gpytorch BASE_DIR = os.path...
37.375691
127
0.63799
73fb1718cd0e74a910775d02f49e5db0d6f06c9e
3,815
py
Python
git_stuff.py
tapQA/tap_u_pirates
f1b57b5720e915b903df90fc8725a9f7757cb530
[ "MIT" ]
null
null
null
git_stuff.py
tapQA/tap_u_pirates
f1b57b5720e915b903df90fc8725a9f7757cb530
[ "MIT" ]
null
null
null
git_stuff.py
tapQA/tap_u_pirates
f1b57b5720e915b903df90fc8725a9f7757cb530
[ "MIT" ]
1
2019-11-04T20:22:28.000Z
2019-11-04T20:22:28.000Z
#!/usr/bin/python2.7 import requests import json import StringIO import subprocess import os import time from datetime import datetime from PIL import Image # Motion detection settings: # Threshold (how much a pixel has to change by to be marked as "changed") # Sensitivity (how many changed pixels ...
29.346154
129
0.656881
7aab0d7247a486a3d52744f3439889388d3f7cf7
1,634
py
Python
Interact with the API/face_detect.py
KevoLoyal/youngrockets
fe04938fe5058ab9083c36f2c3e61536151cbc1b
[ "MIT" ]
null
null
null
Interact with the API/face_detect.py
KevoLoyal/youngrockets
fe04938fe5058ab9083c36f2c3e61536151cbc1b
[ "MIT" ]
null
null
null
Interact with the API/face_detect.py
KevoLoyal/youngrockets
fe04938fe5058ab9083c36f2c3e61536151cbc1b
[ "MIT" ]
null
null
null
import http.client, urllib.request, urllib.parse, urllib.error, base64, requests, json # Subscription Key to identify my Service in Azure subscription_key = 'XXXXXXXXXXXXXXXXXXXXX' persongroup = 'microsoft' # Azure Data Center End Point detect_api_url = 'https://westus.api.cognitive.microsoft.com/face/v1.0/d...
31.423077
138
0.601591
d0464c4716ecf3fe4e6999ced45f418b0bb1bd6a
34,059
py
Python
libs/utils/analysis/latency_analysis.py
MIPS/external-lisa
48024e3bdcb39528f69bb897a3aff57347535c7d
[ "Apache-2.0" ]
2
2017-04-20T15:35:19.000Z
2020-04-29T05:40:02.000Z
libs/utils/analysis/latency_analysis.py
RenderBroken/lisa_toolkit
dde4826139d143a7e712abbbde2a4fa0aacb447e
[ "Apache-2.0" ]
null
null
null
libs/utils/analysis/latency_analysis.py
RenderBroken/lisa_toolkit
dde4826139d143a7e712abbbde2a4fa0aacb447e
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
40.211334
98
0.573505
71c7cec3dbdd75dacea60ff77fd65eedf56a266c
3,388
py
Python
placement/jobport/helpers.py
IIIT-Delhi/jobport
28c96916f47a47617d433f5e828cb91d9b1f230b
[ "MIT" ]
8
2015-12-19T14:02:03.000Z
2021-05-17T20:16:18.000Z
placement/jobport/helpers.py
IIIT-Delhi/jobport
28c96916f47a47617d433f5e828cb91d9b1f230b
[ "MIT" ]
15
2015-11-03T18:11:11.000Z
2021-06-01T22:07:37.000Z
placement/jobport/helpers.py
IIIT-Delhi/jobport
28c96916f47a47617d433f5e828cb91d9b1f230b
[ "MIT" ]
7
2016-03-14T19:51:28.000Z
2017-09-29T06:57:41.000Z
# //======================================================================= # // Copyright JobPort, IIIT Delhi 2015. # // Distributed under the MIT License. # // (See accompanying file LICENSE or copy at # // http://opensource.org/licenses/MIT) # //======================================================================...
31.37037
76
0.605962
c1388dc9bb7a1db275597b2cb11c55e5337a55a7
4,377
py
Python
vunit/com/codec_vhdl_record_type.py
svenka3/vunit
0acacbe2b276abb907c908c76885bbc58099fa68
[ "Artistic-2.0" ]
null
null
null
vunit/com/codec_vhdl_record_type.py
svenka3/vunit
0acacbe2b276abb907c908c76885bbc58099fa68
[ "Artistic-2.0" ]
null
null
null
vunit/com/codec_vhdl_record_type.py
svenka3/vunit
0acacbe2b276abb907c908c76885bbc58099fa68
[ "Artistic-2.0" ]
1
2021-09-11T16:56:08.000Z
2021-09-11T16:56:08.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2015, Lars Asplund lars.anders.asplund@gmail.com """ Module containing the CodecVHDLRecordType class. ...
33.159091
105
0.655243
8ccb8d2d81c2f9c45b94b9df36972a4d93c4be4d
6,041
py
Python
dlk/tests/tstutils.py
tsawada/blueoil
745a2eb25e090e0ff9af547c1a11b538bf7e5c8a
[ "Apache-2.0" ]
null
null
null
dlk/tests/tstutils.py
tsawada/blueoil
745a2eb25e090e0ff9af547c1a11b538bf7e5c8a
[ "Apache-2.0" ]
null
null
null
dlk/tests/tstutils.py
tsawada/blueoil
745a2eb25e090e0ff9af547c1a11b538bf7e5c8a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
30.356784
109
0.556696
846ae5cbaa6d1d8a3664a067b33f95a7c57f6da9
1,022
py
Python
Admin/models.py
hxllll/Lost
50612f004a49dca6b2c9298613189b927daae7a8
[ "Apache-2.0" ]
null
null
null
Admin/models.py
hxllll/Lost
50612f004a49dca6b2c9298613189b927daae7a8
[ "Apache-2.0" ]
20
2020-01-28T22:35:15.000Z
2022-03-11T23:38:45.000Z
Admin/models.py
hxllll/Lost
50612f004a49dca6b2c9298613189b927daae7a8
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.hashers import make_password, check_password from django.db import models # Create your models here. from werkzeug.security import check_password_hash class AdminUser(models.Model): a_username = models.CharField(max_length=15,unique=True) a_password = models.CharField(max_...
30.969697
70
0.714286
4c70e5ceb628c7e3d011e4ae2cd4a174794e747a
818
py
Python
django_visitor_information/__init__.py
goranpavlovic/django-visitor-information-middleware
45e7c13a5472e56583d8ff0257e3e840de4ec048
[ "Apache-2.0" ]
null
null
null
django_visitor_information/__init__.py
goranpavlovic/django-visitor-information-middleware
45e7c13a5472e56583d8ff0257e3e840de4ec048
[ "Apache-2.0" ]
null
null
null
django_visitor_information/__init__.py
goranpavlovic/django-visitor-information-middleware
45e7c13a5472e56583d8ff0257e3e840de4ec048
[ "Apache-2.0" ]
null
null
null
# Licensed to Tomaz Muraus under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # Tomaz muraus licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in...
38.952381
78
0.764059
67159d8ed51d068ce0a3014b41c5277500bc2900
2,399
py
Python
ckanext/example_igroupform/plugin.py
algebrasrl/ckan
7779b975dc5936a55335130409dc3e9d7aba9bec
[ "BSD-3-Clause" ]
1
2021-10-01T12:47:19.000Z
2021-10-01T12:47:19.000Z
ckanext/example_igroupform/plugin.py
algebrasrl/ckan
7779b975dc5936a55335130409dc3e9d7aba9bec
[ "BSD-3-Clause" ]
null
null
null
ckanext/example_igroupform/plugin.py
algebrasrl/ckan
7779b975dc5936a55335130409dc3e9d7aba9bec
[ "BSD-3-Clause" ]
2
2018-01-21T17:03:08.000Z
2019-07-23T08:49:52.000Z
# encoding: utf-8 from ckan.common import CKANConfig import ckan.plugins as plugins import ckan.plugins.toolkit as tk # I did try unicode in the group_type, but Routes wasn't happy with unicode in # the route name, so it would require encoding everywhere we do url_for, so # I've left it. # group_type = u'gr\xc3\xb6u...
25.795699
79
0.679033
0bd9e238b6082b3f0aeea82ba7a2d7fa5d9a42f3
517
py
Python
factorial_python.py
trunknx/PythonAlgorithms
0a4a63eec34b0255508cbdac35fa91f994bef279
[ "MIT" ]
null
null
null
factorial_python.py
trunknx/PythonAlgorithms
0a4a63eec34b0255508cbdac35fa91f994bef279
[ "MIT" ]
null
null
null
factorial_python.py
trunknx/PythonAlgorithms
0a4a63eec34b0255508cbdac35fa91f994bef279
[ "MIT" ]
null
null
null
# Python program to find the factorial of a number provided by the user. # # change the value for a different result num = 10 # uncomment to take input from the user #num = int(input("Enter a number: ")) factorial = 1 # check if the number is negative, positive or zero if num < 0: print("Sorry, factorial does no...
24.619048
72
0.690522
13b3e4b3db768aa3ac1bfa50d18b819400ded95b
33,437
py
Python
Lib/plat-mac/bundlebuilder.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
8
2020-08-24T14:21:35.000Z
2022-01-26T04:49:11.000Z
Lib/plat-mac/bundlebuilder.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
null
null
null
Lib/plat-mac/bundlebuilder.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
3
2020-08-23T23:20:38.000Z
2021-10-18T03:35:00.000Z
#! /usr/bin/env python """\ bundlebuilder.py -- Tools to assemble MacOS X (application) bundles. This module contains two classes to build so called "bundles" for MacOS X. BundleBuilder is a general tool, AppBuilder is a subclass specialized in building application bundles. [Bundle|App]Builder objects are instantiat...
35.685165
85
0.58531
75da46d1e20c7874fe8fb8c645c1cedde099c9eb
1,194
py
Python
WeblogicScanLot/poc/Console.py
y11en/super-guacamole
e15697e58895ed684a8076f95a0d2ab6d43d98d2
[ "Apache-2.0" ]
32
2020-07-15T06:22:06.000Z
2022-02-15T02:29:36.000Z
WeblogicScanLot/poc/Console.py
wonderkun/Penetration_Testing_POC
563c356a1ca9f50d8ad336aa061149830c00de1a
[ "Apache-2.0" ]
1
2021-06-02T02:55:26.000Z
2021-06-02T02:55:26.000Z
WeblogicScanLot/poc/Console.py
wonderkun/Penetration_Testing_POC
563c356a1ca9f50d8ad336aa061149830c00de1a
[ "Apache-2.0" ]
8
2020-07-15T06:22:25.000Z
2022-01-26T03:11:33.000Z
#!/usr/bin/env python3 # _*_ coding:utf-8 _*_ ''' ____ _ _ _ _ __ __ _ | _ \ __ _| |__ | |__ (_) |_| \/ | __ _ ___| | __ | |_) / _` | '_ \| '_ \| | __| |\/| |/ _` / __| |/ / | _ < (_| | |_) | |_) | | |_| | | | (_| \__ \ < |_| \_\__,_|_.__/|_.__/|_|\__|_| |_|\__,_|___/_|\_...
32.27027
131
0.514238
314e5241160a66e3705fc069e2f7b6fafadd3833
1,380
py
Python
DQMOffline/CalibTracker/test/SiStripBadComponentsDQMServiceReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMOffline/CalibTracker/test/SiStripBadComponentsDQMServiceReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMOffline/CalibTracker/test/SiStripBadComponentsDQMServiceReader_cfg.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 process = cms.Process("Test") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.source = cms.Source("EmptySource", timetype = cms.string('runnumber'), firstRun = cms.untracked.uint32(110213), lastRun = cms.untracked.uint32(110213),...
31.363636
85
0.707246
4d499c79b063c239d667bdb45a5357bfc6bd04e2
4,298
py
Python
share/seeds/generate-seeds.py
xuyangcn/opalcoin
aafb557b1d80fbe29143c360cb138b83cea2275e
[ "MIT" ]
null
null
null
share/seeds/generate-seeds.py
xuyangcn/opalcoin
aafb557b1d80fbe29143c360cb138b83cea2275e
[ "MIT" ]
null
null
null
share/seeds/generate-seeds.py
xuyangcn/opalcoin
aafb557b1d80fbe29143c360cb138b83cea2275e
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Wladmir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the directory that...
31.602941
98
0.585854
d94111cc6d5d7da4747a2bfade87491146098588
12,408
py
Python
frasco_models/__init__.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
1
2015-09-24T10:01:03.000Z
2015-09-24T10:01:03.000Z
frasco_models/__init__.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
null
null
null
frasco_models/__init__.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
null
null
null
from frasco import Feature, action, current_app, request, abort, listens_to, current_context from frasco.utils import (AttrDict, import_string, populate_obj, RequirementMissingError,\ find_classes_in_module, slugify) from frasco.expression import compile_expr, eval_expr from frasco.templating ...
39.018868
129
0.624758
f944e870aeffc54834123f04eb59470a6b6f0d45
4,065
py
Python
selfdrive/version.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
1
2020-12-28T01:30:27.000Z
2020-12-28T01:30:27.000Z
selfdrive/version.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
16
2022-01-02T01:38:29.000Z
2022-03-30T13:58:33.000Z
selfdrive/version.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess from typing import List, Optional from functools import lru_cache from common.basedir import BASEDIR from selfdrive.swaglog import cloudlog TESTED_BRANCHES = ['devel', 'release3-staging', 'dashcam3-staging', 'release3', 'dashcam3'] training_version: bytes = b"0.2.0"...
29.035714
111
0.680197
4a7699b5f4cd6e22c87166e2a3c86744e1a1aedd
3,521
py
Python
mne/decoding/tests/test_csp.py
TanayGahlot/mne-python
857aa97c201451b82931c5eba50642975afc423d
[ "BSD-3-Clause" ]
null
null
null
mne/decoding/tests/test_csp.py
TanayGahlot/mne-python
857aa97c201451b82931c5eba50642975afc423d
[ "BSD-3-Clause" ]
null
null
null
mne/decoding/tests/test_csp.py
TanayGahlot/mne-python
857aa97c201451b82931c5eba50642975afc423d
[ "BSD-3-Clause" ]
null
null
null
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Romain Trachel <romain.trachel@inria.fr> # # License: BSD (3-clause) import os.path as op from nose.tools import assert_true, assert_raises import numpy as np from numpy.testing import assert_array_almost_equal from mne import io, Epoch...
36.677083
77
0.656064
7b22bb5e9b6079f2dd4c073596fd4626980bced8
2,492
py
Python
EOSS/aws/Service.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/aws/Service.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/aws/Service.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
import boto3 from EOSS.aws.utils import dev_client, prod_client from EOSS.aws.utils import eval_subnet, pprint class Service: def __init__(self, cluster_arn, dev=False): if dev: self.client = dev_client('ecs') else: self.client = prod_client('ecs') self.cluster_arn...
32.789474
69
0.560995
a06b0e675447bff2b69e0195c8eeb25b9be068a9
11,135
py
Python
tempest/api/compute/admin/test_flavors_negative_xml.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
3
2015-03-03T15:43:06.000Z
2016-10-24T06:12:40.000Z
tempest/api/compute/admin/test_flavors_negative_xml.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/admin/test_flavors_negative_xml.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
1
2018-10-09T06:32:04.000Z
2018-10-09T06:32:04.000Z
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
41.394052
78
0.523125
46c2a8c2ab192d7d6f7dc9d259d4a02f0702b698
5,415
py
Python
setup.py
anasitomtn/dvc
d54aa315e9c5bba18146b339b1076634b43368d3
[ "Apache-2.0" ]
null
null
null
setup.py
anasitomtn/dvc
d54aa315e9c5bba18146b339b1076634b43368d3
[ "Apache-2.0" ]
null
null
null
setup.py
anasitomtn/dvc
d54aa315e9c5bba18146b339b1076634b43368d3
[ "Apache-2.0" ]
null
null
null
import importlib.util import os from pathlib import Path from setuptools import find_packages, setup from setuptools.command.build_py import build_py as _build_py # Prevents pkg_resources import in entry point script, # see https://github.com/ninjaaron/fast-entry_points. # This saves about 200 ms on startup time for ...
33.018293
79
0.640997
c0e822a77f246a9436696cdc1da38792088e4989
286,198
py
Python
tests/test_backend.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
tests/test_backend.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
tests/test_backend.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 """Unit tests using onnx backends.""" import os import unittest from distutils.version import LooseVersion from itertools import product import numpy as np from numpy.testing import assert_almost_equal import tensorflow as tf from tensorflow.python.ops import lookup_ops from b...
48.681408
120
0.592901
5d8cf7ba32a5f93cedcdf5c4c3776a9561af2aa7
893
py
Python
tests/ganache.py
SOFIE-project/Identity-Authentication-Authorization
4651fdce9249511dda4ac3591235d0670deafc9b
[ "Apache-1.1" ]
2
2020-03-12T14:55:42.000Z
2020-10-16T02:54:41.000Z
tests/ganache.py
SOFIE-project/Identity-Authentication-Authorization
4651fdce9249511dda4ac3591235d0670deafc9b
[ "Apache-1.1" ]
1
2020-08-12T19:31:33.000Z
2020-08-12T19:31:33.000Z
tests/ganache.py
SOFIE-project/Identity-Authentication-Authorization
4651fdce9249511dda4ac3591235d0670deafc9b
[ "Apache-1.1" ]
3
2020-03-16T15:26:31.000Z
2020-05-20T20:19:49.000Z
from web3 import Web3 import json w3 = Web3(Web3.HTTPProvider("HTTP://127.0.0.1:8545")) with open('../conf/contract/build/ERC721Metadata.abi', 'r') as myfile: abi = myfile.read() with open('../conf/contract/build/ERC721Metadata.bin', 'r') as myfile: binfile = myfile.read() account = w3.eth.accounts[0] PDSContrac...
40.590909
137
0.774916
93cc160faf4eb8cd902ff55c9df99d08f9fc3d2f
165
py
Python
app/settings/product.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
app/settings/product.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
app/settings/product.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
from .default import DefaultConfig __all__ = ['ProductConfig'] class ProductConfig(DefaultConfig): DEBUG = False POSTGRESQL_DB = 'task23jul2019_product'
16.5
43
0.757576
4853f1576957752d5e1fd0c31ebae671a44e6615
337
py
Python
lead_management/config/docs.py
biswa4u85/lead_management
9e490a4f7fb76a79190a004eea9e376109311517
[ "MIT" ]
null
null
null
lead_management/config/docs.py
biswa4u85/lead_management
9e490a4f7fb76a79190a004eea9e376109311517
[ "MIT" ]
null
null
null
lead_management/config/docs.py
biswa4u85/lead_management
9e490a4f7fb76a79190a004eea9e376109311517
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/lead_management" # docs_base_url = "https://[org_name].github.io/lead_management" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "...
28.083333
68
0.738872
801f8c5c30a421002034b6de0796a5fb15a05a61
2,479
py
Python
chargebeecli/processors/customer/customer.py
bhaskernitt/chargebee-cli
7025239f52deb010139c5b721be57a80da63f09e
[ "MIT" ]
null
null
null
chargebeecli/processors/customer/customer.py
bhaskernitt/chargebee-cli
7025239f52deb010139c5b721be57a80da63f09e
[ "MIT" ]
null
null
null
chargebeecli/processors/customer/customer.py
bhaskernitt/chargebee-cli
7025239f52deb010139c5b721be57a80da63f09e
[ "MIT" ]
null
null
null
from chargebeecli.client.actionsImpl import ActionsImpl from chargebeecli.constants.constants import Formats from chargebeecli.export.Exporter import Exporter from chargebeecli.formater.response_formatter import ResponseFormatter from chargebeecli.printer.printer import Printer from chargebeecli.processors.processor im...
42.741379
116
0.701493
e13e4078c75b78d85b4d7ec3d79a4ee5105fee56
5,724
py
Python
rest_framework/tests/test_validation.py
Hipo/django-rest-framework
ffdf2ffb19fb75013e03fae0c26a7aa9d2b7cdd5
[ "Unlicense" ]
87
2016-01-24T16:41:02.000Z
2021-12-20T21:13:24.000Z
rest_framework/tests/test_validation.py
laborautonomo/django-rest-framework
299a8347e8ef448eefc611eebfe80d7e142ceaa1
[ "Unlicense" ]
16
2020-02-11T23:19:19.000Z
2022-03-11T23:33:40.000Z
rest_framework/tests/test_validation.py
laborautonomo/django-rest-framework
299a8347e8ef448eefc611eebfe80d7e142ceaa1
[ "Unlicense" ]
57
2016-02-02T05:46:14.000Z
2021-03-21T15:46:06.000Z
from __future__ import unicode_literals from django.core.validators import MaxValueValidator from django.db import models from django.test import TestCase from rest_framework import generics, serializers, status from rest_framework.test import APIRequestFactory factory = APIRequestFactory() # Regression for #666 cl...
38.416107
118
0.734626
84faabf5752c028be7ad85327007f48df39c833c
1,411
py
Python
url_cleaner.py
HyShai/url-cleaner
35a955fa9a0d6a3f7fd2ae2bef6e448e9d57b2ee
[ "MIT" ]
5
2015-04-06T14:06:31.000Z
2022-01-29T12:56:57.000Z
url_cleaner.py
HyShai/url-cleaner
35a955fa9a0d6a3f7fd2ae2bef6e448e9d57b2ee
[ "MIT" ]
null
null
null
url_cleaner.py
HyShai/url-cleaner
35a955fa9a0d6a3f7fd2ae2bef6e448e9d57b2ee
[ "MIT" ]
1
2020-01-06T23:43:36.000Z
2020-01-06T23:43:36.000Z
welcome_msg = '''url_cleaner is a poor man's CleanLinks. See: https://itunes.apple.com/us/app/clean-links/id623671942?mt=8 It takes a shortened url and returns the lengthened, cleaned url. The inbound shortened url can either be provided as a command line argument or on the iOS clipboard. url_cleaner follows all heade...
33.595238
73
0.739901
40617e59cedfe85d2b5f4a2d04fcd81c62b0b193
43,620
py
Python
test/dialect/mysql/test_reflection.py
PhillCli/sqlalchemy
44365e0d2190eecf7c006c9d41dbcab7b7925187
[ "MIT" ]
null
null
null
test/dialect/mysql/test_reflection.py
PhillCli/sqlalchemy
44365e0d2190eecf7c006c9d41dbcab7b7925187
[ "MIT" ]
1
2021-01-25T09:53:34.000Z
2021-01-25T09:53:35.000Z
test/dialect/mysql/test_reflection.py
PhillCli/sqlalchemy
44365e0d2190eecf7c006c9d41dbcab7b7925187
[ "MIT" ]
2
2021-01-10T10:49:52.000Z
2021-01-13T09:34:27.000Z
# coding: utf-8 import re from sqlalchemy import BigInteger from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import DDL from sqlalchemy import DefaultClause from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import ForeignKey from sqlalchemy import Index from sqlalche...
35.319838
79
0.501582
928aa40d05c6bc74e39e5d65b04160d83cfe2b06
25,518
py
Python
tests/st/utils/data.py
electricjesus/calicoctl
48a4b06b7bd40f4ea8723716b604ca0f0aae8677
[ "Apache-2.0" ]
null
null
null
tests/st/utils/data.py
electricjesus/calicoctl
48a4b06b7bd40f4ea8723716b604ca0f0aae8677
[ "Apache-2.0" ]
null
null
null
tests/st/utils/data.py
electricjesus/calicoctl
48a4b06b7bd40f4ea8723716b604ca0f0aae8677
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015-2020 Tigera, 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 applicabl...
24.871345
97
0.486833
2055baac99c93a9637972e9e5b2e3f60993de505
692
py
Python
PyInstaller/hooks/hook-gi.repository.Adw.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Adw.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Adw.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
38.444444
78
0.593931
3633f038ff27a950dc8957691db40ad7a8198eef
227
py
Python
scripts/item/consume_2436230.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/item/consume_2436230.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/item/consume_2436230.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # Cozy Christmas Damage Skin | (2436230) if sm.addDamageSkin(2436230): sm.chat("'Cozy Christmas Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
45.4
113
0.744493
0c0182de49e2505d5aa40a22ad9e2d379fdd2673
470
py
Python
visitors/management/commands/deleteoldvisitors.py
ASquirrelsTail/serve-up
9533ba82f5b4989434b3b20352d17a8131bb9619
[ "MIT" ]
null
null
null
visitors/management/commands/deleteoldvisitors.py
ASquirrelsTail/serve-up
9533ba82f5b4989434b3b20352d17a8131bb9619
[ "MIT" ]
10
2021-03-30T14:05:21.000Z
2022-03-12T00:41:15.000Z
visitors/management/commands/deleteoldvisitors.py
ASquirrelsTail/serve-up
9533ba82f5b4989434b3b20352d17a8131bb9619
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.utils.timezone import now from datetime import timedelta from visitors.models import Visitor class Command(BaseCommand): help = 'Removes visitors older than 21 days from the database' def handle(self, *args, **options): result = Visitor....
36.153846
93
0.746809
ebf0e20ba1fb81894ac68daf8e87dade0282ab5f
953
py
Python
extra-packages/pyperl-1.0.1d/t/thr-svrv.py
UfSoft/ISPManCCP
a415cae3a6860a86591e932606d31dab844703df
[ "BSD-3-Clause" ]
null
null
null
extra-packages/pyperl-1.0.1d/t/thr-svrv.py
UfSoft/ISPManCCP
a415cae3a6860a86591e932606d31dab844703df
[ "BSD-3-Clause" ]
null
null
null
extra-packages/pyperl-1.0.1d/t/thr-svrv.py
UfSoft/ISPManCCP
a415cae3a6860a86591e932606d31dab844703df
[ "BSD-3-Clause" ]
null
null
null
import sys try: import thread except: print "1..0" sys.exit(0) import perl if not perl.MULTI_PERL: print "1..0" sys.exit(0) # This tests behaviour of perl objects passed from one # thread (and perl interpreter) to the next one and that # it is still destructed properly. print "1..5" perl_obj = ...
14.223881
64
0.604407
fd458dc03133a4b64beeb5e1678e9ed834a80349
1,314
py
Python
notebooks/15.0-BDP-try-compartment.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/15.0-BDP-try-compartment.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/15.0-BDP-try-compartment.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
#%% from src.data import load_june from src.utils import meta_to_array from graspy.utils import import_graph import networkx as nx graph = load_june("Gadn") names = meta_to_array(graph, "Name") names classes = meta_to_array(graph, "Class") classes nodes = list(graph.nodes()) labels = dict(zip(nodes, names)) for i,...
19.909091
62
0.626332
76782cccafe939f000c6f7da57ef1563d496968d
82,254
py
Python
pywasm/execution.py
marat1961/pywasm
efcbf580808dc5a4ce741e4b84434cc3aa56f02d
[ "MIT" ]
1
2021-06-20T08:31:28.000Z
2021-06-20T08:31:28.000Z
pywasm/execution.py
marat1961/pywasm
efcbf580808dc5a4ce741e4b84434cc3aa56f02d
[ "MIT" ]
null
null
null
pywasm/execution.py
marat1961/pywasm
efcbf580808dc5a4ce741e4b84434cc3aa56f02d
[ "MIT" ]
null
null
null
import typing import numpy from . import binary from . import convention from . import instruction from . import log from . import num from . import option # ====================================================================================================================== # Execution Runtime Structure # ========...
39.112696
120
0.628273
61846abc4fa17e483cee2f1f45400c8a1bc1c5a2
10,861
py
Python
source/conf.py
mm-s/symbol-docs
1e4838713cb1b33ab19ad1056ebec6312c1fb5d4
[ "Apache-2.0" ]
1
2021-01-08T09:17:56.000Z
2021-01-08T09:17:56.000Z
source/conf.py
huuhao1999/symbol-docs
75c7725fc9943d476ca59d663b3c935c31f2fac1
[ "Apache-2.0" ]
null
null
null
source/conf.py
huuhao1999/symbol-docs
75c7725fc9943d476ca59d663b3c935c31f2fac1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # symbol-docs documentation build configuration file, created by # sphinx-quickstart on Mon Dec 18 16:39:26 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
30.253482
117
0.659884
7a11d51d447c0809c57a8864790e1a2b3c0c9be3
1,363
py
Python
OpenGL/01.HW.py
sarincr/Python-modules-for-GUI-Dev
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
[ "MIT" ]
null
null
null
OpenGL/01.HW.py
sarincr/Python-modules-for-GUI-Dev
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
[ "MIT" ]
null
null
null
OpenGL/01.HW.py
sarincr/Python-modules-for-GUI-Dev
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
[ "MIT" ]
null
null
null
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * w, h = 500,500 # ---Section 1--- def square(): # We have to declare the points in this sequence: bottom left, bottom right, top right, top left glBegin(GL_QUADS) # Begin the sketch glVertex2f(100, 100) # Coordinates for the bot...
34.075
112
0.734409
d2cd681b9d7e1b682c18eb871f89724851d08515
15,748
py
Python
skmultilearn/ext/meka.py
emrecncelik/scikit-multilearn
1d7f7b74702cb9a5a8245726bf38e23e1f2f3382
[ "BSD-2-Clause" ]
763
2015-03-22T18:54:33.000Z
2022-03-25T07:54:04.000Z
skmultilearn/ext/meka.py
emrecncelik/scikit-multilearn
1d7f7b74702cb9a5a8245726bf38e23e1f2f3382
[ "BSD-2-Clause" ]
187
2015-01-27T15:06:35.000Z
2022-03-22T21:41:47.000Z
skmultilearn/ext/meka.py
emrecncelik/scikit-multilearn
1d7f7b74702cb9a5a8245726bf38e23e1f2f3382
[ "BSD-2-Clause" ]
157
2015-04-13T16:47:36.000Z
2022-03-17T19:12:59.000Z
import os import shlex import subprocess import sys import tempfile import zipfile from builtins import filter from builtins import map from builtins import range from builtins import str import scipy.sparse as sparse from ..base import MLClassifierBase from ..dataset import save_to_arff, get_data_home, _download_sin...
35.073497
136
0.585154
3999649c252e18cb1ece7a3b667403899a7ea69b
19,172
py
Python
image_class.py
openharmony-gitee-mirror/update_packaging_tools
ddc9e16353d634a5dfe7b24e75387c9917a3cd06
[ "Apache-2.0" ]
null
null
null
image_class.py
openharmony-gitee-mirror/update_packaging_tools
ddc9e16353d634a5dfe7b24e75387c9917a3cd06
[ "Apache-2.0" ]
null
null
null
image_class.py
openharmony-gitee-mirror/update_packaging_tools
ddc9e16353d634a5dfe7b24e75387c9917a3cd06
[ "Apache-2.0" ]
1
2021-09-13T11:17:32.000Z
2021-09-13T11:17:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021 Huawei Device Co., Ltd. # 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....
41.408207
80
0.594409
2197fe5a2fe135c18814fd2b2145c6fead17c1f6
1,865
py
Python
utils/alias_multinomial.py
bhomass/lda2vec-pytorch
a57d40c9fee1ef88d7c27a52c428894d50b6fb5f
[ "MIT" ]
123
2017-09-23T06:53:43.000Z
2022-02-24T15:06:42.000Z
utils/alias_multinomial.py
bhomass/lda2vec-pytorch
a57d40c9fee1ef88d7c27a52c428894d50b6fb5f
[ "MIT" ]
17
2017-09-23T08:03:22.000Z
2021-02-15T00:43:41.000Z
utils/alias_multinomial.py
bhomass/lda2vec-pytorch
a57d40c9fee1ef88d7c27a52c428894d50b6fb5f
[ "MIT" ]
39
2017-09-19T10:31:14.000Z
2022-01-10T02:50:17.000Z
import torch import numpy as np class AliasMultinomial(object): """ Fast sampling from a multinomial distribution. https://hips.seas.harvard.edu/blog/2013/03/03/the-alias-method-efficient-sampling-with-many-discrete-outcomes/ """ def __init__(self, probs): """ probs: a float tensor...
30.57377
114
0.542627
3ba82a4f96eda89e03922367f52b11d32a5d242c
23,039
py
Python
tests.py
CaptainKanuk/scikit-rebate
16798854e7fbca553416409be8f9ff6f71204dac
[ "MIT" ]
362
2017-01-12T12:59:34.000Z
2022-03-31T15:18:40.000Z
tests.py
pschmitt52/scikit-rebate
779538969fcc067d82660a233150094dba2b91c1
[ "MIT" ]
46
2016-12-01T19:43:18.000Z
2021-12-16T18:59:39.000Z
tests.py
pschmitt52/scikit-rebate
779538969fcc067d82660a233150094dba2b91c1
[ "MIT" ]
67
2017-01-04T20:36:33.000Z
2022-01-03T14:10:35.000Z
""" scikit-rebate was primarily developed at the University of Pennsylvania by: - Randal S. Olson (rso@randalolson.com) - Pete Schmitt (pschmitt@upenn.edu) - Ryan J. Urbanowicz (ryanurb@upenn.edu) - Weixuan Fu (weixuanf@upenn.edu) - and many more generous open source contributors Permissi...
44.136015
208
0.660055
612cb9a0641507a1ac2aa472cfc45b68d83637c1
14,551
py
Python
test/lib/mayaUsd/fileio/testDuplicateAs.py
sun-frog/maya-usd
561fc867e192e426749c9df59807cc836d16a2c2
[ "Apache-2.0" ]
null
null
null
test/lib/mayaUsd/fileio/testDuplicateAs.py
sun-frog/maya-usd
561fc867e192e426749c9df59807cc836d16a2c2
[ "Apache-2.0" ]
null
null
null
test/lib/mayaUsd/fileio/testDuplicateAs.py
sun-frog/maya-usd
561fc867e192e426749c9df59807cc836d16a2c2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2021 Autodesk # # 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 ...
41.10452
105
0.656175
afdff1f7060e387c734f88cb8c6b7e9e877f9116
2,167
py
Python
chapter_07/TargetEncode.py
MathMachado/Data-Analysis-and-Machine-Learning-with-Kaggle
928e670cb13241fb79a527cd42efed9ddf9b2117
[ "MIT" ]
null
null
null
chapter_07/TargetEncode.py
MathMachado/Data-Analysis-and-Machine-Learning-with-Kaggle
928e670cb13241fb79a527cd42efed9ddf9b2117
[ "MIT" ]
1
2021-12-28T21:58:21.000Z
2021-12-28T21:58:21.000Z
chapter_07/TargetEncode.py
MathMachado/Data-Analysis-and-Machine-Learning-with-Kaggle
928e670cb13241fb79a527cd42efed9ddf9b2117
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin class TargetEncode(BaseEstimator, TransformerMixin): def __init__(self, categories='auto', k=1, f=1, noise_level=0, random_state=None): self.categories = categories self.k = k ...
40.12963
99
0.576373
407a389359b9260c8f2cc894f4468ed7367dba53
1,116
py
Python
base/tests/test_utils.py
bpatyi/simpleCRM
bf74f0e0d783ea4538fb96b6790474d991175b51
[ "MIT" ]
2
2016-10-03T08:35:07.000Z
2016-10-04T07:22:20.000Z
base/tests/test_utils.py
bpatyi/simpleCRM
bf74f0e0d783ea4538fb96b6790474d991175b51
[ "MIT" ]
null
null
null
base/tests/test_utils.py
bpatyi/simpleCRM
bf74f0e0d783ea4538fb96b6790474d991175b51
[ "MIT" ]
null
null
null
import googlemaps from django.test import TestCase from base.utils import GeoCoder from base.models import GeoCoderLog class GeoCoderTester(TestCase): def test_invalid_address(self): geocoder = GeoCoder() geocoder.geocode('') address = geocoder.get_address() self.assertEqual(ge...
33.818182
91
0.698029
53e377e2d50eb21b8e66122d0ff8c76863e0c1cb
2,563
py
Python
resources/Lib/myCollections.py
varunrai/Kodi-RF-Events
c6b86c1ae91dcd5a241ae2ae40276f289400938a
[ "Apache-2.0" ]
null
null
null
resources/Lib/myCollections.py
varunrai/Kodi-RF-Events
c6b86c1ae91dcd5a241ae2ae40276f289400938a
[ "Apache-2.0" ]
null
null
null
resources/Lib/myCollections.py
varunrai/Kodi-RF-Events
c6b86c1ae91dcd5a241ae2ae40276f289400938a
[ "Apache-2.0" ]
null
null
null
class histlist(object): ''' histlist The history list (histlist) is a list that tracks the history of a value. The history list can also notify when the value is changed, This is referred to as a step. There are two kinds of steps that can be tracked. A regular step (value is changed) and a del...
32.858974
75
0.579789
c695c04052f9d0d5798c79b58367862986a7e192
393,562
py
Python
pandas/core/frame.py
wjandrea/pandas
df8acf4201466e77572cdb8125683e75c4715f91
[ "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
wjandrea/pandas
df8acf4201466e77572cdb8125683e75c4715f91
[ "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
wjandrea/pandas
df8acf4201466e77572cdb8125683e75c4715f91
[ "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
34.381235
170
0.529347
b899882f23fc7b8ce7f515b8fb91452e63b96b9d
24,921
py
Python
SVRecords/SVAnnotator.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
SVRecords/SVAnnotator.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
5
2020-07-06T14:02:59.000Z
2021-04-08T20:01:41.000Z
SVRecords/SVAnnotator.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import sqlite3 import os import subprocess from pybedtools import BedTool from collections import defaultdict from enum import Enum, auto class SVTYPE(Enum): def _generate_next_value_(name, start, count, last_values): return name DEL = auto() DUP = auto()...
52.135983
222
0.621604
48e88fa362928d9e44d6cbfc01305b9f504c6327
546
py
Python
setup.py
julienaubert/fabutils
60a891abe05f1c88986ff010cbd884b79f91c50e
[ "MIT" ]
null
null
null
setup.py
julienaubert/fabutils
60a891abe05f1c88986ff010cbd884b79f91c50e
[ "MIT" ]
null
null
null
setup.py
julienaubert/fabutils
60a891abe05f1c88986ff010cbd884b79f91c50e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='boolfab', version='0.0.2', description='Boolfab: override fabric Task so it handles arguments as bool.', author='Julien Aubert', author_email='julien.aubert.mail@gmail.com', url='https://github.com/julienaubert/boolfab', ...
32.117647
83
0.613553
f7d5e9df2675829230b535c5424ac7d10c242766
12,653
py
Python
modules/qbittorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
422
2015-01-08T14:08:08.000Z
2022-02-07T11:47:37.000Z
modules/qbittorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
581
2015-01-01T08:07:16.000Z
2022-02-23T11:44:37.000Z
modules/qbittorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
115
2015-01-08T14:41:00.000Z
2022-02-13T12:31:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import htpc import cherrypy import json import logging import time import math from cherrypy.lib.auth2 import require, member_of from htpc.helpers import striphttp, sizeof import requests from requests.auth import HTTPDigestAuth class Qbittorrent(object): session = r...
37.434911
182
0.529598
273259011421f8dccad789c7b46fe183079c58a5
1,097
py
Python
src/tipboard/app/utils.py
adeo/benchmark-tipboard
12e372a6ed10c43984157b21e7c284938f1a8413
[ "Apache-2.0" ]
null
null
null
src/tipboard/app/utils.py
adeo/benchmark-tipboard
12e372a6ed10c43984157b21e7c284938f1a8413
[ "Apache-2.0" ]
6
2020-06-05T20:25:27.000Z
2022-03-31T09:27:14.000Z
src/tipboard/app/utils.py
adeo/benchmark-tipboard
12e372a6ed10c43984157b21e7c284938f1a8413
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from src.tipboard.app.properties import API_KEY from src.tipboard.app.properties import COLOR_TAB def getTimeStr(): return datetime.now().strftime("%Hh%M") def checkAccessToken(method='GET', request=None, unsecured=False): """ Check if API_TOKEN is corre...
32.264706
115
0.653601
20254b17ea80d1290aef9f41ae0e2b141e20259f
2,904
py
Python
ciscoisesdk/models/validators/v3_1_1/jsd_c3d67df26a4d58f5a5efc6083ba187eb.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
ciscoisesdk/models/validators/v3_1_0/jsd_c3d67df26a4d58f5a5efc6083ba187eb.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
ciscoisesdk/models/validators/v3_1_0/jsd_c3d67df26a4d58f5a5efc6083ba187eb.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """Identity Services Engine updateVnVlanMappingById data model. Copyright (c) 2021 Cisco and/or its affiliates. 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 res...
33.37931
83
0.585055
2f451f7d1973e1107469215062c47b2c4a84ef46
1,388
py
Python
graphics.py
xedre/Minesweeper
d62d001a3ded72e0b8c5bd4efffacb73a720500c
[ "MIT" ]
1
2019-08-24T17:01:58.000Z
2019-08-24T17:01:58.000Z
graphics.py
xedre/Minesweeper
d62d001a3ded72e0b8c5bd4efffacb73a720500c
[ "MIT" ]
null
null
null
graphics.py
xedre/Minesweeper
d62d001a3ded72e0b8c5bd4efffacb73a720500c
[ "MIT" ]
null
null
null
import pygame black = (50, 50, 50) def start(screen_size): pygame.init() clock = pygame.time.Clock() display = pygame.display.set_mode(screen_size) pygame.display.set_caption("Minesweeper") pygame.display.update() font = pygame.font.SysFont('arial', 25) return display, clock, font def e...
30.173913
135
0.557637
51583011f947885be67dc3debd4940c569de75fb
7,946
py
Python
utilities/loss.py
TayfunKaraderi/ICPRAI-2022-Visual-Microfossil-Identification-via-Deep-Metric-Learning
372fd88e7b7907b3acfcad16ac60a04ab2febf3f
[ "MIT" ]
null
null
null
utilities/loss.py
TayfunKaraderi/ICPRAI-2022-Visual-Microfossil-Identification-via-Deep-Metric-Learning
372fd88e7b7907b3acfcad16ac60a04ab2febf3f
[ "MIT" ]
null
null
null
utilities/loss.py
TayfunKaraderi/ICPRAI-2022-Visual-Microfossil-Identification-via-Deep-Metric-Learning
372fd88e7b7907b3acfcad16ac60a04ab2febf3f
[ "MIT" ]
null
null
null
# Core libraries import numpy as np # PyTorch stuff import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable """ File contains loss functions selectable during training """ class TripletLoss(nn.Module): def __init__(self, margin=4.0): super(TripletLoss, self).__init_...
38.386473
94
0.740624
81cf91e1929f66d0d592668f58c259c7cb1a879a
2,623
py
Python
face_detector.py
beingnothing/FaceTrack_by_FaceBoxes
5b84c163fd9851bf6b9bd2764798c292bee04fa7
[ "MIT" ]
3
2019-09-23T13:07:14.000Z
2020-06-03T09:04:56.000Z
face_detector.py
beingnothing/FaceTrack_by_FaceBoxes
5b84c163fd9851bf6b9bd2764798c292bee04fa7
[ "MIT" ]
null
null
null
face_detector.py
beingnothing/FaceTrack_by_FaceBoxes
5b84c163fd9851bf6b9bd2764798c292bee04fa7
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np class FaceDetector: def __init__(self, model_path, gpu_memory_fraction=0.25, visible_device_list='0'): """ Arguments: model_path: a string, path to a pb file. gpu_memory_fraction: a float number. visible_device_list: a ...
34.973333
90
0.611132
4685ec775351dfc841fafc59ef7a4ae7d628238b
8,064
py
Python
scripts/group_and_merge_by_gene.py
pdiakumis/NGS_Utils
9eae9f8d5f0e408118d429fde90e297dbac9ae15
[ "MIT" ]
3
2018-06-06T01:41:51.000Z
2020-08-20T11:36:06.000Z
scripts/group_and_merge_by_gene.py
pdiakumis/NGS_Utils
9eae9f8d5f0e408118d429fde90e297dbac9ae15
[ "MIT" ]
4
2019-11-28T03:34:54.000Z
2021-06-24T23:04:55.000Z
scripts/group_and_merge_by_gene.py
pdiakumis/NGS_Utils
9eae9f8d5f0e408118d429fde90e297dbac9ae15
[ "MIT" ]
5
2018-03-15T12:43:38.000Z
2021-06-24T23:12:48.000Z
#!/usr/bin/env python from os.path import abspath, dirname, realpath, join import sys from collections import OrderedDict, defaultdict from ngs_utils.bed_utils import count_bed_cols def main(): if len(sys.argv) < 2: sys.exit('Usage: ' + __file__ + ' bed_file > merged_bed_file') summarize_by_genes =...
40.32
176
0.56064
473544c8c8b645999afe0225b7a86140b29d46f6
1,783
py
Python
core/case/config.py
yaoanderson/testingRPA
b65cade39d111ac95ada443c3a1497d2ccb5b95d
[ "Apache-2.0" ]
1
2019-11-29T06:04:58.000Z
2019-11-29T06:04:58.000Z
core/case/config.py
yaoanderson/testingRPA
b65cade39d111ac95ada443c3a1497d2ccb5b95d
[ "Apache-2.0" ]
null
null
null
core/case/config.py
yaoanderson/testingRPA
b65cade39d111ac95ada443c3a1497d2ccb5b95d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf8 """ ------------------------------------------------- File Name: config Description: Author: anderson date: 2019-11-25 ------------------------------------------------- """ from core.common.parseutil import ConfigParser from core.case.policy import P...
36.387755
122
0.601795
cc21c2fe44de8e0ac92b386a7dbf00dd5ec8451b
2,783
py
Python
demos/python_demos/single_human_pose_estimation_demo/detector.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
1,031
2020-07-16T08:30:57.000Z
2022-03-30T19:42:52.000Z
demos/python_demos/single_human_pose_estimation_demo/detector.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
966
2020-07-16T08:13:00.000Z
2022-03-31T18:09:18.000Z
demos/python_demos/single_human_pose_estimation_demo/detector.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
440
2020-07-16T12:52:50.000Z
2022-03-31T14:21:41.000Z
import os import cv2 class Detector(object): def __init__(self, ie, path_to_model_xml, label_class, scale=None, thr=0.3, device='CPU'): self.OUTPUT_SIZE = 7 self.CHANNELS_SIZE = 3 self.model = ie.read_network(path_to_model_xml, os.path.splitext(path_to_model_xml)[0] + '.bin') asse...
39.197183
125
0.619475
b439782e2a680f28dd8db89c84735dc5e34a3f5a
3,283
py
Python
setup.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
1
2020-10-26T13:51:39.000Z
2020-10-26T13:51:39.000Z
setup.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
null
null
null
setup.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
1
2020-04-02T07:26:49.000Z
2020-04-02T07:26:49.000Z
import setuptools from setuptools import setup, find_packages, find_namespace_packages from setuptools.command.test import test as test_class # from distutils.core import setup from pathlib import Path import sys import unittest if 'eny path': import youtube_dl_cli from youtube_dl_cli import __version__, __exe...
36.477778
136
0.698447
3605447e39352819f631b262d7c92ad7317019ad
1,684
py
Python
Projects/project2/lib/MyUtils.py
jdiegoh3/distributed_computing
33088e741d35590d5699e8ecd9a35ff12b65f7f8
[ "MIT" ]
null
null
null
Projects/project2/lib/MyUtils.py
jdiegoh3/distributed_computing
33088e741d35590d5699e8ecd9a35ff12b65f7f8
[ "MIT" ]
null
null
null
Projects/project2/lib/MyUtils.py
jdiegoh3/distributed_computing
33088e741d35590d5699e8ecd9a35ff12b65f7f8
[ "MIT" ]
null
null
null
import socket class Elements(object): def __init__(self, elements): self.elements = elements def add_element(self, id, process_info): self.elements[id] = process_info def remove_element(self, id): try: del self.elements[id] except KeyError as error: ...
21.87013
80
0.630048
5620dc51c8cca7f70fbec02dcfcbdac96018cf2a
6,469
py
Python
tools/calc_features_aug.py
r-pad/PoseCNN
0d2a39f3b5572474ed1a13228ac9ff6f31a134e6
[ "MIT" ]
null
null
null
tools/calc_features_aug.py
r-pad/PoseCNN
0d2a39f3b5572474ed1a13228ac9ff6f31a134e6
[ "MIT" ]
null
null
null
tools/calc_features_aug.py
r-pad/PoseCNN
0d2a39f3b5572474ed1a13228ac9ff6f31a134e6
[ "MIT" ]
1
2022-01-07T11:15:31.000Z
2022-01-07T11:15:31.000Z
import _init_paths import argparse import os import random import time import numpy as np from object_pose_utils.datasets.pose_dataset import OutputTypes as otypes from object_pose_utils.datasets.ycb_dataset import YcbDataset as YCBDataset from object_pose_utils.datasets.image_processing import ColorJitter, ImageNormal...
40.943038
113
0.618488
9c0a372edcc736c9ae4158b135809c163b8e2b28
29,023
py
Python
catkin_tools/context.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
catkin_tools/context.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
catkin_tools/context.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.594816
113
0.625228
7660cca1e5bfbeb8c30bdea336a8fb6239b595c0
1,653
py
Python
locations/views.py
PatelKeviin/Locations-API-using-Django-REST-Framework
80c527722d875b859b5cb127967a58381594e058
[ "MIT" ]
null
null
null
locations/views.py
PatelKeviin/Locations-API-using-Django-REST-Framework
80c527722d875b859b5cb127967a58381594e058
[ "MIT" ]
null
null
null
locations/views.py
PatelKeviin/Locations-API-using-Django-REST-Framework
80c527722d875b859b5cb127967a58381594e058
[ "MIT" ]
null
null
null
from rest_framework import viewsets from django.db import connection from .serializers import LocationSerializer from rest_framework.response import Response from rest_framework.status import (HTTP_200_OK) def dictfetch(cursor, location, fetchall=False): """ Returns all rows from a cursor as a dictionary. ...
29.517857
99
0.645493
7244f77ac018e6e3e90a47af8a5c36138c59bb70
352
py
Python
iOS/others/otherjsonpractices/readJSON.py
leochoo/ios-sfcbustimer
e7e49a3c7a8270583ab2907ad1d8f9826341ef5b
[ "MIT" ]
4
2019-03-25T08:26:45.000Z
2019-04-27T02:56:37.000Z
iOS/others/otherjsonpractices/readJSON.py
leochoo/ios-sfcbustimer
e7e49a3c7a8270583ab2907ad1d8f9826341ef5b
[ "MIT" ]
38
2018-10-12T06:13:46.000Z
2019-04-06T16:44:33.000Z
iOS/others/otherjsonpractices/readJSON.py
leochoo/SFC-Bustimer
e7e49a3c7a8270583ab2907ad1d8f9826341ef5b
[ "MIT" ]
1
2019-04-27T03:09:33.000Z
2019-04-27T03:09:33.000Z
import json import requests #loading json with open("weekdaytest.json","r") as file: timetable = json.load(file) # print(timetable["hour"]) # print(timetable["hour"][0]["7"]) print(timetable["hour"][0]["7"][0]) print(timetable["hour"][0]["7"][1]) # print(timetable["hour"][0]["7"][0]["minute"]) # print(timetable[...
20.705882
47
0.625
dc75d3258ad62f45e7daa42f8847482b185ba052
265
py
Python
Lesson_7/pickle_example.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
Lesson_7/pickle_example.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
1
2020-04-14T14:13:57.000Z
2020-04-14T14:13:57.000Z
Lesson_7/pickle_example.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
import pickle data = {'1': (1,2,3), '2':['a','b','c'], '3': {0,1,2,0}} print(data) # Сериализация with open('data.pickle', 'wb') as f: pickle.dump(data, f) # Дечериализация with open('data.pickle', 'rb') as f: data_load = pickle.load(f) print(data_load)
18.928571
56
0.6
d4e46320107b9efea9f7c7475ea17920dcfd99cf
802
py
Python
var/spack/repos/builtin/packages/xvinfo/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/xvinfo/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/xvinfo/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Xvinfo(AutotoolsPackage, XorgPackage): """xvinfo prints out the capabilities of an...
33.416667
95
0.739401
9002f5b5db71aac3882a863e4977d5eafe252096
2,158
py
Python
utils/pagination.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
utils/pagination.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
utils/pagination.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response from rest_framework.exceptions import NotFound from django.core.paginator import InvalidPage from django.utils import six class CustomPageNumberPagination(PageNumberPagination):...
36.576271
96
0.662651
31a650ffaac512f1378d1716dbbba9d4cad96357
1,014
py
Python
twitter/contrib/sites/migrations/0003_set_site_domain_and_name.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
twitter/contrib/sites/migrations/0003_set_site_domain_and_name.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
twitter/contrib/sites/migrations/0003_set_site_domain_and_name.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.971429
129
0.686391
3d2277708de50aa88581b2972cc68dc300e2f6c2
999
py
Python
utim-esp32/modules/inisetup.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
utim-esp32/modules/inisetup.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
utim-esp32/modules/inisetup.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
import uos from flashbdev import bdev def check_bootsec(): buf = bytearray(bdev.SEC_SIZE) bdev.readblocks(0, buf) empty = True for b in buf: if b != 0xff: empty = False break if empty: return True fs_corrupted() def fs_corrupted(): import time ...
22.2
79
0.645646
3a501b92d20183c9d3c14415e1b3268369a795fc
19,616
py
Python
libspn/tests/perf_dense_generator_path.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
22
2019-03-01T15:58:20.000Z
2022-02-18T10:32:04.000Z
libspn/tests/perf_dense_generator_path.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
10
2019-03-03T18:15:24.000Z
2021-05-04T09:02:55.000Z
libspn/tests/perf_dense_generator_path.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
8
2019-03-22T20:45:20.000Z
2021-05-03T13:22:09.000Z
#!/usr/bin/env python3 import tensorflow as tf import numpy as np from context import libspn as spn import time import argparse import colorama as col import sys from tensorflow.python.client import timeline import os col.init() red = col.Fore.RED blue = col.Fore.BLUE green = col.Fore.GREEN yellow = col.Fore.YELLOW m...
44.480726
88
0.555771