blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
620b6dda3cf88205a7c9f1e46efff99abe37eb7d
256728286889a60e5d8896efc6869483daba3280
/cinemanio/sites/imdb/migrations/0001_initial.py
1f14d2c4b9e565d481ff8bf0acc5215f8e05d89a
[ "MIT" ]
permissive
cinemanio/backend
5236be94d08ec79b9fc8d8973aee93ec8fad9b1b
c393dc8c2d59dc99aa2c3314d3372b6e2bf5497f
refs/heads/master
2021-05-01T13:02:08.102705
2019-11-10T14:33:37
2019-11-10T14:33:37
121,069,149
4
0
MIT
2020-02-12T00:09:03
2018-02-11T01:00:31
Python
UTF-8
Python
false
false
1,273
py
# Generated by Django 2.0.1 on 2018-01-26 01:06 import cinemanio.sites.imdb.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('core', '0001_initial'), ] operations = [ migrations....
[ "ramusus@gmail.com" ]
ramusus@gmail.com
7c7221fa64006ffeb187d80c5c61089cad20c41f
04b3d872caa5c057642b2b6ed672675e6c58ac53
/yelp_vch_scraper/yelp_vch_scraper/middlewares.py
0cfc3fe6a04fe86f936d968c39e9750d68c49b4d
[]
no_license
brandontkessler/scrapers
4a6b59321125e73fc9c8660d00cea1c199a7eb1a
413d9b3d3b06b8cc7955cde117590b6b7fc0f699
refs/heads/master
2022-11-06T18:16:11.812766
2019-07-30T19:22:34
2019-07-30T19:22:34
199,532,189
0
0
null
2022-11-04T19:35:40
2019-07-29T22:01:07
Python
UTF-8
Python
false
false
3,613
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class YelpVchScraperSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, #...
[ "brandontkessler@gmail.com" ]
brandontkessler@gmail.com
908a7f137c7d77f79dcb503a8a9d2dda08602255
68072366b67058780f8a629b5a8fcebdfbec1590
/test/test_config.py
b0b51f77970482c314336dc1c2f2da8a7f6b56f4
[ "MIT" ]
permissive
markdrago/banter
fb6bf0aea3ac8e9dc8c82790911e09fbfd1f9d77
5d57d109bf9c3535750cfb845f08ccc861e38047
refs/heads/master
2021-01-19T19:31:19.024415
2015-11-09T13:18:10
2015-11-09T13:18:10
7,073,738
2
2
null
2015-11-07T16:41:49
2012-12-09T00:09:15
Python
UTF-8
Python
false
false
2,995
py
import unittest from mock import Mock try: from cStringIO import StringIO except ImportError: from io import StringIO from banter import config class TestConfig(unittest.TestCase): def test_get_value(self): contents = "[auth]\n" contents += "token = mdrago:102:abcdefghijklmnopqrstuvwxyz\n...
[ "markdrago@gmail.com" ]
markdrago@gmail.com
0b9fdafd9012da3e7de11c97acde26a00ae5d363
91502409e1de21daca0ac771290acb1e840f298f
/src/Transformer-TTS/transformer.py
da18861a417b959b3b8cda76aa017327b6665c56
[]
no_license
ishine/MultispeakerTTS
d759db15604b9ebe3d8bedba27de99c849618d17
f0267faf57c9a6c0cdade88d01b25f4d82dae85a
refs/heads/master
2021-04-13T03:34:15.285892
2020-03-02T01:32:36
2020-03-02T01:32:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
import tensorflow as tf from tensorflow.keras import layers class Transformer(tf.keras.Model): def __init__(self, num_layers, d_model, num_heads, dff, input_vocab_size, target_vocab_size, pe_input, pe_target, rate=0.1): super(Transformer, self).__init__() self.encoder = Encoder(n...
[ "zakwwebb@gmail.com" ]
zakwwebb@gmail.com
a9735c0896569ca1a2fa0992ca72325452c956bb
6006b0452379166d5e4bc085227c8351bedd264a
/Tacotron/madeGspeech/record.py
b2aaa3d6991963d2619bb1f61c50cb045177b353
[]
no_license
firstcoding17/Tacotron
a0cd7d764d368afa71e820d1dda66f60b58590a7
234f739b1ab8fc55bf974679075c52d01e58fdbb
refs/heads/master
2023-07-25T08:40:48.849708
2019-12-23T18:17:52
2019-12-23T18:17:52
184,554,512
0
0
null
2023-07-06T21:20:42
2019-05-02T09:30:04
Jupyter Notebook
UTF-8
Python
false
false
1,670
py
##녹음 import pyaudio import wave import time RATE = 48000 CHANNELS = 2 # FORMAT = pyaudio.paInt16 DEVICE_INDEX = 2 CHUNK = 1024 SAMPLING_PER_SEC = RATE // CHUNK RECORD_SEC = 5 pa = pyaudio.PyAudio() try: if pa.is_format_supported(RATE, input_device=DEVICE_INDEX, input_channels=CHANNELS, inp...
[ "noreply@github.com" ]
noreply@github.com
6216f8236cd09f608eacb70d7507bc0ac3a525f7
b4491eb4aea6bb8620373f4c1cdb61639f56bb75
/lesson_7/task_2.py
360e34748b2eb78813b6611aca932ecfd1d03ab6
[]
no_license
ApolloNick/Memory_holder_for_Hillel
92643a2fa11b726b218f2f707c302807352dbeb7
12df12fb4e467efd2becf44fb0771f37014c8be7
refs/heads/main
2023-07-05T07:30:27.417183
2021-08-22T19:20:31
2021-08-22T19:20:31
374,915,594
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
def convertor_for_temperatures(amount_of_degrees: int, type_of_system: str): if type_of_system == "Celsius": value_kelvin = amount_of_degrees + 273.15 value_fahrenheit = float(amount_of_degrees) * 9.0 / 5.0 + 32 return value_kelvin, value_fahrenheit elif type_of_system == "Kelvin": ...
[ "nkostrov7@gmail.com" ]
nkostrov7@gmail.com
c27f9949af47f0826b64a66cfbde19ef82a82f72
efa326097d25e030666e75bf5a851e8c68fc62c2
/code/heuristic-stats-parser.py
0f421e1285d52ab3403d32f6a765e4d9aaf81293
[]
no_license
mzumsteg/downward-lab
940c4be2280bcffe4d6f907884a3a7ff01ef69c8
e3ba6e6747a4ba60ba185c8184c80763825ec7bf
refs/heads/master
2020-05-03T04:59:19.235859
2019-10-29T14:54:46
2019-10-29T14:54:46
178,437,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
#! /usr/bin/env python import re import logging from lab.parser import Parser class MultiPattern: def __init__(self, attribute, regex, mapper, required=False, flags=''): self.attribute = attribute self.mapper = mapper self.required = required flag = 0 for char in flags: ...
[ "mar.zumsteg@stud.unibas.ch" ]
mar.zumsteg@stud.unibas.ch
bfa7845a3715e92b22b02ae33fc01bfb05d211e5
29e82a7b9412b10600fb5c7638c0918e08af67d7
/exps/algos/R_EA.py
bc3345bcc4569b24352b35198ea4b2200718e996
[ "MIT" ]
permissive
chenmingTHU/NAS-Projects
faa2edccd821b0ae0876179a1b02e7872d4bd91e
f8f44bfb31ed50c7156f9125ba34e49159848fb7
refs/heads/master
2020-12-02T14:48:17.363203
2019-12-29T09:17:26
2019-12-29T09:17:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,177
py
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################################## # Regularized Evolution for Image Classifier Architecture Search # ################################################################## import os, sys, t...
[ "280835372@qq.com" ]
280835372@qq.com
8f3b6dd785a104a1985f13ba77bbd4751286ee03
7fd8a09fd94d09d568d67afcb4ecf3b60a936fe2
/Tests/TestEnvironment/test_config.py
ad9fcccfe8d638613e2087450489742dbd85bc2a
[ "MIT" ]
permissive
dev-11/eigen-technical-task
4c2ac82c02f2cbd6b7020d2cbfc33beca20db37f
c0b041fc2bd27d2706ccdab94f6eb618f17098bd
refs/heads/master
2021-05-20T22:14:32.015768
2021-03-28T12:02:50
2021-03-28T12:02:50
252,434,894
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
DIRECTORIES_TO_SCAN = ['test_docs/'] TXT_FILE_EXTENSION = 'txt' DEFAULT_INTERESTING_WEIGHT = 1 INTERESTING_RATING_THRESHOLD = 5
[ "otto@masterbranch.io" ]
otto@masterbranch.io
4286d6e8f7466f4a7c7b415049764bd995510e58
272cf6bd5f56812e14c2ed0df60d626859ec2c96
/imdb_scrapy/spiders/script.py
e4449b1818474a1e4a37f9c3fa7e6064e5dd476e
[]
no_license
abhinavjha98/scrapy_simple_hired
a1b5933be5a401585f6cdfef48299b765cf25303
a0dbf812d1d4a5e16d8bf46633bdc95b747f2fd3
refs/heads/master
2023-01-24T05:46:24.639774
2020-11-30T17:17:09
2020-11-30T17:17:09
298,634,627
1
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
# -*- coding: utf-8 -*- import scrapy import urllib import requests # item class included here class DmozItem(scrapy.Item): # define the fields for your item here like: ApplyLink = scrapy.Field() Title = scrapy.Field() Company = scrapy.Field() Location = scrapy.Field() salary = scrapy.Field()...
[ "abhinavjha98ald@gmail.com" ]
abhinavjha98ald@gmail.com
d212b97e65ff4b31400a53849b1752ac83d9b736
4932130e91984cedb824609b4d4dd65e1ba6fbf3
/doc/lsystem_1.py
54b5d250c2c50af4085e58a3c59384c51d3f7663
[]
no_license
junqi108/MAppleT
999e6089c01d9b535727efc9dd3e0ddc9a6b4183
090370f08271455f6c1b89592a0b7eb18212a6c9
refs/heads/master
2023-06-20T13:24:34.111337
2021-07-20T15:10:10
2021-07-20T15:10:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,677
py
from openalea.lpy import * __revision__ = " $Id: stocatree.lpy 9964 2010-11-23 12:24:26Z cokelaer $ " try: import openalea.stocatre.optimisation as optimisation except: import openalea.stocatree.non_optimised as optimisation import openalea.stocatree.constants as constants from openalea.stocatree.output import ...
[ "christophe.pradal@inria.fr" ]
christophe.pradal@inria.fr
b1163b2984e2eb93acf05d4c2079a8f7368f68bc
a04c52e256b52a69f8786045d7751907b7d652cd
/python/inflowPrepMMC.py
1d0eb28fe69b6ca4a1f2f956efdcea8abbd65f35
[]
no_license
mchurchf/ABLTools
9b77e599759d38888bf7af44295b550ff8bb7396
474dc20b98f91dfc2b15853128e3ae62666f29cb
refs/heads/master
2021-01-20T15:23:51.950863
2019-06-19T21:29:04
2019-06-19T21:29:04
90,765,882
5
1
null
null
null
null
UTF-8
Python
false
false
16,595
py
# inflowPrepMMC.py # # # Matt Churchfield # National Renewable Energy Laboratory # 25 August 2017 # # This is a module to deal with preparing inflow for mesoscale-microscale # coupled cases over complex terrain. import numpy as np # Class to deal with the mesoscale-microscale inflow preparation. class infl...
[ "matt.churchfield@nrel.gov" ]
matt.churchfield@nrel.gov
49e3e2dc21de028828c27795a9fc50162734f705
bb453b5c265ea1567de6750c910a35c80ee984d5
/OSG/Gravel/SLiM_gravel_osg.py
f50c4d9c7372d20ff9a6973bfc5cc9cdd759d4d4
[]
no_license
SantosJGND/Models
8134142970a15ecf59c613947c681a434da7de91
b7b6740071a4caefe0addac7d883eb1bb18fb8d4
refs/heads/master
2021-05-18T21:13:05.754098
2020-11-21T20:52:26
2020-11-21T20:52:26
251,423,689
0
0
null
null
null
null
UTF-8
Python
false
false
4,737
py
from tools.SLiM_pipe_tools import ( read_chrom_sizes, region_samplev2, fasta_RextractUnif, write_fastaEx, process_recipe, SLiM_osg_dispenser, ) from tools.ABC_utilities import demo_to_recipe ########### if __name__ == '__main__': import argparse parser = argparse.ArgumentPars...
[ "dourado.jns@gmail.com" ]
dourado.jns@gmail.com
45d9db07a10f58220ed192774bd5337b434140b1
005ae4a30a0a322481489e2e4eacc0ac1a5bf36c
/amaascore/assets/derivative.py
f05a3989d7fdd6ea5666f340a3d313ee827966d8
[ "Apache-2.0" ]
permissive
amaas-fintech/amaas-core-sdk-python
d8b98dcc50c5536250803972b8d39b38e382825a
bd77884de6e5ab05d864638addeb4bb338a51183
refs/heads/master
2021-01-11T19:01:50.391765
2020-10-27T02:13:28
2020-10-27T02:13:28
79,296,376
0
8
Apache-2.0
2018-12-11T08:11:52
2017-01-18T02:46:34
Python
UTF-8
Python
false
false
1,358
py
from __future__ import absolute_import, division, print_function, unicode_literals from datetime import date, datetime from dateutil import parser from decimal import Decimal from amaascore.assets.asset import Asset class Derivative(Asset): def __init__(self, asset_manager_id, asset_id, asset_issuer_id=None, ...
[ "ned@amaas.com" ]
ned@amaas.com
1c78faf04ba1a79eed5b1f09d8a19e8c1175fe06
5eb003a2c4dc978a00de9fd9fac10ffc41c94297
/quadratic/views.py
fb7036c002d1b97869bef2bc99f0bc83b39e3437
[]
no_license
fedorchenko-a/ooniversity_django_courses_06
c1344d3b97520477e645f51187a74a553c1a8258
7070f49b000b402e0c2c04deb0c319115bfebf65
refs/heads/master
2020-05-21T02:23:36.296395
2017-04-08T18:35:00
2017-04-08T18:35:00
84,559,180
0
0
null
2017-03-10T12:45:57
2017-03-10T12:45:57
null
UTF-8
Python
false
false
1,970
py
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound import math from django.contrib import messages from . forms import QuadraticForm # Create your views here. def quadratic_results(request): message = {} diskr = '' if request.method == "GET": form = Qu...
[ "smolnax@gmail.com" ]
smolnax@gmail.com
1694e505bb5a7e90a0692bc69b4fbe548b49cf2b
012d191a0869869724ad2169289ddef2c74e6a9e
/Sort_Search/Searching/fibo3.py
2104ca91502ee5a507b52cac13638fd20cec7017
[]
no_license
seoninja13/Algo_DataStructures
7ceda677fe330955f0f01f034b3675e409516919
0476cf45f30f1c635340f969bf85877ee3943efc
refs/heads/master
2021-01-23T01:17:18.462298
2017-05-31T18:14:28
2017-05-31T18:14:28
92,860,589
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
# Example 1: find the fibonacy nth number # def findFib(n): # a,b=0,1 # if n<=1: # return 0 # else: # for i in range(n): # a,b= b,a+b # return a # print(findFib(6)) # 0, 1, 1, 2, 3, 5, 8, 13, 21 // findFib(n) # 0 1 2 3 4 5 6 7 8 // n # a b # ...
[ "dacheviov@gmail.com" ]
dacheviov@gmail.com
f35f9453708d4f7187b92e2ba3afe2280bf7d580
373daa3912c2f1f7c144a20593abac886729fca2
/products/serializers.py
1075d01379f7dd9f26ea0e0a9e97dea005c06e8e
[]
no_license
yash-bhat/Gallery
0cfccb6b2917c403adf5d79e40df51d5377bcac8
6e9f7114786eb9adbeb045d3d555626c4cf8ff87
refs/heads/main
2023-02-27T22:48:47.142656
2021-02-03T19:34:51
2021-02-03T19:34:51
335,344,231
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
from rest_framework import serializers from .models import Product #to return objects in the API for products class ProductSerializer(serializers.ModelSerializer): class Meta: model = Product fields = '__all__' # no serializer for 'User' model as we will just return random IDs there
[ "hvyashbhat@gmail.com" ]
hvyashbhat@gmail.com
ddf61c3298a3b789b970f9e7a487613619465098
50d35003334d3947ac71717f670647cb7b954427
/data/ai.py
33d2484289294860a0951be232b5b6d7d3a98abf
[]
no_license
NEVTIK-org/Simple-Virtual-Assistant
c40aec818972c001a61b6fe900a2ad91c3a3804d
a5731ec332a0ddd4fd7d6ad1c48c8620d862a6c4
refs/heads/master
2022-04-22T01:17:07.561823
2020-04-13T12:53:32
2020-04-13T12:53:32
255,242,805
1
0
null
null
null
null
UTF-8
Python
false
false
2,563
py
#Created by Hermawan S.S. #hermawansent@gmail.com import os import brain import re from playsound import playsound import speech_recognition as sr def speech_input(): print("\nMe\t\t: ",end="") user_input = str(brain.spoke()).lower() if user_input != "none": print(user_input) return user_input def learn_englis...
[ "farishelmi@nevtik.org" ]
farishelmi@nevtik.org
d6652ee362ae8f58bcb2d3e494a5e011f4bcedeb
46ec244f2b4b28645a7c8a1bfe666fc7c69ec76d
/booking/migrations/0022_auto_20181103_1536.py
fd6a9a66c70fa150f65469b9484dad5ef4e7e4c8
[]
no_license
bisalgt/hotel-jumera-app
d83c3b97f81f649333f26c9e3c1b2545cf516f40
b9d03c3bb321206a39a1f134c7c13fdbddd63337
refs/heads/master
2022-12-14T19:45:23.238189
2018-11-09T09:48:49
2018-11-09T09:48:49
203,003,707
0
0
null
2022-12-08T01:23:07
2019-08-18T13:01:29
Python
UTF-8
Python
false
false
710
py
# Generated by Django 2.1 on 2018-11-03 09:51 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('booking', '0021_auto_20181103_1421'), ] operations = [ migrations.AlterField( ...
[ "bisalgt@email.com" ]
bisalgt@email.com
06a75d32395897be1704baf76488c145cb2b23b8
779ae09963d3ee259ab8b9dc6f4d035dd551668c
/venv/bin/pyrsa-priv2pub
1b6424b1514d7ccc442c721d100d6e54a4ab307c
[]
no_license
manav2401/Apna-Hack-Ayega_hackout
5fa6473b96f3e02810c452de9b18e9b9295ab015
734240b844e20db845b0e03273dbb09f48686e6d
refs/heads/master
2020-08-06T19:17:34.357676
2019-10-13T16:01:45
2019-10-13T16:01:45
213,121,054
1
0
null
2019-10-13T15:04:35
2019-10-06T06:44:32
Python
UTF-8
Python
false
false
255
#!/home/nisarg/flask/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from rsa.util import private_to_public if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(private_to_public())
[ "nisshah1499@gmail.com" ]
nisshah1499@gmail.com
823daf20cb6341e16101ac5a8c0abc46ed7afb5f
92291e79a95c3c0876c7d5498c53b84e45e703de
/commands/abstract.py
85c036107c453a68bae11cdcd94e2b64157b51aa
[]
no_license
RafRaf/boobogram-bot
52932dfde614677bdd1c1c49a2b9de7fa74f454c
9ae3bc904cb7d333e452f5312e67002bae50ef80
refs/heads/master
2022-05-01T23:12:44.096690
2022-04-28T06:52:01
2022-04-28T06:52:01
51,752,737
5
0
null
2018-02-03T09:13:35
2016-02-15T12:03:27
Python
UTF-8
Python
false
false
160
py
class AbstractCommand: COMMAND = '*TYPE COMMAND HERE*' def handler(self, bot, update): raise NotImplementedError('Handler is not implemented')
[ "smartrafraf@gmail.com" ]
smartrafraf@gmail.com
8c9849703cc07eca40e79e9815e37eca6f5ad5a7
77e2e024741473aa4bfaa91332ed9187130677b5
/names/my_subprocess.py
32fc1f9c5438500841b7e4a57c8a5fa499849222
[]
no_license
ld86/shad-course-work
444accbd802876d988b7a08c24a51b68b5bfbb87
0510e165378ec686455e8937ec146ed12a48063c
refs/heads/master
2021-01-25T03:54:43.656012
2013-08-23T07:48:56
2013-08-23T07:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
#!/usr/bin/python3.2 import os import time import fcntl import subprocess class IPopen(subprocess.Popen): def __init__(self, *args, **kwargs): """Construct interactive Popen.""" keyword_args = { 'stdin': subprocess.PIPE, 'stdout': subprocess.PIPE, 'stderr': subpr...
[ "frizzlywitch@gmail.com" ]
frizzlywitch@gmail.com
eb2bae37e9c648b4f4f8701e435601f4d4be96e9
0f556b9d4e250df73bf1e0929dbd4afad51e82fe
/smaller_than/smaller_than.py
cb6b4e049621e62ab38344e518e8ebe479383f31
[]
no_license
unabl4/PythonCodeClub
0ef1cb4d145860a4fda528c2eea513d0ba6b8327
72d5887342c1e0b304307a0e0ac9eb78f0202c35
refs/heads/master
2021-04-30T04:42:03.266029
2019-02-18T22:09:12
2019-02-18T22:09:12
121,541,065
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
def smaller_than(number_1, number_2): return None if number_1 == number_2 else min(number_1, number_2)
[ "unabl4@gmail.com" ]
unabl4@gmail.com
19838a190c48902a9799ae5a54116786d9d5576b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2901/58744/247697.py
300e82a6c695d61e1fd561bfba7acad1b071cf0a
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
289
py
num = int(input()) def isAlternatingBits(num): former_bit = 0 if num & 1 else 1 while num > 0: if num & 1 == former_bit: return False num >>= 1 former_bit = 0 if former_bit else 1 return True print(str(isAlternatingBits(num)).lower())
[ "1069583789@qq.com" ]
1069583789@qq.com
08fbda338ee07b7d2e4bdaddba5d9ca235ebee02
251c899a019af13f0355fc005dad499e12464ee2
/home/views.py
d0000b07c64a63aa5a865639e8735019709b924d
[]
no_license
vinayhegde105/docker_ECR
d7a556f1a6127e857a24b458bce074819b2ecda3
db8b2614436487806868862759df601a303350eb
refs/heads/main
2023-08-05T14:46:19.018733
2021-09-23T14:52:15
2021-09-23T14:52:15
409,539,321
0
0
null
null
null
null
UTF-8
Python
false
false
3,423
py
from django.shortcuts import render , redirect # Create your views here. from .form import * from django.contrib.auth import logout def logout_view(request): logout(request) return redirect('/') def home(request): context = {'blogs' : BlogModel.objects.all()} return render(request , 'home.html' ,...
[ "root@AdminVM.ce2kuzjo5r2utpyd55bak1t0ia.rx.internal.cloudapp.net" ]
root@AdminVM.ce2kuzjo5r2utpyd55bak1t0ia.rx.internal.cloudapp.net
6b201919d4ba0b553e94078cae06ca3b7bd4d89a
3b7cc69990b01cc6765435cc513d06f63edea334
/Programmers/다리를 지나는트럭.py
57f7ffc00c6f76bc4d8a94aca27ebbeb8d312612
[]
no_license
naldal/This-is-coding-test
9d531e6131f40ee8ecf02fc038f5d2c040325e6f
a5170e0780ccb9f62c963ae46e45bebd1f9d288f
refs/heads/master
2023-01-05T09:39:38.643980
2020-11-05T09:07:15
2020-11-05T09:07:15
293,424,017
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
def solution(bridge_length, weight, truck_weights): answer = 0 for i in range(len(truck_weights)): print(i) total_weight = truck_weights[i] truck_count = 1 reduce = 0 if total_weight < weight: for j in range(i+1, len(truck_weights)): total_weig...
[ "cec7378@gmail.com" ]
cec7378@gmail.com
49499f173136efc9f5360c976ed035066e6153ff
a48aff43b3b05fedfa4e9262842be0c485a1addf
/python/gamin/racey.py
270f5505879af934bcbf4ed6cdeb6e97e6ccdded
[]
no_license
Vkeynote/rep3
5989d22805efb2c07e038b3027e8eb54adfb6fac
87789937bd4097cd142c57223e5c656ae2a476f5
refs/heads/master
2020-12-30T14:33:37.603440
2017-06-22T11:06:07
2017-06-22T11:06:07
91,320,885
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
import pygame import sys pygame.init() display_width = 800 display_height = 600 black = (0,0,0) white = (255,255,255) green = (0,255,0) red = (255,0,0) blue = (0,0,255) gameDisplay = pygame.display.set_mode((display_width, display_height)) pygame.display.set_caption('Ray-see') clock = pygame.time.Clock() crashed = F...
[ "victor kinoti" ]
victor kinoti
363f86770b28d6cb2e6389bb1e933efbd7d0a25f
e29b380111a9180fb4a5a4b3b227b2a67dbf71b2
/State.py
5ba57e77ccc20b5c078696d9a4f7af7e201e1f31
[]
no_license
ptyshevs/npuzzle
5af9036537f9125e1689eef856e29aad1fc3fdcf
05c578aa73a56d9a1a7be642531490e53db5b79a
refs/heads/master
2020-08-10T05:23:44.598024
2019-10-18T10:47:07
2019-10-18T10:47:07
214,267,611
0
0
null
null
null
null
UTF-8
Python
false
false
6,047
py
class State(list): def __init__(self, values=None, empty_loc=None): """ Matrix is a rectangular table of numerical values :param values: """ self.shape = len(values), len(values[0]) self.h, self.w = self.shape # self._validate_values(values) self.value...
[ "ptyshevs@gmail.com" ]
ptyshevs@gmail.com
b6ebc4882b065f7bde87c7e46e7c9c9b357583dc
ae6adcc4f81e59cc570889f999d6fa4c919e201b
/dataloader/dataLoad.py
effb825572ffba9bd7fa1bd975578b0712541062
[ "BSD-3-Clause" ]
permissive
Orieus/WeakLabelModel
82643f54957236f548f7912c075ec975a8b47cfa
7d51fc719b8d5a715b55587e382f84b87c54378a
refs/heads/master
2023-04-05T18:51:53.634708
2021-09-27T18:51:24
2021-09-27T18:51:24
62,823,569
0
1
null
2023-03-25T01:13:14
2016-07-07T16:55:27
Jupyter Notebook
UTF-8
Python
false
false
1,658
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This code contains a method to load datasets for testing classification algorithns Author: JCS, June, 2016 """ # External modules import sklearn.datasets as skd def getDataset(name): # This method provides the feature matrix (X) and the target variable...
[ "jcid@tsc.uc3m.es" ]
jcid@tsc.uc3m.es
7721212f0127819872a18fcc4a779267ff52d0b7
c9dc5de35b590f748ab29d89b572f270bbff1f45
/setup.py
c2e112464c6f69152594161f7322e1c272358c47
[]
no_license
spmacdonald/craigslist
198600c2bbff456dc23eb47e10eb45f0f4ece3fa
ebf13276b9ea59f465a6fd722b54ca66494f1998
refs/heads/master
2016-09-09T17:02:17.308681
2013-01-16T09:02:52
2013-01-16T09:02:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='craigslist', description='A Python API for searching Craigslist.', long_description=read('README'), author='Andrew Brookins', author_email='a@andrewbrookins...
[ "a.m.brookins@gmail.com" ]
a.m.brookins@gmail.com
45ee16d54b3d9fc6b576564b858c3f81e65f61ac
8f589b4ce5daa41325dd34af7f55b79d4363fff4
/rest_api_project/wsgi.py
293555757e895f29980343018f5ac48a41d000ff
[]
no_license
manoliskorniotakis/geo_rest_api
506ba9413c1a6e33bc90cc8b6961df7220226edb
2f2318a5592ccfd4c3cd43c33afa61758d3a9416
refs/heads/master
2020-03-23T00:57:10.311380
2018-07-13T21:37:50
2018-07-13T21:37:50
140,893,372
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
""" WSGI config for rest_api_project 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "manolis@Jessie.debian.org" ]
manolis@Jessie.debian.org
273d5e6c1723e75812580b3ef222fe5e49de355b
07a460e0827fe2e7326276d78216b64fcc0cbf43
/CSCI_1100/Week_7/Lab_6/lab6Files/check0.py
2145e0c6f2f70146626a257b55ddae97c202b6ff
[]
no_license
bobmayuze/RPI_Education_Material
2b1a122b70ec420f9a63fe1e26c47ad2d506cd9b
202a25239f4c50529012b0c9163ca059bf7fc82b
refs/heads/master
2020-12-01T21:01:09.059103
2017-02-17T18:29:37
2017-02-17T18:29:37
67,041,284
2
0
null
null
null
null
UTF-8
Python
false
false
443
py
string = '' for i in range(0,9): string += str(i)+' ' print(string) rows = 9 cols = 9 grid = [] for y in range(rows): grid.append([0]*cols) for y in range(rows): for x in range(cols): grid[y][x] = "{},{}".format(y,x) # print("{},{}".format(y,x)) s = "" for i in range(len(grid)): for p in range(len(grid[i]...
[ "584653629@qq.com" ]
584653629@qq.com
79a8e4c562139987c47fe34f81f4bc9c48703f36
3db7b5409f2f9c57ab3f98bda50f8b548d98063d
/samples/tests/test_model_samples.py
ed82dd678c2f104779586f523aeefb3e7b00a9f1
[ "Apache-2.0" ]
permissive
googleapis/python-bigquery
66db156b52e97565f6211b2fab5aac4e519fa798
3645e32aeebefe9d5a4bc71a6513942741f0f196
refs/heads/main
2023-09-01T07:41:24.893598
2023-08-23T19:04:13
2023-08-23T19:04:13
226,992,475
622
287
Apache-2.0
2023-09-12T04:31:26
2019-12-10T00:09:04
Python
UTF-8
Python
false
false
1,507
py
# Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
noreply@github.com
f29914a515f74f76b34be9f8770ba18e37935362
401d9e394626c143eecbe2079b6a94fa4c896c05
/crawler/fdThreads/fd_to_thread.py
7b464a19b005d18ed820c5a144e67eb622c4fbc8
[]
no_license
paldosh/perceive
f94dc0e05814bb7825a4fa180829eeb54bb4df3a
2d67cdec04970446057c7da4532ac0f5192b4fa4
refs/heads/master
2020-12-28T23:36:08.667215
2017-01-20T04:51:12
2017-01-20T04:51:12
66,851,770
0
0
null
2016-09-01T00:35:36
2016-08-29T14:36:56
null
UTF-8
Python
false
false
899
py
#script to get the thread FD data in the format required for Running LDA import csv import sys def get_data(f): try: f2= open(f) d=f2.read().strip() f2.close() except IOError: print "error" d="" return d if __name__ == "__main__": if len(sys.argv) != 2: print "Usage: <Name of the ...
[ "noreply@github.com" ]
noreply@github.com
49850af963a65360d1c97ece208d22db0d8b0796
ef4f8e5505077799eef1e333c681eba2f5b91eb7
/proyectoLeVents/manage.py
193ee00e952eab2fa446208afba8a2d54ff2036e
[]
no_license
DonRata/Le-Vents
9b9a44e7a25972f7ff32ac1b83e9766d505b2d90
7b668565732f218b6e5bfd2bc002dfd11b45a060
refs/heads/master
2021-06-22T19:11:18.093227
2019-12-02T14:16:14
2019-12-02T14:16:14
215,043,028
0
0
null
2021-06-10T22:12:40
2019-10-14T12:50:52
Python
UTF-8
Python
false
false
627
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Levents.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Import...
[ "emilio.r.cruz@gmail.com" ]
emilio.r.cruz@gmail.com
ca418afeb7226b1ed8850883ad982e55f778e9c6
b6832369607b214a3b491262f135b818e242e6c3
/catalog/urls.py
6c9bf7190243e6befa7456b45a60becd2e69c53c
[]
no_license
khazraer/Test
a55b103c462450e3b05f46b01d6746b800aa0971
17da0270978abd6a72d4058b41e03b8110d35984
refs/heads/master
2020-07-26T02:23:50.649017
2019-09-14T22:17:59
2019-09-14T22:17:59
208,503,156
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.urls import path from catalog import views urlpatterns = [ path('', views.index, name='index'), path('book/',views.BookListView.as_view(),name = 'books'), path('book/<int:pk>',views.BookDetailView.as_view(),name = 'book-detail') ]
[ "raedkhazeem@Raeds-MacBook-Pro.local" ]
raedkhazeem@Raeds-MacBook-Pro.local
fa28e044a716da27bba63669641a6930120d6137
2a538cffa543855a2c0c1b4485a0455b9673efdd
/users/migrations/0005_remove_profile_name.py
3b9e8eeaf8d21b482426080b9df7b6ca1296226e
[]
no_license
FLIQ1-0/FLIQ1.0
dbf0ae92cf613d9a9813122998934e4ceedc9790
97109d62a89b9184052c349b09d28b097c1bdcf6
refs/heads/main
2023-06-30T01:39:28.560442
2021-07-30T07:15:06
2021-07-30T07:15:06
390,750,477
0
1
null
null
null
null
UTF-8
Python
false
false
342
py
# Generated by Django 3.0.8 on 2020-08-13 14:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20200812_0907'), ] operations = [ migrations.RemoveField( model_name='profile', name='name'...
[ "noreply@github.com" ]
noreply@github.com
42226fdcd5ceb2549588906b5c91eab8af344a0f
cbc9b9966f4dd25d9e77f1b85b4179ee372a3eea
/tests/utils.py
720371037fa93e53103cafa2b25bfa8951edccc7
[ "Apache-2.0" ]
permissive
uber/uber-poet
f58b8f264f8e2f4c488104f41d3146fca380f648
580a52f428014861847ea59bb838ffb4e060b84d
refs/heads/master
2023-09-03T16:04:26.824597
2021-06-16T22:21:39
2021-06-16T22:21:39
156,401,298
95
14
Apache-2.0
2022-01-12T04:01:10
2018-11-06T15:04:46
Python
UTF-8
Python
false
false
916
py
# Copyright (c) 2018 Uber Technologies, 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 agree...
[ "mahyar@uber.com" ]
mahyar@uber.com
611a50956c59cb945db54ff980d7e159427332e7
da0fd3464feae5e77469b2ff2e727388fb806335
/btre/urls.py
00804af15a0f5a9e3c691e5b885194cb426ea548
[]
no_license
mim-omid/Django_RealEstate
d02ee8c829138fb1dc5916621b2ad1db97456a48
17cefeb502594274ed505474e03d54aca4930399
refs/heads/master
2020-05-22T14:42:40.226353
2019-05-18T11:10:43
2019-05-18T11:10:43
186,393,151
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
"""btre URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "mr.mim.omid@gmail.com" ]
mr.mim.omid@gmail.com
56531f41048eb1678833782d2cbcab5c2079f65c
e02ae56bdd80ad660c3fe455641e74b5ae8ba765
/FluentPython/unit17/demo_executor_map.py
150bb87106ed622508c340713fcd8082e980702f
[]
no_license
RiderLai/pytest
aa1f7115186c274856996fa3c9cce2e0982fabc2
e939398353efe624d4808d0024a85762a235ca9a
refs/heads/master
2020-04-14T01:16:59.678025
2020-02-12T12:02:49
2020-02-12T12:02:49
163,556,588
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
from time import sleep, strftime from concurrent import futures def display(*args): print(strftime('[%H:%M:%S]'), end=' ') print(*args) def loiter(n): msg = '{}loiter({}): doing nothing for {}s...' display(msg.format('\t'*n, n, n)) sleep(n) msg = '{}loiter({}): done.' display(msg.format(...
[ "lyf670354671@gmail.com" ]
lyf670354671@gmail.com
a43a6ca183fe13cab45ff1ffe654cb22df55bdd3
b3f6daa5d6c987eb8a61d5fe125bf2a98997e259
/8kyu/Simple multiplication/index.py
0853411208f8f60cc3ab604295bcd6f49ea44358
[]
no_license
krnets/codewars-practice
53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce
5f8e1cc1aebd900b9e5a276884419fc3e1ddef24
refs/heads/master
2022-12-20T19:33:43.337581
2022-12-16T05:32:39
2022-12-16T05:32:39
217,464,785
1
0
null
2020-07-20T08:36:31
2019-10-25T06:20:41
JavaScript
UTF-8
Python
false
false
668
py
# 8kyu - Simple multiplication """ This kata is about multiplying a given number by eight if it is an even number and by nine otherwise. """ # def simple_multiplication(number): # return 8 * number if number % 2 == 0 else 9 * number # def simple_multiplication(number): # return number * (8 if number % 2 == ...
[ "cmantheo@gmail.com" ]
cmantheo@gmail.com
eb484998751392468bf30d8a2fb2c3ba3ede7764
318d26f99fc8e61b9da4669edb72f400b7fd26d3
/venv/Scripts/pycolor-script.py
f3417a87f6dafedb62f79b400dd596547c1db112
[]
no_license
lsferreira934/Exercicios-em-Python
880a8221a00de43a429c216153be6cba043c8369
7f59f8c1dafdd23a68189bf9123c818e511d2858
refs/heads/master
2020-12-22T17:19:03.982669
2020-01-29T00:42:52
2020-01-29T00:42:52
236,871,652
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
#!C:\Users\Leandro\PycharmProject\CursoemVideo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'color==0.1','console_scripts','pycolor' __requires__ = 'color==0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy...
[ "lsfereira934@yahoo.com.br" ]
lsfereira934@yahoo.com.br
4d67978e52e4e83c73dd638f7a3dce705eb9f725
7ea3fd8b778fa47b9e7f2c91b094a50a7dd34cf2
/Ch. 8 Exercise 5.py
ff97daa2a931cafc0c1528f65b68b017cd2be51d
[]
no_license
jenjade/class-work
7c4ee0d215fa3a16806c7d6259f06d84c579f146
af0d1281cdd64898afebcf87220a22ee50aa2569
refs/heads/master
2020-03-16T21:16:24.754108
2018-05-11T05:31:37
2018-05-11T05:31:37
132,992,066
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
fhand = open('mbox-short.txt') count = 0 search_word = 'From' for line in fhand: dict() words = line.split() #print ('Debug:', words) if len(words) == 0 : continue if words[0] != 'From' : continue print(words[2]) count += 1 print ('The word From occurs', count, 'times.')
[ "jenjade@uw.edu" ]
jenjade@uw.edu
c4629c6296276f6dd000ac6acc97097972160f92
4755dabdcff6a45b9c15bf9ea814c6b8037874bd
/build/laser_proc/catkin_generated/pkg.installspace.context.pc.py
8aa2d2e231584bb4c6aa2e425d2a5cc3e336be50
[]
no_license
Rallstad/RobotSnake
676a97bdfde0699736d613e73d539929a0c2b492
37ee6d5af0458b855acf7c2b83e0ee17833dbfd1
refs/heads/master
2023-01-03T05:46:46.268422
2018-05-27T16:01:47
2018-05-27T16:01:47
308,665,980
2
0
null
null
null
null
UTF-8
Python
false
false
698
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/snake/Documents/catkin_ws/install/include".split(';') if "/home/snake/Documents/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;rosconsole;nodelet".replace('...
[ "vetle.fredriksen@gmail.com" ]
vetle.fredriksen@gmail.com
5733282b347437017239c5826413bf88554b2717
2d8573859614560cd550df021cf46901803dd18a
/merdecoin-v0.01/test/functional/feature_reindex.py
123ee0a7d555cb17a50dc57592b3ad2ba3ad49e7
[ "MIT" ]
permissive
merde-libertas/merdecoin
d0cd34a84e8affbf42b99c8acd1cc692a1767b26
35f8a54db8d322d0bd8534822f0e88aab274e539
refs/heads/master
2023-05-26T20:43:23.516846
2021-06-10T10:24:07
2021-06-10T10:24:07
369,151,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Merdecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running merdecoind with -reindex and -reindex-chainstate options. - Start a single node and gen...
[ "phillipwilkinson@hotmail.com" ]
phillipwilkinson@hotmail.com
879913c4b70bee4502b035d12d1c323881a4572e
087594210fbc0c8d417368d9ea347748eba77206
/graphical pass point/cryptography.py
3b5dbae3665e91c0db7b85fbe2a39f0ab871ee22
[]
no_license
hazelclement/python-programs
f663055a3f62a96684f31e25dfd47903cb0feca6
055c5f8922126119bc8e74d6c0f17569d280c23a
refs/heads/master
2022-12-01T16:05:09.048514
2020-07-21T17:46:01
2020-07-21T17:46:01
281,458,353
0
0
null
2020-07-21T17:46:03
2020-07-21T17:11:41
Python
UTF-8
Python
false
false
241
py
message = 'This is program to explain reverse cipher.' translated = '' #cipher text is stored in this variable i = len(message) - 1 while i >= 0: translated = translated + message[i] i = i - 1 print("The cipher text is ", translated)
[ "hazelclement15@gmail.com" ]
hazelclement15@gmail.com
14895c387790963bdf7116b1e8c8c4f7091456ff
bd61ecbc7696eb499b0658c5d636e93bf2f94844
/tutorials/W08_AutoEncoders_GANs/solutions/W8_Tutorial1_Solution_Ex05.py
db284bd51b1651e82d322ddcabf0f27c929a1b38
[]
no_license
fyshelab/course-content
a8587f23a8fcfd692694cfddcbf5879a6cbbc2ec
353d738d76a352a09e058569d6692d5944a3975a
refs/heads/main
2023-04-19T19:40:01.129935
2021-05-14T19:56:19
2021-05-14T19:56:19
364,661,485
1
1
null
2021-05-05T17:50:57
2021-05-05T17:50:56
null
UTF-8
Python
false
false
4,138
py
class ConvVAE(nn.Module): def __init__(self, K, num_filters=32, filter_size=5): super(ConvVAE, self).__init__() # With padding=0, the number of pixels cut off from each image dimension # is filter_size // 2. Double it to get the amount of pixels lost in # width and height pe...
[ "noreply@github.com" ]
noreply@github.com
1337748aee1def7513208e92e38858d34f0ed411
50fcaacdb31ae4083749266286f2ac6efcaef97a
/backend/base/products.py
3cf6d7f8fa418fd6335f7a4a4835474b925d4abe
[]
no_license
TannerGS/react-django-ecommerce
cfc587a3fe5941cbc4eedeaf291bd05564329231
a44242a28229dc1574d1293416f1feb213e70745
refs/heads/master
2023-05-05T06:51:33.117588
2021-05-25T18:25:55
2021-05-25T18:25:55
364,300,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
products = [ { '_id': '1', 'name': 'Airpods Wireless Bluetooth Headphones', 'image': '/images/airpods.jpg', 'description': 'Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone all...
[ "tannersimpkins@gmail.com" ]
tannersimpkins@gmail.com
20f8fb5a190e77a3ff5fccec0605de447e4a5d3d
cd612a871df90cc010f7836cbdaf40afba401016
/blog/myblog/migrations/0003_auto_20170422_2009.py
a9145bd8176b513289b7db8152aff89e764a1048
[]
no_license
nicexp/myblog
64db95bb06b52d09bae4322f5ba9bdf44cd4781a
1856d54cb7f302501c425febe0f5a30a89697d60
refs/heads/master
2021-01-20T14:59:51.313194
2017-05-09T04:42:56
2017-05-09T04:42:56
90,703,324
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-22 12:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myblog', '0002_auto_20170422_2005'), ] operations = [ migrations.AlterField( ...
[ "419797567@qq.com" ]
419797567@qq.com
bf1fd77267d8c4bca07a45429c04b6b67db22867
0970a4aab1070bdb28b799fab2cf61693c4ccab2
/src/tf-idf.py
120bfc4d0f4f88914b5d27c3c389f38a84926175
[]
no_license
nickzhangf/machine-learning
ca53842ab0a07e7e6df8317e1ecc09e3dd0fc958
a2376319c3a0b1fac315153f72f780f0402b7271
refs/heads/master
2020-12-29T02:39:02.406050
2017-02-13T02:33:34
2017-02-13T02:33:34
52,136,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
# coding:utf-8 __author__ = "liuxuejiang" import jieba import jieba.posseg as pseg import os import sys from sklearn import feature_extraction from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer if __name__ == "__main__": corpus = ["我 来到 北京 清华大学"...
[ "fengz2008@163.com" ]
fengz2008@163.com
0d9c589064bdfa802bbc69912c2b119c8b1a3167
5b3d8b5c612c802fd846de63f86b57652d33f672
/Python/seven_kyu/to_jaden_case.py
6f1011c1120d950fcc87a4462cab4f25505b6208
[ "Apache-2.0" ]
permissive
Brokenshire/codewars-projects
1e591b57ed910a567f6c0423beb194fa7f8f693e
db9cd09618b8a7085b0d53ad76f73f9e249b9396
refs/heads/master
2021-07-22T18:50:25.847592
2021-01-25T23:27:17
2021-01-25T23:27:17
228,114,677
1
0
null
null
null
null
UTF-8
Python
false
false
942
py
# Python solution for 'Jaden Casing Strings' codewars question. # Level: 7 kyu # Tags: Fundamentals, Strings, and Arrays. # Author: Jack Brokenshire # Date: 17/02/2020 import unittest def to_jaden_case(string): """ Your task is to convert strings to how they would be written by Jaden Smith. The strings are a...
[ "29889878+Brokenshire@users.noreply.github.com" ]
29889878+Brokenshire@users.noreply.github.com
11e9e11dc871aea4258733931469fe48088b6a3c
91d77c5cde6a83457b5b0b7baf9f4d04398c7f2b
/mysite/settings.py
20ca551958cd2bd9b987d00991a4b64623910dad
[]
no_license
niksamoyloff/blog
727835a9bb47dcd7766ca4ad6cc684e02c738ff5
27f4a0f891f9a480100d4507dd65065f152f6560
refs/heads/master
2021-06-09T22:52:17.619888
2017-01-09T11:24:08
2017-01-09T11:24:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "niksamoyloff@gmail.com" ]
niksamoyloff@gmail.com
d807a7d1a649fac018c6da8614952df89a7cdc5e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_snowboard.py
5100be7c8c861988ab39e3be570cce2fce7b2eba
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#calss header class _SNOWBOARD(): def __init__(self,): self.name = "SNOWBOARD" self.definitions = [u'to slide on the snow by standing on a specially shaped board: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = [...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e8d69dc71a1291dee1d8938c549171c4d1c602aa
e58307f680fb8f975b7c47b0dda98efed2e0675f
/main.py
cc000d07d16a2bd8c8c0d075c5c6308c7361631d
[]
no_license
yeahdef/albumRipIdentify
af49fc83cf152c18e3d65ac6a35951e089322b9c
266b043fb981e53cc7d26e6f2b382a71b0ddba81
refs/heads/master
2020-03-16T00:02:51.928628
2018-05-07T04:28:15
2018-05-07T04:28:15
132,406,714
0
0
null
null
null
null
UTF-8
Python
false
false
4,589
py
from mutagen.easyid3 import EasyID3 from dateutil.parser import parse from mutagen.mp3 import MP3 from time import sleep from tqdm import tqdm import discogs_client import argparse import mutagen import difflib import fnmatch import pickle import sys import os parser = argparse.ArgumentParser(description='Slice mp3 re...
[ "josephliechty@josephs-air.gateway.pace.com" ]
josephliechty@josephs-air.gateway.pace.com
aba1b20ca910395e8e556c928a2bf6e5d53cdac8
2d8da5cacd21dd425688d67e1a92faa50aefc6bc
/excel-sheet-column-number.py
c90dd1c70703b45a9911aa35628d96708bba7730
[]
no_license
stella-shen/Leetcode
970857edb74ae3ccf4bcce0c40e972ab8bcc5348
16ad99a6511543f0286559c483206c43ed655ddd
refs/heads/master
2021-01-19T02:48:49.918054
2018-11-29T10:36:43
2018-11-29T10:36:43
47,523,042
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ ret = 0 for i in xrange(len(s)): ret *= 26 ret += ord(s[i]) - ord('A') + 1 return ret if __name__ == '__main__': sol = Solution() s = "AB" ...
[ "szsxt818@gmail.com" ]
szsxt818@gmail.com
751a74264a973fe1ab989c874cc4a9a039bd45e4
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/373.py
65e1a8ea83c63527538a4d324820da9d12a0a74e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,581
py
''' Created on May 9, 2010 @author: indra ''' import sys, os filename = "C-large" path = os.path.normpath(os.path.join(os.path.dirname(__file__), filename+".in")) reader = open(path, "rb") path = os.path.normpath(os.path.join(os.path.dirname(__file__), filename+".out")) writer = open(path,"w") ncases ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f183c720412c131b71409791d712d87142101b8b
6e8d58340f2be5f00d55e2629052c0bbc9dcf390
/eggs/SQLAlchemy-0.5.6_dev_r6498-py2.6.egg/sqlalchemy/databases/mysql.py
ba6b026ea29aac857be41bbe8563e904dfc2ff43
[ "CC-BY-2.5", "MIT" ]
permissive
JCVI-Cloud/galaxy-tools-prok
e57389750d33ac766e1658838cdb0aaf9a59c106
3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c
refs/heads/master
2021-05-02T06:23:05.414371
2014-03-21T18:12:43
2014-03-21T18:12:43
6,092,693
0
2
NOASSERTION
2020-07-25T20:38:17
2012-10-05T15:57:38
Python
UTF-8
Python
false
false
97,080
py
# -*- fill-column: 78 -*- # mysql.py # Copyright (C) 2005, 2006, 2007, 2008, 2009 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Support for the MySQL database. Overview -------- For normal SQ...
[ "root@ip-10-118-137-129.ec2.internal" ]
root@ip-10-118-137-129.ec2.internal
efed41830ae32c4bd43678d92ff17f433ecfa92d
f12024bf505b270177ad24e7acc9c9980f0ad1a8
/aidants_connect_web/migrations/0002_auto_20220511_1735.py
a7511994fa2c6e1a4487fd2519a07eb859755a02
[ "MIT" ]
permissive
betagouv/Aidants_Connect
18be11e542d3071e516c32b357e9dbab927ecedb
228ff94f5f3696ed8384992d7a8c9a3adbe6eeda
refs/heads/main
2023-08-31T02:49:05.557288
2023-08-29T09:10:14
2023-08-29T09:10:14
180,139,859
22
15
MIT
2023-09-13T09:37:51
2019-04-08T12:02:11
Python
UTF-8
Python
false
false
664
py
# Generated by Django 3.2.12 on 2022-05-11 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aidants_connect_web', '0001_20220329_stable_schema'), ] operations = [ migrations.AddField( model_name='habilitationrequest', ...
[ "liviapribeiro@gmail.com" ]
liviapribeiro@gmail.com
68b565789058c8489d1540a33c82ab5cffbc36d4
bf362dbe80929d1f6bd6600a91b9bb6882c4120c
/train.py
7e1bd37241ad09f38cf71be7b93dfa12dc898bee
[]
no_license
Neclow/ee559-project2
9cfd5a3ba46745b3672ea10794e6fe0d62f98f01
0753602e5fff6c25f3d4597b6e55ffd790e1eed5
refs/heads/master
2023-03-06T04:48:03.477123
2021-02-23T21:36:17
2021-02-23T21:36:17
260,314,599
1
0
null
null
null
null
UTF-8
Python
false
false
5,709
py
import time import torch from loss import * from metrics import compute_accuracy from optim import * from utils import load_data def train(model, trainX, trainY, input_criterion = 'mse', input_optimizer = 'sgd', nb_epochs = 250, eta = 1e-3, mini_batch_size = 100, verbose = False): ''' Network traini...
[ "neil.scheidwasser-clow@epfl.ch" ]
neil.scheidwasser-clow@epfl.ch
b34d5bebd57109d20aee7fec341878dfb3c9875c
31eaed64b0caeda5c5fe3603609402034e6eb7be
/python_zumbi/py_web/test_scraping_2.py
8504ae20c38d531160f7f991a12e83e59ccd487b
[]
no_license
RaphaelfsOliveira/workspace_python
93657b581043176ecffb5783de208c0a00924832
90959697687b9398cc48146461750942802933b3
refs/heads/master
2021-01-11T17:39:49.574875
2017-06-28T20:55:43
2017-06-28T20:55:43
79,814,783
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
import urllib.request #modulo que permite conversar com a internet pagina = urllib.request.urlopen( 'http://beans.itcarlow.ie/prices-loyalty.html') text = pagina.read().decode('utf8') print(text) i = text.find('>$') preco = float(text[i+2:i+6]) if preco < 4.74: print('Em Promoção: ', preco) else: print('Es...
[ "raphaelbrf@gmail.com" ]
raphaelbrf@gmail.com
6fa0a724f104e22e21a81398bf7856c9112ccc71
5b75ec6cf092e94bd359ffce19c483e71b8e7163
/3_Selenium/2-2.py
7e2e762bac8f8f844dc671253dd1d0d7de0c0a05
[]
no_license
Jeongyoungwang/1_Lecture
ef443a25191b83328daca2122a418b84a966369f
8459629c9904573b7157c11738e789e2a1d4b0be
refs/heads/master
2020-05-03T12:32:39.601764
2019-03-31T03:02:17
2019-03-31T03:02:17
178,629,236
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import sys import io import requests sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8') #Response 상태코드 s = requests.Session() r = s.get('http://httpbin.org/get') #print(r.status_code) #print(r.ok) #https://jsonplaceholder.typic...
[ "sumer3@naver.com" ]
sumer3@naver.com
23e52be0c8ce3adfba088e27013ec2ded693edb9
db5030b0ef8de107af5161b44e4cb0a03e97ff18
/My codes/csv format/T.py
358b85c80dd0e3e06ae77858af67589d0c55d216
[]
no_license
saadmaan/Thesis-
c7f7bed9993e7f731930740845f5c402ca4c4736
5ae789aa64dae484c8efd6a839854a78465905e1
refs/heads/master
2021-02-28T03:06:42.518424
2020-05-17T17:41:21
2020-05-17T17:41:21
245,657,300
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
import pandas as pd df = pd.read_csv('F:\THesis\Dataset\Crime.csv') saved_column = df['Start Date/Time'] #you can also use df['column_name'] print(saved_column) for row in saved_column: str(row); c = row[0]
[ "saadmanhabib26@gmail.com" ]
saadmanhabib26@gmail.com
d0686bbf88f5f164a24afb5e2449f189d6ba2b4b
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc008/B/4886377.py
4b2e8bb008ccb62443ac42cbdabfef1b5a1468e8
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
147
py
import collections N = int(input()) names = [input() for i in range(N)] max_ele = collections.Counter(names) print(max_ele.most_common()[0][0])
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
463a971b29b02dbb0551e83fda61984330b49500
e9a08404751aee4891ed01fc7ef42c05761e853a
/attendanceChkIn_OUT.py
5b50f76cd1bfae65c13ab12c2a0801639a124bd1
[]
no_license
kathirm/TNPLTRPA
8eed651ff46a02bcfe5de48153ec198751ee6c20
db170bd8ad686543188c6aac82d2e9c12c72b0e7
refs/heads/master
2022-12-17T10:26:27.049538
2020-07-24T09:35:43
2020-07-24T09:35:43
171,221,067
0
0
null
2022-12-08T06:21:54
2019-02-18T05:35:17
Python
UTF-8
Python
false
false
3,093
py
import datetime , json, sys, requests from random import randrange def date_backward(token, uId, chkType, inpttime): try: dtlist = [] #get_backward date tmlist = [] #get_time's Random headers = {"Authorization" : "Bearer %s"%token} cur = datetime.date.today() curdte = str(cu...
[ "mkathir@terafastnet.com" ]
mkathir@terafastnet.com
bfc7634cdd1a75ce104e75f79c628ef609e282d3
e1b47553d8bdbff498e3ed441f2be9e5f250c91d
/python/hrank/algo/dynamic/The_Longest_Increasing_Subsequence/lis.py
a582885252130aea1cb57d7074f885642aa5e4e7
[]
no_license
ahmed-sharif/misc
55b776823fc922886d4981085289e05c4be8a213
2ad06b132408ecfc7ac79b1cdca06588b94ef76c
refs/heads/master
2020-04-15T14:03:38.214577
2017-10-25T18:00:51
2017-10-25T18:01:39
57,257,631
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# https://www.hackerrank.com/challenges/longest-increasing-subsequent def compute_lis(a): n = len(a) lis = [1 for _ in range(n)] for i in range(1, n): for j in range(i): if a[i] > a[j]: lis[i] = max(lis[i], lis[j] + 1) return max(lis) a = [] n = int(raw_input().strip...
[ "asharif@linkedin.com" ]
asharif@linkedin.com
a6bd02271c9b2f71284783392b9407f1e9b79f7f
67f1e3d3ac20baf3530ef1ccfc3feca0de466c16
/python/entrance/connection/cli.py
750ed6822e0a02eab0aaa1213b253c601b550170
[ "MIT" ]
permissive
ensoft/entrance
6f4ae3598407fc945207bec8eeae6d7b736fc654
87d67e32511cab4be6b80012aa853ebbbc72d48f
refs/heads/master
2023-03-18T06:44:17.964792
2023-03-02T13:16:52
2023-03-02T13:16:52
145,552,487
11
9
MIT
2023-02-17T16:28:29
2018-08-21T11:08:17
Python
UTF-8
Python
false
false
1,922
py
# Base class for a CLI ThreadedConnection # # Copyright (c) 2018 Ensoft Ltd import re from entrance.connection.threaded import ThreadedConnection class ThreadedCLIConnection(ThreadedConnection): """ Base class for a ThreadedConnection whose worker thread maintains a CLI session """ async def sen...
[ "code@chatts.net" ]
code@chatts.net
a8e62b0c6869bc28fe1c9890457dd16af7d1ceb5
2656adb154039d0e1393979b225c8fe82584c00c
/render.py
9fa244baa6a04e8da35dc5ce9eb487d7ba818f51
[ "Apache-2.0" ]
permissive
TOKUJI/BlackBull
b90221832884db9f5cbd5a49ff3fb7951dc1ca9a
92eb736c01464f4a76e88ce3f60e244906eb7dbb
refs/heads/master
2022-12-08T17:30:37.163685
2021-06-13T08:27:47
2021-06-13T08:27:47
164,662,920
1
0
Apache-2.0
2022-12-08T07:48:42
2019-01-08T14:11:26
Python
UTF-8
Python
false
false
794
py
from mako.template import Template def render_login_page(data=None): login_template = Template(filename='templates/login.html', ) return login_template.render_unicode() def render_dummy_page(data=None): template = Template(filename='templates/dummy.html', module_directory='templates/modules/') retur...
[ "14055040+TOKUJI@users.noreply.github.com" ]
14055040+TOKUJI@users.noreply.github.com
bdcc367d50d850b9415469d0b80cd63c73ec7513
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/webtest/webtest/http.py
890ef96ff90e6543783dd70d2c2b7b0768054a2f
[ "BSD-3-Clause", "MIT" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
4,240
py
# -*- coding: utf-8 -*- """ This module contains some helpers to deal with the real http world. """ import threading import logging import select import socket import time import os import six import webob from six.moves import http_client from waitress.server import TcpWSGIServer def get_free_port(): s = socke...
[ "qyearsley@google.com" ]
qyearsley@google.com
2e95edb992349cc95441512bef5344b238ed4afd
c3c2af25c3269e200d2773ec9f8800f4f9a20165
/backend/manage.py
42924076b3f1daf8f7bf76a1488f43e45b84b567
[]
no_license
crowdbotics-apps/divine-hill-27443
a39ecac7c1c5f510d00bf4e300acea3e46ecca24
f6abe52a7080da59cc99b1fb01a039933f273a2c
refs/heads/master
2023-04-26T09:05:39.002510
2021-05-26T19:29:02
2021-05-26T19:29:02
371,147,367
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'divine_hill_27443.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ra...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
c654094c0fdeb50abb400c1c1d0e67fc97c80eb7
36a0b764f6a899ce381aa5c4e69257d6c6f7f65b
/meiduo_mall/utils/fdfs/MyFileStorage.py
32fa6af0e25bb0339eb83bd0ea424b77dca016d0
[]
no_license
create6/meiduo_ub
ec23b1b0e88f784dacbd5c18cbe5c83799e2b88c
4651f21e9669b0e8224004cb596a08195109677d
refs/heads/master
2020-05-31T08:10:57.178001
2019-06-28T02:15:02
2019-06-28T02:15:02
188,504,868
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
from django.conf import settings from django.core.files.storage import Storage from fdfs_client.client import Fdfs_client """ 自定义文件存储类(官方文档-视图层-文件上传-自定义存储): 1, 定义类继承自Storage 2, 必须保证参数能够初始化 3, 必须实现open,save方法 """ class MyStorage(Storage): def __init__(self, base_url=None): if not base_url: base...
[ "1362254116@qq.com" ]
1362254116@qq.com
4e52cc987f5b50af5d9b223ce2923ca558ff6980
3d2d5ecb7377410d309737412febce208138b583
/1-Regular Expression/count_num_of_number.py
9a505e1802aab7af797e54e4d9c1947ea8948616
[]
no_license
rika77/access_web_data
fd938c8cac4f7ac8bdabdc511ec5034bb6d5f003
2c76f5a482d08c655d637944014076c9752e7f2d
refs/heads/master
2020-09-05T13:57:23.726304
2019-11-07T01:39:06
2019-11-07T01:39:06
220,126,264
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
import re with open('regex_sum_180748.txt') as f: s = f.read() nums = re.findall('[0-9]+', s) ans = 0 for num in nums: ans += int(num) print(ans)
[ "mahimahi.kametan@gmail.com" ]
mahimahi.kametan@gmail.com
b9a0d4a8c907d64a769984ce54c21e598bceb55a
857fc21a40aa32d2a57637de1c723e4ab51062ff
/PythonChallenge/Ex05/05_01.py
93d0926dda5e81b77d9190b1a9e433c954140ed4
[ "MIT" ]
permissive
YorkFish/git_study
efa0149f94623d685e005d58dbaef405ab91d541
6e023244daaa22e12b24e632e76a13e5066f2947
refs/heads/master
2021-06-21T18:46:50.906441
2020-12-25T14:04:04
2020-12-25T14:04:04
171,432,914
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
#!/usr/bin/env python3 # coding:utf-8 from pickle import load with open("banner.p", "rb") as f: print(load(f))
[ "18258788231@163.com" ]
18258788231@163.com
626bb65d7cd1ec6e7fc65aef68d875d25f67e8f3
3c6b5cdad2099125c9713041f21a14f41693f5b3
/init/tar.py
24de4fc9a420da40a63d3639ad7617086615fe08
[]
no_license
fudashuai/SetDisplayMode
6d41d625e17c755d7ad913182fce83288353f5b0
23183820cbb4d9d20ea6aacfaa4e21bc30fd7cb5
refs/heads/main
2023-06-15T07:42:21.198382
2021-07-18T05:38:22
2021-07-18T05:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,122
py
#!/usr/bin/env/python3 # -*- coding:utf-8 -*- import os import platform import shutil import tempfile import time from distutils.core import setup from pathlib import Path from subprocess import PIPE, run from zipfile import ZipFile def pack_pyd(cur_dir, excepts=('launch.py')): while True: try: ...
[ "funchan@msn.cn" ]
funchan@msn.cn
3ed12bf18a7b64349018b7c6e07ad53b57159f1b
a0a656cefd97b6f6416a8f6f38d1ed8524589929
/add_assets/serializers.py
0ef70f1a4ded1da53789566550b3661a1cafa9bd
[]
no_license
zhixingchou/opsmanage-copy-add_assets
c932bf2641ff408be1d43bbf96b50ad2f47acb81
c120889f9d1aa74de3f3e33f787aa5b9343e9011
refs/heads/master
2021-06-28T23:21:42.458019
2017-09-13T05:37:31
2017-09-13T05:37:31
103,357,803
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
# coding:utf-8 from rest_framework import serializers from appone.models import * from django.contrib.auth.models import Group,User class AssetsSerializer(serializers.ModelSerializer): class Meta: model = Assets fields = ('id','assets_type','management_ip') class ServerSerializer(s...
[ "376616017@qq.com" ]
376616017@qq.com
e4b3cbe089af89580345befdfa21e0813a578041
f7779fc2b88a0f4ad66b1e941f057f9f2be91f73
/apps/casts/migrations/0006_auto__add_unique_castsservices_name.py
8faa9175262fba990db3336940348c3e933a6dd2
[]
no_license
tumani1/vsevi
e30664c1573996bcd825e57e7b8137345c0858e7
6504b7689573055405ee044b2d75c31cb1ab0a2d
refs/heads/master
2020-07-21T22:33:44.384719
2014-11-07T15:28:10
2014-11-07T15:28:10
35,594,443
0
0
null
null
null
null
UTF-8
Python
false
false
19,157
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding unique constraint on 'CastsServices', fields ['name'] db.create_...
[ "dlyubimov@aaysm.com" ]
dlyubimov@aaysm.com
716cb29adc3becdd4a5965eee788155597749d7b
c618cbb638e1c69e08ad26df505971d8f33b100c
/profiles/migrations/0001_initial.py
598e94cc6d9faf816a5297467fe411cbb294bb0e
[]
no_license
mikeemorales/house-plant
bf612d461459429cd1898d9ba7e2e8f6d90544a3
3b76df1c6464a22f1cd76b1f650d2cfe584e61ed
refs/heads/master
2023-08-23T03:23:27.836900
2021-09-18T03:22:34
2021-09-18T03:22:34
339,876,234
0
1
null
null
null
null
UTF-8
Python
false
false
1,413
py
# Generated by Django 3.1.6 on 2021-02-25 06:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.A...
[ "j.mikeemorales@gmail.com" ]
j.mikeemorales@gmail.com
bb8ae320072d41a28d6b424e78999326d64cdafb
3028b704ebfcec101577634ae45bd5ed84bdcd2d
/验证码.py
aee2fdf52f874399ca9423210e0a7afa4af02b72
[]
no_license
ANGLE-AKAMA/VerifyPicture
f73fb482d9fd61b79e523e0faa344b9dd098ffb7
81b009c4e4ffc2f4d01281d148fb99d497d4df2b
refs/heads/master
2020-08-13T19:44:02.128680
2019-10-14T11:46:11
2019-10-14T11:46:11
215,027,517
1
1
null
null
null
null
UTF-8
Python
false
false
3,200
py
import cv2 import numpy as np import time import os import glob import sys import reductNoise import pytesseract from PIL import Image from waterDropleCut import WaterCutting from waterFill import WaterFilled for file in os.listdir("easy_img") : fileName= file.split(".")[0] filepath = os.path.join("easy_img",...
[ "18138802413@163.com" ]
18138802413@163.com
48055f2562c59506a8d7d57a62f9919785d4a11c
c96ce403a4f4db5594639d2687bf01af8fe02f2e
/lesson_python_socket_client.py
79307ea721212d093910a6450632ad7e2917f674
[]
no_license
jiangyefan/lesson_python
b8aae7a0581fdad747271da044d87471973d51ba
4aa09e1e5d9fa995567a2f220c698d15711735e8
refs/heads/master
2021-01-02T22:47:27.064987
2017-08-06T22:59:15
2017-08-06T22:59:15
99,359,231
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
#!/usr/bin/env python #coding=utf-8 #__author__:Administrator #__date__:2017/8/5 import socket #客户端 #connect #recv() #send() #sendall() #close() #创建socket对象 sk2=socket.socket() address=('127.0.0.1',8011) sk2.connect(address) # data=sk2.recv(1024) #接收数据 # print(str(data,'utf8')) while True: inp=input('>>>') ...
[ "200592201@qq.com" ]
200592201@qq.com
2c7332530c6106c9f596a55673e138596fa175ad
be7a0aa49a9b4fdad1b8b21c6f1eb6bd508be109
/ex027vs1.py
8f5869722797ed74a9a1bd50c65b05a9267c8f63
[]
no_license
tlima1011/python3-curso-em-video
29a60ee3355d6cb3ba8d1f48c6a3ecd7bc6e60dd
f6454f4d636a2bf73c151e67710f732e2d8e738c
refs/heads/master
2021-02-04T01:13:35.313590
2020-04-14T12:51:19
2020-04-14T12:51:19
243,593,899
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
nomeCompleto = str(input('Informe seu nome completo.: ')).strip() nomeCompleto = nomeCompleto.split() print(f'Primeiro nome é {nomeCompleto[0].capitalize()} e o último é {nomeCompleto[-1].capitalize()}')
[ "noreply@github.com" ]
noreply@github.com
caffdc2df4dd79e41559544d02eaf346767be562
f9258ddebd486a3452679b1524834c63fcdfdb39
/src/project5.py
da6c8401460dfc1fab1095c713878dba49143e42
[]
no_license
gracemc1003/Project5
bfe11357630a969a208a982898486a36325f8603
d8fa3d113fb4dbc0121c739769f0491e5ad3cb93
refs/heads/main
2023-01-01T09:56:14.729995
2020-10-12T18:27:02
2020-10-12T18:27:02
303,476,565
0
0
null
null
null
null
UTF-8
Python
false
false
2,917
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 6 12:38:03 2020 @author: gracemcmonagle """ #%% import pandas as pd import matplotlib.pyplot as plt from datetime import datetime from sklearn.model_selection import train_test_split from statsmodels.tsa.holtwinters import SimpleExpSmoothing, Holt ...
[ "noreply@github.com" ]
noreply@github.com
6433092cbee060d537b5cb9919a76a1ec7c5ab85
683b73e0c95c755a08e019529aed3ff1a8eb30f8
/machina/apps/forum_conversation/forum_attachments/admin.py
de1995638c922ddee9447fdc8ec8937ae0ebd484
[ "BSD-3-Clause" ]
permissive
DrJackilD/django-machina
b3a7be9da22afd457162e0f5a147a7ed5802ade4
76858921f2cd247f3c1faf4dc0d9a85ea99be3e1
refs/heads/master
2020-12-26T08:19:09.838794
2016-03-11T03:55:25
2016-03-11T03:55:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# -*- coding: utf-8 -*- # Standard library imports # Third party imports from django.contrib import admin # Local application / specific library imports from machina.core.db.models import get_model Attachment = get_model('forum_attachments', 'Attachment') class AttachmentAdmin(admin.ModelAdmin): list_display =...
[ "morgan.aubert@zoho.com" ]
morgan.aubert@zoho.com
805e86f1d2bd1c867967768dadacd89d4c06a759
8823a9b97780bdf5f92c2ef3bfab28ea5a95abc0
/problems/strings/tests/test_substrings.py
434a5384b114cf584fe7f903cd441b2004d71c0d
[]
no_license
castlemilk/puzzles
1ef2f9b7d0707e821869064b78a57691f2ba7a0a
4cdc757fd14a444abe48254a0ecc8b04ca4b9552
refs/heads/master
2022-12-15T05:19:51.818193
2018-03-07T10:32:36
2018-03-07T10:32:36
122,824,563
0
0
null
2022-12-07T23:46:49
2018-02-25T10:07:36
Python
UTF-8
Python
false
false
190
py
from problems.strings import substrings def test_permutations1(): assert substrings.is_permutation('abcd','aaaaa') is False assert substrings.is_permutation('abcd', 'dcab') is True
[ "ben.ebsworth@gmail.com" ]
ben.ebsworth@gmail.com
6e3dd7d9f9580b03b86f84b139624874d5968242
1391fe8dcace0742232d11d96f1eca5da02581ba
/test.py
465cf5bafb6627ab4907e62fc187ca32fd3dbf60
[]
no_license
ha8sh/test
a0b879d2cc7b8d753aa7f4bfd75703cfa3b02d51
af18128bae0ad195f9fb064da0807d67fd65180d
refs/heads/master
2023-02-26T04:33:11.201116
2021-01-25T19:10:07
2021-01-25T19:10:07
332,850,122
0
0
null
null
null
null
UTF-8
Python
false
false
16
py
print("hassan")
[ "root@ibs.ping308.net" ]
root@ibs.ping308.net
e2ded22e10d7c8fdba1a33dd11b5e8581b59afb5
16158ba3a3d94569498d51ab03ac19d7444b0349
/kg/Recommender-System-master/Recommender_System/algorithm/KGCN/gpu_memory_growth.py
9a808bd2987cfa7e6fb19015613b64193b9534f9
[ "MIT" ]
permissive
lulihuang/DL_recommendation
c4109346a93336d85eed7bce2acfea143c76012c
5e8b1b562cb4e6360103b11b6ec5601cd69282a3
refs/heads/main
2023-03-22T12:51:08.395165
2021-03-11T03:11:59
2021-03-11T03:11:59
328,589,292
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" import此文件后将gpu设置为显存增量模式 """ from tensorflow import config gpus = physical_devices = config.list_physical_devices('GPU') if len(gpus) == 0: print('当前没有检测到gpu,设置显存增量模式无效。') for gpu in gpus: try: config.experimental.set_memory_growth(gpu, True) except RuntimeError as e: print...
[ "727445285@qq.com" ]
727445285@qq.com
be9c106d741c93b8522ff5e49ea7ff2e5f2b74fe
aeeba89591b787bbe6b93ffb4889be9a8fca521e
/cfg.py
cf7791d7a7b0fe3603dac542a0bbc59c1ee3d3aa
[ "MIT" ]
permissive
wistic/python-web-crawler
efa7968f66ecd7396797390f253d0ff68f3623a1
e3738fd49d77bdff4c43a0ec31ed36cc381d26b8
refs/heads/master
2022-12-10T05:38:40.030202
2020-08-28T14:24:38
2020-08-28T14:24:38
288,676,553
1
0
null
null
null
null
UTF-8
Python
false
false
415
py
config = { "root_url": "https://flinkhub.com", "sleep_timer": 5, "Max_links_limit": 5000, "Recrawl_time_limit_hours": 24, "user_agent": "Python Spiderbot", "No_of_threads": 5, "database_name": "python-web-crawler", "collection_name": "Links", "connection_uri": "mongodb://loca...
[ "prathameshkatkar11@gmail.com" ]
prathameshkatkar11@gmail.com
0a38162b769782206e31ce264818a2b2f80a10da
afff172ee00de38de8b7d6663cfbd85d80cf2db9
/blog/models.py
7634e140fb8e695428f95cdddf51b62e5434a0d0
[]
no_license
marmik13/DjangoEcommerce-site
f7af4748ad75de4dce2be9c37e6773bf25a8d900
47a7819db4e1be5ea61d646279a5cd47d25da961
refs/heads/master
2022-07-26T10:51:37.652455
2020-05-24T05:40:09
2020-05-24T05:40:09
264,853,534
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
from django.db import models # Create your models here. class Blogpost(models.Model): post_id = models.AutoField(primary_key=True) title = models.CharField(max_length=200) head0 = models.CharField(max_length=500, default="") chead0 = models.CharField(max_length=10000, default="") head1 = models.C...
[ "marmikpatelme13398@gmail.com" ]
marmikpatelme13398@gmail.com
7f9d646ad4abee72b62035b949da452c7e34ddbd
35f076d1e8b5bbc3871a622b7808246e24b87f95
/src/github/__init__.py
10e03497751ba2b6964ca5e7dd22f5646fd3c7f5
[]
no_license
elena20ruiz/github_crawler
379ece12e07dcc5c866ca2aa8604d564d45010ff
dad9484539cc371584eb94ecfc20861e342325ee
refs/heads/master
2020-12-27T18:17:21.001287
2020-02-08T17:35:18
2020-02-08T17:35:18
238,001,792
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
GITHUB_URL = 'https://github.com' __all__ = [ 'GITHUB_URL' ]
[ "elena.ruiz.bdn@gmail.com" ]
elena.ruiz.bdn@gmail.com
ffa1f1f3a4d948cf970225aaaf6d9dfcbc38315c
d4ce88b6262d30e86f9be2d5635df8544df846e2
/Web Scrapping/Selenium-Request&Beutifulsoup Detailed/Selenium/selenim_intr.py
353973c7f248a049a92800b0e4111b37b27abe14
[]
no_license
ahmetzekiertem/Web-Scrapping
e8d5d3fd2da03f408553c3f6fa1815d79d663af2
75a95b8373a84357bdd037cf6fef7461097bfacf
refs/heads/master
2022-04-19T16:32:28.369369
2020-04-19T12:51:42
2020-04-19T12:51:42
256,998,504
1
0
null
null
null
null
UTF-8
Python
false
false
394
py
from selenium import webdriver # imports from time import sleep from bs4 import BeautifulSoup # make a webdriver object - chrome driver path for my system -- > /Users/waqarjoyia/Downloads/chromedriver driver = webdriver.Chrome('/Users/mac/Desktop/geckodriver') # open some page using get method ...
[ "40203533+ahmetzekiertem@users.noreply.github.com" ]
40203533+ahmetzekiertem@users.noreply.github.com
d5badcde10dd50e2893aabf8911f0571f3d6e3e6
397383b771362fd00f83ef95a783e0578b3d3495
/firstVideo.py
6dbb481e3b8e4e5cee5ace6afce80e5d0fc1fd22
[]
no_license
kshaba01/parrot-ar-drone
d2ee3d2119dd6fc18906ed860de12d5638044d1c
a8c37d7fc1396e2ab265545d27c1431bed166899
refs/heads/main
2023-01-01T15:34:45.705102
2020-10-26T20:03:19
2020-10-26T20:03:19
307,161,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,807
py
######### # firstVideo.py # This program is part of the online PS-Drone-API-tutorial on www.playsheep.de/drone. # It shows the general usage of the video-function of a Parrot AR.Drone 2.0 using the PS-Drone-API. # The drone will stay on the ground. # Dependencies: a POSIX OS, openCV2, PS-Drone-API 2.0 beta or higher. #...
[ "kshaba@gmail.com" ]
kshaba@gmail.com
2edce3beb41e028a8b6e04ee2df6b6902f74f0a5
feee01a7ba1ccc745060cf8233168934c5ef6426
/apps/courses/migrations/0009_course_teacher.py
33de7421a3c85d8ba99c73f05edd594c8b124b27
[]
no_license
carpenter-zhang/muke
bfa7fa320536466de3f12223b4ae98dc635ceba6
7529f4e6be5c1919b86194093e45f574a0ffa89a
refs/heads/master
2021-08-26T08:15:35.907867
2017-11-22T13:15:06
2017-11-22T13:15:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-11-08 16:51 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('organizations', '0006_teacher_image'), ('courses', '00...
[ "596864319@qq.com" ]
596864319@qq.com
2eb73db4561ba05eee120641d58dcfdf2e0c885b
333632d57adb95541042769fed09b9698996f0b2
/fullstack/venv_linux_auth0/bin/rst2xml.py
483278b51727939b4ecb68f5f5a86856858bfb7c
[]
no_license
NginxNinja/Udacity_FullStack
c71f0ef323d794767c59b7316f845744ec9d9773
ec028682633e4979a5938956ff92d336270a57f3
refs/heads/master
2021-05-19T15:12:05.720426
2020-05-24T00:31:33
2020-05-24T00:31:33
251,841,704
0
0
null
2020-04-18T06:18:28
2020-03-31T22:55:39
Python
UTF-8
Python
false
false
622
py
#!/vagrant/venv_linux_auth0/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: import locale locale.set...
[ "dummy.kenmen2@gmail.com" ]
dummy.kenmen2@gmail.com
a2ebd1a75d40d5243131985f9e179274ccf490e4
e3efa07f9d804b7cb65ff79034f5565953f369df
/day12.py
c7105577cb87ead3b6059b6f7b882ff7dfdab838
[]
no_license
fursovia/adventofcode2020
decb277b7eedbbf5229e8c2d80dfe74bede4d234
8d65174fc6908736cc5609ea3115eda9d9586f63
refs/heads/main
2023-01-30T21:35:17.927959
2020-12-13T17:33:55
2020-12-13T17:33:55
317,532,322
0
0
null
null
null
null
UTF-8
Python
false
false
2,974
py
from dataclasses import dataclass from typing import List, Tuple from collections import OrderedDict RAW = """F10 N3 F7 R90 F11""" CARDINAL_MAPPING = OrderedDict( { "N": (0, +1), "E": (-1, 0), "S": (0, -1), "W": (+1, 0), } ) DIRECTIONS = list(CARDINAL_MAPPING.values()) @dat...
[ "fursov.ia@gmail.com" ]
fursov.ia@gmail.com
138b1b5eaed3c0e2c160f52a49e9ed9f1a6fd14b
65331b368b8956c4864e95e21e6b9c2b3c715a2f
/__init__.py
951540ce32097ac761cc9accb9ab3842ef23d029
[]
no_license
yamoimeda/diccionario-guna
83358ded73d79282457ff21984cdbff3028e1a82
e3041d22721cab9e97e9ebd45d3456d9960aecfe
refs/heads/master
2021-06-27T08:56:02.247787
2021-02-11T23:27:30
2021-02-11T23:27:30
203,426,052
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
from flask import Flask,redirect,url_for,render_template,request,jsonify from pymongo import MongoClient import sqlite3 as sql app = Flask(__name__) #cliente = MongoClient("localhost", 27017) #db = cliente.diccionarios @app.route('/',methods=['GET','POST']) def index(): return render_template('inicios.ht...
[ "noreply@github.com" ]
noreply@github.com
450652c8cc5a188c7692244ac62b7cc5f3cd3443
23be24e92420af66307121468136570234aceebd
/Problems/What day is it/task.py
49c6dff7b35a4222d7bf355ce9d79d44fb131b7e
[]
no_license
sanqit/credit_calculator
c309013f6639e886ae2a257b6c37c401d2d7b1fa
1b2aaab271b985ec2df47fe6409a08e4dd180a0f
refs/heads/master
2022-11-15T05:30:49.412246
2020-07-04T20:50:04
2020-07-04T20:50:04
277,182,017
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
offset = int(input()) time = 10.5 n = time + offset if n < 0: print("Monday") elif n > 24: print("Wednesday") else: print("Tuesday")
[ "admin@sanqit.ru" ]
admin@sanqit.ru
0e13ea228a661ee0d8e2c5bfce784e4d705a8f66
09b0075f56455d1b54d8bf3e60ca3535b8083bdc
/WideResnet.py
595e4f69f1baa13a9f27f80fdb61e54773195de4
[]
no_license
YanYan0716/MPL
e02c1ddf036d6019c3596fd932c51c3a14187f5e
6ad82b050ec1ed81987c779df2dddff95dc1cde5
refs/heads/master
2023-04-17T23:05:54.164840
2021-05-07T01:14:49
2021-05-07T01:14:49
331,491,485
11
6
null
null
null
null
UTF-8
Python
false
false
7,157
py
import os from abc import ABC os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf import tensorflow.keras as keras from tensorflow.keras import layers from tensorflow.keras import regularizers import config class BasicBlock(layers.Layer): def __init__(self, in_channels, out_channels, stride, drop...
[ "yanqian0716@gmail.com" ]
yanqian0716@gmail.com
d7df85c05060a2aec8d54ca9acc857b79150ca15
ba466ae34666eb71584cc3a808bdd78f5f555d2f
/exercicios/ex37.py
2ccae9fb556d61448789994befc172790a367837
[]
no_license
gilmargjs/cursoEmVideoPython
8fa30984c00abd3ca331aab3de3d8e017d451e52
cb15343bf5c884b2045e6a35b949cd02c3e8321c
refs/heads/main
2023-06-12T22:48:59.398215
2021-06-30T20:52:55
2021-06-30T20:52:55
381,829,438
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
"""programa que laeia um número intgeiro qualquer e peça para o usuario escolher qual será a base da conversão: -1 para binario -2 para octal -3 para hexadecimal """ print('='*30) print('SISTEMA DE CONVERÇÃO DE BASES') print('='*30) num = int(input("Digite um número: ")) print('''Escolha uma das Bases para Conversão:...
[ "gilmarjose2014@gmail.com" ]
gilmarjose2014@gmail.com
b5d716b2740e66732492a580f7db8280232f261e
d3d8acc788bd3a8d7e5f861ad87c4d802723062b
/test/step3_descope200MCHF_HLT.py
c2272355f19530f27df01562b14bf70d1dee3ae4
[]
no_license
calabria/L1IntegratedMuonTrigger
27ff0bde46208f84595423ec375080979fbe4c62
05a368b8d04f84b675d40445555f2cacfd135e4e
refs/heads/master
2021-01-24T21:57:42.232290
2015-08-11T11:52:35
2015-08-11T11:52:35
38,485,204
0
2
null
2015-08-11T11:52:35
2015-07-03T09:40:57
Python
UTF-8
Python
false
false
4,607
py
# Auto generated configuration file # using: # Revision: 1.20 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step3_descope200MCHF --fileout file:out_hlt_descope200MCHF.root --mc --eventcontent RECOSIM --step HLT --customise RecoParticleFlow/Pandora...
[ "sven.dildick@cern.ch" ]
sven.dildick@cern.ch
b09fdc0bc43f30b2b51c8893afcf2024ef86d619
0009c76a25c89a0d61d3bc9e10071da58bdfaa5a
/py/ztools/mtp/mtp_tools.py
0496f5ae683026478bdcc98faf9cc9c89b3e14a9
[ "MIT" ]
permissive
julesontheroad/NSC_BUILDER
84054e70a80b572088b0806a47ceb398302451b5
e9083e83383281bdd9e167d3141163dcc56b6710
refs/heads/master
2023-07-05T05:23:17.114363
2021-11-15T19:34:47
2021-11-15T19:34:47
149,040,416
1,249
143
MIT
2022-12-15T03:19:33
2018-09-16T22:18:01
Python
UTF-8
Python
false
false
8,313
py
import os from listmanager import folder_to_list from listmanager import parsetags from pathlib import Path import Print import shutil from mtp.wpd import is_switch_connected import sys import subprocess from python_pick import pick from python_pick import Picker squirrel_dir=os.path.abspath(os.curdir) NSCB_dir=os.pat...
[ "42461174+julesontheroad@users.noreply.github.com" ]
42461174+julesontheroad@users.noreply.github.com
6537118072122509e9adad7738eee5616a1b24dd
fc83fc10fcc509316e612d73bd40a81d3ca0a2e6
/tests/nd_gaussian_multiprocessing.py
1f8c698393e3a088d991eb3484785a391dc3c783
[ "MIT" ]
permissive
DimitriMisiak/mcmc-red
47dfb7e0664205da55fa463df77851722082e3c3
caae0ce39d082e578176a5078a9184980b0851c3
refs/heads/main
2023-06-19T04:10:42.385862
2019-07-05T07:45:01
2019-07-05T07:45:01
387,757,149
0
0
null
null
null
null
UTF-8
Python
false
false
3,928
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Handy MCMC scripts. Test for the different fit method (mcmc, ptmcmc, minimizer). Author: Dimitri Misiak (misiak@ipnl.in2p3.fr) """ import numpy as np import matplotlib.pyplot as plt import sys import scipy.signal as sgl from os import path import scipy.optimize ...
[ "dimitrimisiak@gmail.com" ]
dimitrimisiak@gmail.com
151d04d5fcd1d701ef91676c6174b1bebb1baf8c
208db76b669686f782d59ec393efdb11e3d3cbbc
/test.l0.py
0f6d3d40bd459a45e68347a3ddc466043ba27139
[]
no_license
vsevolod-oparin/stream-dynamic-components
149542d1dd754cd3f9a7e7bfdff118612e3fb21a
ef5e40cb07f568205a140b78a77067f32d4f34cd
refs/heads/master
2021-01-10T01:32:21.968060
2016-02-09T16:00:41
2016-02-09T16:00:41
51,305,791
3
0
null
null
null
null
UTF-8
Python
false
false
2,774
py
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest import random from algo.l0sample import Rec1 as Rec1 from algo.l0sample import RecS as RecS from algo.l0sample import RecGeneral as RecGeneral class TestRec1(unittest.TestCase): def test_zero(self): r = Rec1(100, 0.001) self.assertFalse(r...
[ "oparin.vsevolod@gmail.com" ]
oparin.vsevolod@gmail.com