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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
434dfb226ae83ee062a932c226dcb7676dc57321 | f4811e0f0f733b2f322d7185155bc8801e8a9bce | /Codigos/model.py | a543d1c92bea4f2946fbc5050b531bed2ac8587c | [] | no_license | PedroUnifor/TCC | 68adc07bc2814634fa150e235d46e69fb1fa1ffe | af41190dfde6ea30abc23977628862160f5ad109 | refs/heads/master | 2020-05-27T09:57:57.613491 | 2019-06-10T12:43:03 | 2019-06-10T12:43:03 | 188,575,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,559 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten
from utils import INPUT_SHAPE, batc... | [
"32526712+PedroUnifor@users.noreply.github.com"
] | 32526712+PedroUnifor@users.noreply.github.com |
27815ecf5221b5fac3ff1af7eb7996d09148026c | 7f0e330cf3efab4e7487e5a7b00a01e099f93922 | /othello/player_prog/script/Nov.21_script/copy2.py | 5336c3d6ec646c75674e7b4aa7f4ceeff8c0b748 | [] | no_license | shukai9/takao_prosym | 79385866d5b9d0db37b44f03a10617d37b22f452 | 9268c3b1e5432ade8e45200572ec5684f3a530e2 | refs/heads/master | 2020-04-02T12:31:42.655270 | 2018-11-22T00:44:01 | 2018-11-22T00:44:01 | 154,437,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # python 2.7.10
# -*- coding: utf-8 -*-
board_data = [641, 795, 433, 411, 184, 530, 334, 798, 722, 204, 505, 587, 215, 82, 453, 856, 201, 598, 676, 74, 616, 719, 980, 600, 123, 583, 432, 994, 333, 585, 464, 4, 53, 738, 812, 70, 69, 442, 537, 644, 963, 683, 388, 133, 354, 861, 152, 335, 465, 904, 953, 64, 230, 832, 834... | [
"shukai3264@gmail.com"
] | shukai3264@gmail.com |
6a7bb26e8deb722fae9305656632919847dad149 | 2c3d73d3e5ad89b10981f167315539aff2237c35 | /analysis/essay/plot_convergency.py | 24eb6287b904f1659d78d5c3aec49b0e9708706f | [] | no_license | oychao/paper | 5f2d87cfe4ccf6c86b4db74f80238ea45cd6fac4 | 958093674836118a7c1020b3da4ae0afcb258561 | refs/heads/master | 2021-06-14T11:14:40.828065 | 2017-03-31T00:48:35 | 2017-03-31T00:48:35 | 60,524,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib
import data
# 设置字体大小
matplotlib.rcParams.update({'font.size': 11})
if __name__ == '__main__':
data_set1 = []
data_set2 = []
data_set3 = []
data_set4 = []
data_set5 = []
data_set6 = []
for index in range(1, 21):
... | [
"ch.k.ouyang@gmail.com"
] | ch.k.ouyang@gmail.com |
0f4cc016fdd3ffb3f81e2fcc48923b09c75c1b34 | 54a9b1d648e4fb2d43a953b19ee7fa572114de96 | /bin/pymodules/circuits/net/protocols/irc.py | a7189da174cbc5652312dd48252a5dc48646c8fd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jesterKing/naali | 02f834c4ccf37cc7f1fb2a0a74774addb9561a21 | 98baf592637d0edc684f21ab6488783a8b008c81 | refs/heads/master | 2021-01-18T08:02:25.655961 | 2010-04-27T10:26:53 | 2010-04-27T10:28:08 | 746,307 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,966 | py | # Module: irc
# Date: 04th August 2004
# Author: James Mills <prologic@shortcircuit.net.au>
"""Internet Relay Chat Protocol
This module implements the Internet Relay Chat Protocol
or commonly known as IRC.
This module can be used in both server and client
implementations.
"""
import re
import time
from cir... | [
"antont@5b2332b8-efa3-11de-8684-7d64432d61a3"
] | antont@5b2332b8-efa3-11de-8684-7d64432d61a3 |
3fc99229bf3656efd2aab7b028bbc899cb02bae4 | e1555eb22c173ffdc4d670b8e590cafd83d47080 | /orders/urls.py | dbdbc0c9d841ce45b67244c811cbe3f8d3eb6e03 | [] | no_license | rohitrock97/pizza-online-ordering-app | a47f90ba6dd037144f168e9a2e1406dc45729d1f | 218515ab2a9e1e5d09b1a9cdf22bc496752ad3b4 | refs/heads/master | 2022-09-28T09:09:36.930440 | 2020-04-28T14:12:23 | 2020-04-28T14:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.home, name="home"),
path("loginUser/", views.loginUser, name="loginUser"),
path("logoutUser/", views.logoutUser, name="logoutUser"),
path("signupUser/", views.signupUser, name="signupUser"),
path("menu/", views.menu, n... | [
"49836470+Shvejan@users.noreply.github.com"
] | 49836470+Shvejan@users.noreply.github.com |
2d4187ac5a2bb89a4ea71572a2eb8fa109f2ac2d | 6972fbeb81d2f890b8eac09cd993e50b493b2aa3 | /core.py | 7389d800c0e9291e3e98df0e1dd34de8e885aae4 | [] | no_license | rauljordan/PhotovoltaicMoleculesKaggle | f713884744afe454517f33840d76c18c75242758 | 22d4315d2b7c7049f6590958aec2bfc5db594c7d | refs/heads/master | 2021-01-10T05:00:16.034504 | 2016-02-10T16:13:57 | 2016-02-10T16:13:57 | 51,279,151 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import pandas as pd
import numpy as np
import os
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
"""
Read in train and test as Pandas DataFrames
"""
__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__fil... | [
"raulitojordan@gmail.com"
] | raulitojordan@gmail.com |
348ffb795cd5205f45251bbb0d85b5d6a542b63a | 25445f9e3ad9440a3ef3757b96933c33ac1b1daa | /cloudmesh_client/api/__init__.py | 86b9d2a8081d0dfbc8f272aad0700707a090bdca | [
"Apache-2.0"
] | permissive | cloudmesh/client | 9d0d024b5f48ef59f8f02a2619fc34ed65cbfa17 | a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9 | refs/heads/master | 2022-10-13T13:59:12.201306 | 2019-02-08T21:04:50 | 2019-02-08T21:04:50 | 37,379,872 | 3 | 19 | NOASSERTION | 2022-09-16T19:34:16 | 2015-06-13T16:56:22 | Python | UTF-8 | Python | false | false | 3,756 | py | """
This module defines the main API for operating with cloudmesh.
"""
from abc import ABCMeta, abstractmethod, abstractproperty
from cloudmesh_client.common.ConfigDict import ConfigDict
from cloudmesh_client import CloudmeshDatabase
class Config(object):
"""
The Cloudmesh configuration
"""
__meta... | [
"abdulwahidc@gmail.com"
] | abdulwahidc@gmail.com |
8b279338ed20386759c69d0309066bcbcc446e53 | 6aa581498844a9bd5fdcff7efb80cb97646eef28 | /app/manage.py | aadd00f3245ce9f842f46968c2a68e20a181fb80 | [] | no_license | jgj1018/HouseholdLedger | 5325b892610f438fd28957a3ac90a277dede5f49 | 6f756e03fe7ac3ef2b7f1cbea67951a0c3347826 | refs/heads/master | 2022-12-11T00:20:49.282474 | 2018-09-27T14:40:17 | 2018-09-27T14:40:17 | 124,239,980 | 0 | 0 | null | 2022-12-08T00:59:38 | 2018-03-07T13:28:38 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HouseholdLedger.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"pjw6454@hotmail.com"
] | pjw6454@hotmail.com |
0ea79a0637669191c554462793253dbd14d0b598 | 675502fc568d21f3bca2ec5faa94569a3eeaf625 | /app/test.py | d2f7a70a085c1d6b05aec1354807dd3aa5af009a | [] | no_license | tianyangit008/interfacerequest | 78de3af2696868cb6a5431846f5353b44cfd946f | 2dc0de50907030840d9d8f44f2dff5fe698ddfbb | refs/heads/master | 2020-06-03T21:34:58.746025 | 2019-06-13T10:20:08 | 2019-06-13T10:20:08 | 191,739,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | def j():
pass | [
"tianyanlsf@163.com"
] | tianyanlsf@163.com |
5ed22d3d1d4427ec9c8f9271a9d3a1527abcafc4 | 2b6963855abd7f81feac8a27bcdd00c31af2ef75 | /doc/conf.py | 6946b813bb2dc45dda5ee1bc1c24c109b73e2d0c | [] | no_license | jute1728/project-juteminder2 | fdf45e6689b88ff493da6b2f55a48d09a55bc610 | 137dcb797add8aa497c3bcc95eee95e86b31ed12 | refs/heads/master | 2020-04-03T22:27:52.416524 | 2018-10-31T18:09:13 | 2018-10-31T18:09:13 | 155,603,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,027 | py | # -*- coding: utf-8 -*-
#
# project-template documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 18 14:44:12 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fi... | [
"jedwards@ziggo.nl"
] | jedwards@ziggo.nl |
76053fb1af51e163c0e4570dcc0525880192b3b8 | 15f5aa397c614138948d328fc17462f8baef3413 | /pytest_demo/venv/bin/easy_install-3.8 | 13379919985afc467daf9704f81fd13b04582649 | [] | no_license | xyqiang/Jenkins_test | a210f2d00f6174feaf45d04442166678881b3618 | 52d880ea58d6fdf6f878bfe1bef84b762e0ea145 | refs/heads/master | 2022-11-18T10:02:58.140608 | 2020-07-17T03:23:57 | 2020-07-17T03:23:57 | 280,315,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | 8 | #!/Users/xyq/Documents/Study/pytest_demo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"xyq@XYQdeMBP.lan"
] | xyq@XYQdeMBP.lan |
5edbc74a36ee5fca184555521fade160e9cbcf49 | 19c7ea8e1a9af1b1ab6ee7b543aaf39acc0ce2e4 | /whois.py | 4d476d93ad155e2ce649e1c36eed47997454b793 | [] | no_license | yanbozz/Webscanner | c8a230dba8082891bb700a061f69150d9c1888fb | 0771d3cf97c04acde62f21430c73d5011c6f4488 | refs/heads/master | 2022-11-05T09:48:37.389407 | 2020-06-17T03:59:40 | 2020-06-17T03:59:40 | 272,873,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import os
def get_whois(url):
command = 'whois ' + url
process = os.popen(command)
results = str(process.read())
return results
| [
"yanbozhao1994@gmail.com"
] | yanbozhao1994@gmail.com |
fe9d900ddf672433c7aab61886618fa4fbecd0ef | e3bb7c26a8bcdc9a241feaa8d1c7b4edf936ec21 | /mini服务器/装饰器/01.无参数无返回值的装饰器.py | af894c7d4b84efbf7dc5e4fa1c986c93ddbb9665 | [] | no_license | hezudao25/learnpython | a3b797caf72017c16455ed014824fe6cd0fdb36d | 1a9dbe02ac442ab8d2077a002e6a635c58bbce04 | refs/heads/master | 2020-04-24T07:44:34.664354 | 2019-07-26T05:50:05 | 2019-07-26T05:50:05 | 171,807,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import time
def set_func(func):
def call_func():
start_time = time.time()
func()
stop_time = time.time()
print("alltimeis %f" % (stop_time - start_time))
return call_func
@set_func # 等价于 test1 = set_func(test1)
def test1():
print("----test1-----")
for i in range(10000)... | [
"hezudao@msn.cn"
] | hezudao@msn.cn |
f60c32358ba29e0c6f5f181e16c9a9be15c3a970 | 7275f7454ce7c3ce519aba81b3c99994d81a56d3 | /sp1/python数据采集/数据采集基础/数据采集基本操作.py | a785c16fafcc2c6f8a703fe2c97dc5fc18c6eb6d | [] | no_license | chengqiangaoci/back | b4c964b17fb4b9e97ab7bf0e607bdc13e2724f06 | a26da4e4f088afb57c4122eedb0cd42bb3052b16 | refs/heads/master | 2020-03-22T08:36:48.360430 | 2018-08-10T03:53:55 | 2018-08-10T03:53:55 | 139,777,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import requests
from bs4 import BeautifulSoup
#基本操作
# url = "http://www.pythonscraping.com/pages/page1.html"
# response = requests.get(url)
# soup = BeautifulSoup(response.text,"html.parser")
# print(soup)
# url = "http://www.pythonscraping.com/pages/warandpeace.html"
# response = requests.get(url)
# soup = Beautifu... | [
"2395618655@qq.com"
] | 2395618655@qq.com |
f9ee0e4095188a538b77e1bf3334f8d98d7da304 | 552ba1ede64e20980227e70c2e7fe2ee9c5f6a33 | /tiny_tf/transformer.py | 47a90c0c5bb0a861c6b97626d45ea30ca68c8398 | [
"MIT"
] | permissive | felixvd/tiny_tf | b7f5f3a573bbcd1ac15082e9fb0c53277aaf3a1a | d8f2c75e0da935450c4f7be1c87f79b2a75d1278 | refs/heads/master | 2020-05-16T03:19:38.460245 | 2019-09-04T07:45:54 | 2019-09-04T07:45:54 | 182,678,256 | 0 | 0 | null | 2019-04-22T08:48:31 | 2019-04-22T08:48:31 | null | UTF-8 | Python | false | false | 2,956 | py | from .tf import *
import numpy as np
from . import transformations as tft
from collections import namedtuple
from . import geometry_msgs
class Transformer(TFTree):
"""
This class implements the same interfaces as the ROS tf.TransformListener().
"""
def __init__(self):
super(Transformer, self).... | [
"FvDrigalski@gmail.com"
] | FvDrigalski@gmail.com |
967a6a973ca7b215239de6349600711273192b4a | d487530a7450798387f24e52a8fbff662d0eb876 | /google_python/05교시/pycrypto_aes256_sample.py | 7ae985d3b0b946a2f2235f0fea6cfb1ad9799190 | [] | no_license | diligejy/PythonData | f1be4e0e1d0cedf71128ecd9029b6bbd6c8e414a | b83cb96cb76fc0203c7ea978bcef1f5c18bab0d2 | refs/heads/master | 2020-06-13T04:31:30.960657 | 2020-04-11T04:38:33 | 2020-04-11T04:38:33 | 194,534,144 | 6 | 1 | null | 2019-08-31T07:57:38 | 2019-06-30T15:52:18 | Jupyter Notebook | UTF-8 | Python | false | false | 1,744 | py | # 모듈을 불러옵니다.
import base64
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
# 암호화할 문자열을 일정 크기로 나누기 위해서, 모자란 경우 크기를 채워줍니다.
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS).encode()
unpad = lambda s : s[0:-s[-1]]
# 암호화를 담당할 클래스 입니다.
class AESCipher:
# 클래스 초기화 - 전달 받은 키... | [
"noreply@github.com"
] | noreply@github.com |
82a5172ce5765b4a00ab899931ce861b85df356b | a74a4c55c4968ab5473aab0eaf946d2d01f44cbf | /hw1/dataloaders.py | cf3474dd6bb247e25a43d06b456aa0edf710136b | [] | no_license | Orisz/236781_deep_learning_hw1 | c99fa95c13a544423e121ba5705d3deea7727173 | a71ed85a8b4b0b54723a91b9cd34d8df0f2be8cb | refs/heads/master | 2020-11-26T14:41:20.901247 | 2019-12-19T17:46:01 | 2019-12-19T17:46:01 | 229,108,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import math
import numpy as np
import torch
import torch.utils.data.sampler as sampler
from torch.utils.data import Dataset
def create_train_validation_loaders(dataset: Dataset, validation_ratio,
batch_size=100, num_workers=2):
"""
Splits a dataset into a train and validat... | [
"noreply@github.com"
] | noreply@github.com |
c45355be043706c3b108e644263eb2047a00c5a7 | 5b9e3b34d00fb6c050e527f8bcb04e1a8eb7d01b | /strangeflix/room/migrations/0002_delete_userroomdetails.py | 1eb3f32432703247190726af449873ad543d8c87 | [] | no_license | su050300/webster2020 | e062c74db6a534045da21427e45e28e5f15dca08 | 1936fc879d0d6cd5f47e067e3eb8649220b079ba | refs/heads/master | 2023-02-26T08:32:30.516664 | 2021-01-21T14:32:36 | 2021-01-21T14:32:36 | 309,585,083 | 3 | 0 | null | 2021-01-21T14:32:37 | 2020-11-03T05:38:46 | null | UTF-8 | Python | false | false | 290 | py | # Generated by Django 3.1.2 on 2020-10-27 00:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('room', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='UserRoomDetails',
),
]
| [
"sgrocket6@gmail.com"
] | sgrocket6@gmail.com |
982d4f6e3023e6001ed7e0fcb6cc57c492932ecc | d441c2ce07f716136ac8bfe58ca9c006f4704267 | /venv/Scripts/pip3-script.py | 27ab1ea95db1b78851381ff3965a533a4d693a4a | [] | no_license | a8990/RENTALO-TEST | f8969480b441813c5e4bd06fae4f3625c2fc5908 | 34a1ea40dce824cfb2e47d5e3296e14ca0e431fa | refs/heads/master | 2023-03-26T21:12:35.924438 | 2021-03-26T04:41:26 | 2021-03-26T04:41:26 | 314,912,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!"D:\Projects\Automation\Robot Framewrok\YAY\Public Site\SW\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"acontreras@yaymaker.com"
] | acontreras@yaymaker.com |
a2c508ad7151b2721bd977a375212ace036c9aee | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/util/distributor.py | e68f94ce77728d0cc5352cc5c70b8de90ef915b5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,894 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket 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 applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
358df6fc85ad927aeb093c8a168989032af842fc | de375ee015b1a509d067ab1bf1ea2c942f1a02d6 | /utils/threshold_optim.py | 50c7b5435f38275ec05c9a64ae414c7328e08bdf | [] | no_license | StanHannebelle/US_Census | d615ab31bff578a9fd5ef325ccf738c99bd5e63f | fe0681c68f3667d570f4f52e3d01250f09067faf | refs/heads/main | 2022-12-23T13:29:08.380797 | 2020-10-05T18:07:01 | 2020-10-05T18:07:01 | 301,467,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from sklearn.metrics import f1_score
import numpy as np
def from_proba_to_class(prediction, threshold):
if prediction < threshold:
return(0)
else:
return(1)
def threshold_optim(y_true, y_pred_proba):
f1_scores = []
thresholds = []
for threshold in np.arange(start=0.02, stop=1.0, ... | [
"stanislashannebelle@macbook-de-mso.home"
] | stanislashannebelle@macbook-de-mso.home |
5b883448d05f81d0162e29a3c7b9d303457da1de | 8d14aa6d59b3f48564149ead80f3bee5c8709bff | /newsApp/scripts/ht_news_link_scrapper.py | 09cc9f499d5a2697c152d5aaf1b9c6a276c040a5 | [] | no_license | hiteshrexwal/newsApp | 938f1b12c286fda49c837c8209582109f9797c38 | a50afd86509d460c1fa9faba6772e2fa25bbe2e9 | refs/heads/master | 2020-09-11T23:58:01.506034 | 2019-12-28T11:46:04 | 2019-12-28T11:46:04 | 222,233,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | from django.conf import settings
import os,sys,django,json
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newsApp.config.settings')
ROOT_FOLDER = os.path.realpath(os.path.dirname(__file__))
ROOT_FOLDER = ROOT_FOLDER[:ROOT_FOLDER.rind... | [
"hiteshrexwal03@gmail.com"
] | hiteshrexwal03@gmail.com |
648ec20881e6205706e9004b58be17d71026e232 | 3532d18022b8a0180a16d387cdcb5d02bceb7e7f | /src/citrinedemo/units/hour.py | b4e8ffe69a6bdcabb8eafe62c7245c48a87e45d1 | [] | no_license | sk8erwitskil/citrinechallenge | b16c14782514940cee1f8ffffa6fc7cacdc243cd | 81d725df648d748adcf7f725bf89d6450ea18a24 | refs/heads/master | 2020-03-12T07:55:26.152677 | 2018-04-21T23:23:59 | 2018-04-21T23:23:59 | 130,516,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from base import TimeUnit
class Hour(TimeUnit):
@property
def name(self):
return 'hour'
@property
def symbol(self):
return 'h'
@property
def si_unit_conversion(self):
return 3600
| [
"klaplante@twitter.com"
] | klaplante@twitter.com |
9edea30fdcfb24b83501e46b750cc44855127836 | 9dbf5214bfad628dba528d63087156de78ec0746 | /datumaro/plugins/imagenet_txt_format.py | ec771b5170bde757a706e540e97171b03df61998 | [
"MIT"
] | permissive | azhavoro/datumaro | c76ef754773c74963da3db60b59435c90476fc3f | 6fe1d68281d06cedac850b93c92ffb1da14bd9ae | refs/heads/develop | 2023-08-19T11:41:46.229402 | 2021-10-07T10:07:33 | 2021-10-07T10:07:33 | 414,547,125 | 1 | 0 | MIT | 2021-10-07T10:05:04 | 2021-10-07T09:57:58 | null | UTF-8 | Python | false | false | 5,065 | py | # Copyright (C) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
import os
import os.path as osp
from datumaro.components.annotation import (
AnnotationType, Label, LabelCategories,
)
from datumaro.components.cli_plugin import CliPlugin
from datumaro.components.converter import Converter
from datumaro... | [
"noreply@github.com"
] | noreply@github.com |
f90e35118bc900eb7fd7bae46ae226fb1c0c5d5b | 18fd2d9e1d191fef2f5f91150e02e28968c2e648 | /acousticsim/analysis/praat/wrapper.py | 281cac24338bbe9c2b0d64f529a1ec4c09a2873d | [
"MIT"
] | permissive | JoFrhwld/python-acoustic-similarity | 8f69366f1d8d019d7a6e8ebc489f54817f9640a3 | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | refs/heads/master | 2021-01-21T12:49:36.635149 | 2017-05-15T23:38:28 | 2017-05-15T23:38:28 | 91,800,742 | 5 | 2 | null | 2017-05-19T11:50:00 | 2017-05-19T11:50:00 | null | UTF-8 | Python | false | false | 1,721 | py |
import os
from subprocess import Popen, PIPE
import re
from acousticsim.exceptions import AcousticSimPraatError
def run_script(praat_path, script_path, *args):
com = [praat_path]
if praat_path.endswith('con.exe'):
com += ['-a']
com +=[script_path] + list(map(str,args))
err = ''
text = '... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
6b28d8019957b930b545ce7d6c99012d529704f9 | 6dab391923b7d12fde1c78abe0051e0042fa8138 | /replit_practice2.py | 23c28b7c7836583cfe6bd143b826aa56253d7e1e | [] | no_license | MelodyChu/Juni-Python-Practice | d38406662b6d6a48fe5ca15d2f18ab1bf90fe6fe | bda5456f86a950aa72664cccd6895309d1aaef07 | refs/heads/master | 2020-03-17T19:33:36.782488 | 2018-05-17T21:07:57 | 2018-05-17T21:07:57 | 133,868,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | """a = int(input()) # 1234
b = a % 10 # =4
c = ((a - b)/10) % 10 # 1230/10 = 123; 123/10 % = 3
print (c*10 + b) """
"""# Find tens digit
a = int(input())
b = a % 10 #single digit
c = ((a - b)/10) % 10 #1230
print (c) """
"""
# Given 3 digit number find sum of digits
a = int(input()) # 123
b = a % 10 # single digit # ... | [
"melodychu@macbook-pro-31.dhcp.thefacebook.com"
] | melodychu@macbook-pro-31.dhcp.thefacebook.com |
1d88899b17ec83de60e1fb314afe0fec7edabe65 | 3a78a91edbc260830a741b4364c7620b2b2002ab | /Flask/IoT_Web/models.py | c9a24ebc77cc610a8bc910277366328426ee2cdc | [] | no_license | jasonswords/IOT-Honeynet-Framework | 21fdba34e543c05d7564e61d65027cddc6f63845 | 5a3bed782d0d7a498e7484422e51f0b9a9b56610 | refs/heads/master | 2021-07-14T21:21:07.656454 | 2019-05-23T06:33:53 | 2019-05-23T06:33:53 | 188,012,963 | 0 | 1 | null | 2020-07-26T01:41:55 | 2019-05-22T10:06:40 | Python | UTF-8 | Python | false | false | 1,432 | py | from datetime import datetime
from IoT_Web import db, login_manager #imports db = SQLAlchemy(app) from __init__.py file to create a db
from flask_login import UserMixin #UserMixin is a class that contains the following attributes IsAuthenticated, IsActive, IsAnonymous, GetId
@login_manager.user_loader
def load_user(us... | [
"iot-honey-net@outlook.com"
] | iot-honey-net@outlook.com |
23199cefabfc0667a66a3670c327578df91e30ce | 17d775a9e36b38c2052c0f8741927067b4efade5 | /lab1/threads_basics/sequential_vs_multithreaded_CPUbound.py | cfac92255a4c3a9c14285d72befbfeb73a77e787 | [] | no_license | DAC-hub-101/Software_Academy_Python_Course_Semester_2 | e27308f99fa324637ba14cf0e024872bf7965e63 | d7a0b7c30fcd94544d5d8cc2581fd996267f3bfa | refs/heads/main | 2023-05-25T09:37:47.547412 | 2021-06-13T14:38:16 | 2021-06-13T14:38:16 | 376,520,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import threading
import time
max_range = 100_000_000
max_range_half = max_range//2
def worker(r):
tid = threading.currentThread().name
# do some hard and time consuming work:
global result
res = 0
for i in r:
res += i
result += res
print(f"Worker {tid} is working with {r}")
#############################... | [
"ivawebcourses@gmail.com"
] | ivawebcourses@gmail.com |
bf30ecc1bf45598458cd4f916f08fbc522ff63ba | 535e5dc366e341735a41eb238edb7947cd7b50ac | /lifelearn/patient/migrations/0002_auto_20160508_1642.py | 8bcc72079adfac46df8016b6efd21b63d811a381 | [] | no_license | cmcgorrill/LifeLearn | 4cea2db81566c5e3812f491dd8e30591044eafed | 766a23409d8f593ee0511d236ec68db59fa92cd6 | refs/heads/master | 2016-08-11T16:13:54.368889 | 2016-05-09T03:54:37 | 2016-05-09T03:54:37 | 54,943,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patient', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='patient',
name='thera... | [
"roux.jesse@gmail.com"
] | roux.jesse@gmail.com |
f7d40a3b765a85931bf3b7925c51d531f1077f63 | 4a3ca65ba2228c20e3f04f3ab1538dd00f87e976 | /test/functional/interface_bitcoin_cli.py | 6557778c25bd257608b908cd051d40e465b6bd8a | [
"MIT"
] | permissive | bonoproject/Bonorum | dd5b29a80b41a8e9fc0e0311b11730b5bf6fb3c2 | d0dede6c416b812398a6c88cb2f54dad049c932e | refs/heads/master | 2020-12-20T16:41:40.978500 | 2020-06-08T12:04:16 | 2020-06-08T12:04:16 | 236,138,813 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bonorumcoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.u... | [
"60004952+bonoproject@users.noreply.github.com"
] | 60004952+bonoproject@users.noreply.github.com |
254cfb11f499f91c88e065d67f9d232f7e5373f5 | e3372811e34edd1f8d79b2a858c5c92c3e6ef187 | /tools/infer_simple.py | b700782f5aa69a983dbdb8ddf3edb90dff12e94e | [] | no_license | zhangjunyi1225054736/--object-detection | 632481351246acaef6b0cc6aa71962c318d46a8a | d99f6f57cdb457ec3f2df489addfde43ab2910fc | refs/heads/master | 2020-05-29T21:22:28.211748 | 2019-06-06T13:08:52 | 2019-06-06T13:08:52 | 189,377,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import distutils.util
import os
import sys
import pprint
import subprocess
from collections import defaultdict
from six.moves import xrange
# Use a non-interactive backend
import matplotlib
mat... | [
"1225054736@qq.com"
] | 1225054736@qq.com |
1b2cbcdf8cbd74d19c9b1c21e3a7b338517052e2 | 863bc319e092b5127037db0ead15e627e4b0ac72 | /Uncertainty/data/case-ln/case_ln_134.py | 01644cbd293c6c88784a140d75aec16a9f2e23fd | [
"MIT"
] | permissive | thanever/SOC | ea349e61eebef7f31c610765cd5db1be14b60800 | 7dc33e9f4713d012f206385452987579f46b63eb | refs/heads/master | 2023-08-27T04:57:38.825111 | 2023-08-07T03:20:42 | 2023-08-07T03:20:42 | 212,486,054 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321,690 | py | from numpy import array
def case_ln_134():
ppc = {"version": '2'}
ppc["baseMVA"] = 100.0
ppc["bus"] = array([
[1.0, 1.0, 71.1786, 18.981, 0.0, 0.0, 1.0, 1.0, 0.0, 220.0, 1.0, 1.1, 0.95, 0.6, 10 ],
[2.0, 1.0, 0.0, 0.0, 0.0, 0.0, ... | [
"hantong.eee@gmail.com"
] | hantong.eee@gmail.com |
d6b9b87dc0ed9d99ee881951dfc88458945e2338 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/rsnodeatt.py | c5291275b6bf8c7b5bc74f6ce6e28e5a557006b0 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 11,117 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
4393f83676e7b9b87b4294e70af1dc4d3d9147e6 | fdbfd06bab128dd242b39fc8b2cb4291f14df2b2 | /55knock_py/knock_48.py | 1710a246c90f187b91fee54a52e0e891ee0c81db | [] | no_license | yuukou3333/study-python | c76823fc0df1ff859b225bfce90dfc36d863796f | a32dea6c64b948fa59c56496777d46a86405773a | refs/heads/main | 2023-02-19T09:37:16.757645 | 2021-01-23T01:19:14 | 2021-01-23T01:19:14 | 328,935,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # 例外処理(try/except)
a = 0
b = 5
try:
print(a/b)
except:
print('zero division')
try:
print(b/a)
except:
print('zero division')
# 例外処理 ======================
# try:の下には行いたい処理を、
# except:の下にはraiseしたい回避策を。
# division・・・分け目
# except・・・例外
| [
""
] | |
89b2ed2a19339c16c57af10bafb39f0f2d9fe6c9 | 34a5f5b1624231fe953c913b012ac8a9d83dbaab | /tests/conftest.py | 3a76ad0a2777e2db4f551cd430d9c4f2389c1e1e | [
"MIT"
] | permissive | isprojects/djangorestframework-inclusions | af13cc17b07a674c91c43004f8f27278ac8c5e65 | c2ff654254e4ef7dbadd264004b70e0efce44327 | refs/heads/master | 2022-07-25T00:44:29.344113 | 2022-07-11T10:44:25 | 2022-07-11T10:44:25 | 205,416,015 | 1 | 1 | MIT | 2023-08-22T19:17:12 | 2019-08-30T16:10:25 | Python | UTF-8 | Python | false | false | 84 | py | # import pytest
# @pytest.fixture
# def some_fixture(request):
# return 'foo'
| [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
28f9e049ec91d5c2e0ec93c0191bb5cc0c0a637a | d52413173437ba73ecdf822ca895e659f00a8ce7 | /kiwibackend/doc/python/PBMailOperationMessage_PBRequest.py | f070f6913cf1cd1e944af7681f07a4ce67799865 | [] | no_license | whiteprism/mywork | 2329b3459c967c079d6185c5acabd6df80cab8ea | a8e568e89744ca7acbc59e4744aff2a0756d7252 | refs/heads/master | 2021-01-21T11:15:49.090408 | 2017-03-31T03:28:13 | 2017-03-31T03:28:13 | 83,540,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class PBMailOperationMessage_PBRequest():
def __init__(self):
self.category = -1
self.ids = []
self._type = -1
| [
"snoster@163.com"
] | snoster@163.com |
a4ec36815eec0ec5bc342d2d73f2e5500117525e | d8ec2af00801fc0705ebc7ca3d975356f8f489e1 | /estimators/utils.py | 89bd2697a3158c50f1ce1df7a6aa66452996f837 | [
"MIT"
] | permissive | stevenwong/time_varying_neural_network | 8c1275a5ce34293d29680cce2dd0bf7e1eaa5231 | d804a027db7804d8db1351bf750e6f29710a1bc3 | refs/heads/master | 2022-11-19T06:44:15.154764 | 2020-07-16T12:38:58 | 2020-07-16T12:38:58 | 279,851,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | """ utils
Copyright (C) 2020 Steven Wong <steven.ykwong87@gmail.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to u... | [
"steven.ykwong87@gmail.com"
] | steven.ykwong87@gmail.com |
13f8c4aaec2537d3182c958f623f0606aed4b79b | a4d647f7cd0a872aa50997a2dd86d3e5248eee22 | /cst236_lab7/source/answer.py | 05a4074499b7380f9351b1aceee6646d54e73ac9 | [] | no_license | Derek132435/CST-236-Lab-7 | e16ecc41fc6f9532ca6b4bbb00f2f00aaa394bfc | ec9490817b3d9f25c25b4cefd8cbbd052c5fd664 | refs/heads/master | 2021-01-10T18:05:11.809067 | 2016-03-09T19:18:18 | 2016-03-09T19:18:18 | 53,429,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,127 | py | """
Source code for job stories
disabled pylint R0911: complete restructuring of logic_gate() required
disabled pylint R0912: complete restructuring of logic_gate() required
disabled pylint W0612: loop iterators for get_pi() and make_pi() have use as iterators
"""
# pylint: disable=R0911
# pylint: disable=R0912
# pylin... | [
"derek.edwards@oit.edu"
] | derek.edwards@oit.edu |
ff3b8c788d9f8fb092eb5e9315de1af5c03c17ca | c259bd9e4a570a1fa37949655530d778e5f5c46d | /mysite/.history/api/views_20211014221913.py | 04b9cb96204ba7896ab0e5bc6b0b85d122af5423 | [] | no_license | ritikalohia/django-rest-students | 0cc56f435b7b2af881adfd7cace54eef98213c57 | ca5f9f466fcd74fef8ce91f019bcb6e7d83c8e20 | refs/heads/main | 2023-08-15T21:51:18.988691 | 2021-10-14T18:19:04 | 2021-10-14T18:19:04 | 417,219,011 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import NoteSerializer
from .models import Student
from api import serializers
@api_view(['GET'])
def getRoutes(request):
routes = [
{
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
119c2188cf82e3c567bfc1b76fd3046149fe81dc | f7970c453ff203978830068ec1d43af82b9cdd9d | /orgplist.py | 91eddd29b3c207001b6aab396d18b97a72e278f4 | [
"MIT"
] | permissive | Varriount/orgextended | fd8546f6ac2cdbc12ffaa6ffefb0183d074e028c | 10eb19c934c6b524d37d019df58a96910010a3b2 | refs/heads/master | 2023-05-06T16:54:10.046347 | 2021-06-06T18:29:14 | 2021-06-06T18:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | import sublime
import sublime_plugin
import os
import base64
import urllib.request
import OrgExtended.asettings as sets
import OrgExtended.orgutil.util as util
import uuid
import re
import logging
from OrgExtended.orgutil.addmethod import *
log = logging.getLogger(__name__)
class ExclusivityLists:
def __init__... | [
"ihdavids@gmail.com"
] | ihdavids@gmail.com |
e7ad1f4287990ac072589fe752fdebb752383696 | e19b6cad1e0035307dc06fce3cca195cf9b2882d | /assignment7/denoised.py | cff11fe6abf6273dec54f42cfe13fdfe44520948 | [] | no_license | ghrahul/Computer-Vision-Practical-CS4111 | 13cf5b00ad3b1f515e47312989b7c0468761167b | f02aa3a4aa3396aa8857b4dece040052bda554aa | refs/heads/master | 2020-04-17T03:11:09.676417 | 2019-04-25T07:22:38 | 2019-04-25T07:22:38 | 166,170,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('index.jpg',0)
#img = cv2.GaussianBlur(img,(5,5),0)
ret,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
th2 = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,\
cv2.THRESH_BINARY,11,2)
th3 = cv2.adaptiveThreshol... | [
"ghrahul2016@gmail.com"
] | ghrahul2016@gmail.com |
e426a85f55e1f02841322d007b104aa78431c036 | 61d542f73c7906a114a7c2cf4f1500f5974c7eeb | /api/loader/apps.py | f6251984f34e5826cec2901c9d3c1926e67e9cff | [] | no_license | Santana-macharia/Disease-outbreak-prediction | 72fe22f8e17986d0db45ba4b4a079c9bcb97c87a | a97e011a7eceb4c8e8f5b12670c53f0ed1b9adcd | refs/heads/master | 2022-11-26T08:05:39.393183 | 2019-12-27T11:47:07 | 2019-12-27T11:47:07 | 167,023,897 | 0 | 1 | null | 2022-11-11T07:26:21 | 2019-01-22T16:06:43 | Python | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class LoaderConfig(AppConfig):
name = 'api.loader'
| [
"root@DESKTOP-SNM.localdomain"
] | root@DESKTOP-SNM.localdomain |
4f3b225cd061b97dbd5cab67c1e7df50c8b08d6d | 5fd2d395b9f61765d327b2cdf1b02355c48f9c00 | /code/gl/matrix_list.py | be717f6a0166fe617f718cc82f0c495ed81413c5 | [
"Apache-2.0"
] | permissive | 1801573781/wind | 4a65122f7456a27f4711daa53e14a7b2c23e3851 | f7eaa84a9d98d081bf170f6ef6bff3c94a999c86 | refs/heads/master | 2023-03-19T05:00:20.492999 | 2021-03-15T14:08:22 | 2021-03-15T14:08:22 | 327,647,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | """
Function:matrix-list 互相转换
Author:lzb
Date:2021.02.20
"""
import numpy as np
def list_2_matrix(lst):
"""
将 list 转换为 matrix, row = lst.len, col = 1
:param lst: 待转换的 list
:return: 转换后的 matrix
"""
count = len(lst)
arr = np.zeros([count, 1])
for i in range(0, count):
arr[i][0... | [
"1801573781@qq.com"
] | 1801573781@qq.com |
e03958b15c21ba4d88cb19941e55e1bc98cd51b9 | 3117c5e4a69b8486697c589ab3a033353be29f06 | /sRNAtoolboxweb/setup.py | fccede6fdb81e7f682d6f6ecc24eac6bafc6499d | [] | no_license | sert23/toolbox | 963f301e1af883a55dc11db9ac6372023d85de91 | a9af88a3164c5a6b5ace6a84a6b95d63265edf99 | refs/heads/master | 2023-09-01T01:46:05.808848 | 2021-11-19T16:41:25 | 2021-11-19T16:41:25 | 89,683,230 | 1 | 7 | null | 2022-12-26T19:46:46 | 2017-04-28T08:04:16 | Python | UTF-8 | Python | false | false | 1,113 | py | import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='srnatoolboxweb',
version='2.0.0',
packages=find_packages(),
python_modules=['manage'],
include_package_data=Tru... | [
"antonio.rueda-martin@genomicsengland.co.uk"
] | antonio.rueda-martin@genomicsengland.co.uk |
1654ef69bd67a4753dd53975077127580d391a60 | 4bc5afd38e6ecbe5fd5bbbafcbd15b7a68689ce3 | /python/assi2.py | 5fb2f1512d5fdddad57c5276b84747ecb199640e | [] | no_license | aman0511/software | 71ae7db43d422d63f58fc5b4e7e49c4d986bc399 | 76fdb551e5b4df00aa6ac5804f342ee1c9940be3 | refs/heads/master | 2016-08-12T06:06:36.290495 | 2013-11-11T14:43:09 | 2013-11-11T14:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | balance=int(raw_input())
annualInterestRate=float(raw_input())
monthlyinterestRate=annualInterestRate/12
lowest=0
while balance>lowest:
month=1
while month<=12:
unpaidbalance=balance-lowest
interest=unpaidbalance*monthlyinterestRate
balance=interest+unpaidbalance
month=month+1
... | [
"amankumar0511@gmail.com"
] | amankumar0511@gmail.com |
a5e14ad2c061f0da44911042f3f9e6acc294beed | 97dfe708031ce9d52c3309b41a8c458d7846096c | /setup.py | 0ca4d1e6521e23a70ad2dd4b4444b1d1c1098d50 | [] | no_license | trainapi/trainxtract | 2af79a9dbb7a35a374934d1968591c32fbb23f0b | f5c5078a20c702d0399906bbb3c07f61058a1c72 | refs/heads/master | 2021-08-19T07:42:26.091190 | 2017-11-25T08:02:44 | 2017-11-25T08:02:44 | 111,971,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from setuptools import setup, find_packages
import itertools
options = dict(
name='trainxtract',
version='0.0.1',
packages=find_packages(),
license='MIT',
install_requires = ['pandas', 'click'],
entry_points = {
'console_scripts' : [
'trainxtract = trainxtract:run_app',
... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
4531d971cc1af5696eecf76e03d098762f85a47e | 2481d562b7351633ec7c90f1ccbfd4127fd7b3e7 | /src/log_FQT.py | 7fad463d6e4ea68dc2dcb0f6e388fcfb4c375fc9 | [] | no_license | marshalltekell/stockmayerPE | 4f5353f18920112fc1e9b04a8ae25378bfbef97d | 78bf3723b24e207766b6b2c04799ab07b1ca756d | refs/heads/master | 2023-06-08T23:31:24.821357 | 2021-06-24T14:06:16 | 2021-06-24T14:06:16 | 310,038,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 29 21:11:45 2020
@author: marshalltekell
Calculate the self intermediate scattering function for log time sampling
"""
# Import packages and scripts
import numpy as np
import cfunctions
from analysis_functions import gen_q
from analysis_functions... | [
"marshalltekell@dyn-160-39-131-105.dyn.columbia.edu"
] | marshalltekell@dyn-160-39-131-105.dyn.columbia.edu |
4759bfad0918d252da4aefd66942980c7a6a4d52 | f74bb16bb01f4081e0cbacbd31c6497d7be3c292 | /Iple/urls.py | 9078c5f96569d758ad00a8602012928b39617272 | [] | no_license | Iple5153/Iple | 3e7a857a2df2256ffa1f599034b73eb0f8aa99aa | a7535cddc71dc61c12e4c72d70bb2e63d0e2360e | refs/heads/master | 2020-07-11T18:01:24.233837 | 2019-08-27T03:13:49 | 2019-08-27T03:13:49 | 204,610,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.conf.urls import url, include
from django.contrib import admin
from Iple import views as Iple_views
urlpatterns = [
url(r'^account/', include("accounts.urls")),
url(r'^$',Iple_views.login_redirect, name='login_redirect'),
url(r'^admin/', admin.site.urls),
] | [
"maxi_5153@hotmail.com"
] | maxi_5153@hotmail.com |
a0f95763669e8ca1b47951e4233273126773b10d | 26b707bbb23a5899f21c7c606ce5fc3539abb9a7 | /meterpreter/windows_x86/scode64.py | 8333bf1531a12b9e32eaaf8069536e5c693665df | [
"MIT"
] | permissive | cobranail/redteam | 6e9178270eafdc63288f3354f5256779f67735a6 | a21091ac0aef289b61dd05771fff7296fb7c4e7e | refs/heads/master | 2021-03-05T00:09:45.913384 | 2021-02-03T15:15:33 | 2021-02-03T15:15:33 | 246,078,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import struct, socket, binascii, ctypes, random, time
shellcodepy, var1 = None, None
def func1():
try:
global var1
global datapack
var1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
var1.bind(('0.0.0.0', 8432))
var1.listen(1)
datapack,_ = var1.accept()
datahandler = struct.pack('<i', datapack.filen... | [
"cobranail@gmail.com"
] | cobranail@gmail.com |
c8faa940d1300603c0b8f53403c63ad49cba435f | 3b2263338270b13ba4c6a637b0696ed731af5497 | /python/hrpsys-plot/old/plotter.py | 4b2806c9b27e01d5d3a84b3d45947f91b27306f9 | [] | no_license | eisoku9618/kuroiwa_demos | c124f48160d21b91ec4e809f4a1b2cc160626861 | dc2362d38d84e5476793a97494c38fcc90df8490 | refs/heads/master | 2020-12-12T23:36:52.086657 | 2020-06-01T13:34:09 | 2020-06-01T13:34:09 | 44,500,420 | 0 | 6 | null | 2020-06-01T13:34:12 | 2015-10-18T23:09:43 | Jupyter Notebook | UTF-8 | Python | false | false | 18,013 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import csv, argparse, numpy, math, time, struct
class DataloggerLogParserController:
def __init__(self, fname, title, hand_name, ljn):
self.fname = fname
self.portList = ['RobotHardware0_q', ... | [
"kuroiwa@jsk.imi.i.u-tokyo.ac.jp"
] | kuroiwa@jsk.imi.i.u-tokyo.ac.jp |
9380dca2adb065f28eb1dc5d0c6de4b883c6b82f | 1d032d8c525ba8102044d84093a1d22a70b9519e | /bungie_net_api/utility.py | 4d0a33fdd98e75f18ec21ec2dfed3eadadcecb8b | [
"MIT"
] | permissive | xirdneh1968/bungie_net_api | 0facc0d453d13649ede582860670fa5f944192d9 | eb47fadff9c17ff0e68623bf34c6944604a897ee | refs/heads/master | 2020-09-10T15:11:27.582927 | 2019-11-14T23:56:57 | 2019-11-14T23:56:57 | 221,734,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | def handleArgs():
parser = argparse.ArgumentParser(description='Place your application description here.')
# parser.add_argument('-n','--name', help='display name from www.bungie.net',required=True)
# parser.add_argument('-c','--character_class', help='Destiny character class [titan|warlock|hunter]',require... | [
"bret@zumina.com"
] | bret@zumina.com |
e94bbb6a791401e2764951035b0805e4e59c5088 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/hardware/tasks/hardware_preferences.py | dc6f92027d74b684f471ec51b37f7c612eac702b | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
f3c4838fca44de0a9cae738f16a1206c3fece75b | 4985ea8eeacb3199dd9ff3df510fbf5ea7ff8159 | /setup.py | 024d3c7908bbc24bf1c30c2e196722c3c00538e3 | [
"BSD-3-Clause"
] | permissive | maxschalz/scripts | 9b9a72af56f5eadbbb58a6ca7f88978968c06789 | e29207b276a07d4ed221b184142961459aa044f1 | refs/heads/main | 2023-08-25T12:38:21.780709 | 2021-09-03T07:52:04 | 2021-09-03T07:52:04 | 384,754,445 | 0 | 1 | BSD-3-Clause | 2021-09-03T07:52:05 | 2021-07-10T17:29:28 | Python | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
def main():
"""Main function."""
setup(
name="scripts",
version="0.1",
description="Scripts to generate Python and other scripts",
author="Max Schalz",
url="https://github.com/maxschalz/scripts... | [
"58850267+maxschalz@users.noreply.github.com"
] | 58850267+maxschalz@users.noreply.github.com |
3d71477099cbc4b93820335d2b9ffb4a7e41a779 | 9972675f285280948dd6becc466bc2f2d7efee8a | /swea/tree/practice/hip.py | 3c7f86ee2afdab51a626dd8238d055f109a873ee | [] | no_license | dowookims/ProblemSolving | 308793055e8c1c247b7e00cb89d954d9a5eacf25 | 2183965b222afc7b5b316b9f53b04119384f8b24 | refs/heads/master | 2020-04-23T13:02:47.548120 | 2019-04-04T09:02:52 | 2019-04-04T09:02:52 | 171,189,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | '''
선형 자료구조에서 priority queue 는 선형 자료에서 O(n^2)를 차지해서 이를 대체하기 위해 나온데 힙
힙은 두가지 조건이 맞춰줘야 하는데
1. 구조적인 모습이 완전 이진트리여야 함(앞에서부터 완전히 채워져야 함)
2. 내부 논리 모습은 부모의 노드가 자식보다 항상 크거나 작아야 함(일관성)
최대 힙 : 키 값이 가장 큰 노드를 찾기 위한 완전이진트리
루트가 가장 큰 값을 가지고 있음.
최소 힙 : 최대 힙의 반대
삽입, 삭제가 존재하고, 구조를 유지시켜주게 만들어야 하는게 개발자의 숙명
힙은 프라이어티를 ... | [
"kaei2574@gmail.com"
] | kaei2574@gmail.com |
fd7417f444e9f44605e2f25b00a05262943ad7b6 | 19336357b8d5529937fa39851e779bc60b329fe5 | /timar_verkefni/sequence.py | 405c64012554cacb915433092fc8ddd3c6919499 | [] | no_license | gudmundurgh/Forritun | 5c3b671352e2bb6b58f5d14fdd82771c70a64a1e | b5ad31c414f3aadd3c8c4eeb37c5cdaa6b354ef1 | refs/heads/master | 2020-07-20T10:31:57.514082 | 2019-09-05T19:07:08 | 2019-09-05T19:07:08 | 206,625,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #design an algorithm that generates the first n
#numbers in the following sequence 1,2,3,6,11,20,37, ... , ...
#Sequence where first three are known 0,1,2. each after that is
#sum of last three
#ask for a number to determine the length of the sequence
#start with first three that are known and print them out
#itera... | [
"gudmundurgisli@gmail.com"
] | gudmundurgisli@gmail.com |
11a438d687059099c0b913d63e20da702467ec71 | bb3829688d62cdb81579a3eeef28562f80129a97 | /General Problems/sok.py | f934c364f195765fb265e435ce7a28d93f4d0919 | [] | no_license | ScienceMoo/Kattis | 818aca914de3f31b5d3e94c613c1bf0f4c25ee74 | fa3146d5ab099ffa8256c5aee7a00327673788b7 | refs/heads/main | 2023-08-02T07:07:19.792394 | 2021-09-10T14:27:52 | 2021-09-10T14:27:52 | 302,513,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | A, B, C = map(int, input().split())
I, J, K = map(int, input().split())
max_drinks = min((A / I), (B / J), (C / K))
result = ((A - (I * max_drinks)), (B - (J * max_drinks)), (C - (K * max_drinks)))
print("%.6f %.6f %.6f" % result)
| [
"marie.cornellier@mail.mcgill.ca"
] | marie.cornellier@mail.mcgill.ca |
7478d3f5255910a2c4f89ab0b4e2d8e85a403c5e | eb2998606d9b8e6ad9ecdb5a602f2060cb9f5d55 | /scripts/diffScripts/diffDiagnostic.py | 735aee01bffb7deb54401bc8aeffd1e1f0c47435 | [] | no_license | hirokimoto/CodeAnalysis | 5faa2fdf8ce2502c2d9434e2127fa0871f85e941 | 5f8bc2962dfc366c5eafdfac17801f56decc857a | refs/heads/master | 2021-01-19T15:50:02.866043 | 2017-04-14T18:39:10 | 2017-04-14T18:39:10 | 88,230,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#===================================================================================================
# This script checks if the diff method has a likelihood of mismatches
# It does so by doing a sort of all filenames, and for each filename
# Finding its match, and i... | [
"hiroki.moto.pro@outlook.com"
] | hiroki.moto.pro@outlook.com |
614f98f72413a877c4fe9ce352b029a4c7c75b3e | c72b6b2e7b7421505b88489d6026f8c5226fbf31 | /workspace/config/testt.py | 1bdb97227584c696187a10a8df60aed275cf6b00 | [] | no_license | amadjarov/thinkPython | 1185fe8ee5d47ecba56c251f0c5d537fe82b5b18 | 7e8fb3a96fa6607587efac07abff04a342c15f96 | refs/heads/master | 2021-01-22T16:25:18.790251 | 2014-05-29T09:54:11 | 2014-05-29T09:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class DoesNotCompute(Exception):
""" Easy to understand naming conventions work best! """
pass
def this_function(x):
""" This function only works on numbers."""
try:
print x ** x
except TypeError:
raise DoesNotCompute
this_function("g") | [
"amadjarov@melontech.com"
] | amadjarov@melontech.com |
2a931a2b128cd6b214a57ea37919bb9593f4ce8c | 2b09e6e7d25eadf68b8827a5e61b2c6167a2d6bb | /场景识别/run3/train_all.py | 5920a9e1369f7ab0cc34a817cc455ad1872e9cd5 | [] | no_license | Yogurt404/ML-exercise | dc14cdfe8720b1b5914567ff20de5871135df9ae | 8e709ca0aadf840fbd7c27fc848842e76130747a | refs/heads/master | 2022-11-22T11:45:53.959147 | 2020-07-16T23:16:52 | 2020-07-16T23:16:52 | 277,318,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | import glob
import numpy as np
import tensorflow as tf
from data_loader import DataProvider
from model import ResNet50, VGG19
def logits_accuracy(logits, ys):
pred = tf.nn.softmax(logits)
pred_argmax = np.argmax(pred, -1)
ys = np.argmax(ys, -1)
accuracy = np.mean(np.equal(pred_argmax, ys))... | [
"noreply@github.com"
] | noreply@github.com |
152796a4eb72834615b2b8ae280d205cf0ef3217 | b7f4bd91af74cf75991ff31c39d7eddbb77062d6 | /tallerDeLaSemana/ejercicio de semana.py | 8e68d7be9e82e1d63d7353fea11a2de967c633a8 | [] | no_license | andresf20031/TrallerDeLaSemana | 3a0efe1ee69d380600fcac5c5892b10880e70a0d | 8f8d4f56b5fc90812ff197b65794679dc022f590 | refs/heads/main | 2023-03-29T06:45:37.653130 | 2021-04-07T03:26:39 | 2021-04-07T03:26:39 | 355,399,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | nombre = input("digite su nombre: ")
Edad = float(input("digite su edad: "))
if Edad > 5:
print("1 suma/ 2 resta / 3 multiplicacion / 4 division")
tipoOpe = float(input("que tipo de operacion desea realizar: "))
num1 = float(input("digite el primer numero: "))
num2 = float(input("digite el segun... | [
"noreply@github.com"
] | noreply@github.com |
988d982f36e8a57ee5970b6516e61e75ee50e644 | 7f5a302eb7d93dc528f5c3a39d74f98995babbe4 | /simplemoc/urls.py | eb8ee858fffb3a085d38a3d2fa2efe50e68cb49b | [] | no_license | dennyerikson/simplemoc | d03a11eb63959890648c5801df3bb8a93cb1b490 | e4199dab66e3cbe23d39765b30dcd79d5eae31bb | refs/heads/master | 2020-03-23T22:54:00.859623 | 2018-07-31T19:33:35 | 2018-07-31T19:33:35 | 142,205,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """simplemoc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"dennyeriks00on@gmail.com"
] | dennyeriks00on@gmail.com |
d6d626923ef04bf689ed1c94acefc6e1aeede14f | 7acd9a2b7fb7ed41f6a07767f3aebb22f71f1cf7 | /commands/Setup.py | 9f32bc9d2f34088001bfabc0cbed6412daf5b840 | [
"MIT"
] | permissive | mlregester/DiscordCalendarBot | d009c9afc4db9ac702535b85653d0adda452a75b | 6fe3e05f0e9313f79380a8cf6a41758863fb5d97 | refs/heads/master | 2023-05-30T06:27:03.544756 | 2021-03-18T11:57:45 | 2021-03-18T11:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,088 | py | import discord
from .CommandBase import CommandBase
import sqlite3
class Setup(CommandBase):
"""
Class that contains all commands regarding Setup
- new, update
"""
_commandsManager = None
_bot = None
def __init__(self, commandsManager):
self._commandsManager = commandsMana... | [
"papsop@outlook.com"
] | papsop@outlook.com |
cb99d9c11afa3381a3ffef4cf37286743cd3c301 | 7fcb2ea78301f4d1f1e81192a8cbdeeff993fe9d | /Innovaccer.py | 595820b44ad68f039fc764d822f9b6ef4b4edc0f | [] | no_license | Anupam13/Innovaccer-Analytics-Assignment | aae9efb687be528e362bbea9a93b67525b05bdc5 | defe0a98570e3be79ba878de9765f5a84cee5416 | refs/heads/master | 2021-04-28T07:02:35.615011 | 2018-02-20T19:19:51 | 2018-02-20T19:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #import pandas library
import pandas as pd
x = pd.read_csv('input.csv')
#Separating strings for first and last name, and then taking the first part of each string .
last = x.ln.str.split('\s+').str[0]
first= x.fn.str.split('\s+').str[0]
#creating a column 'name' and adding it to dataframe.
name = first + ' ' + ... | [
"noreply@github.com"
] | noreply@github.com |
b6a70862a3afa6a53a390ca607604748cf30a4c9 | b28ccf3661c7e30b25844924c11b6cb4b175a8dd | /quickstart/migrations/0016_auto_20210312_0145.py | 09d4e7d4be8278710119e5167ac9acf3cc4c4ec1 | [] | no_license | TranCongMinh3006/new_recommendation_system_api | 2dbb4f965692025e6f1323942dcb83d5bd8a57fa | 4141429e4759a936b9d488a4b6c551aaaa7629ea | refs/heads/master | 2023-03-26T02:53:40.642325 | 2021-03-23T05:19:45 | 2021-03-23T05:19:45 | 348,642,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.1.2 on 2021-03-11 18:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0015_auto_20210312_0118'),
]
operations = [
migrations.CreateModel(
name='Article_Tags',
fields=[
... | [
"minhlinhtinhtp@gmail.com"
] | minhlinhtinhtp@gmail.com |
ee6e0078648f5af14f5e6850f8790d9047604a60 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_service.py | 00babde924868763787da18ec7df0fa0a2c36c13 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
857bfc2483daf1a2e52e74bddecde55c78c698f1 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/dockerfile/checks/RootUser.py | 8989d2c4ec635876e77148d43dddbbd0dbf81b70 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 723 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck
class RootUser(BaseDockerfileCheck):
def __init__(self):
name = "Ensure the last USER is not root"
id = "CKV_DOCKER_8"
supported_instructions = ["US... | [
"noreply@github.com"
] | noreply@github.com |
f66c5cd282231fa309042fb5276288e8aaf1d7d6 | 5fa70b6456e48c8489fb9dd91d15154260b67515 | /labs/lab-9/lab-9.1-implementing-a-restricted-boltzmann-machine/9.1-implementing-a-restricted-boltzmann-machine.py | 395dc142f873e3f8423f28dbb69ba495a17621ad | [
"MIT"
] | permissive | rubenandrebarreiro/fct-nova-deep-learning-labs | 4d56a1cd662ee594fa8846e7e5177ffc188bf46b | c17316f3cea56a6d6a17c769828a9a5985753edf | refs/heads/main | 2023-04-28T14:50:59.083805 | 2021-05-26T13:19:43 | 2021-05-26T13:19:43 | 348,350,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | """
Lab 9.1 - Implementing a Restricted Boltzmann Machine (R.B.M.)
Author:
- Rodrigo Jorge Ribeiro (rj.ribeiro@campus.fct.unl.pt)
- Ruben Andre Barreiro (r.barreiro@campus.fct.unl.pt)
"""
# Import the Libraries and Packages
# Import the Operative System Library as operative_system
import os as operative_system
# D... | [
"r.barreiro@campus.fct.unl.pt"
] | r.barreiro@campus.fct.unl.pt |
8d67c3ff4bde0f3beed1d1933e2bba0fb90b5dde | 1f2204bb09d5191b72fe6abfd2b335fba425d749 | /Programmaers/Level1/2016년/Solution.py | 585bce8e281578ecb6c19118acbe6042a41aa7a5 | [] | no_license | KimJinHye0n/python | 328b126ab575425eb9a9706a47956928185cc73e | 82036225beb24c999b1b3251fc9eacf1385cb789 | refs/heads/master | 2023-06-18T18:05:07.923077 | 2021-07-06T03:45:43 | 2021-07-06T03:45:43 | 272,677,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def solution(a, b):
day = ['THU', 'FRI', 'SAT','SUN', 'MON', 'TUE', 'WED']
days = [31,29,31,30,31,30,31,31,30,31,30,31]
x = 0
for i in range(1,a) :
x+=days[i-1]
x = x+b
y = x % 7
answer = day[y]
return answer | [
"63627253+KimJinHye0n@users.noreply.github.com"
] | 63627253+KimJinHye0n@users.noreply.github.com |
1aefe7317d6774d38cf1df3bcdd761e9c29e18c4 | 84042dbca99df46a707e50a988169391e7be9d4b | /1353_a.py | e017d7eb509a153c4abb7d05e155f3794298745b | [] | no_license | alex216/codeforce | d166d51985363f7d9f458a65c3a08171580da998 | 9d01b8e0f59bca9b769c4b2ce88d6fe36f8d3efb | refs/heads/master | 2023-07-23T19:39:18.914372 | 2023-07-12T02:04:39 | 2023-07-12T02:04:39 | 264,169,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | t = int(input())
while t:
n,m = map(int,input().split())
if n == 1:
print(0)
elif n == 2:
print(m)
else:
print(2*m)
t -= 1
| [
"yyliu0907@gmail.com"
] | yyliu0907@gmail.com |
200263997717b99b17f743c02a8f34453f4f5c84 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_value_list_request_body.py | 4bc66144328d7383b9ed3acc25cc45db5dd9dbba | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,143 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateValueListRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict):... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
393bf9e0c5b1a2eeb5a1205774b81bb40ec05e5d | 4c1e1961b93ef217f60970861a80683406937853 | /NLP/wsgi.py | a071f7a73d36c89c69d51b3e3d2dee564e58df01 | [] | no_license | RajatSran/News_analytics | 91d0cbe126ad5ce80c716eac7199bde5af888628 | c675a82e5d5abb49b0453dcfb0ca27a2c3d8cc37 | refs/heads/master | 2023-06-12T03:07:19.183348 | 2021-07-09T04:28:30 | 2021-07-09T04:28:30 | 384,320,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for NLP 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"rajatsran27@gmail.com"
] | rajatsran27@gmail.com |
26b36d6ba89a1fe7cd91b14bb3fb33ce22480d57 | 2ed34164b303be44f53692cba21d689caf427dc4 | /Model 5/plot_L(N).py | de74add859af063b43d93306c29e85cf77465cf0 | [] | no_license | klaragolob/civilizacije | 9da3821470f08e4d4141b084d6569c7571c95e6d | 4d58f0a07218e660b8d489d8871aef212d495939 | refs/heads/master | 2020-08-24T05:29:14.945955 | 2020-05-13T23:39:44 | 2020-05-13T23:39:44 | 216,768,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from libraries.IO import readData
from libraries.IO import saveData
from matplotlib import cm
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import scipy.ndimage.filters as fl
from libraries.StandardizeDistribution import StandardizeDistributionW
a = 2
if a == 2:
bin_no ... | [
"klara.golob19@gmail.com"
] | klara.golob19@gmail.com |
dce9b598c5fdda61c98c27196ecb87fbc9e076f9 | fcf390e916156bd85d32d36e55ce42d7bbfdf10f | /greedy/p_96_1.py | cbab26cfbaf09706434036cabb39d51273f3ced7 | [] | no_license | mingmang17/Algorithm-Team-Notes | 54857766dd951121a2627b2cd51e25166b0a39c1 | 7d2c354f8c360ed57142d867fc5c1a6d0b8287f5 | refs/heads/main | 2023-02-25T16:14:23.888273 | 2021-02-04T12:37:32 | 2021-02-04T12:37:32 | 329,576,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #숫자 카드게임, 각 행마다 작은수를 뽑아 그중에 제일 큰 수 구하기
#n == 행, m == 열
n , m = map(int, input().split())
result = 0
for i in range(n):
data = list(map(int, input().split()))
min_value = min(data)
result = max(result, min_value)
print(result) | [
"noreply@github.com"
] | noreply@github.com |
94008038e6585d268e8b9b63aee85701c8d54241 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03035/s756178683.py | 4862307df990f7a47b56172da80c6d031f7cc917 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | A, B = map(int, input().split())
if A >= 13: print(B)
elif 6 <= A <= 12: print(B // 2)
else: print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
59c8926505d7125c3cf883b57c2b7715a524db7b | eeee5fc0fec37b0640f08431bc8f94da75b062fc | /Hello.py | 970706745255224be2cc85e4d6e16e23dd4c249a | [] | no_license | prabhas-nallan/python- | aa4737e50498f9a38dc34b3066fa7fed31c9bb1b | ab0f67c1713242baadc5bd2d99ff9cbfb5e2ddbf | refs/heads/master | 2022-12-07T12:52:29.898376 | 2020-09-08T04:53:18 | 2020-09-08T04:53:18 | 293,701,103 | 0 | 1 | null | 2020-09-08T13:56:33 | 2020-09-08T04:30:40 | Python | UTF-8 | Python | false | false | 23 | py | print("Hello Prabhas")
| [
"noreply@github.com"
] | noreply@github.com |
f710559225cd704dfaef2768d72c3a02a7523ec9 | 87871363fac34680ea2a1a1fbe5ac37beca38f40 | /chapter 2/chapter2.py | 882a468ddb6f25d9ba48a70158270ff690f1b0cf | [] | no_license | summitwolf/PYExplore | f2495d5253eb77a3e949574cb5c5cbcb62b7b895 | 5fb98580beff1041c73c55be133d30f8645ad5cb | refs/heads/master | 2020-04-20T09:52:21.821504 | 2019-02-09T00:21:05 | 2019-02-09T00:21:05 | 168,776,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | hours = int(input("Hours worked: "))
rate = int(input("Hourly rate: "))
print("Gross pay: " + str(hours*rate))
| [
"noreply@github.com"
] | noreply@github.com |
760d6d158cc7cb0dbb7d6a1b679e2e04aef1b9cf | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /codeforces/509-B/509-B-9647351.py | cc802213c7c9331abad058b7e8f889c9c36ca6d2 | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 287 | py | n,k=map(int,raw_input().split())
a=map(int,raw_input().split())
l=min(a)
if(max(a)-min(a)>k):
print "NO"
else:
print "YES"
for i in range(n):
for j in range(l):
print 1,
for j in range(l,a[i]):
print j-l+1,
print "" | [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
3171446e524b21ed7612930789ea3980882ec432 | 45b0a75342b3af99039f7848f9556bcc5701ed16 | /setup.py | d03825defd08bac677de6254ed364bf9fd539856 | [
"BSD-3-Clause"
] | permissive | simodalla/pympa-affarigenerali-OLD | acb18e18e68716bde99ecc9dafa67724cce81970 | ab3c885d34a8eebcca76ccd62c3f559baede8c6d | refs/heads/master | 2020-06-05T18:50:54.156687 | 2014-11-15T07:50:10 | 2014-11-15T07:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import organigrammi
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = organigrammi.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probabl... | [
"simodalla@gmail.com"
] | simodalla@gmail.com |
f0307471b5e465d7da731f0ccd730b7f2a73f094 | 7505e343750b6cbaac73721f701d7a429c5cc3d7 | /mysite/settings.py | acb40a4cecd72011f33e191ac49a6051514e7ebe | [] | no_license | Sachinys/blog-o-blog | 4407d0c92164f99e0ca8d6c51f883b10ab8688a3 | e2e7087884b03a1b3617a6463e83d532bb6fab85 | refs/heads/master | 2020-04-08T05:33:22.853708 | 2019-03-05T19:35:03 | 2019-03-05T19:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.9.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"yadavsachin980@gmail.com"
] | yadavsachin980@gmail.com |
7c15b9536eb43122f435abd77e7f22404733fd0b | 9861218f60ab23d6ac3bc6b400c220abf4e64fb5 | /atividade_d/atividade 'd' lucas neves/q6.py | bf7faf95dd6744f9c3889cd5c8eea96d37cd1c16 | [] | no_license | rogeriosilva-ifpi/adsi-algoritmos-2016.1 | a0b0709eb783110a9b335c8364aa41ce4f90fb24 | 1714e2480b80e46be4d96049e878bf17b692320b | refs/heads/master | 2021-06-06T18:25:00.836715 | 2016-09-07T02:02:30 | 2016-09-07T02:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # Nao sao estas as questoes...
# -*- coding: utf-8 -8-
"""6. Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s. (Vm/s = Vkm/h / 3.6)"""
velokm = input("Insira um velocidade em k/h: ")
veloms = velokm / 3.6
print "%.1f km/h equivale a %.1f m/s" % (velokm, veloms) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
c64c3f771f72a0083093070bd3a23e358982cbb0 | faccafd17f9d03e098c11229afd02372364fa3a2 | /tsplib95/tsplib95/distances.py | 34a7875c3ffb14df60d8bf07556a170f414107d2 | [
"Apache-2.0"
] | permissive | michael-ritter/assignments-ma4502-S2019 | e43f7f7bc441005f1e159d4d97d69c18154830df | dd40371d72a2cc8c8c3b505d073e02dbe1bbec49 | refs/heads/master | 2023-01-07T12:13:25.768040 | 2021-10-11T14:34:06 | 2021-10-11T14:34:06 | 192,584,481 | 0 | 0 | Apache-2.0 | 2022-12-26T20:39:15 | 2019-06-18T17:26:26 | JavaScript | UTF-8 | Python | false | false | 4,101 | py | # -*- coding: utf-8 -*-
import functools
import math
from . import utils
def euclidean(start, end, round=utils.nint):
"""Return the Euclidean distance between start and end.
:param tuple start: *n*-dimensional coordinate
:param tuple end: *n*-dimensional coordinate
:param callable round: function to... | [
"michael.ritter@tum.de"
] | michael.ritter@tum.de |
721a5e56f58dfe99a600b26d64f8e6ed0832dcf9 | c14c4eefc276bed3524724b8ca6a265e6ade8019 | /WebPipeline/runserver.py | 79844aaa5e5b590e31e2287389011fcd36659c04 | [] | no_license | romankylian/dev6b | 64315cf418cc1d69cb89333e999bf1235e5c92c4 | 81c6f4aa16c22d6cf877542e439e991eb1f2e899 | refs/heads/master | 2021-06-15T00:43:27.529398 | 2017-03-24T09:58:23 | 2017-03-24T09:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
This script runs the WebPipeline application using a development server.
"""
from os import environ
from WebPipeline import app
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = 5555
... | [
"romanr@hotmail.nl"
] | romanr@hotmail.nl |
d82b4cb5bd62d1de0d86ea4400e81bedefb8f708 | 4d5406aa8edfe69099a606445cdac5816f6d968d | /Abortions Data Project.py | bcc05987929d2acdcbd3aecec241ce2632963c64 | [] | no_license | ayianshariff2/projects | 508b3e4663022f8fb891d94cdee32008009e1c32 | 9ed06f0d31cad256a57f9583024ffc8f4b4f94c8 | refs/heads/main | 2023-07-13T20:23:23.141679 | 2021-08-26T03:19:08 | 2021-08-26T03:19:08 | 399,657,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,275 | py | #!/usr/bin/env python
# coding: utf-8
# In[572]:
import pandas as pd
import seaborn as sb
import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
# In[573]:
df = pd.read_csv('set2.csv')
# In[574]:
df
# In[575]:
df.head()
# In[576]:
len(df)
# In[577]:
#Check for null values
df.i... | [
"noreply@github.com"
] | noreply@github.com |
93be1cd42df6b6d7eb07e70bbcbcf046809e5ee2 | 8389edf9cef84ece5f94e92eee2e5efeab7fdd83 | /AmazonWishlistScraper/pipelines.py | 07d8b2d0af0c17bf494f389c4d078d97e66c9c98 | [
"MIT"
] | permissive | scotm/AmazonUKWishlistScraper | 7eb6d6f7d6e408852742a55e2eadb09a626e1e99 | 2bb95e31a3204d6a92fed35a71063a3ca9c3dd35 | refs/heads/master | 2020-12-25T15:28:57.233678 | 2016-09-05T11:29:31 | 2016-09-05T11:29:31 | 17,141,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/topics/item-pipeline.html
from scrapy.contrib.exporter import CsvItemExporter
def remove_goop(text):
return " ".join(text.split())
class AmazonCSVExport(CsvItemExporter):
fields_to_... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
f0fff6f409a250fa5d4ec64918ee04069119729b | 3189baaebb1886cd1ad0c95190bf9f474c32fedf | /tf_throttle/build/catkin_generated/generate_cached_setup.py | f758534ead4a148a333ca4102bec7180fee8258d | [
"MIT"
] | permissive | xplorer-robot/xplorer | e43064aaa38e1fc3ee199c515c0560abe1dc94e0 | 51e43613017455331864a166b1bb830819e823a0 | refs/heads/master | 2020-04-10T11:23:18.328166 | 2018-12-09T00:48:19 | 2018-12-09T00:48:19 | 160,607,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"xplorer.wvu@gmail.com"
] | xplorer.wvu@gmail.com |
c49023ff5224e1af90c7b2a2674dea123f28e695 | 30227ff573bcec32644fca1cca42ef4cdd612c3e | /leetcode/array_and_string/array/plus_one.py | 44d2298d96b9ab1d4be89d99d9d0bc0f3e2f88eb | [] | no_license | saurabh-pandey/AlgoAndDS | bc55864422c93e6c93b8432e483394f286ce8ef2 | dad11dedea9ceb4904d6c2dea801ce0172abfc81 | refs/heads/master | 2023-07-01T09:12:57.951949 | 2023-06-15T12:16:36 | 2023-06-15T12:16:36 | 88,239,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #URL: https://leetcode.com/explore/learn/card/array-and-string/201/introduction-to-array/1148/
#Description
"""
Given a non-empty array of decimal digits representing a non-negative integer, increment one to the
integer.
The digits are stored such that the most significant digit is at the head of the list, and each
e... | [
"saurabhpandey85@gmail.com"
] | saurabhpandey85@gmail.com |
af856742793badd66aae7991c8d84b5f5cde6610 | bd0fb8404d7a746f85aadad3abe26ed04de3d268 | /CodeForces/CONTESTS/Round 711/B. Box Fitting.py | 44dfbe53704a0fa5ff84f513603b81264f5a8057 | [
"MIT"
] | permissive | IshanManchanda/competitive-python | 6dbbbca084408663573ea58d295d4715dbdd96f9 | cd219eda9fe2ea6dbdbbba754fb4d355182ead38 | refs/heads/master | 2023-08-21T09:35:40.266146 | 2023-08-12T18:26:02 | 2023-08-12T18:26:02 | 184,058,056 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | def main():
from sys import stdin, stdout
from collections import Counter
rl = stdin.readline
wl = stdout.write
for _ in range(int(rl())):
n, w = map(int, rl().split())
a = Counter(int(x) for x in rl().split())
a = dict(a.most_common())
keys = sorted(a.keys(), reverse=True)
h = -1
while True:
cur =... | [
"ishanmanchanda70@gmail.com"
] | ishanmanchanda70@gmail.com |
036a2e26605dcb8adca9e12f913f0e989a923bfb | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/_pyio.py | b805c49e9f62dd53e7b3ff719af305f55238b214 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "f88fc8316a266e9690fc63943b95eb39ae884d95"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
65f740bb52de4a120c6bff93c428eac9418d78ce | 09b8f13dceadcb4f9482bb2aa1b807a070e58928 | /src/python/modular/utils.py | e363f975d80ff9e6c92efc386a60812c7c5e6491 | [] | no_license | luisguiserrano/sklearn-modular | e84d84c7263c09067c7601fc10917003e1ce66b5 | 98562a2f877f16622214d0df8d4457b247433577 | refs/heads/master | 2022-12-01T01:01:12.653111 | 2020-08-15T00:16:10 | 2020-08-15T00:16:10 | 285,043,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | """
Copyright Zapata Computing, Inc. All rights reserved.
"""
import json
import pandas as pd
import numpy as np
from pkg_resources import resource_string
def save_json(result, filename) -> None:
"""
Saves data as JSON.
Args:
result (ditc): of data to save.
filenames (str): file name to ... | [
"luisgui.serrano@gmail.com"
] | luisgui.serrano@gmail.com |
6f9ee6cc0c96b1a1e6c6fa704f0b38168df5a054 | 34a9bb179b7b5d9272a329267b9737a7bf8cacab | /P3/sample_files/get_color_blobs.py | 1f23edd366d86e51e0fb55df2fb887ab3babba27 | [] | no_license | DavidSolanas/Robotica | e914593ef3ae0b610d33d96689d1ad0fd82e3565 | a455a0eb8356ed51d778a37f04ff78494a89d333 | refs/heads/master | 2022-08-02T17:28:43.153429 | 2020-05-10T10:23:25 | 2020-05-10T10:23:25 | 243,767,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
###########################################
# Autores: Daniel Cay (741066) #
# Javier Fañanás (737987) #
# David Solanas (738630) #
# #
# Fichero: get_color_blobs.py #
# Robótica... | [
"davidsolanas086@gmail.com"
] | davidsolanas086@gmail.com |
3e4d99f36c8c903cccb781857fee3486693f6ec6 | fae3ed93ef1984d422e94405e8d487c0e4c5f35e | /update_tweet_data.py | a92d645da306a81894325c13184818e29fef4a96 | [] | no_license | zebra-ok/twilytic-scripts | 689a90f5f22e432bbed5e8437da9317b83c01f34 | 1f3d2766c59e67edce2cb42903ae710165c39fdc | refs/heads/master | 2022-02-25T23:22:35.115217 | 2018-06-14T12:55:26 | 2018-06-14T12:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | # pylint: disable=invalid-name
# pylint: disable=missing-docstring
# pylint: disable=trailing-whitespace
import logging
from datetime import datetime
import json
import rethinkdb as r
import tweepy
from tweepy_conf import init
from db_conf import get_conf
logging.basicConfig(filename='update_tweet_data.log',level=... | [
"art1fa@mailbox.org"
] | art1fa@mailbox.org |
70725fd03a32f7caaa5d0ec5734c24663ce2dccb | 6117df1c489ff4d61b1e94b95477f00547112ca4 | /orders/migrations/0001_initial.py | ca987f7b868fc13204ac98c718ef615179fb3cd4 | [] | no_license | ameerabdulaziz/idealistic-solutions | 48cb08f3197dc9988a2b39c18007fdc9e103cd18 | cfcb6db1705700f2ccc5bb8cb600b120ecbc6317 | refs/heads/master | 2022-04-13T17:36:06.280882 | 2020-03-21T15:24:13 | 2020-03-21T15:24:13 | 168,604,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # Generated by Django 2.1.1 on 2018-12-22 19:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ameer@idealisticsolutins.com"
] | ameer@idealisticsolutins.com |
473b9f9a9271ec67bdeb7ba8f50ec9d6a3b791e8 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /django/projects/src/backup/www/views.py | ea9233e355201b26cb5f6e7b1d346d901de37605 | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('<h1>This is the Root</h1>') | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
f1a4740244d7d79698de5bfe6929228015adab91 | 19d03121aba06ddb160cf07b70764c538a39ded0 | /downloader.py | 25ebd629dfee4d6aa01ba4cf7f40e1a9ac7f18e9 | [
"MIT"
] | permissive | anjkt/youtube-comment-downloader | 2559f2c51c65667ae65453950109023169aaeff9 | 6ff9d79214ee016ad08863cd404193a3767e926f | refs/heads/master | 2022-11-05T04:17:15.549409 | 2020-06-20T19:09:01 | 2020-06-20T19:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,159 | py | #!/usr/bin/env python
from __future__ import print_function
import io
import json
import os
import sys
import time
import argparse
import lxml.html
import requests
from lxml.cssselect import CSSSelector
YOUTUBE_VIDEO_URL = 'https://www.youtube.com/watch?v={youtube_id}'
YOUTUBE_COMMENTS_AJAX_URL_OLD = 'https://www.y... | [
"ebouman@gmail.com"
] | ebouman@gmail.com |
3de61b26accc3bdb5e548e58de7fb98fff68e27d | d4bfdb9a39f520c35db5e0557387cdc1c8599de3 | /speakeasy/winenv/defs/windows/windows.py | 3cb8f6a85ab08bb31371eee64c69c367ea4b4c09 | [
"MIT"
] | permissive | Ju-87/speakeasy | 4953e720a07843db940a84360241b3397607e8fb | 5bf4ead5630a14442a4bf9b387e2bdfe4128c5a9 | refs/heads/master | 2022-12-14T15:25:20.192702 | 2020-08-26T22:13:37 | 2020-08-26T22:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,905 | py | # Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from speakeasy.struct import EmuStruct, Ptr
import ctypes as ct
NULL = 0
ERROR_SUCCESS = 0
ERROR_FILE_NOT_FOUND = 2
ERROR_PATH_NOT_FOUND = 3
ERROR_ACCESS_DENIED = 5
ERROR_INVALID_HANDLE = 6
ERROR_FILE_EXISTS = 80
ERROR_INVALID_PARAMETER = 87
ERROR_INSUFFICIENT_... | [
"10660782+drewvis@users.noreply.github.com"
] | 10660782+drewvis@users.noreply.github.com |
16a1a44017eb6823b1f695144095e61915b378cc | 4b9854d1013b94153597eb5160ff5200e9d446d4 | /account/migrations/0002_auto_20201021_1204.py | 2f8ae694d751228bd70e9d701d036ebf22812f68 | [] | no_license | munyuaDeveloper/ClothStore | 045a898d7516bb2836fd37bb7dc2b3f640f2ea70 | 6688bb8eeda2f92e890bf7e2354039d14cc499af | refs/heads/master | 2023-01-20T13:05:42.266241 | 2020-11-17T14:18:27 | 2020-11-17T14:18:27 | 303,913,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Generated by Django 3.0 on 2020-10-21 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='customuser',
name='age',
),
... | [
"munyuapeter07@gmail.com"
] | munyuapeter07@gmail.com |
0dcd82336e3db1d7df0829c2e2d1a24a356fd976 | fde5ac5880b0de1d5fc1338e0853adc7ecf793a9 | /ecommerce/utils.py | 20868231a45b66368e6d42195f2d5a4e739d4b25 | [
"MIT"
] | permissive | minaeid90/ecommerce | 7e039081a748d85d41155768ae98fd0e06f5157c | 8b14db5426ded6c7b208f98aa5b4fce425a818b9 | refs/heads/master | 2021-04-18T19:02:09.998943 | 2018-04-05T15:59:40 | 2018-04-05T15:59:40 | 50,954,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import random
import string
from django.utils.text import slugify
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def unique_order_id_generator(instance):
new_order_id = random_string_generator()
Klass = insta... | [
"minaeid90@gmail.com"
] | minaeid90@gmail.com |
a9d2fa168a0a5f2ddd174dc041e5ce763e9f696c | 603284928313c2245b426ab66fff1c237019b55a | /2.78/Sets/toolplus_scene/ops_layer.py | ae6f94b1a86c2f57b404ca80b3d4f1cbc9a301ec | [] | no_license | Pumpkin-Studios/ToolPlus | d663239e61aa1a2676c14c8494c19e4d09de9ffc | fc59449c33358d1087fe798bbdae71cc7bf20778 | refs/heads/master | 2020-04-03T17:55:54.804723 | 2017-12-10T19:30:28 | 2017-12-10T19:30:28 | 155,464,330 | 1 | 0 | null | 2018-10-30T22:57:13 | 2018-10-30T22:26:52 | Python | UTF-8 | Python | false | false | 291,405 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"cgdroste@gmail.com"
] | cgdroste@gmail.com |
af35ad3f11739d5c2b7b7ae1a7baa8dc9171d806 | 8d6a252d6801ab83f749821e25e7eb50f3c18072 | /calculator/settings.py | bbfdd34553330dc5296809ddb66ffbc91a90292a | [] | no_license | DeadPixel99/webapp1 | bb6ea6e94834fe0ed93bc68ed57b277da4d25c3f | 382eb898ed92047caa5258cb332809bb1196dcf5 | refs/heads/main | 2023-05-03T23:57:25.104125 | 2021-05-26T11:39:56 | 2021-05-26T11:39:56 | 371,012,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | """
Django settings for calculator project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | [
"antonnnnn13@gmail.com"
] | antonnnnn13@gmail.com |
bd509e62a5dae0682157782a571e4f334b77a8a4 | f3d723c72c67b7550ba5a770c7deb73bd8ea1145 | /config.py | 6a0d3aa1fc64b0cb23e61500f4acf717749e781f | [] | no_license | jideyue/fisherblue | 22ee5945a3a72fcced83e76f064c05f5156de6b8 | 012a379ae8a8f923017a22aae616a3cd0aeab434 | refs/heads/master | 2020-03-26T05:07:39.262455 | 2018-08-13T07:25:29 | 2018-08-13T07:25:29 | 144,538,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Eric.yue
DEBUG = True | [
"gide@gidedeMacBook-Pro.local"
] | gide@gidedeMacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.