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
0b8ca9d38489a79fac11ef930d7f55e4b5f8e7c4
929c5d410575498104bcc3a32e2d827ff11a8294
/3 trimestre/pyton/aula.py
75efd626989288c74f2ac34ac93a3bf0f5e5b37a
[]
no_license
adriel1010/aulaTecnologiasWeb
52ab30f61a342bbebf86b602ee9800ec276a2ae1
699e36d23319bafa5c603dd81f291eb261cabdc4
refs/heads/master
2021-01-24T16:45:54.853451
2018-09-26T01:33:10
2018-09-26T01:33:10
123,209,672
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
print("Olá mundo :D") print("olá 2") num = 10 num = "Adriel" num = 10.98 a = num * 10 print( "O resultado é {}, certo ?".format(num) ) nome = "Adriel" print( "{}, o resultado é {}, certo?".format(nome, num) ) num = 5 ** 2 #5 ao quadrado if(num % 2 == 0): print("0 número {} é par !".format(num)) print("Fi...
[ "adrielcarlos1010@gmail.com" ]
adrielcarlos1010@gmail.com
8faa8b56120958de0b6f1135e29aabb4e6389a29
ea4e3ac0966fe7b69f42eaa5a32980caa2248957
/download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/src/shadow/GL.KTX.buffer_region.0100.py
ac8f5465112ac5e17f3261bbe25ef82d3803a274
[]
no_license
hyl946/opensource_apple
36b49deda8b2f241437ed45113d624ad45aa6d5f
e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a
refs/heads/master
2023-02-26T16:27:25.343636
2020-03-29T08:50:45
2020-03-29T08:50:45
249,169,732
0
0
null
null
null
null
UTF-8
Python
false
false
2,082
py
# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _buffer_region def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "this"): if isinstance...
[ "hyl946@163.com" ]
hyl946@163.com
e19ca4a254a85de070b01227989ac7817ac06393
991c0299c9eae4034db672a2c405bafc8f44e1c8
/pyspedas/pyspedas/psp/tests/tests.py
42387d6e05e349408f2bce7c37bc167306ae1bed
[ "MIT" ]
permissive
nsioulas/MHDTurbPy
650b915cb23f4dd2458d09450e7dc1382c643da2
7ac6615caa737fb89b0314d1d55fcd60537c423c
refs/heads/main
2023-06-01T06:31:58.944174
2023-05-13T05:36:06
2023-05-13T05:36:06
590,799,212
8
1
null
2023-02-01T20:38:49
2023-01-19T08:33:08
Jupyter Notebook
UTF-8
Python
false
false
7,362
py
import os import unittest from pyspedas.utilities.data_exists import data_exists import pyspedas class LoadTestCases(unittest.TestCase): def test_unpublished_data(self): """ this test doesn't load any data, since the username/pw is invalid """ # no password fields_vars ...
[ "nsioulas@g.ucla.edu" ]
nsioulas@g.ucla.edu
3fa8270849bd728041105b6d7119c3a99035ee56
3fb104c3aa28e045fd2a6bab518116215e03a260
/.venv/Lib/site-packages/aws_cdk/aws_ecr_assets/_jsii/__init__.py
6077d0f16767538da05d8916c1afc51eee7bca78
[]
no_license
danyal2050/demo-python-cdk
ae90293e7ee2358b45fef6c404436c3c8e884603
242557ca00da7cde10071e431242d6ca6467e066
refs/heads/master
2023-03-22T14:22:44.710332
2020-12-29T11:59:02
2020-12-29T11:59:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions import aws_cdk.assets._jsii import aws_cdk.aws_ecr._jsii import aws_cdk.aws_iam._jsii import aws_cdk.aws_s3._jsii import aws_cdk.core._jsii import aws_cdk.cx_api._jsii import constructs._jsii ...
[ "ramon.marrero@lanube.io" ]
ramon.marrero@lanube.io
906285afe8404eb1a87b4c5d698121cf5c26fdd6
406f1eb64aa96b3c7eb89a4c873ac7a089cc70bc
/flaskapp.py
dbc9d67048377c7953f7393aeea093ddacfebe5a
[]
no_license
Prathamveer/Flask-App-1
7f7c01faef17183e0a1daef4c3e7dc2d224facff
c3239a019eb696c731733134ecce5f22d14646fe
refs/heads/main
2023-03-27T03:09:43.238503
2021-03-31T10:04:03
2021-03-31T10:04:03
353,309,730
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
from flask import Flask,jsonify, request app = Flask(__name__) tasks=[ { "id":1, "title": u'Buy Groceries', "description":u'Milk, Cheese, Pizza, Fruit, Tylenol', "done":False }, { "id":2, "title": u'Learn Java', "description":u'I am learning Java from...
[ "noreply@github.com" ]
noreply@github.com
a045b73bfaca5784847e614a130eff9d3c1caedb
1f82e09ae56a0dfb811663a5dc835e1628def9eb
/Asteroids_1/main.py
dc88a8d9a44ee93ab2a5d1c244ea14c360494169
[]
no_license
armyrunner/CS1410-OOP2
6f1eb70260496fe0733cbcd571d0838f81cd7ea1
115c314831c7839aa4afb55cff780d87e4ffdd52
refs/heads/master
2023-03-06T22:46:08.097008
2021-02-19T01:03:37
2021-02-19T01:03:37
340,193,637
0
0
null
null
null
null
UTF-8
Python
false
false
3,395
py
import pygame import game # YOU SHOULD CHANGE THIS TO IMPORT YOUR GAME MODULE import asteroids # YOU SHOULD CONFIGURE THESE TO MATCH YOUR GAME # window title bar text TITLE = "Asteroids" # pixels width WINDOW_WIDTH = 700 # pixels high WINDOW_HEIGHT = 600 # frames per second DESIRED_RATE = 10 class PygameApp( game.G...
[ "live2runmarthon@gmail.com" ]
live2runmarthon@gmail.com
7b3d8010e4239376f52e5c0c69d990f30f7a3c82
a8faef3782449f73bfb26ef9a7e0ac717be5e5d4
/LabelsReader.py
b6408c02276574ef2805f2bd3a651d480c185266
[]
no_license
Microv/NonlinearAnomalyDetection
971ab0e69b65d58cbaad5ee2a62831ff553c87be
c3cc1daf66c4233ecb33f6fd1219a8e30797195a
refs/heads/master
2021-01-09T06:06:09.604425
2017-02-04T11:27:16
2017-02-04T11:27:16
80,912,991
1
0
null
null
null
null
UTF-8
Python
false
false
14,751
py
from ISCXLabelsHandler import ISCXLabelsHandler from DARPA2000LabelsHandler import DARPA2000LabelsHandler import xml.sax from os import listdir, path import pickle import pytz import datetime, calendar GROUND_TRUTH_DIR = 'labels/' class ISCXLabelsReader(): def __init__(self, verbose=False): se...
[ "michele@localhost.localdomain" ]
michele@localhost.localdomain
0361cf95323138a93fe8fdbfbe7b79443489acf3
426a61f9a3413ccd09cc7a59ffa8988fad2c5c2f
/network/refinement_network.py
e4b0ebda2fdee7d750722892d8a59fbfaa5fb217
[ "Unlicense" ]
permissive
sveatlo/unmasked
46c53b54d377ecae72aafbc8ed7b237bef238415
6870ee56beea7401aa97194f76487c391af9dd5d
refs/heads/main
2023-07-06T22:58:22.042569
2021-08-08T19:36:52
2021-08-08T19:36:52
355,092,011
4
0
null
null
null
null
UTF-8
Python
false
false
4,629
py
import torch import torch.nn as nn from network.contextual_attention import ContextualAttention from network.gated_conv import GatedConv2d, GatedDeConv2d class RefinementNetwork(nn.Module): def __init__(self, in_channels: int = 4, out_channels: int = 3, latent_channels: int = 48, padding_type: str = 'zero', activ...
[ "svatoplukhanzel@pm.me" ]
svatoplukhanzel@pm.me
4274a097f97d6858437ee3a6400bf7187f8a8d8d
45a9f6533a9bff337e420e1e5ee34a3fb2a60ba4
/AnalyticsVidhya/analyticsvidhya/Sol.py
cf3ad1e2996872c1b16a3af95e1b91091ea9ee5c
[]
no_license
vikramjain/Competetions
4dfc9f429692aab97afebdb265217722e2ba9cf4
07c9b6ca8cb571474761109a0f751c9eb3b6da54
refs/heads/master
2021-09-05T12:03:23.136412
2018-01-27T08:31:42
2018-01-27T08:31:42
112,911,436
0
0
null
null
null
null
UTF-8
Python
false
false
2,976
py
import numpy as np import pandas as pd from sklearn import preprocessing from scipy.stats import mode import matplotlib.pyplot as plt from numpy import nan from sklearn.cross_validation import train_test_split from pandas import Series,DataFrame import sklearn from sklearn.metrics import confusion_matrix from...
[ "noreply@github.com" ]
noreply@github.com
0d76cf43909a3dd1ccc2036f17670eac71e8eb31
7832e7dc8f1583471af9c08806ce7f1117cd228a
/aliyun-python-sdk-cs/aliyunsdkcs/request/v20151215/DescribeServiceContainersRequest.py
c4cf438bb23b376cec873a05b86b7fbcdb6e08e8
[ "Apache-2.0" ]
permissive
dianplus/aliyun-openapi-python-sdk
d6494850ddf0e66aaf04607322f353df32959725
6edf1ed02994245dae1d1b89edc6cce7caa51622
refs/heads/master
2023-04-08T11:35:36.216404
2017-11-02T12:01:15
2017-11-02T12:01:15
109,257,597
0
0
NOASSERTION
2023-03-23T17:59:30
2017-11-02T11:44:27
Python
UTF-8
Python
false
false
1,422
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "ling.wu@alibaba-inc.com" ]
ling.wu@alibaba-inc.com
47dbd06d73da73797a6148d5211413ca087eca89
12b63effcd7ca6f307c4b55a45e04e6656d5ea98
/Studio/Holiday.py
1e0d122754ffbec422dc1c90a81712adcc62ed7e
[]
no_license
rarose67/Python-practice-
cc70b26d1ba6cd4ee845e5a1d0b2d1d8ec7bc733
699eaf8a7ceb69c86bec35cd41df7191a70ef91f
refs/heads/master
2020-03-27T08:14:06.470762
2018-08-27T02:02:41
2018-08-27T02:02:41
146,234,815
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
""" It is possible to name the days 0 through 6, where day 0 is Sunday and day 6 is Saturday. If you go on a wonderful holiday leaving on day 3 (a Wednesday) and you return home after 10 nights, you arrive home on day 6 (a Saturday). Write a general version of the program which asks for the day number that your vacati...
[ "robertrosestl67@gmail.com" ]
robertrosestl67@gmail.com
87285319b453d6b779837ac5d96b87d989629dbd
1277c0d30434133a7ce6f4d1db6c04d65b0a49c9
/backend/findme_20524/wsgi.py
8403d67f78f9ff859caa0a7e2ffa509f5e7f5195
[]
no_license
crowdbotics-apps/findme-20524
aef86f49038e1e06967c3d22fee0968ec769c3b4
da959e3a82c81a93ce2e6d3388ad610ebc7be7f5
refs/heads/master
2022-12-23T10:47:01.480756
2020-09-21T19:34:35
2020-09-21T19:34:35
297,441,771
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for findme_20524 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
901840825dba82b2be79ca144758e71078df3529
4fc373c4cfe248f37ccf6719cd3d16b5d895d2f1
/myvenv/Lib/site-packages/twilio/rest/preview/trusted_comms/current_call.py
244d12a505e1dea52e994ffe3834adc55a47bbfa
[]
no_license
sharatsachin/chatbot-asmt
efde91dd9dc539b4b65db55b717af8106ca88e2c
896e5b2b4598b3453e5d5a5adab2836164e8e53a
refs/heads/master
2020-06-01T17:01:59.089506
2019-06-08T08:42:22
2019-06-08T08:42:22
190,858,127
1
0
null
null
null
null
UTF-8
Python
false
false
8,332
py
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
[ "sharat.ss.sachin@gmail.com" ]
sharat.ss.sachin@gmail.com
f0cb0d5b3d99d57ab4045f1759b682f46e459f98
a16ef81e469d9cc6f2b802e961255ca845fb17e6
/python-selenuim/css_choose_element/css-1.py
8c51e485b4ff49cbe347914a98bfe69f3b23f344
[]
no_license
asherboy1/python-selenium-new
32ccdabde18c9d8fe8c74718dd00991d25d75140
eab7ba7e9946891f6aea6c89aab1e90b54ac63a6
refs/heads/main
2023-04-16T00:58:45.232576
2021-04-26T02:41:29
2021-04-26T02:41:29
361,594,880
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
from selenium import webdriver wd = webdriver.Chrome() wd.get("http://cdn1.python3.vip/files/selenium/sample1.html") #css .class 属性 例子 .animal{} {}中为修饰语句 #color background-color #find_element_by_css_selector(CSS Selector参数) 主流使用 element = wd.find_element_by_css_selector('.animal') #注意 . 表示使用的哪一个...
[ "noreply@github.com" ]
noreply@github.com
b8c2baad104a85d6d9d0a99b0ad72431dd316e94
11bf0003909dfc62f3dad7184107f25391af3855
/Modelling_Complete.py
f38465f2a7e3a2cac321241217810a70c719ed0d
[]
no_license
amit1013/Flight-Ticket-Prediction
0a17cb4a2ae62a8bc702bf2dae0b43ef4348178c
b5d8330a667f364d2a47179f81730f8e2dcd9e96
refs/heads/master
2020-06-16T14:19:21.410304
2019-07-07T03:47:01
2019-07-07T03:47:01
195,606,210
0
0
null
null
null
null
UTF-8
Python
false
false
18,831
py
# -*- coding: utf-8 -*- """ Created on Sat Mar 16 12:04:32 2019 @author: amit """ import pandas as pd import numpy as np import seaborn as sns import re import datetime from sklearn.model_selection import train_test_split, cross_val_score, StratifiedKFold from sklearn.linear_model import LinearRegression...
[ "noreply@github.com" ]
noreply@github.com
b6a6f3e54f625b004ba7557625516a3b771e62db
5663631dd78c1aae7640cb7d0b03cbb6afb482ea
/neon/optimizers/optimizer.py
ec4edb7c62df4be3fc323cd30d5d31ad12048a35
[ "Apache-2.0" ]
permissive
kod3r/neon
6d0c7d9150bd77210c81e9df9ae7908e6e10bfff
73e77fa101c63c0a2c440d3eb2ac64ae9de0d6c6
refs/heads/master
2021-01-18T10:32:00.755477
2015-09-12T02:34:16
2015-09-12T02:34:16
42,411,178
2
0
null
2015-09-13T20:12:41
2015-09-13T20:12:41
null
UTF-8
Python
false
false
15,114
py
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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.o...
[ "urs.koster@gmail.com" ]
urs.koster@gmail.com
eb8bd2bd90dfe1850bd04800fbf208772c98a519
8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6
/venv/Lib/site-packages/mypy/typeshed/third_party/2and3/paramiko/server.pyi
f43bc83b05520072133af6f1a6c7ad7944981cc9
[]
no_license
RodrigoNeto/cursopythonyt
fc064a2e6106324e22a23c54bdb9c31040ac9eb6
279dad531e21a9c7121b73d84fcbdd714f435e7e
refs/heads/master
2023-07-03T00:54:09.795054
2021-08-13T12:42:24
2021-08-13T12:42:24
395,646,798
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
pyi
import threading from typing import Any, List, Optional, Tuple, Union from paramiko.channel import Channel from paramiko.message import Message from paramiko.pkey import PKey from paramiko.transport import Transport class ServerInterface: def check_channel_request(self, kind: str, chanid: int) -> int: .....
[ "rodrigoneto.forseti@gmail.com" ]
rodrigoneto.forseti@gmail.com
8e83913f251d402a25e5c30c18a1ccbc9ca7bc1b
bfbe642d689b5595fc7a8e8ae97462c863ba267a
/bin/Python27/Lib/site-packages/openmdao.lib-0.8.1-py2.7.egg/openmdao/lib/drivers/newsumtdriver.py
1fe4b338c4195f801abf288f9fbdec1e2569630d
[ "LicenseRef-scancode-other-permissive", "MIT" ]
permissive
mcanthony/meta-core
0c0a8cde1669f749a4880aca6f816d28742a9c68
3844cce391c1e6be053572810bad2b8405a9839b
refs/heads/master
2020-12-26T03:11:11.338182
2015-11-04T22:58:13
2015-11-04T22:58:13
45,806,011
1
0
null
2015-11-09T00:34:22
2015-11-09T00:34:22
null
UTF-8
Python
false
false
19,803
py
""" ``newsumtdriver.py`` - Driver for the NEWSUMT optimizer. """ # disable complaints about Module 'numpy' has no 'array' member # pylint: disable-msg=E1101 # Disable complaints Invalid name "setUp" (should match [a-z_][a-z0-9_]{2,30}$) # pylint: disable-msg=C0103 # Disable complaints about not being able ...
[ "kevin.m.smyth@gmail.com" ]
kevin.m.smyth@gmail.com
8eedd8a9491c2e95bc52cac13f9f3589f01bcf3b
c33ddce47e635e1e560f5bd3daadc0c694c0d4ce
/lib/exceptions.py
dd7176baf9476f9f503e4f998a5bc57009860979
[ "Apache-2.0" ]
permissive
hzengin/openvpn-config-splitter
5b106956b950c4ce8cd056f8a3de2f93efdd6793
d1a69735d218c00ecd235662c5390e3154333f5d
refs/heads/master
2016-09-06T19:40:29.332600
2015-02-10T23:09:23
2015-02-10T23:09:23
30,618,978
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
class InvalidConfigFile(Exception): def __init__(self, content): self.content = content def __str__(self): return repr("Invalid configuration file")
[ "hzengin99@gmail.com" ]
hzengin99@gmail.com
73608aa0ec56957d6d4f1a5aacb52173748a78d9
75b25a926c164bd0ea705485a9abdd988e0ef596
/fbad/dockerutils.py
a12ff7e8e4bb132b9f6a46e55c52f3c92dfd2294
[ "MIT" ]
permissive
bennr01/fbad
39edf5790bcdecca47f75acc1ced4cfc641fce22
a872aa6e077931743a8cbce3328ce4cbc509745c
refs/heads/master
2020-03-06T19:37:58.889646
2018-10-31T14:35:55
2018-10-31T14:35:55
127,033,219
2
0
null
null
null
null
UTF-8
Python
false
false
359
py
"""utilities for interacting with docker.""" import subprocess def in_swarm(): """ Check whether docker is running in swarm mode. :return: True when running in swarm mode, False otherwise. :rtype: bool """ output = subprocess.check_output(["docker", "info"]) swarm_enabled = ("Swarm: active...
[ "benjamin99.vogt@web.de" ]
benjamin99.vogt@web.de
2246efedd5629640d5a477e86ce72ebaa71edb1e
58023de0289f4e5dc62b3e91a798e03423ac1b8e
/app/dngadmin_formkeydemo.py
6dcc9516b7bf2146908f2bef9e37bfd5c0801a8e
[]
no_license
BeLinKang/DngAdmin
5b1466cb7c24292200ae860be3689b43478d5160
f78d90b93ab509f83018cc5bbe922568ab2b1fd7
refs/heads/master
2023-07-15T05:56:47.665627
2021-08-27T12:54:23
2021-08-27T12:54:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,006
py
# Create your views here. from django.shortcuts import render #视图渲染模块 from django.http import HttpResponse #请求模块 from . import models #数据库操作模块 from django.db.models import Q #数据库逻辑模块 from django.db.models import Avg,Max,Min,Sum #数据库聚合计算模块 from datetime import datetime,timedelta #Cookie 模块 from django.http import Htt...
[ "455873983@qq.com" ]
455873983@qq.com
163d7c44a7e018cae6d6ff4a03b364723f15cc08
487c45df5fcbe7fdf6df5a348f6fe163bbb22033
/leetcode/875_koko_eating_bananas.py
20b4f0c350be2d1c309eb1f272a208f5b384aa40
[ "Unlicense" ]
permissive
leetcode-notes/daily-algorithms-practice
dba03ac1c55262f6bae7d5aa4dac590c3c067e75
2a03499ed0b403d79f6c8451c9a839991b23e188
refs/heads/master
2023-06-18T14:14:58.770797
2021-07-12T05:27:32
2021-07-12T05:27:32
264,057,786
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
class Solution: def minEatingSpeed(self, piles, H: int) -> int: low, high = 1, max(piles) def cannot_finish(k, piles): total = 0 for p in piles: total += p//k if p % k: total += 1 return total > H while...
[ "leetcode.notes@gmail.com" ]
leetcode.notes@gmail.com
df95550af87a49e5577ad50eb3448311733e01fb
926e1595567ab120a4a5a6734d24aedc5ec62297
/python/exercieses/zadanie_3.py
f6a8cde2e953d661ccb3d1d80c3a016640f85e72
[]
no_license
Shansky/teaching_magda
5574fed3bd5ab300764cec5fd7ec9990ced16117
fe86934236d72403d8e8dd237b4a6390eaf26b46
refs/heads/master
2020-03-14T22:16:42.635912
2018-05-02T08:08:46
2018-05-02T08:08:46
131,817,391
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
def factorial(n): if n>1: return n*factorial(n-1) else: return 1
[ "mateusz.szymanski@profitroom.net" ]
mateusz.szymanski@profitroom.net
2fecbef126f0a4c1540866aad4fb08b2a77da923
8942242d001a53a353f643787c1e745465e961c7
/leetcode/wiggle-sort.py
eb1f233362d9141981a8984bc2dbaec882fe9e92
[]
no_license
brcsomnath/competitive-programming
7b5277b455acaec8a729cca3576ad2aa669ba04f
49326c577d7fa343a2c803efb3e81d00df523d7d
refs/heads/master
2020-05-18T20:18:55.741482
2019-05-29T17:29:46
2019-05-29T17:32:45
184,628,298
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
''' Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3, 5, 2, 1, 6, 4], one possible answer is [1, 6, 2, 5, 3, 4]. ''' def process(array): position = 1 for index in range(1, len(array)): if position & 1: if...
[ "somnath@Somnaths-Personal-MacBook-Pro-2.local" ]
somnath@Somnaths-Personal-MacBook-Pro-2.local
e2be22d23ef0a492a068ef4aa2428993698da3bd
e0188f937248e5aa82e62e86b59944c93b09f256
/fairy/tail/ft_list.py
308d9266138236cdea3a7aea98ff22c7b02e42f0
[ "MIT" ]
permissive
qilutong/fairy
de8c9115eeb91cf2a6a95fb8880ae9f3784d2045
e4d40c5d3d6d431875a49c4f708ee278ab795901
refs/heads/master
2020-04-09T05:36:35.342483
2019-09-04T12:32:17
2019-09-04T12:32:17
160,071,697
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
# -*- coding: utf-8 -*- """ @FileName : ft_list.py @Description : None @Author : 齐鲁桐 @Email : qilutong@yahoo.com @Time : 2019-05-08 14:57 @Modify : None """ from __future__ import absolute_import, division, print_function def list_insert(raw_list, index, data): """ 根据索引在列表中插入新值,修改了索引...
[ "qilutong@yahoo.com" ]
qilutong@yahoo.com
a71a8a0ac4477cae9a18a321c9ca800b069b634c
040adb3acaf8b5811a1fcb79db03bbd04a73d25a
/figures.py
23009c1da9b72dbc6c3bd5250cb260acd782eb76
[]
no_license
xwl-xwl/disentangled
a8fdabfb0477286a96c3dae2c870de24305ad3fc
37024bdf851a00888de57b494e6b59b58b2207db
refs/heads/main
2023-08-25T16:02:49.094606
2021-10-21T16:38:42
2021-10-21T16:38:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
69,036
py
import numpy as np import scipy.stats as sts import functools as ft import sklearn.decomposition as skd import sklearn.svm as skc import scipy.linalg as spla import general.plotting as gpl import general.plotting_styles as gps import general.paper_utilities as pu import general.utility as u import disentangled.data_g...
[ "wjeffreyjohnston@gmail.com" ]
wjeffreyjohnston@gmail.com
e8cf404787724511a0b29b4cdd94c6d79eb99f88
789497c626e92eccfa102572384cade211576a97
/scrapysina/spiders/cankaoxiaoxi.py
5d8bb9fe7daf100449c8fa06655c71f83776ed08
[]
no_license
JimmyLsc/spiders-for-tan
9ddad68e331a6b2e9738c558d4ce89acd21f61b2
da91ec0caaa0d9cb2e1d93690179c48700043200
refs/heads/main
2023-01-29T04:14:36.109782
2020-12-16T07:56:30
2020-12-16T07:56:30
321,901,688
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
import datetime import scrapy from scrapysina.items import ScrapyItem class CankaoxiaoxiSpider(scrapy.Spider): name = 'cankaoxiaoxi' allowed_domains = ['mil.cankaoxiaoxi.com'] start_urls = ['http://mil.cankaoxiaoxi.com/'] custom_settings = { 'ITEM_PIPELINES':{ 'scrapysina.pipeli...
[ "45891479+JimmyLsc@users.noreply.github.com" ]
45891479+JimmyLsc@users.noreply.github.com
bcc91c66c1a46421cc90bf345566fae7477c3ed5
c8620bc8f41b9c2da42ba19caa4efe34d80f8e23
/Application/migrations/0002_auto_20200421_0007.py
a2abb0232b918fe4533d48d5a85c12420e7c96c7
[]
no_license
doniamezghani/ElitechProjet
26cb77e1c90ed93032a92ad093d6c8f9a1ef7578
20caa7eaf7234735a395f03a42b8366a135bab75
refs/heads/master
2022-12-10T20:54:54.732054
2020-06-03T22:50:33
2020-06-03T22:50:33
293,299,286
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-04-21 00:07 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Application', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
[ "donia.mezghenni@gmail.com" ]
donia.mezghenni@gmail.com
31029cb219a6d9233dc24ca5576b136098cb5c29
e48e3f58e87d9702a7b7bc986a649b8a37393829
/n_grams.py
a1c61ad4bc7c9553697b80bc703d091fc0d907b4
[]
no_license
ITerJXP/Phishing_detection
a662b33d944689719573a66237a32cd83e2dc607
55788764d13869a834868322622448c15f208e9a
refs/heads/master
2021-08-31T13:31:06.944793
2017-12-21T13:47:30
2017-12-21T13:47:30
112,483,597
5
1
null
null
null
null
UTF-8
Python
false
false
2,534
py
# -*- coding:utf-8 -*- import sys reload(sys) from nltk.util import ngrams import collections def make_str(url_part_list): _tab_ = ',' _str_ = '' for p in url_part_list: _str_ = _str_ + _tab_ + p return _str_ def train_grams(_str_, n): """ 计算n-gram集合 :param _str_: url集合 :pa...
[ "jxptaylover@163.com" ]
jxptaylover@163.com
29a7d8eac5c1f6058b997122e7ec0d1f6e72753a
d2eb9236fff1e38a00355203fcc78e71767603d7
/day4/ATM/atm/core/accounts.py
aa128a8dfdaadf5dde4beac8c5e808f3f303753b
[]
no_license
Oldby141/learning
c0449040df53ec36c2038cdcb66d4de717402de7
1cdea2353dec95f722ea6fca80647b0037a74306
refs/heads/master
2020-05-01T03:58:05.611893
2019-04-12T13:56:06
2019-04-12T13:56:06
177,260,516
1
0
null
null
null
null
UTF-8
Python
false
false
466
py
#!_*_coding:utf-8_*_ import json import time from core import db_handler from conf import settings def load_current_balance(account_id): db_api = db_handler.db_handler() data = db_api("select * from accounts where account=%s"%account_id) #print(data) return data def dump_account(account_data): db_...
[ "1194475412@qq.com" ]
1194475412@qq.com
fbab5560e9894901c5617e613add83c277d25710
8e8acc57b63a66cb1450fa4d015d4ddcd74cce85
/liaoxuefengLessons/ObjectOrientedProgramming/ENUM.py
5e50eaa8c9becb7d3b84f7e8a321feb1a34f2cb0
[]
no_license
indeyo/PythonStudy
fc2241db7cec8075a59a307ff47c9de83494844b
099feb4e4c8dec9e68887cedd95705d831e51b0f
refs/heads/master
2021-03-29T19:04:24.553848
2020-06-05T15:07:33
2020-06-05T15:07:33
247,978,205
0
1
null
null
null
null
UTF-8
Python
false
false
1,062
py
#!/usr/bin/env python3 #-*- coding: utf-8 -*- """ @Project : StudyPython0-100 @File : ENUM.py @Time : 2019-08-05 22:57:52 @Author : indeyo_lin @Version : @Remark : """ """ 练习: 把Student的gender属性改造为枚举类型,可以避免使用字符串: """ # from enum import Enum, unique # # class Gender(Enum): # Male = 0 # Female = 1 # # c...
[ "indeyo@git.com" ]
indeyo@git.com
3b6e664d5482c257c0400170a43bf6b823377024
5cf7f81791a9d66ba495512f0b1d2c8b6cccbd3d
/python/test/test_rhomb_H_and_R.py
ac268c603a510df1fc1881d48b3b0bc262075ef6
[ "BSD-3-Clause" ]
permissive
odidev/spglib
9e0eecbb77b20e09f1affec42af48dc6a1c60e82
e807f1193ad57af8b916245fc397e4667baaaf92
refs/heads/develop
2023-07-03T03:03:37.592891
2021-05-17T08:45:07
2021-05-17T08:45:07
390,248,634
0
0
BSD-3-Clause
2021-07-28T11:44:17
2021-07-28T07:01:36
null
UTF-8
Python
false
false
2,280
py
import unittest import numpy as np from spglib import get_symmetry_dataset, find_primitive from vasp import read_vasp import os data_dir = os.path.dirname(os.path.abspath(__file__)) dirnames = ('trigonal', ) rhomb_numbers = (146, 148, 155, 160, 161, 166, 167) tmat = [[0.6666666666666666, -0.3333333333333333, -0.333333...
[ "atz.togo@gmail.com" ]
atz.togo@gmail.com
af8638c194cc6aa49ff9907afb883eb041065fb8
4f46b4c5b2454a3ad1aea97c8cf0585414243f98
/Table_cxlx_all_ajlx/cxlx.py
e7aa3b3f5b7fce03ced4a1b4264992f85631d6da
[]
no_license
dingyuzhu/LAW_INFO_extraction
716431eeb008efb9f6fad703082fba6a9acf2075
2356cd52dae87d581b2af2e2d290171dd03da4aa
refs/heads/main
2023-05-21T16:23:26.547741
2021-06-16T10:26:32
2021-06-16T10:26:32
377,108,426
0
0
null
null
null
null
UTF-8
Python
false
false
12,517
py
# -*- coding: UTF-8 -*- import re import pandas as pd import rule_3 '''民事一审、二审诉讼记录分类''' class CXLX_CLASSIFICATION(): def get_cxlx_data(self, all_data): dict_cxlx_data = {} for data in all_data: # id, party_info, ssjl, ss_ssqq,spcx_id dict_cxlx_data[data[0]] = [data[1], data[2], da...
[ "695164075@qq.com" ]
695164075@qq.com
b4a4ca55d2231e169f1b67dec313d0b491bd3655
8d5c6908cfaafb720ac4e1b6ea6f135b17e16cc3
/lib/helper.py
421402cf2dc6a631ce3709dc176187eb065c31db
[]
no_license
hhirsch/launcher
e81d5b8b3804864cd0bcb6bc5254be6b9e8b4f25
d575658a0a71330a94021a3652b8581ade364fab
refs/heads/master
2023-01-06T16:32:36.009832
2020-10-16T21:01:05
2020-11-01T16:54:23
268,054,143
0
2
null
2020-11-01T16:54:24
2020-05-30T10:06:27
Python
UTF-8
Python
false
false
1,039
py
from os import path from assetexception import AssetException from shutil import copytree def gameIsInRepository(game): return path.exists(getRepositoryPath(game)) def gameIsInCache(game): return path.exists(getCachePath(game)) def getCachePath(game): return path.normpath('games/' + game) def getReposit...
[ "henry@w3-net.de" ]
henry@w3-net.de
aa516d2e2960317bd46795e9eb2cf98e9171382d
5b047dc237b3a9bcd8f33c8df5acbd98929cabb0
/hello.py
69c5351d6bbc09f94e08baefb0514040b2bb3e50
[]
no_license
Aeternam/server_status
62a04dfa9c295c1753446536b51da9108551e4f8
981df07d97464d92251814d281360918802f8ae8
refs/heads/master
2021-01-25T07:34:03.161187
2014-12-14T17:00:34
2014-12-14T17:00:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
from bottle import Bottle, run from bottle import template app = Bottle() @app.route('/hello') def hello(): return "Hello world!" @app.route('/') @app.route('/hello/<name>') def greet(name='Stranger'): return template('Hello {{name}}, how are you?', name=name) #@route('/wiki/<pagename>') #def show_wiki_page...
[ "justfan.b@gmail.com" ]
justfan.b@gmail.com
5903d8b50e2c112c29503ef04044290df4c209e0
49413293d6d7a956f0cda72548e79161ca2e2e6c
/renren/renren/items.py
58d1b42de2bfbadde9ef85d32508bbad7f7c95a2
[]
no_license
aonephy/python
c26a2c2728d7ffbc700693be63a8c0a9743b4d84
8eda2cfcb75b0cc67c8ea3c9e1b7425349c1d732
refs/heads/master
2020-03-28T19:47:39.855862
2018-10-15T05:53:53
2018-10-15T05:53:53
149,010,266
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class RenrenItem(scrapy.Item): visit = scrapy.Field() # share_friend = scrapy.Field() # has_friend = scrapy.Field() # img = sc...
[ "117656041@qq.com" ]
117656041@qq.com
61bbe9c6a03dc155f5c1f6a09c732284f2f3acdf
0d9c964fd7644395a3f0763f484e485fcc67f762
/new/src/21.03.2020/list_of_business.py
2e49049cc01217aba3b71d33a8cc65d4af44bb18
[ "Apache-2.0" ]
permissive
VladBaryliuk/my_start_tasks
eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e
bf387543e6fa3ee303cbef04d2af48d558011ed9
refs/heads/main
2023-04-14T14:00:08.415787
2021-04-24T13:47:38
2021-04-24T13:47:38
354,538,499
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
from tkinter import * root = Tk() root.geometry('300x400') btn2 = Button(text = 'save') btn2.pack() text = Entry() text.pack() list = Text() list.pack() def add (): todo = text.get() + '\n' list.insert (END, todo) btn = Button(text = 'enter',command=add) btn.pack() root.mainloop()
[ "vladmain9@gmail.com" ]
vladmain9@gmail.com
610a43592532b1432d27feb959a4f8be1037779f
f060182c25b7da8294e54bbf8a97e6f6b5fa6c22
/bulletPointAdder.py
61ff040ec7367f83329ddf9723ff1ebc93929cc6
[]
no_license
jennymhkao/automate-boring-stuff
e7a0e129f9123778594f72dc8f2511de00f241f1
00614c82e4a2ac39a17e394bd848c7c7cad0da17
refs/heads/master
2023-03-05T00:26:27.271558
2021-02-14T20:14:43
2021-02-14T20:14:43
286,122,810
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
#! python3 # bulletPointAdder.py - add star bullet point and space at beginning of each line. import pyperclip text = pyperclip.paste() newText = text.split('\n') for i in range(len(newText)): # loop through all indexes in the "newText" list newText[i] = '* ' + newText[i] # add star to each string in "newText" ...
[ "k.jennymh@gmail.com" ]
k.jennymh@gmail.com
8fc886a306f419925d2ee225a17ed2480a5d4cef
69fc90ecc891ff34d74e38a83a3936baddfd7ed6
/reminders/migrations/0018_auto_20150825_0017.py
6ac27643f2c938c8017180c7098ba51b5b9dab5a
[]
no_license
cep-15-cocos-bl/cep2015sem2
9624b058b7a99d6a4d297076b6ce060d4f3185d3
b79809d4e2ec405da3ffa36918c4f0f8ee42e935
refs/heads/master
2021-01-15T09:09:52.180205
2015-09-29T07:31:30
2015-09-29T07:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ('reminders', '0017_auto_20150818_1620'), ] operations = [ migrations.AddField( ...
[ "llinhong.2301@gmail.com" ]
llinhong.2301@gmail.com
c43628058f0ac9589e5b5c5e12579f9f3ef2ea58
501952b4c60182ab0f2c4332fe23c7d1d3a81078
/ChurnPrediction.py
15704ebe67ff8e272c04ea43c5f37ac295332267
[]
no_license
AIhmed/ChurnPrediction
1d09097d885fa05bd6e53909d7ef375ca37e18e2
139d708e2fb21dc232dfe3f99b4830de3bcb6e6d
refs/heads/master
2023-07-07T22:09:00.166003
2021-08-16T00:54:26
2021-08-16T00:54:26
386,054,344
1
0
null
null
null
null
UTF-8
Python
false
false
6,525
py
import pandas as pd import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as fn from torch.utils.data import Dataset , DataLoader trainSet=pd.read_csv('sample_data/churn-bigml-80.csv') testSet=pd.read_csv('sample_data/churn-bigml-20.csv') print(testSet.colum...
[ "bouliche.ahmed.2@gmail.com" ]
bouliche.ahmed.2@gmail.com
525b70fa2854ab0628bdc743b96501d0475c36c0
0ad1e5559c2f475ffac77b10275c2c64d2a36a9e
/hideandseek/hideandseek.py
96ab4e39e4855f760aa208d58501ca365c864121
[]
no_license
csyouk/python-playground
3d165c9462427525b538ceb8de746a62e9190500
4bd8ffcb7ca46cda1e9f6f3f2e1e613954a9f58a
refs/heads/master
2020-09-24T03:54:00.770078
2017-11-12T01:56:22
2017-11-12T01:56:22
66,607,035
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
# coding: utf-8 import urllib2 urllink = 'http://hideandseek.net/projects/' fileformat = '.html' # projectnamelist = ['searchlight','99-tiny-games','the-building-is'] projectnamelist = ['the-sandpit','the-hideseek-weekender','last-will','drunk-dungeon','would-anyone-miss-you','consultancy','tiny-christmas-games','the-n...
[ "csyouk@hanmail.net" ]
csyouk@hanmail.net
4d7886f416baba1c84d182a66f20391da7c27df2
0d5c77661f9d1e6783b1c047d2c9cdd0160699d1
/python/paddle/fluid/tests/unittests/test_row_conv_op.py
07dcd108689ae6069e30fe22029258d192215549
[ "Apache-2.0" ]
permissive
xiaoyichao/anyq_paddle
ae68fabf1f1b02ffbc287a37eb6c0bcfbf738e7f
6f48b8f06f722e3bc5e81f4a439968c0296027fb
refs/heads/master
2022-10-05T16:52:28.768335
2020-03-03T03:28:50
2020-03-03T03:28:50
244,155,581
1
0
Apache-2.0
2022-09-23T22:37:13
2020-03-01T13:36:58
C++
UTF-8
Python
false
false
3,441
py
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "xiaoyichao@haohaozhu.com" ]
xiaoyichao@haohaozhu.com
e7846284c7e134592127b48bc185fe593b0949ec
fe7b700cfe3c06d89d18ffad3eeeb3b8220c1759
/pipeline/feature-classification/exp-3/selection-extraction/pca/pipeline_classifier_mrsi.py
30793e60571a5f7f0342ae4b772cf21d2691ce80
[ "MIT" ]
permissive
DivyaRavindran007007/mp-mri-prostate
928684a607cf03a2d76ea3e3e5b971bbd3a1dd01
bd420534b4b5c464e5bbb4a07eabdc8724831f8a
refs/heads/master
2021-06-08T21:09:15.850708
2016-10-20T16:08:57
2016-10-20T16:08:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,823
py
"""This pipeline is intended to make the classification of MRSI modality features.""" from __future__ import division import os import numpy as np from sklearn.externals import joblib from sklearn.preprocessing import label_binarize from sklearn.decomposition import PCA from sklearn.ensemble import RandomForestClas...
[ "glemaitre@visor.udg.edu" ]
glemaitre@visor.udg.edu
56c1eb3345ca5730e376f0f94bff64c4c7ab0f63
f614e8567f9458e298c651d0be166da9fc72b4bf
/Students/Theo/Django/Lab2/lab2_project/wsgi.py
326cd9e222d5bbcbf4647d57ed5562f67c3dc3cb
[]
no_license
PdxCodeGuild/class_Binary_Beasts
458c5be00b7bce3bb4ac9b7ab485c47f72be4294
b1298cb5d74513873f82be4ed37676f8b0de93dd
refs/heads/master
2023-06-28T07:05:21.703491
2021-07-29T03:44:09
2021-07-29T03:44:09
344,980,863
4
4
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for lab2_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/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "theo@Theos-MacBook-Air.local" ]
theo@Theos-MacBook-Air.local
d630012bff87fda4be1257cfdfb3e5f27ef5b28b
c65ebae44586bde4052190c9d5a8476ff06e2b86
/ICONRepClassification_Py/src/com/prj/bundle/modelling/BiLSTMDimModel.py
c6c08ac133f8697656d7739ea7b6a74fe750f78f
[]
no_license
warikoone/LpGBoost
432f99fc2c28e504c2b1ab54fa36a56db1c4a048
eb2f263ea0970ee9f698d89c80cbb8f413e5f345
refs/heads/master
2020-09-15T04:06:25.905608
2019-11-22T14:46:19
2019-11-22T14:46:19
223,344,561
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
''' Created on Dec 21, 2018 @author: iasl ''' import sys import numpy as np from keras.models import Model, Sequential from keras.layers import Dense, LSTM, Input, Flatten from keras.optimizers import Adam from keras.layers.embeddings import Embedding from keras.layers.advanced_activations import LeakyReLU, PReLU fro...
[ "noreply@github.com" ]
noreply@github.com
ba214d989e2726501079dcc571ad87592b704bf7
ee30942018813203a23d33e8a5c871c73d51092e
/DNS/myproject/myproject/urls.py
fdffd138bc6384e277b9962a1fefe0530c630784
[]
no_license
vedavidhbudimuri/distribued-files-storage
637328aac89064415d795db4dc6fd873731aa7cb
908c97fa540c9e697982335d31d967dfd325f8fa
refs/heads/master
2021-01-01T04:27:06.741953
2016-04-16T16:12:57
2016-04-16T16:12:57
56,390,673
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
from django.conf.urls import include, url from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), # url(r'^mainserver/',include('mainserver.urls')), ...
[ "vedavidhbudimuri@gmail.com" ]
vedavidhbudimuri@gmail.com
53f871e50d2de10422c10dea7f85c339c8de2718
40e0d194edd83673d75694d81e3bc8c277d1ec18
/funkcije.py
c48f87ceb253228c8323966e76b394c3d198ed90
[]
no_license
MarkoGlavas78/Zadaca
3c1aa9fce21d2bc1b5182ec03deb75bee74d3b16
b48ac04ba0a8d4fb4fc77101b4482d8d4ca55513
refs/heads/master
2022-07-17T08:40:00.580843
2020-05-09T15:52:22
2020-05-09T15:52:22
262,602,734
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
import likovi from math import pi def opseg(lik): if isinstance(lik, likovi.Kruznica): return 2*lik.radius()*pi if isinstance(lik, likovi.Kvadrat): return 4*lik.stranica() def povrsina(lik): if isinstance(lik, likovi.Kruznica): return lik.radius()*lik.radius()*pi if isinstance(...
[ "noreply@github.com" ]
noreply@github.com
5b5156cbef313f7ca0e43f0c83256fc08a1596fe
85f1908ef3c6629d71fa821ff9f76a9fe78393a8
/check_open.py
8c0c0787431ff5915bb482afc92514fe96357955
[]
no_license
PRANAVI2402/prachan
a575d0d1386e76a942f1a4ba45a0ede5bcbb8e21
4c112ca71e423e07f47b5d08f682971a41607eaf
refs/heads/master
2020-08-01T15:49:50.732156
2019-09-27T07:02:15
2019-09-27T07:02:15
211,038,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
'''fo = open("foo.txt", "w") print ("Name of the file: ", fo.name) print ("Closed or not : ", fo.closed) print ("Opening mode : ", fo.mode) fo.close()''' # Open a file '''fo = open("foo.txt", "r+") #print ("Name of the file: ", fo.name) #fo.write( "Python is a great language.\nYeah its great!!\n") str1 = fo.read(10) pr...
[ "pranavi2402@gmail.com" ]
pranavi2402@gmail.com
c1f0f56f1f31047cfc5c943b9b8cb27094c83a27
69bb1d0e824625876207d492722adfdb9d959ad1
/Codeforces/antonAndDanik.py
c059ac795188e2be373516cbb3ff30f3a2ece7af
[]
no_license
domiee13/dungcaythuattoan
8e2859264515e0fac3e9f0642a8b79ce5d966fff
7e95d037d47d6e4777e9cf56b9827c3e42f556b3
refs/heads/master
2023-03-28T03:58:44.225136
2021-03-29T10:32:52
2021-03-29T10:32:52
277,798,242
2
1
null
null
null
null
UTF-8
Python
false
false
1,413
py
# A. Anton and Danik # time limit per test1 second # memory limit per test256 megabytes # inputstandard input # outputstandard output # Anton likes to play chess, and so does his friend Danik. # Once they have played n games in a row. For each game it's known who was the winner — Anton or Danik. None of the games ende...
[ "dungngocmd@gmail.com" ]
dungngocmd@gmail.com
63e07fc1ff6aecff93869fb170be7e3769d99142
30145c279ee8b657215720a109a6fb4e5d33ba1e
/helperFunctions.py
cc5f73a47533335ce5c507e0555650cee799fe7a
[]
no_license
pcoh/SDCND_VehicleDetection
30107ddcc4eb6be5348641ddf0dfde02929a2f2a
fd58712ccfc158e71b038d29ddcc7d4c0f707d10
refs/heads/master
2021-01-21T09:53:43.236928
2017-03-05T01:40:15
2017-03-05T01:40:15
83,347,197
0
0
null
null
null
null
UTF-8
Python
false
false
21,099
py
import matplotlib.image as mpimg import numpy as np import cv2 import time from skimage.feature import hog from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.svm import LinearSVC def get_hog_features(img, orient, pix_per_cell, cell_per_block, vis=False, f...
[ "patrick.cohen.at@gmail.com" ]
patrick.cohen.at@gmail.com
06e9af435b48d5945c4ae92e1b4270ba096357cc
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/iBqJcagS56wmDpe4x_7.py
3acaa1ddc25b89eab9db4328cabbfff41f70461d
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
""" The volume of a spherical shell is the difference between the enclosed volume of the outer sphere and the enclosed volume of the inner sphere: ![Volume of Inner Sphere Formula](https://edabit- challenges.s3.amazonaws.com/volume_of_inner_sphere.svg) Create a function that takes `r1` and `r2` as arguments and re...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
088eedf92a656f4be82b91f4262a65b418fdb70b
1d80afe967a6c44e84f9689b221f2cf52681b948
/Star2/urls.py
412486e15e57694d2ef7e24700a680ad0a237091
[]
no_license
Jddanan/Intro-to-Django---Star-Ex2---Colors-New
ede3e4ac79c4b1fde2a97be19d5d0b6f6b5cfb53
bd83802b18d615c3e95c499bccb56c14f1868aa3
refs/heads/master
2020-04-15T05:54:45.936305
2019-01-07T15:53:43
2019-01-07T15:53:43
164,441,636
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^colors/', include('colors.urls')), url(r'^admin/', admin.site.urls), ]
[ "jddanan@gmail.com" ]
jddanan@gmail.com
7341475b0e14d6e3b4fbacb119a45a981acbfb0a
80e5fad060bb66b1985660f83299e9039ae715ca
/aidaijia_coupon/admin.py
b761ee350eaceb1eeee25361062c4fb47840e1f0
[ "MIT" ]
permissive
sebastianlan/wedfairy-api
838ea192fc1711027820ace1a20298d28be27794
3df532f282568148003b394dc8ea5ed00aea1632
refs/heads/master
2020-05-30T15:55:45.916937
2015-10-22T06:31:20
2015-10-22T06:31:20
41,350,100
1
1
null
null
null
null
UTF-8
Python
false
false
294
py
from django.contrib import admin import models @admin.register(models.CouponCandidate) class CouponCandidateAdmin(admin.ModelAdmin): list_display = ['id', 'url', 'used'] @admin.register(models.Coupon) class CouponAdmin(admin.ModelAdmin): list_display = ['id', 'url', 'created_date']
[ "sebastianlan.original@gmail.com" ]
sebastianlan.original@gmail.com
60e7e6a4ff1e0a5d8fbcd8c79df4b3bdbd4ec063
079cde666810d916c49a9ac49189a929ad19e72f
/qiche/qiche/pipelines.py
053e07626aa94cf4206aea50d4b46eb566fc3674
[]
no_license
jokerix/demo
82d01582a9882ac361766516d07c9ad700053768
7c0d7666f82ec78e9562956bb0f4482af8531ebb
refs/heads/master
2021-07-14T02:47:28.686827
2020-07-03T15:16:32
2020-07-03T15:16:32
179,784,409
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os from urllib import request from scrapy.pipelines.images import ImagesPipeline from qiche import settings class Qich...
[ "1215774897@qq.com" ]
1215774897@qq.com
b02e4a047d216973392b32334bb53900a55a4fb9
3634a283149740a566352a204add30d1c09f3deb
/InvestmentGame/storedata.py
5305b1116f4df6c682ba619addcc33e3dad34264
[]
no_license
NTimmerhuis/InvestmentGame
84d495453bcdef346ae2646f39cddce29363af8e
e521771a3a242c97fb9446a97b0efd815b1a595e
refs/heads/master
2020-07-31T10:27:47.860355
2019-09-26T14:38:44
2019-09-26T14:38:44
210,573,905
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
import pandas as pd import numpy as np df = pd.read_csv("data.csv") # df.to_csv('hrdata_modified.csv')
[ "rutger.jansen@hotmail.com" ]
rutger.jansen@hotmail.com
5f5c03bcd52eb2348ea2bfae56c4eb554064760a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_210/263.py
07aad036673e87dff6e60957731771366d880485
[]
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,406
py
import operator fin = open('B-small-attempt2.in', 'r') fout = open('output.out', 'w') tcs = int(fin.readline()) for tc in range(0, tcs): inptemp = fin.readline().split(' ') ac = int(inptemp[0]) aj = int(inptemp[1]) acs = list() ajs = list() for i in range(0, ac): acinp = fin.r...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
344734125bb7c7899ca6cc6c2558fd173da78d68
279ed7207ac2c407487416b595e12f573049dd72
/pybvk/bvk/bvkmodels/ni_676.py
8e2c8f20a537ec5b2eaa574c6f66b29f2b1de7de
[]
no_license
danse-inelastic/pybvk
30388455e211fec69130930f2925fe16abe455bd
922c8c0a8c50a9fabd619fa06e005cacc2d13a15
refs/heads/master
2016-09-15T22:21:13.131688
2014-06-25T17:12:34
2014-06-25T17:12:34
34,995,254
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
# ni_676.py # BvK force constants element = "Ni" lattice_type = "fcc" temperature = 676 # Units: K reference = "De Wit, G.A., Brockhouse, B.N.: J. Appl. Phys. 39 (1968) 451" details = "All fits use the measured elastic constants. This fit uses general force up to fourth neighbour, axially symmetric force for fifth ...
[ "linjiao@caltech.edu" ]
linjiao@caltech.edu
37999837ff6c3f69f482505a80570f97ef47569b
d43040239e2fc3733210519f0d639e6540d87b02
/api.py
29f87b86a01e64359f68c216046b39d92ccea917
[]
no_license
austintip/flasql-1214
37314317d12621245ea99fa96fefd25c0e649372
f7c0cb7dbd56f2c3df2e4589749bdfbaecd06842
refs/heads/main
2023-03-13T07:26:23.532643
2021-03-03T22:45:51
2021-03-03T22:45:51
344,265,204
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
from models import app, db, User from flask import jsonify, request @app.route("/") def home(): return jsonify(message="Welcome to my api") @app.route("/users", methods=["GET", "POST"]) def user_index_create(): if request.method == "GET": users = User.query.all() print(type(users[0])) ...
[ "austin.d.tipograph@gmail.com" ]
austin.d.tipograph@gmail.com
0c34f38a5975e04f51eafd628a2120d9d8be371c
f6ab9a25c3e21a940a7564655b35255965277586
/Season-One-lesson-Two.py
7e0e9c530855a90c3d78819521dee6f1e8d9f998
[]
no_license
YousefRashidi/Season-One-lesson-Two
659de7b3caa5289504c80c4e9aa409c28b84b296
60152e0018984783d5482a9147f5a85e8e47b7ed
refs/heads/master
2020-06-09T03:13:56.278110
2019-06-28T12:20:33
2019-06-28T12:20:33
193,359,860
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
# review a = 1 b = 1.2 z = 1 + 5j text = "hello" cond = True lst = [1 ,True ,1.2 ,"hello" , 1000] print(lst[3]) # a-z A-Z 0-9 _ # # my_var = 10 # snake_case_naming # camelCaseNaming # PascalCaseNaming var = text + a # ------------------------------------------------------- # str_methods text = "heLLo" text_up ...
[ "yusef.r.r@gmail.com" ]
yusef.r.r@gmail.com
1edf039f04ef58d6ac247f9e811950868dfc6c32
f4e97a269a35acc73d01ebede7ab0d17d306cf2d
/images.py
a6e444df7f10779a5f94b2b402d65df9362b6ec7
[]
no_license
rameshrawalr2/EmotionRecognition
2ce8eea173dff0f1561bdcb88535bcee7e5ba490
9e9a503caefb56a0732f4774ecc506ed1fc7d94e
refs/heads/master
2020-03-15T05:58:42.355454
2018-05-19T05:01:04
2018-05-19T05:01:04
131,997,913
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 8 22:40:25 2018 @author: ramesh """ import numpy as np import csv #import tensorflow as tf #import cv2 from PIL import Image img=Image.open("result3.png") img.show() width, height=img.size format=img.format mode=img.mode img_grey=img.convert('L'...
[ "noreply@github.com" ]
noreply@github.com
ddfdd2f0efe461b056235acb80be18b8c1228721
34165333483426832b19830b927a955649199003
/publish/library_app/reports/library_book_report.py
f1b54fc8a5cc254109a6f75a8fa9f9b3ecad1cee
[]
no_license
terroristhouse/Odoo12
2d4315293ac8ca489d9238f464d64bde4968a0a9
d266943d7affdff110479656543521889b4855c9
refs/heads/master
2022-12-02T01:09:20.160285
2020-08-16T13:56:07
2020-08-16T13:56:07
283,630,459
1
0
null
null
null
null
UTF-8
Python
false
false
447
py
from odoo import fields,models class BookReport(models.Model): _name = 'library.book.report' _description = 'Book Report' _auto = False name = fields.Char('Title') publisher_id = fields.Many2one('res.partner') date_published = fields.Date() def init(self): self.env.cr.execute("""...
[ "867940410@qq.com" ]
867940410@qq.com
7e3a1740255a8eafecb0e0d349e31173cc621957
29ebdf0a6b73a33933ee62cb727c1828c7004bbe
/Ecom/urls.py
ea8b3252d0761eba5a2247a098a5678c600c1f13
[]
no_license
Fahad0907/Ecommerce_with_drf
68d8099e849338ef24e86e89820c7168486730a7
f5f48c8a829f789851ad61c414814e9298b6e42a
refs/heads/master
2023-08-03T23:28:21.624113
2021-09-12T15:08:28
2021-09-12T15:08:28
398,205,650
0
0
null
null
null
null
UTF-8
Python
false
false
2,025
py
"""Ecom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "fahad.aust09@gmail.com" ]
fahad.aust09@gmail.com
a46bb397830f9b590558e4c74bce17ec6435f80a
ba781c7044289ad7b4df8baa4c910cdaf99325df
/srtMacro.py
312ff3209d21cd72c533e1248a57f2785587f9f4
[]
no_license
morningM00N/bg
8751f10012698abc71cd1426dda48b060517b332
7b3fe39e787f8a1ae363289718578db71f7bc7e1
refs/heads/master
2023-08-17T21:35:39.101390
2023-08-03T12:04:57
2023-08-03T12:04:57
237,815,283
0
4
null
2021-09-30T12:43:56
2020-02-02T18:21:01
JavaScript
UTF-8
Python
false
false
7,475
py
import datetime from time import sleep from pytest import ExitCode from selenium import webdriver #from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Ke...
[ "abcdeei888@gmail.com" ]
abcdeei888@gmail.com
8ff8c60155eca0198afd7158b8f4dbb5f00a51d5
163cb8cae7d364a090565710ee9f347e5cdbf38f
/new_deeplab/utils/get_dataset_colormap_test.py
90005ebbf542c89e44a7dd4783811474cc59853d
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
abhineet123/river_ice_segmentation
2b671f7950aac6ab2b1185e3288490bc5e079bc1
df694107be5ad6509206e409f5cde4428a715654
refs/heads/master
2023-05-01T11:52:10.897922
2023-04-25T22:55:04
2023-04-25T22:55:04
179,993,952
15
8
null
null
null
null
UTF-8
Python
false
false
3,955
py
# Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "asingh1@ualberta.ca" ]
asingh1@ualberta.ca
833948d32526164c6d4daf30a7f26eb56483ba44
0a9d3510cb62b16be2eef756bfd4bd3dcd9ee867
/Final submission/fill-in-the-blanks 2.py
bfebc9d706d8c56948ff0f921c3c02f3a747b3ce
[]
no_license
nyi11a/Reverse-Madlibs
1a61fa84fea482ece1d7284fef33fe84e00a76e6
53392e9c04fa9ffe87ef7a68777433eb5e1f3bf5
refs/heads/master
2021-01-10T05:47:24.088016
2016-01-28T08:45:48
2016-01-28T08:45:48
50,571,184
0
0
null
null
null
null
UTF-8
Python
false
false
3,971
py
import textwrap nums_to_fill= ["-1-", "-2-", "-3-", "-4-"] #the blanks in each text levels= ["easy", "hard", "medium"] answers= [] answers2= ["string", "indexing", "subsequence", "method"] answers3= ["procedures", "calling", "defining", "parameters"] answers1= ["numbers", "assignment", "variables", "string"] text1= "...
[ "ms.yilla@gmail.com" ]
ms.yilla@gmail.com
fc8cf13f7df2944b5e908ef9041ecdfea4749e91
c4be966cc6d4aeaa4c950bcbc5a3cfc5540f533d
/p12p3.py
90741afc9e5811ecd1881e88f0acf8765da313f3
[]
no_license
ojhermann-ucd/comp10280
cabc865361928565c9618250bcb2c20a4b17411e
eae44e373b4c19550860381d90c4a96f8190eb7d
refs/heads/master
2020-05-20T18:48:06.064953
2016-11-25T12:26:59
2016-11-25T12:26:59
68,710,257
0
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
""" Write a function that takes as its two arguments a number and a tolerance and, using the technique exposed in lectures, returns an approximation of the square root of the number that is within the tolerance. Write a program that prompts the user for a floating-point number and checks that the number entered is no...
[ "noreply@github.com" ]
noreply@github.com
f0156b76cf3099ac72b52fb98f007b69dbf16a39
798ad9e31ce14218a2f8fe9c4b7562f9d85da38d
/p071080702.py
f7d39238296152af92f9aab6776c320dbdeb114c
[]
no_license
Cynventria/1076LAB
e5cb31a56aede69504da9751485fa61a83894736
ba910e8d4c80e7d82ed5298d3f389257ef6de6b1
refs/heads/master
2023-02-14T01:21:59.777276
2021-01-06T12:04:36
2021-01-06T12:04:36
298,172,727
0
0
null
null
null
null
UTF-8
Python
false
false
5,256
py
import tkinter top = tkinter.Tk() f1 = tkinter.Frame(top) f2 = tkinter.Frame(top) isEmpty = True isOperator = False isError = False operates = 0 var = tkinter.StringVar() var.set("0") def SetValue(): # 設定Label的值 Screen = tkinter.Label(f1, textvariable = var).grid(row = 0, column = 1) def Click(x...
[ "noreply@github.com" ]
noreply@github.com
9ebd4f11813ec6c732064f8de6662f201382af4c
b36d29a441af7e05f5307a69042db6a42639fbe5
/bookmarks/models.py
343478f908069092148d92c87cf762063d73e737
[]
no_license
VishalTaj/iFound
90f0bb82cf9300b39e8f177aefef3f1401afa741
b81b750e956d5ef51f4c46b2ad7016a0e60e01e1
refs/heads/master
2021-01-10T15:23:24.563510
2015-12-22T12:52:31
2015-12-22T12:52:31
48,431,749
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
from django.db import models from django.template.defaultfilters import slugify class Bookmark(models.Model): url = models.URLField(max_length=150) slug = models.SlugField(max_length=150) name = models.CharField(max_length=50) description = models.TextField() thumbnail = models.FileField(upload_to...
[ "vishaltajpm@gmail.com" ]
vishaltajpm@gmail.com
6fe53663c261f3ac799f8c34f29b111d263d3c73
e2d9a6572046a61e8b0372c899ae178621d990e0
/myblog/myweb/templatetags/blog_tags.py
96958d8cd9567d0f90b5ea0567a3943ad93dcd73
[]
no_license
luxinwang/myblog
273b73e6887f7b74d5506b2ce8bf1028743343c5
0f9c0285794fecf7d11efdc295bd46aaed90694e
refs/heads/master
2022-12-11T22:43:56.114871
2018-05-07T10:44:07
2018-05-07T10:44:07
132,446,132
0
0
null
2022-12-08T00:59:52
2018-05-07T10:40:44
CSS
UTF-8
Python
false
false
695
py
from django import template from ..models import Post,Category,Tag from django.db.models.aggregates import Count register = template.Library() # 最新文章标签 @register.simple_tag def get_recent_posts(num=5): return Post.objects.all().order_by('-create_time')[:num] # 归档模板标签 @register.simple_tag def archives(): retu...
[ "noreply@github.com" ]
noreply@github.com
66d48cedc859b5320c861c0f2e4941dccf9152ec
7facaf55129c8de415ffa1630adbf8ff525af448
/portfolioapp/models.py
e06118e409f56139d3d3fa1c7c2cc8da0d2fbdef
[]
no_license
lornakamau/old-portfolio
16424aa30b3c956f0fc130298d4cde253b0ae332
4e9c3cde8217c69c8a6728ef2f8a8ad85c5f2520
refs/heads/master
2023-03-29T07:30:03.426605
2020-08-08T12:02:28
2020-08-08T12:02:28
358,271,410
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
from django.db import models from cloudinary.models import CloudinaryField class Project(models.Model): name = models.CharField(max_length = 30) screenshot = CloudinaryField('Project screenshot') languages = models.TextField() short_description = models.TextField(default="short description") long_d...
[ "kamaulorna@gmail.com" ]
kamaulorna@gmail.com
515272629218fe375177a125fdc060910ee2c669
8baec8070446821ed6292a4faea253b424349b8b
/tags.py
f8d16db25bd035395d0a101178f90a20233de82f
[]
no_license
TeresaAye/SQL_Wrangle_OpenStreetMap_Data_Final_Project
3269094a85686fbe18ffe71518fc1540d36b84e5
f7f6a10f3951dfd08f5e4f1cc5044c2a9bfbf0e5
refs/heads/master
2020-03-12T06:47:27.245800
2018-04-21T17:10:23
2018-04-21T17:10:23
130,493,236
0
0
null
null
null
null
UTF-8
Python
false
false
2,494
py
# -*- coding: utf-8 -*- """ Created on Sun Mar 26 17:45:40 2017 @author: TA2761 this one is ready for project """ # From DAND P3 Problem Set "case study" quiz "Tag Types" #!/usr/bin/env python # -*- coding: utf-8 -*- import xml.etree.cElementTree as ET import pprint import re """ Your task is to explore ...
[ "noreply@github.com" ]
noreply@github.com
929a5f3d621e47e2687b81ab050783331e6f6cf7
4520ce2f35605048db290c767c620bf629735295
/Compiler/parser.py
e2813f377445f68648d471fa89b9c5b2db414db8
[]
no_license
william-nguyen128/PPL-Project
66bf25056ef0440631785e850c63d099dc97272c
c07bd3e416e5de9f99db96ddb252201af29dc12b
refs/heads/main
2023-04-21T18:23:15.754934
2021-05-19T14:01:34
2021-05-19T14:01:34
368,231,553
0
0
null
null
null
null
UTF-8
Python
false
false
13,968
py
from rply import ParserGenerator from .JSONparsedTree import Node from .AbstractSyntaxTree import * from .errors import * # State instance which gets passed to parser ! class ParserState(object): def __init__(self): # We want to hold a dict of global-declared variables & functions. self.variables ...
[ "quannguyen.flagship@gmail.com" ]
quannguyen.flagship@gmail.com
bc8268af631131bd13dd39a95f902b0502e60268
5cd925e6e430f776831187f0f17173c5499b69ce
/VAE/helper.py
4108e94810fda4309584cc60bbb0a21ee1786d5f
[]
no_license
AI-Composer/AIComposer
8e51dfb0eb5f2f9c144d81ad8650375a80d9a826
7b97fa833fc6a878d69d61162d6013114691613d
refs/heads/master
2022-11-06T10:53:54.326030
2020-06-21T15:05:05
2020-06-21T15:05:05
259,961,954
1
0
null
2020-05-31T02:57:53
2020-04-29T15:16:59
Python
UTF-8
Python
false
false
1,575
py
from VAE.model import VAENet def train(model, loader, epoch_num=10, batch_num=600, save=None, summary=False): """Helper function for training Args: model: VAENet loader: loader defined in data.py Returns: None """ assert isinstance( model, VAENet),...
[ "liwei17@mails.tsinghua.edu.cn" ]
liwei17@mails.tsinghua.edu.cn
4c0dfbd50ab31226a2bc8333c10ef07d96a180cf
e4d31420d7f79309adbbfce49151ffbf0660ed9c
/project/sla_dashboard/geit.py
24e113041db6edcc7ed1e5afd6ab5b20cc0834be
[]
no_license
visionguo/python
c56321af5759e5c43d25871ab835850d5d91ea82
2de82e898524194b3b735835c044f078cc6ee5ba
refs/heads/master
2022-12-18T17:21:25.899038
2021-08-26T12:30:47
2021-08-26T12:30:47
135,961,970
0
0
null
2022-12-08T01:56:56
2018-06-04T02:44:18
HTML
UTF-8
Python
false
false
2,666
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Auther:VisionGuo # Date:2018/08/29 # Brief: # geit # Globals: # None # Returns: # succ:0 # fail:1 import requests import json from elasticsearch import Elasticsearch from urllib import urlencode from urllib import quote import re import shutil import time im...
[ "30895025+visionguo@users.noreply.github.com" ]
30895025+visionguo@users.noreply.github.com
602df5b5ae465bb4f6010ed5a2706665ddb9270e
5c12bfe2c4b661986d2740aa48a402fd2fd01703
/idlak-voice-build/pythonlib/example.py
a5bb488cea822f594fbc2031ed430ad0fb225db9
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
oplatek/idlak
fea41d797b862f5382bd17c0ca8349b346cb44d7
02b24dc6f79b84779e423bfbb17bdf8e70c95aec
refs/heads/import-svn-idlak
2021-01-11T04:41:39.367915
2016-09-14T18:13:52
2016-09-14T18:13:52
71,112,898
0
0
NOASSERTION
2020-02-20T13:09:34
2016-10-17T07:48:11
C++
UTF-8
Python
false
false
2,121
py
# Uses python wrappers to print out a context dependency tree import os, sys SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) # load idlakapi wrapper sys.path += [os.path.join(SCRIPT_DIR, 'pythonlib')] import idlakapi class KaldiTree: def __init__(self, treedata): pass # only works for binar...
[ "blaise@cereproc.com" ]
blaise@cereproc.com
30341627603cc0e51fee56d6cecd002a5c6b866b
b86f9b0bb909d5f809acb776f270afbcf49fffe5
/AOC_2019_4/2.py
51968f2dbce473a4a0821a161efc5e76bea75b2c
[]
no_license
ternovandarius/Advent-of-Code-2019
58a4686c8c3f3b8a9255131341f26008f75b0783
cb1273b9d32e44d37f51da15d11cbd30f3c53804
refs/heads/master
2021-02-06T22:57:18.814370
2020-02-29T11:21:33
2020-02-29T11:21:33
243,955,066
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
def verify(nr): prev_digit=nr//100000 digit_count=[0]*10 for i in range(4,-1,-1): x=10**i curr_digit=nr//x%10 if prev_digit<curr_digit: prev_digit=curr_digit else: if prev_digit==curr_digit: digit_count[prev_digit]+=1 else: return False for i in digit_count: if i==1: return True retur...
[ "52597957+ternovandarius@users.noreply.github.com" ]
52597957+ternovandarius@users.noreply.github.com
9dfbbe965c519f29355baf5a53a6bbd69ffcd861
29a57a4df2e7b005f102030d4e517c0171104ce7
/20210724/TofPandas.py
c43ec87cc4a2fa6a9e5ee2e9d7910543e795cbea
[]
no_license
altroy2554/DB
26abdae31983d4640e77a585c54930fe6ecf2cce
24ba6348e68aad66543d08699d30b6f3b5a2968b
refs/heads/main
2023-07-07T07:22:24.721761
2021-08-07T07:49:15
2021-08-07T07:49:15
389,016,224
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
import numpy as np import pandas as pd a =pd.Series([1,2,3]) nameSer = pd.Series(['name1','name2','name3']) age = pd.Series([10,20,30]) gender=pd.Series(['남','여','남']) grade = pd.Series(['A','A','A']) df = pd.DataFrame({'이름':nameSer, '나이':age, '성...
[ "noreply@github.com" ]
noreply@github.com
2ebb0b0a02c0f0f1bcd8b3987a74b01fa6e79e70
003543c7ef10ef82dcea4c5da89a225a9fcf16a5
/tests/data/multipoint_beam/i_comp_base.py
fb8cc409f44d2e903eab5641b3f8531f86f932e4
[ "Apache-2.0" ]
permissive
relf/WhatsOpt-CLI
20dda7a71fd59faa1203ee4022610e1cfe3a1e14
a8779638763681b4f4f85df532a9de8813a705ca
refs/heads/master
2023-07-14T02:50:02.648427
2023-06-27T13:41:09
2023-06-27T13:41:09
216,215,138
0
0
Apache-2.0
2019-10-19T14:00:40
2019-10-19T14:00:39
null
UTF-8
Python
false
false
580
py
# -*- coding: utf-8 -*- """ i_comp_base.py generated by WhatsOpt 1.8.2 """ # DO NOT EDIT unless you know what you are doing # whatsopt_url: https://ether.onera.fr/whatsopt # analysis_id: 4 import numpy as np from numpy import nan from os import path from importlib import import_module from openmdao.api import Expli...
[ "remi.lafage@onera.fr" ]
remi.lafage@onera.fr
656d64575a9287e7b63813595a7bc26636cdd961
d3e00bc976e0afe6bd36a9129a3a23e65854b400
/Data/Code/scrapeDisease.py
e16855e7c176c609e6fd62fc8345f0f9d31a9015
[]
no_license
cs3285/p.ai
fbd6507e74c88374c15e382916c3cc3b00627156
3a229609344db21cbce80284f3d7e9c002edc231
refs/heads/master
2021-01-01T15:53:20.794944
2017-12-17T23:43:53
2017-12-17T23:43:53
97,725,022
0
3
null
2017-10-03T02:50:10
2017-07-19T14:19:45
Python
UTF-8
Python
false
false
5,543
py
from selenium import webdriver #from selenium.webdriver.common.keys import Keys #from selenium.webdriver import ActionChains import csv #import json import time #from pdb import set_trace as bp def saveTxt(content,animal,d_name): path = "C:\\Users\\IrisTang\\Documents\\zzz\\aip\\diseaseData\\html\\"+animal+"_"+d_n...
[ "noreply@github.com" ]
noreply@github.com
a54dba4d3ebcdf78eb1020f011bb1570ffd11720
3595d51ff2499bb990b87a25b17516edf6907696
/boards/models.py
a9fc0f9597a2654f291a202c6c60a21410fac535
[ "Apache-2.0" ]
permissive
maxlipsky/infomate.club
01fa55b3dfd318212b0c328dd48019b585d3ef9d
9729b568622120f8cba3d22fefdcfba81d1b5b88
refs/heads/master
2020-12-08T19:53:37.231403
2020-01-16T19:04:14
2020-01-16T19:04:14
233,079,581
1
0
Apache-2.0
2020-01-10T15:49:08
2020-01-10T15:49:07
null
UTF-8
Python
false
false
6,435
py
import uuid from datetime import datetime, timedelta from django.contrib.humanize.templatetags.humanize import naturaltime from django.db import models from slugify import slugify from boards.icons import DOMAIN_ICONS class Board(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editabl...
[ "me@vas3k.ru" ]
me@vas3k.ru
20965d57bf76e26a205182ffc8240ddad375cf2b
0db97db08743783019efe022190f409d22ff95bd
/aliyun/api/rest/Rds20140815DescribeModifyParameterLogRequest.py
a738e55de39ed911b27aa2c242f097a771646719
[ "Apache-2.0" ]
permissive
snowyxx/aliyun-python-demo
8052e2a165f1b869affe632dda484d6ca203bd9b
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
refs/heads/master
2021-01-10T03:37:31.657793
2016-01-21T02:03:14
2016-01-21T02:03:14
49,921,095
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
''' Created by auto_sdk on 2015.06.02 ''' from aliyun.api.base import RestApi class Rds20140815DescribeModifyParameterLogRequest(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.DBInstanceId = None self.EndTime = None self.PageNumber = None se...
[ "snowyxx@126.com" ]
snowyxx@126.com
4f60904ee1b4d115733e252787995abcd5e5a4a9
1a255b72d424be9bb557f2bf1a3d58bf41408571
/0x0B-python-input_output/11-student.py
ce30c049801682d2bc56630aea11cb773ce75735
[]
no_license
wassimbel/holbertonschool-higher_level_programming
b5cbde2a3d0fd37bf934f23554be05af0f5380bd
301af526ea2e664fd4aea82b64c8940b7e9fd6a4
refs/heads/master
2023-02-28T09:33:06.017399
2021-02-08T23:49:22
2021-02-08T23:49:22
259,407,585
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
#!/usr/bin/python3 """ module - class Student """ class Student(): """ class Student that defines a student """ def __init__(self, first_name, last_name, age): """ initialize self """ self.first_name = first_name self.last_name = last_name self.age = age def to_json(self)...
[ "wassim.belhedi1@gmail.com" ]
wassim.belhedi1@gmail.com
7623abdd14407d403d71964e37efedcc8550f929
17277a741082f276a490558fcc735fa529b45a0b
/src/python/rpc_lib/util/headers.py
8490320b16d1c84dbfe3d33b98194d727996f6a7
[]
no_license
divar-ir/rpc-lib
7a11f0a8ed3df9e229bc5944277c9586b5673374
f32bdc1efb1dca90010f8fdd6fab6b7538007695
refs/heads/master
2023-01-12T06:56:31.803993
2019-06-19T11:34:52
2019-06-19T11:34:52
192,557,656
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
from rpc_lib import call_info_pb2 from rpc_lib.common import specialization from rpc_lib.util.proto_encoding import decode_from_base64 HTTP_INTERNAL_STATE_HEADER = 'x-internal-state-bin' HTTP_INTERNAL_TRACE_INFO_HEADER = 'x-internal-trace-info-bin' def get_state(headers): encoded_state = headers.get(HTTP_INTERNA...
[ "mirzazadeh@divar.ir" ]
mirzazadeh@divar.ir
99831b86797def2356ed377f20ea20834b08bcec
94d4ccd443a37c8090a84d730d006edef869b816
/recursion_and_backtracking/rat_in_maze.py
8fde6e9bcdff326a7021e497c7d29b0c638e1f3d
[]
no_license
sudo-hemant/CP_CipherSchools
e0fc51d6f77f80709a88a7711ef6360f1fdd13e3
4f741f5f6fbbb182bd03135fb3180f5a40acbb1e
refs/heads/master
2023-03-09T20:59:59.704014
2021-02-19T15:27:15
2021-02-19T15:27:15
338,825,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
# https://practice.geeksforgeeks.org/problems/rat-maze-with-multiple-jumps-1587115621/1/?track=DSASP-Backtracking&batchId=154 from collections import deque def solve(n, maze): res = [ [0 for i in range(n)] for j in range(n)] if is_path(0, 0, res, n, maze): print_sol(n, res) else: ...
[ "sudohemant@gmail.com" ]
sudohemant@gmail.com
0310f4acd6676b09b41ba7b6b8c976f8351254cd
a00464ca9ad8cca1ba6a1349be2637f287cadd40
/myTwitter/urls.py
53fee002f3969ee4d6a1c3b4f8afad30c8a926a1
[]
no_license
sannee4/myTwitter
0611e8a413971a2734b68a298e298ae91abfa789
12be47962a58e4312addbb32ef481b0f0115dcb7
refs/heads/master
2021-02-08T19:57:24.029388
2020-03-01T17:18:12
2020-03-01T17:18:12
244,190,833
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
"""myTwitter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-bas...
[ "mellnikovaaaa@gmail.com" ]
mellnikovaaaa@gmail.com
63197e89258eac92b49c04a9513497c8358c6fb0
5eb338adeb89578b5bba38806f32fec6f0214630
/lists/admin.py
3db2a0f2394c2c19fb30f088d3485111bfbc8dc7
[]
no_license
rkqhed1212/airbnb_clone
68172ef7c65a6e768ab5d88c01a04c597636e0ce
95b64850f0a91caeda7ead2a68ed43f7af8ec094
refs/heads/master
2023-05-26T09:47:19.836415
2021-06-09T00:18:06
2021-06-09T00:18:06
356,840,332
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from django.contrib import admin from . import models @admin.register(models.List) class ListAdmin(admin.ModelAdmin): list_display = ("name", "user", "count_rooms") search_fields = ("name", ) filter_horizontal = ("rooms",)
[ "rkqehd12@gmail.com" ]
rkqehd12@gmail.com
124a52883b2e8b845f66680efc60602a83c8ce79
73e76f353da63506ef2343823f4b676e77ed4bde
/bin/setup.py
2c0b96ea08db80c83160fe4708844ac9d3605721
[]
no_license
josecamachop/FCParser
2b46a11957a5f071f24034e3e51282bbaf73b908
959c10679eefcd9479aa8522b63dc054ac5e05cd
refs/heads/master
2023-08-07T15:10:18.652678
2023-07-31T05:44:49
2023-07-31T05:44:49
98,178,477
9
5
null
2021-06-09T11:26:15
2017-07-24T10:23:40
Python
UTF-8
Python
false
false
449
py
from setuptools import setup setup(name='fcparser', version='1.0', description='Feature as a counter parser', url='https://github.com/josecamachop/FCParser', author='Alejandro Perez Villegas, Jose Manuel Garcia Gimenez', author_email='alextoni@gmail.com, jgarciag@ugr.es', license='G...
[ "josecamacho@ugr.es" ]
josecamacho@ugr.es
80edbd1d65d545f84f4122c4822dc23a4c57785d
70d39e4ee19154a62e8c82467ef75b601e584738
/pyth3/mysql/just_mysql_pandas_things_.py
84e264411f2cd3f02839fd45febb7a3e86ce9f2e
[]
no_license
babywyrm/sysadmin
6f2724be13ae7e5b9372278856a8c072073beffb
2a5f3d29c7529bc917d4ff9be03af30ec23948a5
refs/heads/master
2023-08-16T03:50:38.717442
2023-08-16T03:05:55
2023-08-16T03:05:55
210,228,940
10
5
null
2023-05-01T23:15:31
2019-09-22T23:42:50
PowerShell
UTF-8
Python
false
false
6,634
py
# MySQL Querying Using Pandas # Author: Elena Adlaf # Version 1.2, 10/16/17 # This Python file shows how to query results from table, 't', in database, 'af', stored on a local MySQL server while # importing the values directly into a Pandas dataframe. # The table lists details about pieces created by the custom furnit...
[ "noreply@github.com" ]
noreply@github.com
70c7e0d3b15a0a5abbbb91472d8ea1a864bf77dc
8a1ab23b056886965fec2a3e4064c5ed55e22bfb
/домашка/advanced/lesson 4/Diorditsa Ivan/socketserver_with_threads.py
a727041d4f250dcb1c56ffc95a3aced3a8cd17f7
[]
no_license
django-group/python-itvdn
5d8a59f06618f993d20d2f60374c36aae4ae8ab0
62ef87dfac947ed4bf1f5b6b890461f56814d893
refs/heads/master
2021-01-07T11:16:37.996524
2020-02-14T13:53:47
2020-02-14T13:53:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,855
py
import socketserver users = [] class MyTCPHandler(socketserver.BaseRequestHandler): def handle(self): #import traceback #traceback.print_stack() #self.request.send(f'hello, I am ECHO server, please tell me your name: '.encode()) #name = self.request.recv(1000) #self.reque...
[ "ivan.diorditsa@gmail.com" ]
ivan.diorditsa@gmail.com
4ddf466dbc7cfe2e9e293e24597ae8ecf2601c0d
b083965e04d5dbc0389c2c2ee8fbbf30d60f7647
/blog/migrations/0001_initial.py
1e56b680fcacdd4fae765cb00c4168f2f4bd60bd
[]
no_license
JoannaTamas/moviedb1
1e8cce5921302eedfba289e63e2e01c2d0cb2861
7ea773c5c0f81129170c0a0afc9d66126bda8171
refs/heads/master
2020-04-06T14:45:06.671210
2018-11-14T13:00:15
2018-11-14T13:00:15
157,553,209
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
# Generated by Django 2.0.9 on 2018-11-13 21:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Movies', fields=[ ('id', mo...
[ "tamas_yoana@yahoo.ro" ]
tamas_yoana@yahoo.ro
ad362e3742a78615236e5dd290559259c4b7533e
d9f86239a5cac359d09bea5ca0a671994a1ab0a0
/mars/serialization/numpy.py
932bac2e6b52bb34b0460c57cc1730963b71b5e0
[ "BSD-3-Clause", "OFL-1.1", "LicenseRef-scancode-unknown-license-reference", "CC0-1.0", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
SimonCqk/mars
43ae0104c1d9681f7d34d3d859fb29d83856b8e0
167f1b70e074f01fa8dce4b771c4a42bd73a5587
refs/heads/master
2023-03-12T02:28:21.199968
2021-03-02T08:46:17
2021-03-02T08:46:17
319,231,908
0
0
Apache-2.0
2020-12-07T07:01:34
2020-12-07T07:01:33
null
UTF-8
Python
false
false
1,842
py
# Copyright 1999-2020 Alibaba Group Holding 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.0 # # Unless required by applicable law or a...
[ "noreply@github.com" ]
noreply@github.com
e30a14b57b614478ccad24bb5f5f92ebf782cfba
e0db388d3f3fef89b27875fb88bd509f5ad70927
/strStr.py
1a3413c5f5c2e30adc7ff7e50babd926aae4da78
[]
no_license
AkiraXD0712/LeetCode-Exercises
770fff5d10931272cf35776abd9ebaf0cade656a
3b4d4963bebe7c0b04d420cb1920ad6928615e4a
refs/heads/master
2020-03-18T19:34:32.168249
2018-07-05T08:15:37
2018-07-05T08:15:37
135,162,651
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
''' Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we return when needle is an empty string? This is a great question to ask during an interview. For the purpose of this problem, we will return 0 when needle is an empty string. This...
[ "akirachen0712@gmail.com" ]
akirachen0712@gmail.com
b8241865b3838ea090162eb428a1c8b48348b10e
e692a9074d21c456dbdcb938ce7c74d8254f6ad9
/Module 010/module 010.py
815c2efdfd0e3789bf37330b86d323acc2079d0b
[]
no_license
Marius-Juston/ECE-110
e29b08d5a305a315467635a138ef62a1a638e4ed
962761b9bb23b02cc2a687bc691d568db8c82b31
refs/heads/master
2022-05-29T08:17:58.809019
2020-05-05T16:48:45
2020-05-05T16:48:45
261,530,020
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
import matplotlib.pyplot as plt import numpy as np from matplotlib.axes import Axes from matplotlib.figure import Figure if __name__ == '__main__': with open('data-20200502-1713.circuitjs.txt', 'r') as file: time_step = float(file.readline().split(' ')[4]) lines = tuple(map(int, file.readlines()))...
[ "Marius.juston@hotmail.fr" ]
Marius.juston@hotmail.fr
2c4e9748a4fe10c33bdca30bdba1637018100b86
9ec4bc3cdba9e46fe05712daeec3e35f5b6bb704
/hallicrafter2/device/ics.py
ce1fe1212d2c1fc2085fe53bbaeb7981d6a1c3fd
[]
no_license
derekmerck/hallicrafter
04d7d31017079fcc0c9c9361ad7e653f6e0e6418
b9439bb9f9b311ca1f8a224ce25c64c836901381
refs/heads/master
2020-06-02T03:23:23.086094
2019-09-03T02:06:03
2019-09-03T02:06:03
191,018,673
0
0
null
null
null
null
UTF-8
Python
false
false
2,220
py
from .device import Device class SirenIC(Device): # Control a UM3561 ic # See https://www.instructables.com/id/Siren-Generation-using-IC-UM3561/ for pinout # # 1. sel1 # 2. gnd # 3. out -> 10k ohm -> NPN transistor that drives speaker gnd line # 4. not connected (testing) # 5. active ...
[ "derek_merck@brown.edu" ]
derek_merck@brown.edu
1cf471f736f9047d1985610fbf89b38dffb9bb5d
aeeaf40350a652d96a392010071df8a486c6e79f
/archive/python/Python/binary_search/374.guess-number-higher-or-lower.py
1f51d98818399ede0698e42d7d7bd0cde96a1879
[ "MIT" ]
permissive
linfengzhou/LeetCode
11e6c12ce43cf0053d86437b369a2337e6009be3
cb2ed3524431aea2b204fe66797f9850bbe506a9
refs/heads/master
2021-01-23T19:34:37.016755
2018-04-30T20:44:40
2018-04-30T20:44:40
53,916,868
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num): class Solution(object): def guessNumber(self, n): """ :type n: int :rtype: int """
[ "luke.zlf@gmail.com" ]
luke.zlf@gmail.com
4ae49460f06822543fc2ff34e14d8fef115016f7
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res_bw/scripts/common/lib/abc.py
37d2a8d88679def4d589700c441407cc6fa1a0d0
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
6,294
py
# 2015.11.10 21:32:36 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/abc.py """Abstract Base Classes (ABCs) according to PEP 3119.""" import types from _weakrefset import WeakSet class _C: pass _InstanceType = type(_C()) def abstractmethod(funcobj): """A decorator indicating abstract me...
[ "info@webium.sk" ]
info@webium.sk
9206cd0f235f493f39979d12a0205b3cff78c29e
c0e0139b500ec059931a73a150073db60a8b073c
/code/main_candidates.py
096f9c3e6551760d2397a90e97166956f13596eb
[]
no_license
christopher-rowe/spotify_modeling
a3a1bc721694cba080b9a39f17345b0e9605f392
f52160fbe2aaaa0f15fcef0625c53f4d96e461ce
refs/heads/master
2022-12-29T10:06:33.248596
2020-10-12T01:57:28
2020-10-12T01:57:28
288,016,067
0
0
null
null
null
null
UTF-8
Python
false
false
6,918
py
# File name: main_candidates.py # Description: Identify and add candidates to data_candidates spotify playlist # Author: Chris Rowe import os import random import pandas as pd import numpy as np import pickle import spotify_modeling as sm from config import * def main(): # import models print("Importing mod...
[ "chris.lloyd.rowe@gmail.com" ]
chris.lloyd.rowe@gmail.com
96e13ce85156c34b4c16aa46eb26cb5774458507
b9e5aebb49734ad47825130529bd64e59f690ecf
/chapter_9/die.py
6c02c0f3e4e49e928c96c1881f050c10ddd4aaf1
[]
no_license
mikegirenko/python-learning
dab0f67d990d95035f93720986c84aaf422f7a9f
db9e3f0e3897caf703169d1f14b15a9aa1901161
refs/heads/master
2021-07-09T08:03:40.535653
2020-08-05T00:13:41
2020-08-05T00:13:41
169,983,732
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
from random import randint class Die: def __init__(self, sides=6): self. sides = sides def roll_die(self): print('\t', randint(1, self.sides)) print('Printing 6 sided roll:') six_sided_roll = Die() for i in range(1, 11): six_sided_roll.roll_die() print('Printing 10 sided roll:') ten_si...
[ "mike.girenko@cybergrx.com" ]
mike.girenko@cybergrx.com
0ee78e09a3e33d80fdaf3e6cd8ff693dad687420
1c92a6a5e0b1cfb57a9736ac0b723ec9ead67043
/api/models.py
0fe64a85788844c2d3a90cf1a52d933acf20370e
[ "MIT" ]
permissive
zlalanne/buildnumber.io
c969966e963be685b49258251ce0917407ebc364
206c89c26081344269eb717c3695d82337872118
refs/heads/master
2021-01-18T13:46:03.972621
2016-01-21T07:17:53
2016-01-21T07:17:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
from __future__ import unicode_literals import random from django.db import models from jsonfield import JSONField class Account(models.Model): created_at = models.DateTimeField(auto_now_add=True) class AccountEmail(models.Model): created_at = models.DateTimeField(auto_now_add=True) account = models.For...
[ "lois.diqual@gmail.com" ]
lois.diqual@gmail.com
4a5537829c493633c4f10247ebb6978fcf02f5a0
772ae58698fee964c3c96cabe47a81d21faa8ed4
/src/interpreter/preprocessor.py
2b795daf6d5eaffbab99e096a8fafb7135454e6e
[]
no_license
pkkim/lisp_interpreter
7659f18403b87b055ea239a0591cdfe7acadfba5
a0a18fe87338af3201d773cb5516aa942b7f1064
refs/heads/master
2020-05-24T19:25:38.057140
2019-09-09T03:57:47
2019-09-09T03:57:47
187,434,003
1
0
null
null
null
null
UTF-8
Python
false
false
285
py
def remove_comments(code): result = [] for line in code.splitlines(): try: comment_index = line.index(';') except ValueError: result.append(line) else: result.append(line[:comment_index]) return '\n'.join(result)
[ "paulkimpaul@gmail.com" ]
paulkimpaul@gmail.com