blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3791630f062620da26fe1853a589375020abeffb | 15d738a334fcccd98550d017db962d73deac84cf | /__init__.py | 132f67f469eaf1e0f0d57fcb69cfd7e30203be68 | [] | no_license | putaodoudou/blockchain_spider | d3d28cb8f847362f3133283ef3f7b3a12fb67104 | 476e642aee692335f64d35026e7c51fe57acb045 | refs/heads/master | 2020-04-06T18:01:24.016667 | 2018-11-06T09:19:56 | 2018-11-06T09:19:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
"""
package blockchain_spider
@file: __init__.py
@time: 2018/11/4 21:52
Created by Junyi.
"""
from .spider import run_spider
__all__ = [run_spider]
__author__ = 'Junyi'
__version__ = 'v0.1'
| [
"365154018@qq.com"
] | 365154018@qq.com |
860b364888f23cea189e4ec3ce934ad91d6b9514 | c4f6a13c52ba5cdb6333f34cff4ffc0729eabeec | /TestStep/ts_send_data.py | 4b6adff8b576ce1cffe3d8e03bb56ad1dfc5e071 | [] | no_license | xhr-git/TestCase-DSL | 6d3ed613015ac9aa24cbed0367b5631a54f1addd | 3b6d54f2182b8d889af06b17589ad20eb4cb2a75 | refs/heads/main | 2023-03-03T09:51:43.079772 | 2021-02-10T08:39:24 | 2021-02-10T08:39:24 | 337,663,765 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from core.include import *
import socket
default_client = 'host_default_client_random__'
default_port = 8000
class ts_send_data(TestStep):
desc = 'send data to server, client={}'
def __init__(self, prefix, deep, paras):
self.clt_name = paras.get('client', default_client)
super().__init__(des... | [
"54583823+xhr-git@users.noreply.github.com"
] | 54583823+xhr-git@users.noreply.github.com |
1429d2a5feffca674a57f94cdafe2da55d56a7e5 | 8df6d70dd7b0e9e75bbb10e0225d86a440deb91a | /SaIL/learners/network.py | ae3d9a9822964c10ad2bd3a1082f9c85f8098009 | [
"BSD-3-Clause"
] | permissive | yonetaniryo/SaIL | cae7b9f2d6de372d23c8d810f94678ca65754eb1 | c7404024c7787184c3638e9730bd185373ed0bf6 | refs/heads/master | 2022-06-09T04:26:37.698199 | 2020-05-11T04:27:39 | 2020-05-11T04:27:39 | 262,938,282 | 0 | 0 | BSD-3-Clause | 2020-05-11T04:29:18 | 2020-05-11T04:29:18 | null | UTF-8 | Python | false | false | 7,362 | py | #!/usr/bin/env python
"""Generic network class for supervised regression
Created on: March 25, 2017
Author: Mohak Bhardwaj"""
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))
import numpy as np
import random
class SupervisedRegressionNetwork():
def __init__(self, params):
self.initialized... | [
"mohak.bhardwaj@gmail.com"
] | mohak.bhardwaj@gmail.com |
0ee0607eb4b262b59a73e5ce6677ce56a4a0858b | ff96afc5eb758f241231c39688a5a191d518a21a | /src/newsgroup_assembly.py | 9851e4f5ef69089f1b0c31c953dc74bf8fb08332 | [] | no_license | tstearns26-zz/we3tasks | f4e21a27a23971b7b8afdd9dbe1df6401a2cec3b | 0490e95bac60946a86276b14b818093201758f2b | refs/heads/master | 2021-09-02T03:27:34.323797 | 2017-12-29T23:16:02 | 2017-12-29T23:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/python
'''
Manipulates the 20newsgroup dataset for use
in a document classification task.
'''
import util as util
from sklearn.datasets import fetch_20newsgroups
def categorize_20newsgroup(base_dir):
corpus = \
fetch_20newsgroups(subset='train',
remove=('headers', 'footers... | [
"TRS@Thomass-MacBook-Pro-2.local"
] | TRS@Thomass-MacBook-Pro-2.local |
bb582568334743c9a2c3068a16a6d0fc7d34d133 | 5db42e4ac92e16da56f33b091ee57827401a8fc0 | /computadora.py | 6e60887ae124a549fb2faea248bb6a6a175e7621 | [] | no_license | matiasjrodriguez/Lab-MundoPC | ad6c21b87ccac00f1d5a5b7d72ba3907ecf6172f | 360d68f5065b07f7beb93f44b6c93269963f670c | refs/heads/main | 2023-06-14T23:35:57.176003 | 2021-07-13T04:49:45 | 2021-07-13T04:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | from mouse import Mouse
from teclado import Teclado
from monitor import Monitor
class Computadora(Mouse, Teclado, Monitor):
contadorComputadoras = 0
def __init__(self, nombre, monitor, teclado, mouse):
Computadora.contadorComputadoras += 1
self._idComputadora = Computadora.contadorComputadora... | [
"mellarodriguez29@gmail.com"
] | mellarodriguez29@gmail.com |
0dfc17d3dbf789aec8c4651d8e5c9717d3b0d94e | c284f7f6466b85e6832c40ecc6a647cbc47dfa94 | /Formant_detection/formant_spec.py | 8b391f9679995e459449ca4201a252a54ff52f02 | [
"MIT"
] | permissive | akshat1145/Blab-Lab | 381f8265998a23c46038a9c1ff1056d31f883e3e | 0a339f9bc38ed1cd2775ff4a61e9481a9a949947 | refs/heads/master | 2020-05-18T19:33:18.921024 | 2019-05-02T16:44:41 | 2019-05-02T16:44:41 | 184,610,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import csv
import numpy
import matplotlib.pyplot as plt
import pandas
colnames = ['F1', 'F2', 'F3']
data = pandas.read_csv('data/ExamplePredictions2.csv', skipinitialspace=True, usecols=colnames)
F1 = data.F1.tolist()
F2 = data.F2.tolist()
F3 = data.F3.tolist()
print(data)
plt.plot(data)
plt.ylabel('formants-F1,F2,F... | [
"noreply@github.com"
] | akshat1145.noreply@github.com |
af40836ae1e12cf5842b47bc19b85622481ed65d | 97118a484b20e188e6469fa8652f2a20f159745d | /awscrawler/awscrawler.py | 141cc2101a4ebd6c2d5851ef2194f5dc549c50af | [] | no_license | Justinyj/ruyiwebcrawl | 7cf7805d2d1b4a6c3fc7341ab47a2aba096a5323 | 6f7205b00f1a105f4505cf4ee571f2c53762dc3e | refs/heads/master | 2020-07-13T07:24:23.531659 | 2016-11-16T02:18:02 | 2016-11-16T02:18:02 | 73,888,981 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Yuande Liu <miraclecome (at) gmail.com>
from __future__ import print_function, division
from gevent import monkey; monkey.patch_all()
import hashlib
import json
import gevent
from rediscluster.redismanager import RedisManager
from settings import RECORD_REDIS, ... | [
"miraclecome@gmail.com"
] | miraclecome@gmail.com |
5fb73864ec7e125c60807a4ca31b47002c54600f | 88bab0f7d2e3673d03f08bb6009f6049aeb8bef0 | /open_publishing/catalog/thema.py | 734ccdc9447e8f1db602ab891def246b9efa27cd | [
"BSD-3-Clause"
] | permissive | open-publishing/open-publishing-api | f8b1067f141c0e74b42f1eece790bcdfe46de331 | d604bdc03df2a6d2e6c93dac54a4bd3d5110c519 | refs/heads/master | 2023-05-25T09:44:43.182448 | 2022-06-30T16:30:14 | 2022-06-30T16:30:14 | 119,554,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | from datetime import datetime
from open_publishing.core import SequenceItem, SequenceField
from open_publishing.core import DatabaseObject, FieldDescriptor, SimpleField
from open_publishing.core.enums import ValueStatus, FieldKind, ThemaCode
class ThemaSubject(DatabaseObject):
_object_class = 'thema_subject'
... | [
"info@openpublishing.com"
] | info@openpublishing.com |
3ac055a9a6220c3dfd3f62733cbe42df617c163e | 0bd929784f82ee9af3fba56a56395dc7f17deadd | /Files.py | b5416049a71b6812cd70f67cdce4040714abcf90 | [] | no_license | umesh-gattem/Python_Programs | 3b7854de20da6f816c4c0a94ec07886d8f8e48c9 | 1ff676220476815d6fd601c839487b8d56946994 | refs/heads/master | 2020-09-27T16:24:32.119645 | 2016-08-24T14:46:21 | 2016-08-24T14:46:21 | 66,472,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import os
import time
print(os.getcwd())
metadata=os.stat("Files.py")
print(metadata)
print(time.localtime(metadata.st_mtime))
print("") | [
"umesh.gattem@gmail.com"
] | umesh.gattem@gmail.com |
201ff5ba934487f5b70186fc163eb7af010765d7 | 54515bbd3c2ee1510e9c88f02e4f41cb3277cead | /python基础一/day11/03装饰器.py | abee68af2ddd2e264eac017575ff58f72349cd66 | [] | no_license | Li96224/python_notes | 04c0287bfa7b5e296bfdda50cb2741bae7a05ba6 | 469690882736a20c148439a0fc8bea2e33b1197a | refs/heads/master | 2023-04-09T07:47:15.019205 | 2021-04-19T15:21:49 | 2021-04-19T15:21:49 | 359,506,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py |
#装饰器形成的过程: 最简单的装饰器 有返回值的 有一个参数 万能参数
#装饰器的作用
#原则:开放封闭原则
#装饰器的固定模式
# import time
# print(time.time()) #获取当前时间
# time.sleep(10) #代码跑到这个位置的时候暂停10秒
# def func(): #第一步定义函数func
# time.sleep(0.1)
# print('12345')
#
# def timmer(f): #第二步定义装饰器函数 (因为第三步的调用此时的形参f的内存地址等同于函数func)
# def i... | [
"liyouming_21@163.com"
] | liyouming_21@163.com |
aa191c43266a3b7abde471820f7455bfd3435d0d | 7b9813e6c805edfeca538b69bd79119db439f284 | /siim-rsna-2021/exp/exp043/train.py | fc13cba7c650cb1167a2e07844f3e695a2796073 | [] | no_license | Ino-Ichan/SIIM-RSNA-Covid19-2021 | 61bfd0b2baef58f6b1673e02f45acaa998916a89 | caba038bbb403cb55753ecc68d5fb92ef93b1f8e | refs/heads/main | 2023-07-08T13:19:46.226739 | 2021-08-13T18:05:37 | 2021-08-13T18:05:37 | 373,910,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,606 | py | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
import random
import torch
from torch import nn, optim
from torch.utils.data import DataLoader, Dataset
from torch.utils.tensorboard import SummaryWriter
# from torch.cuda.amp import GradScaler, autocast
from torch.cuda.amp imp... | [
"sys.b11noway@gmail.com"
] | sys.b11noway@gmail.com |
9eb024b7757898fd4593dc5608aba65cc479734d | 9d3310fbf7f4b446e6eed2b6eea0f62abd20795d | /code/plans/rcp/api/daemon.py | 5612cac34343f1b63eff2f288e6da73c46b308d8 | [] | no_license | zywan/Kariz | c6718d99ae4da6a89b8d75c003ceec82d0cca73d | 40cd7889e97f6d331f8e19d6449145fbd35cba45 | refs/heads/master | 2020-09-06T20:09:40.597379 | 2019-11-06T19:33:18 | 2019-11-06T19:33:18 | 220,536,708 | 1 | 0 | null | 2019-11-08T19:45:06 | 2019-11-08T19:45:05 | null | UTF-8 | Python | false | false | 1,387 | py | #!/usr/bin/python3
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
"""
This is the daemon module and supports all the ReST actions for the
KARIZ cache management project
"""
# System modules
from datetime import datetime
# 3rd party modules
from flask import make_response, abort
import plans.rcp.rcp as rcp
i... | [
"mania.abdi287@gmail.com"
] | mania.abdi287@gmail.com |
c6dea658cec4b0e04a793d67a2558b2a13004941 | d5ff541c5e8cb00704746f44a195a69b4e3111fe | /tests/test_validators.py | a6e605e64c1d0f70b58eb49a1409a325b1a283bc | [] | no_license | lmergner/contrivers | 08b316fa9d90c9bced15575a52e5161990709dcd | 17b2c73e7fde848ccac7c227ccc180c9f7a909cb | refs/heads/master | 2021-06-26T23:49:50.941401 | 2020-05-20T01:51:58 | 2020-05-20T01:51:58 | 33,683,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
tests.test_validators
Test that when given a bunch of nearly correct isbn numbers, we get a
consistent return from our model
"""
import pytest
from contrivers.validators import validate_isbn
from contrivers.errors import ValidationError
@pytest.mark.parame... | [
"lmergner@gmail.com"
] | lmergner@gmail.com |
35282def5bdb7aadb2e05e234dcac7ec82210bdb | 0c210894d7b1b7e522021184953a8fcd7ccd2e10 | /DemoKS/DemoKS/asgi.py | e6af21bea476a5c1eafdb1988724a99b818c17ea | [] | no_license | Sidmach-Analytics/demo-knowledge-sharing | a3c1e02ce27ad8c5d3bb2fe8e4a064241deb53b6 | 4e1d6586c5578eeeeefae8fd91ab9d7e433f8127 | refs/heads/main | 2023-06-15T15:35:08.162843 | 2021-07-15T14:07:00 | 2021-07-15T14:07:00 | 386,292,955 | 0 | 0 | null | 2021-07-15T14:07:01 | 2021-07-15T13:05:12 | Python | UTF-8 | Python | false | false | 389 | py | """
ASGI config for DemoKS project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"opakunlejo@gmail.com"
] | opakunlejo@gmail.com |
c869af1d081ae09597c15bccd827427a7a7871d2 | eb8b5cde971573668800146b3632e43ed6e493d2 | /python/oneflow/test/modules/test_nllloss_grad.py | aa296ca08d11bd5060db05573afda9a749419506 | [
"Apache-2.0"
] | permissive | big-data-ai/oneflow | 16f167f7fb7fca2ce527d6e3383c577a90829e8a | b1c67df42fb9c5ab1335008441b0273272d7128d | refs/heads/master | 2023-07-08T21:21:41.136387 | 2021-08-21T11:31:14 | 2021-08-21T11:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,599 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | big-data-ai.noreply@github.com |
f653e6546975a09d84b6b3de8c352f49f3abf1bb | 54dfcbc5483f4530936b5416fd432a1278182df9 | /NotImplementedError.py | a5736d07c6050fc06abbd5254d0fa9900660112b | [] | no_license | airtondepauli/GeneticAlg | 22ba89449212d2abd5483b4612ebf7eea0a8bbd4 | f27eb5f457a3c9f381f28e572a5f24b2fce3ead0 | refs/heads/master | 2021-05-08T04:36:56.694969 | 2017-11-07T12:29:28 | 2017-11-07T12:29:28 | 108,352,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | class NotImplementedException(Exception):
pass | [
"airtondepauli@icloud.com"
] | airtondepauli@icloud.com |
97fbb34ca3b7555162df80865248f02f54ae4a03 | 47518f3524eec01a8ee045f108d612901214212c | /back_propagation_neural_network/nu1.py | 72998301ad845861a0ac24e658c7641c3a21c62c | [] | no_license | globe45/Face_Detection_and_Face_recognition | c2630f915f7e3877113589ecb4740c3159fe972d | 66ad3a3e928c2fb53171c9d4d138621eb90fe713 | refs/heads/master | 2020-05-07T22:55:20.735212 | 2019-04-12T09:00:37 | 2019-04-12T09:00:37 | 180,966,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,195 | py | import math
import numpy as np
class Connection:
def __init__(self, connectedNeuron):
self.connectedNeuron = connectedNeuron
self.weight = 0.1
self.dWeight = 0.0
class Neuron:
eta = 0.9 #learning rate
alpha = 0.15 #momentum rate
def __init__(self, layer):
self.dendro... | [
"golusingh9714@gmail.com"
] | golusingh9714@gmail.com |
2c77068c7b52da7b6bf28e8b8c235fbd59f0669f | 11277bc99ec0e7a3d47029acd7f5b7aff99bbd18 | /Electric_leakage_detection/CART_decision_tree.py | cf5031d0c98cc53fd699b7a64cdaf1b8e051853d | [] | no_license | woinews/Python_Practice | 4bbe6e5b3e11d1718113ba48b58e5063979bd424 | da6ddb9625e3b5eee5bd3ab2fb2ef09068062bab | refs/heads/master | 2021-09-20T09:47:14.929773 | 2018-08-08T05:48:34 | 2018-08-08T05:48:34 | 118,594,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | #-*- coding: utf-8 -*-
#构建并测试CART决策树模型
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
datafile = 'electricity_model.xls'
data = pd.read_excel(datafile) #读取数据,数据的前三列是特征,第四列是标签
#划分训练数据和测试数据,20%作为训练数据,80%作为测试数据
p = 0.8 #设置训练数据比例
train = data.iloc[:int(len(data)*p),:]
test = data.iloc[int(len(... | [
"inews101@163.com"
] | inews101@163.com |
fddcc4349d776fd2da91be99e9b383fe8e218faa | 45b180004c441663bd223219f8edef8c82481be1 | /venv/Lib/site-packages/pyrogram/api/functions/req_dh_params.py | e0048a2c0bc4917b98286ebc4405ffe94c2eea9d | [] | no_license | bradbann/mypy | a679e22fdd04525faf32a73934d813a45af1092f | 8bf6234be438aaf3ce2b69e4c10b2ce84eaccb98 | refs/heads/master | 2023-02-19T14:21:59.362385 | 2020-12-31T09:35:11 | 2020-12-31T09:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Softw... | [
"127575708@qq.com"
] | 127575708@qq.com |
26e3b29d4d7494f59bb52fe9c855cbe9b4f7933b | 83d75366add7d1be4b84b6fb4a68dbe973825ad8 | /girlfriend_problem.py | 4fa95c2a186018f7fbcc5a1766de2077a5932e4c | [] | no_license | namankumar818/python-lab | 30cd419c4f4b8d7af21059b3926920cc60347a8b | f835cab46877c30edf3e91fc0a8dd0abc300d65f | refs/heads/main | 2023-04-08T23:12:34.204855 | 2021-04-12T07:09:15 | 2021-04-12T07:09:15 | 347,914,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | a = int(input('enter the number'))
b = a//5
c = a%5
d = c//4
e = c%4
f = e//3
g = e%3
h = g//2
i = g%2
j = i//1
print(b+d+f+h+i)
| [
"noreply@github.com"
] | namankumar818.noreply@github.com |
397e2e95121b8ee4e22f84e8c02fce1ef7225116 | 073b278054195f8e616834457d73ac20cd9e9a14 | /settings.py | aa176135abb638373fde28c374c554092af61742 | [] | no_license | ndn247/socialapp_django-web-backend | cd5c538dcc763b5e313d22359fa934ae35602029 | 3b3f5bcd43b76243ba1206fb46b720173389dbcf | refs/heads/master | 2021-01-22T23:20:29.525532 | 2014-08-17T20:20:12 | 2014-08-17T20:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,194 | py | from __future__ import absolute_import, unicode_literals
######################
# MEZZANINE SETTINGS #
######################
# The following settings are already defined with default values in
# the ``defaults.py`` module within each of Mezzanine's apps, but are
# common enough to be put here, commented out, for con... | [
"namnguyen@Nams-MacBook-Air.local"
] | namnguyen@Nams-MacBook-Air.local |
dfcfe4783ffb3d4031454aa52750e1e8ea3df556 | 23d60f7a1f5a67c0dad6f2f56f602a089169197f | /venv/Scripts/pip-script.py | 9c0b85d15ddbe8c9fe2ea52a7a2ff3ed2b98b76e | [] | no_license | MitchelSmith/CSE4303-Homework | 420a1465f4185df527d3cb7fbf2ae9ac3e635b02 | 0653f289a34ac08a7f4d3100b76fc0fec7df6ad1 | refs/heads/master | 2021-09-11T22:01:59.420588 | 2018-04-12T19:31:40 | 2018-04-12T19:31:40 | 127,985,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!C:\Users\MitchelSmith\PycharmProjects\HMWK_01_mjs9110\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"mitchel.smith@yahoo.com"
] | mitchel.smith@yahoo.com |
a17fa80d06a5789c317f062c7882dbdd43a58392 | 451fbd1c7d0ea0e11292887fd44c1b798dff5237 | /src/OnlineHist.py | 5195f4dcc0366e2b61ed680ceca96fcf43561481 | [] | permissive | standmit/trigger_sync | cc0784296dc310b20651d567c92d498fc86a534b | 66919d43bc4658859e1cd8c9cadde4b8d7939cad | refs/heads/master | 2021-11-08T11:46:21.200412 | 2018-09-07T13:48:33 | 2018-09-07T13:48:33 | 147,806,413 | 0 | 0 | BSD-3-Clause | 2018-09-07T10:03:57 | 2018-09-07T10:03:57 | null | UTF-8 | Python | false | false | 3,006 | py | from PlotWindow import PlotWindow
from time_sync.msg import Event
import rospy
import sys, random
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import numpy
from std_msgs.msg import Int8
class OnlineHist(PlotWindow):
def __init__(self):
PlotWindow.__init__(self)
self.window_size=200
self.va... | [
"a.english@qut.edu.au"
] | a.english@qut.edu.au |
1b0d898135f055671f3b24c6c17b9d59191378e2 | fe8cc4c318a2122aee94ceea7b671d1c47c9844a | /ICPC/2020_Ronda_2/K.py | ce23a5634ba8cd8bd8d027a9b7d09c9776f03f07 | [] | no_license | YoshiBrightside/Ode-to-my-Failures | 4540955e21ba69406d8bbbf26c6e0d47bcd8ac57 | 3fbbb469473443bbfe9459317dbd0fe1ff65fab5 | refs/heads/master | 2021-06-27T08:45:42.037526 | 2020-12-06T04:50:11 | 2020-12-06T04:50:11 | 193,014,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | aux = list(map(int, input().split())) | [
"yoshibrightside@ciencias.unam.mx"
] | yoshibrightside@ciencias.unam.mx |
e95c10e9db030859ff4ea6047892ede842060093 | f10465390bb4fcef77beca526d208eacb482da1a | /StoBatchTinyImageNet/taylor_loss.py | 4c1f683b1eb42146a1554d2399187362f9ce932a | [
"MIT"
] | permissive | haiphanNJIT/StoBatch | 414d7560744fecd33347ab41f99ec9e660e17a39 | 08a6505b1fad609850de6c6bbaaa54c0200f0adb | refs/heads/master | 2022-12-09T16:15:11.249292 | 2020-09-17T15:10:35 | 2020-09-17T15:10:35 | 270,418,676 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | ########################################################################
# Author: NhaiHai Phan, Han Hu
# License: Apache 2.0
# source code snippets from: Tensorflow
########################################################################
'''
Taylor expansion of loss function, derived from Tensorflow implementation
''... | [
"noreply@github.com"
] | haiphanNJIT.noreply@github.com |
3f130e21c88ebe41f11f97ba448bfbe01fd97cc1 | 84339e288ff97f597c5d2ec247deff1556367049 | /tools/fcn/python/test_image.py | 6169b4a3b5dbec5412816bcfeed164001f191507 | [] | no_license | wozy7/oirds | 35576162ebff5ef13f13e2c5b2366982f5310664 | 684a40725613c1903eb00ae836817f4f7cd2dc80 | refs/heads/master | 2020-12-03T01:46:39.019692 | 2016-10-31T12:48:02 | 2016-10-31T12:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | #!/usr/bin/env python
#import h5py, os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
#%matplotlib inline
import lmdb
import gt_tool
import caffe
from PIL import Image
import numpy as np
import net_tool
import json_tools
def main():
from pathlib import Path
import os
import ran... | [
"robertson_eric@bah.com"
] | robertson_eric@bah.com |
0d9943ed4e11f7fca9b0884c8f356288d17d11cd | ac47f86e4fbd46c641575b2a8ccc401fd70c98e9 | /Solutions/Word Break II.py | 0c0cfc253ff7c176ba7aa1db126349087ad46716 | [] | no_license | jimmy623/LeetCode | 0a19f6e32c29e087e2d808153cb7a6e3794e2b67 | c4c1838bcde53484d3df654714bbbf6589c03c37 | refs/heads/master | 2021-07-12T06:02:14.973878 | 2021-03-14T16:03:26 | 2021-03-14T16:03:26 | 25,859,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | class Solution:
# @param s, a string
# @param dict, a set of string
# @return a list of strings
def wordBreak(self, s, dict):
dict = dict
n = len(s)
result = [[] for i in range(n)]
for i in range(n-1,-1,-1):
if s[i:n] in dict:
... | [
"jimmy623@gmail.com"
] | jimmy623@gmail.com |
8f577e608786ef296066682e54e8ce562420a1a7 | ba19b2e5f227d1aad3e2795bc800ca0b2f2ef6d5 | /gumbug/migrations/0001_initial.py | b361f77be238dab61f7800c35875c7cb951feb07 | [] | no_license | rheide/gumbug | 3a8b5f5c6e411cc3c3cbf8e892e71c5dc71af38a | 3d84144ae3cc323b680f9081f7b4406e5ee55427 | refs/heads/master | 2021-01-10T20:24:58.588628 | 2015-05-27T19:15:00 | 2015-05-27T19:15:00 | 29,777,119 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(verbo... | [
"rheide7021@gmail.com"
] | rheide7021@gmail.com |
8ad451accd000a3ae4dec3b79c77716d1339c9bd | e3e3c2e5528cb26d20fe52098d435109753895d0 | /testsite/migrations/0001_initial.py | 40353c99e872f9af59be5e960612e49ef6c0653e | [] | no_license | imasgo/my-first-blog | 02da59b7ff84de004c462dfde7d0927b7fb75371 | 4c03b4ba9bd7cc7dc922129c89096cabdee9c68c | refs/heads/master | 2021-04-30T08:49:24.085545 | 2019-03-09T16:20:50 | 2019-03-09T16:20:50 | 121,384,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-14 13:11
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | [
"sasmashka@gmail.com"
] | sasmashka@gmail.com |
c2cc23d29a6ae8dfcfbb5c3fa0be67c85ca989f9 | 94d8159881678baa2603bffd8844f999fd67f3e1 | /shopping/migrations/0002_add_to_cart.py | a57d237e25fbb7383a3fc10a776f646cb4c76d30 | [] | no_license | Arpitpandey99/FashionHub | d8316932ceda2f739b907a6e77448cd143fc98c2 | 10fea21aed91ea5764abceddb6021c03fa5c354e | refs/heads/master | 2021-05-17T09:05:52.173365 | 2020-10-02T16:13:51 | 2020-10-02T16:13:51 | 250,719,742 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-07-05 13:15
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency... | [
"you@example.com"
] | you@example.com |
18200e3b222e40e4b626e67f099e15776f35ac5c | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/Intangible/Enumeration/ContactPointOption/__init__.py | c377546d23d57ba356c23c62339579600488b793 | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, descriptionProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, nameProp
from schemaorgschemas.Thing.Intangible.Enumeration import supersededByProp
from schemaorgschemas.djangoschema import Sch... | [
"mihai.nechita95@gmail.com"
] | mihai.nechita95@gmail.com |
deb1d25871f48dfa55e52871aa3be1b16dc631b2 | 7aa2d9f5fe4a7f50751a552bd282133dca562a12 | /rest_project/rest_svc/blueprints/github/resources.py | 069e5cdfa135defaba3b86c957e1ccae91304b88 | [] | no_license | anbarfirdaus/REST-API | 7b5897a4aed1c7331e8fb140eb218c1f76b3c805 | ca91a4b7eddd20d2977df5bb94c9b5533615b4e5 | refs/heads/master | 2020-04-24T11:16:19.768447 | 2019-02-22T07:42:06 | 2019-02-22T07:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import requests
from flask import Blueprint
from flask_restful import Resource, Api, reqparse, marshal
from . import *
from blueprints import db
import logging, json
from flask_jwt_extended import create_access_token, get_jwt_identity, jwt_required, get_jwt_claims
bp_github = Blueprint('bp_github', __name__)
api = Api... | [
"muhammadridhorosa@gmail.com"
] | muhammadridhorosa@gmail.com |
9c9dec586f5fbb6ed71c859c29eb257a39aa98a8 | 8246e9fbdecdb37651e0d09497fd9428e434f33c | /help_subcategory/migrations/0002_auto_20180405_1018.py | 4af8bed9fafe7dced55ddbeb9e4b02205aa18aec | [] | no_license | rajeev1234/Landing-Page | 479995026ab01fc504a1e9502e7763dc04266009 | 4bfd22a6a1776907ba78b3dc9037064c820b049e | refs/heads/master | 2020-03-08T13:37:20.253252 | 2018-04-05T06:33:26 | 2018-04-05T06:33:26 | 128,162,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | # Generated by Django 2.0.3 on 2018-04-05 04:48
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),
('help... | [
"ccrcian.rajeev1@gmail.com"
] | ccrcian.rajeev1@gmail.com |
d38685aaff93073ac0957e743adc014a869d071c | fe2235917a8e6f942f71322e147f62ad2c2077e1 | /api/models.py | 29d0af0fc64b7ec8285aa2f8b2b313b2dfbe8af6 | [] | no_license | SergeyKorobenkov/softlogic-test | 732e1315ae83b27008c1f9dd5e3c3c91931f087a | b1af553ec2ceffab76400c920b3df3e0eb091e15 | refs/heads/main | 2023-01-04T04:52:33.863414 | 2020-10-25T23:13:10 | 2020-10-25T23:13:10 | 306,100,388 | 0 | 1 | null | 2020-10-29T06:37:15 | 2020-10-21T17:32:59 | Python | UTF-8 | Python | false | false | 558 | py | from django.db import models
import uuid
# Create your models here.
class Person(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
first_name = models.CharField(max_length=50) # имя
last_name = models.CharField(max_length=50) # фамилия
vector = models.TextFiel... | [
"skorobenkov@yandex.ru"
] | skorobenkov@yandex.ru |
b49275f3adf679d5fba6ab7e6dfdb203b288b68e | d89c4d1233cc22a5be2a17d0f7f20e2da0720931 | /templatebouger.py | 449da99eafda605e99c635a9f639548274c1acd1 | [] | no_license | Elmesias1010101/Drone | 80d91e310f1a8c73d1a3062de7d31527526d7fd5 | 23e86dc91062e9af2b3479a3afbf0ac2ab2fa87b | refs/heads/main | 2023-02-22T13:56:19.407755 | 2021-01-27T14:53:38 | 2021-01-27T14:53:38 | 333,486,217 | 0 | 0 | null | 2021-01-27T16:14:07 | 2021-01-27T16:14:07 | null | UTF-8 | Python | false | false | 1,300 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
#roslib.load_manifest('my_package')
import sys
import rospy
import cv2
from std_msgs.msg import Empty
from geometry_msgs.msg import Twist
import time
class MoveDrone:
def __init__(self):
self.takeoff_pub = rospy.Publisher("TOPIC_... | [
"noreply@github.com"
] | Elmesias1010101.noreply@github.com |
071635d98085a117d772f1e9af887314b38c064a | 786de89be635eb21295070a6a3452f3a7fe6712c | /ImgAlgos/tags/V00-03-81/SConscript | 46a394eac2bcf67065024e8823eee3892f255c81 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package ImgAlgos
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
99587659fc1db6efa0aaba60bf3bcce57ba885a7 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/cbc.py | 078fa65595708cd2badb67018da54e9688344b0c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
440f2021394e0c377a41cacae183ecb9f63c14c1 | ac7bc719e33a67b7950eba8b5c809d2d4c52f251 | /src/metageta/formats/fast_l7a.py | 4ba085254fb8c575ecfc1214d7093ec12eaf672b | [] | no_license | GRSEB9S/LandsatProcessingPlugin | 1351a154af3c6540f9256e02022958f717ff4fe0 | 3e04c4a25ae7898d086fd97c6c876796d75bf984 | refs/heads/master | 2021-05-28T00:11:22.597812 | 2014-11-24T14:03:02 | 2014-11-24T14:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,862 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2011 Australian Government, Department of Sustainability, Environment, Water, Population and Communities
#
# 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 ... | [
"m.ludwig@datalyze-solutions.com"
] | m.ludwig@datalyze-solutions.com |
aa7ff60ebffe59c5a3b27a0bad0c068ba95e96f2 | 1a99cfd56a1a4f55322e8ebe3db69ded7b8599da | /polls/urls.py | 1d554f1a24816c2f25208d2210aaa478f1b1504a | [] | no_license | liuyongliuLYL/Django_myfirstsite | 544dd38c2acbb0f926875748637253b7cfbd5163 | 17d48da4ffd1fb447743ae9ce0c0283656ef563f | refs/heads/master | 2023-03-15T06:29:47.420584 | 2020-06-13T10:29:51 | 2020-06-13T10:29:51 | 271,985,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('books/', views.BookListView.as_view(), name='books'),
path('book/<int:pk>', views.BookDetailView.as_view(), name='book-detail'),
path('authors/', views.AuthorListView.as_view(), name='autho... | [
"1365989980@qq.com"
] | 1365989980@qq.com |
f27f98c738809a0072e484cfbeb1bd4cb90e4844 | d05bb5c8bec975eceb1aad9959c3a05ba296b082 | /example/migrations/0005_comment.py | 96b19481e536dba887d7a487e596bb8b471315ca | [] | no_license | simonescob/materialize-django | 157f4d4ac1cb5319a2ada815998bcd4f5fc9a846 | 8ab1a5c1f962557d5f7454e18a6c7d03f02bfb5c | refs/heads/master | 2021-06-13T03:51:02.968840 | 2017-03-12T21:13:45 | 2017-03-12T21:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-11-27 17:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('example', '0004_auto_20161120_0012'),
]
operations =... | [
"snescobar25@gmail.com"
] | snescobar25@gmail.com |
d9e7f782354383b52a7fce0b2ad532a240368d69 | fe9387cb0bd07beb66d38d099834ebd91be1681c | /escola/models.py | e26024322526b8092a894163de2b71dfbd0d197b | [] | no_license | ibsenriou/alura-djangorest | cf2088e58b81d5b358664d7f10946e14184586b1 | 7cf0bfd72758637b71a08e17356068a4fd0cd946 | refs/heads/main | 2023-07-17T09:06:18.611999 | 2021-08-31T17:13:07 | 2021-08-31T17:13:07 | 401,783,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.db import models
class Aluno(models.Model):
nome = models.CharField(max_length=30)
rg = models.CharField(max_length=9)
cpf = models.CharField(max_length=11)
data_nascimento = models.DateField()
def __str__(self):
return self.nome
class Curso(models.Model):
NIVEL = (
... | [
"ibsenriou@hotmail.com"
] | ibsenriou@hotmail.com |
bbb434dc4c82535d7eb8b5872ee58153af8988e0 | 397f7fb16ff977c756d22c8fba406d9ec8d9c160 | /espnet/nets/pytorch_backend/transformer/attention.py | 1f8a2264b70af058e2a7e960bc81136a2fcf7d7b | [] | no_license | gothiswaysir/espnet_Word-Scale_attention_causal | bfd3f921b467c21e0ca3edc6c129acabae83600c | a9696cceecc5411b968100085c5d57853056b400 | refs/heads/master | 2023-03-12T11:30:47.181972 | 2021-02-15T06:41:29 | 2021-02-15T06:41:29 | 337,008,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,987 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Shigeki Karita
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Multi-Head Attention layer definition."""
import math
import numpy
import torch
from torch import nn
import time
class MultiHeadedAttention(nn.Module):
"""Multi-Head Att... | [
"xinyuan_zhou@yeah.net"
] | xinyuan_zhou@yeah.net |
3f21e3fa98c9c46babe5fbcfec20c394f406500f | cf06008b5bd00f5fe539a5307decc932760908f5 | /198__House Robber.py | 9a85425e02d529b5444190ff5b878ca70a7d6de5 | [] | no_license | chengcheng8632/lovely-nuts | 47afc039da3c01f9f37058aacf2fc67a2cce58ca | eb5f6488c875c107743f84a44cbbf55ff7ed3296 | refs/heads/master | 2020-07-02T01:27:12.069402 | 2018-07-24T14:46:32 | 2018-07-24T14:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) == 0:
return 0
if len(nums) == 1:
return nums[0]
if len(nums) == 2:
return max(nums[0], nums[1])
F = [0, nums[0], ma... | [
"noreply@github.com"
] | chengcheng8632.noreply@github.com |
d3e69ba53e4990fc4570a66ade1318dfb5b7c305 | 65d05b70d719779205586a0ec725b7b0c64eae2e | /sockets/tsTservSS.py | 5ed5668afc8f376f405619d9839160a54ab9ea25 | [] | no_license | Hypocisy/demoPythonCodes | e4e932b57f674744ddf7395249da854835c6ae5f | fd016aab748b7bb809527269110f1523bbf03141 | refs/heads/master | 2023-07-12T00:09:36.723300 | 2021-08-14T06:47:02 | 2021-08-14T06:47:02 | 395,691,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from socketserver import StreamRequestHandler as SRH
from socketserver import TCPServer as TCP
from time import ctime
HOST = "0.0.0.0"
PORT = 21567
ADDR = (HOST, PORT)
class MyRequesthandler(SRH):
def handle(self):
print("...connected from:", self.client_address)
self.wfile.write(
byt... | [
"1137943609@qq.com"
] | 1137943609@qq.com |
b189a5b77a082303fba6354e224a8c68aec729e1 | a0064e0c00e3245b83895a86ade76e2546befc5e | /EspiralColor.py | edee7e792143bf264dc83c6798663188a8e5d2c0 | [] | no_license | KarolDev/python | 7380d32f55b614cd098389113701d9bb18d02314 | dc6adc2bff5868378e9115147412038026e1e74c | refs/heads/master | 2020-12-29T11:17:11.815015 | 2020-03-03T01:44:03 | 2020-03-03T01:44:03 | 238,589,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import turtle
tortuga = turtle.Pen()
turtle.bgcolor("black")
colores = ["hotpink","aquamarine","mediumorchid","steelblue", "pink","blue","yellow","violet"]
lados = int(turtle.numinput("Número de lados ", "Cuantos lados quieres tener (1-8) ?",4,1,8))
for x in range(360):
tortuga.pencolor(colores[x%lados])
tortu... | [
"lav.lorak.olleh@gmail.com"
] | lav.lorak.olleh@gmail.com |
dbe3b8c0312c7b00b15ccb536cd6663abff697fe | a0e79cef4779a9eedd512158e73c166bf6846110 | /NADE/deepnade/buml/TrainingController/EarlyStopping.py | 0ff15e3b222c3060680dc2ee1bd2a05f3a8001e2 | [
"BSD-3-Clause"
] | permissive | rogen-george/Deep-Autoregressive-Model | 9ca5135ed1d8c0c5c442cd95d75467208d6b0acd | 8d567ecb6d59b3003fba9aab2a0693dab67514ef | refs/heads/master | 2021-10-25T22:50:03.508798 | 2019-04-08T00:56:33 | 2019-04-08T00:56:33 | 172,263,626 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import numpy as np
from TrainingController.TrainingController import TrainingController
class EarlyStopping(TrainingController):
def __init__(self, measurement, n_iterations, maximization=False):
self.measurement = measurement
self.n_iterations = n_iterations
self.maximization = maximizati... | [
"roli.khanna1995@gmail.com"
] | roli.khanna1995@gmail.com |
ab9574a4fcecc7e98e1f184414e1f93a44731ef6 | df3ec0c046bdb722347bf8ddbcfafdefc974f7d6 | /405_422_428_445_Dharahara_Simulation/ep21_texturing_from_framebuffers_shadow.py | f4d9435f8f9d95642c91a14c393ce59ca67db7b8 | [
"MIT"
] | permissive | PawanPokhrel/Computer-Graphics-074-BEX | 87fac970000815f5d09be80c5818572ff0f13e96 | 77d537c020f4963a752cd603c7721c3c435c1526 | refs/heads/master | 2021-02-23T19:49:35.644098 | 2020-03-13T06:08:01 | 2020-03-13T06:08:01 | 245,326,212 | 0 | 0 | MIT | 2020-03-06T09:04:16 | 2020-03-06T04:01:11 | C | UTF-8 | Python | false | false | 8,434 | py | import glfw
from OpenGL.GL import *
from OpenGL.GL.shaders import compileProgram, compileShader
import pyrr
from TextureLoader import load_texture
from ObjLoader import ObjLoader
import numpy as np
from camera import Camera
cam = Camera()
WIDTH, HEIGHT = 1280, 720
lastX, lastY = WIDTH / 2, HEIGHT / 2
first_mouse = Tr... | [
"dipendrarajpanta1@gmail.com"
] | dipendrarajpanta1@gmail.com |
72b2a9746aaf9ac910a89bae175b63ad37ae3ba1 | af6187edd8b92d8edeb5a0127532e16905cc01c6 | /FileServer/appcode/Utils/logger.py | 6fb8f1f911d586ebff89a91129f221d70e306b0e | [] | no_license | ryunseok/BookServer | d7294a3e742b474b43403933502b9f1158a82fa7 | 89285d839ab4a252a12f471d498d43d23db49fe8 | refs/heads/master | 2020-03-11T06:30:21.454357 | 2018-04-22T01:33:47 | 2018-04-22T01:33:47 | 129,831,692 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import os
import logging
from os import F_OK
from stat import ST_MODE,S_ISDIR,S_ISREG
from datetime import date, datetime
class Logger() :
def __init__(self, log_tag, debug_mode, param):
self._logger = logging.getLogger(log_tag)
if debug_mode is True :
self._logger.setLeve... | [
"ryunseok@gmail.com"
] | ryunseok@gmail.com |
41fa2d9fa59b4b2c9abcdace97a3222472d4d998 | cac18bdef57fd233b2a0305927a0144bb5ac4a23 | /project/hunt/utils.py | 7563506a63895d21813f65d0ad8740a1edf105ae | [] | no_license | kohoto-san/press | a99e8340bea33b49299ee7461257b5d0f02d2755 | 008c26654a5538860f9fc45d108e70a0a9187722 | refs/heads/master | 2021-01-10T08:31:51.579187 | 2016-02-16T12:26:39 | 2016-02-16T12:26:39 | 47,452,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py |
from .models import Profile
from django.core.files import File
from django.core.files.temp import NamedTemporaryFile
# import urllib2
import urllib.request
def createProfile(social_account, user):
extra_data = social_account.extra_data
try:
profile = Profile.objects.get(user=user)
is_new_... | [
"kohotosan@gmail.com"
] | kohotosan@gmail.com |
c2212cccc185ab01f22af3be210f1abc35093520 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/BsJPsiKst/python/BsJPsiKst/OurSites.py | 1f512c57497b1d85460fafcb4fa6ccb1a2a6621b | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import os
SITE = "None"
if "cern.ch" in os.environ["HOME"]: SITE = "CERN"
if (0>1) : SITE = "USC" ### Write here appropriate condition
if "/lhcb/users/" in os.environ["HOME"] and not "cern.ch" in os.environ["HOME"] : SITE = "CPPM" ## """
if "/lhcb/users/akar" in os.environ["HOME"] and not "cern.ch" in os.environ["HOME"... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
d771f7e102efb4b382699be33662ce108f210447 | 2cd0a84aefb8a7141d1c8da99845a8ada0cc009c | /tensorflow/python/client/timeline.py | f6aad8d04df2c2691db203032d906f92d7242051 | [
"Apache-2.0"
] | permissive | hholst80/tensorflow-old | d466cee96eac717524ab8e4ee85275ce28bb5d68 | 79df325975402e03df89747947ff5b7f18407c52 | refs/heads/master | 2022-12-20T22:07:40.427519 | 2016-05-13T09:57:24 | 2016-05-13T09:57:24 | 58,914,336 | 1 | 1 | Apache-2.0 | 2022-12-09T21:52:14 | 2016-05-16T08:00:04 | C++ | UTF-8 | Python | false | false | 21,382 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"henrik.holst@frostbite.com"
] | henrik.holst@frostbite.com |
9d6cd4dc34c92023e5be0b25eac46b3aeccd5dc3 | 9b9fea16b0d763c0d7975ab6fac43a92f7ee60cc | /testCases/conftest.py | a9d54e0a79fa32c6418128e588b66a26b76fc4ed | [] | no_license | sumits000/seleniumframework | 0039b3ee83ef2ef2577352314cac13e082a66fc9 | fa82ded3e99e00158de5c7b307e5ce048c424f28 | refs/heads/master | 2022-12-19T21:09:29.554870 | 2020-09-23T06:57:15 | 2020-09-23T06:57:15 | 297,879,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # from selenium import webdriver
# from selenium.webdriver.common.by import By
# import time
# from webdriver_manager.chrome import ChromeDriverManager
# from webdriver_manager.firefox import GeckoDriverManager
# import pytest
#
#
# @pytest.fixture()
# def setup():
# driver = webdriver.Chrome()
# return driver
... | [
"sumit@appventurez.com"
] | sumit@appventurez.com |
423e0a0cd0644991a0f575f5474c0580e00884c2 | f1b8f1ab3ef97addc05c00a3d5b41c066d9fb80d | /mongodbTest/0insert&query.py | 3f1d951b8255b125faa0d12c923bb4c3ef754c8f | [] | no_license | chunlin99x/learn-note | 65c7869c65943d639fc53c4994760dda9197a58e | bbd58ef51ed93d575b80a5d5a41113f37c5ded01 | refs/heads/master | 2023-07-27T12:39:24.055233 | 2020-09-11T21:11:26 | 2020-09-11T21:11:26 | 175,378,290 | 0 | 0 | null | 2023-07-11T13:16:24 | 2019-03-13T08:30:38 | JavaScript | UTF-8 | Python | false | false | 1,476 | py | from pymongo import MongoClient
conn = MongoClient("127.0.0.1",27017)
db = conn.mydb # 连接mydb数据库,如果没有就自动创建
# 创建 table
col = db.col
## 插入数据
#col.insert_one({"name":"zhangsan","age":18})
#col.save({"name":"chunlin","age":26}) ## api过期 不推荐使用
mydict = { "name": "RUNOOB", "alexa": "10000", "url": "https://www.runo... | [
"noreply@github.com"
] | chunlin99x.noreply@github.com |
37e59b7351d31e74cd94ef6632d9b2b1ba569f6c | 2c154c87c1609c2772176f69087ff9d2eeffde2b | /gullyboy.py | 39d2744f7b610a8a4d2fe2c240884798612719f2 | [] | no_license | Anvesh8263/python-lab-30 | 8edeba03e2601797ba7e81bcf8eb9327e622644d | 629516bff04b698d956e90d0a2207a1da7810928 | refs/heads/main | 2023-08-29T12:12:01.027985 | 2021-10-16T18:15:07 | 2021-10-16T18:15:07 | 349,360,571 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | st = input()
# st = st.split()
# st = ''.join(st)
st = st.replace(' ','')
node = int(input())-1
rp = int(input())
result = (st[node:]+st[:node])*rp
for i in result:
if i !=' ':
print(i,end =' ')
| [
"noreply@github.com"
] | Anvesh8263.noreply@github.com |
e8c5109c73ce40ce91690f71d3063378467a257d | 31795853bfed5eea199f1e330011c9c6045b250b | /PY1_Comments/comments.py | 41630bbad0c5cfcdbfb34cde657bc5270694e6ca | [] | no_license | britsa/Python_3.8.3 | 733a95f55bd30328dbf0b0d227ce08ffba1c0949 | 10cc462bedea5a4a00b8818c6b0f0f678f3323c5 | refs/heads/master | 2022-11-06T10:57:05.523593 | 2020-06-26T13:48:49 | 2020-06-26T13:48:49 | 274,488,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # comments
# This a comment - print('Hello World')
# The above print() do not work
print('# But this is not a comment') # The statement is enclosed with apostrophes.
# The above print() will work
'''
We hope that you understood the usage of comments.
You are seeing this text inside of multi-line comment
''' | [
"askregins@gmail.com"
] | askregins@gmail.com |
b48badeb049d7766f7d00cedafce6f64555028bc | b4038c217614fbded419056a249d05e8be9cab0a | /lib/scripts/prepare_data_stage2.py | 5b297585547c60895c03771729c15cf0c99069f4 | [] | no_license | ruslangrimov/nfl_impact_detection | dd93230000503c5e2b761424275a14ffd216e5b2 | 69a5b2a61d5ff35ceaa87737282aa107c9218591 | refs/heads/main | 2023-03-03T06:13:04.467054 | 2021-02-19T22:01:23 | 2021-02-19T22:01:23 | 327,161,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | import cv2
import sys
import os
import argparse
from functools import partial
from tqdm.auto import tqdm
import multiprocessing as mp
sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))
from lib.utils import imsave, get_print_fn
from lib.paths import DATA_PATH, WHOLE_IMG_PATH
def process_video(v... | [
"grimovr@gmail.com"
] | grimovr@gmail.com |
7b12f5dabb27a8a786b209d848dfd9d67f0a6331 | 8d402df39c18eba7e1c86c762f205c944357c5df | /scripts/make_class_flags.py | 49b003b375158acb7924de795302b62f4e71ed01 | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 1,259 | py | import os
import builtins
dest_dir = os.path.join(os.path.dirname(os.getcwd()), "www", "src")
with open(os.path.join(dest_dir, 'py_flags.js'), 'w', encoding='utf-8') as out:
out.write('(function($B){\n' +
'$B.builtin_class_flags = {\n')
flags = {}
def add_flag(flag, attr):
if flag ... | [
"pierre.quentel@gmail.com"
] | pierre.quentel@gmail.com |
4bb1a29c46798bb67389ef43064968bf383fdcc1 | 3fdcb37a6f6c225cbb28da5c671ed94dce96b018 | /task1_calculator.py | adda1dbb8a9ca5ab934b17df93a7446705803bbc | [] | no_license | lueked/audiocc-task | b514824243dae27ff5b71321adc9736c814cbdbc | 248233201354302bf3fc8295715910288273d718 | refs/heads/master | 2023-03-05T21:06:24.385726 | 2021-02-08T13:26:33 | 2021-02-08T13:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | class Calculator(object):
def __init__(self, expression: str):
self.expression = expression.replace(' ', '')
self.index = 0
def calculate(self):
if not self.expression or self.expression == '':
return 0
return self._calculate(self.expression)
def _calculate(self... | [
"kshitj.saxena@mecuris.com"
] | kshitj.saxena@mecuris.com |
89a8502417480c52d16a34e7d2d399c78dfc8c1f | 13d0ad57a2f5deb83593e73843be7cbeeaad8d3d | /medium/top_k_frequent_words.py | e4f059cf48137b020c8b29784284c2f730070320 | [] | no_license | mwong33/leet-code-practice | b21f277d73b30df9e681499733baad07979480a1 | 9c0e6294bf3b3614b185f0760906abad60f8d9b6 | refs/heads/main | 2023-03-29T20:35:43.841662 | 2021-03-31T22:05:44 | 2021-03-31T22:05:44 | 317,382,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import heapq
class Solution:
# Dictionary + Heap - O(words + k * log(words)) time O(words) space
def topKFrequent(self, words: List[str], k: int) -> List[str]:
word_dict = {}
heap = []
for word in words:
if word not in word_dict:
word_dict[word] = 1
... | [
"noreply@github.com"
] | mwong33.noreply@github.com |
a13eb009f3fdd84d7c4f91ea464792329029e5dc | fe499e3d2fe4c9050ce189c723d551f82b8ede36 | /boltzmann/tests/tests.py | fbde74abff0e17e5d06674da9e93eef0af65d72c | [
"MIT"
] | permissive | ARLM-Attic/boltzmann | 53bea070a4996388dccf36b7f2e830e46df3762c | 95741cacee7684752bb77d37462d2b8045ae54f2 | refs/heads/master | 2021-05-11T14:00:16.881190 | 2017-01-19T16:13:19 | 2017-01-19T16:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,870 | py | '''
Created on 20160917
Based on original works done for OXT in January 2015
@author: LaurentMT
'''
import os
import math
import sys
# Adds boltzmann directory into path
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../")
from boltzmann.linker.txos_linker import TxosLinker
from datetime import da... | [
"laurent.salat@bbox.fr"
] | laurent.salat@bbox.fr |
1960b50186b779acd635b4d5c64bbe995e7e4971 | b98c79303a74069d78f2d5479a86c93744518c84 | /clustering/tools.py | e548211955a8b8b5c1d8ee8f9f200eee4de762a5 | [] | no_license | DanielLSM/clustering-trajs | ca9e43b88247d034c1be66e3ae8240e3272bde1b | fa88650c1fd9ccf43dcd72495d7465a92bc5db98 | refs/heads/main | 2023-04-23T05:52:22.609774 | 2021-04-26T17:52:34 | 2021-04-26T17:52:34 | 361,827,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import numpy as np
import pickle5 as pkl
from datetime import datetime
DATA_DIR = "../data/raw/"
PROCESSED_DIR = "../data/processed"
def save_pickle(obj, directory, name):
with open(directory + name + ".pkl", 'wb') as handle:
pkl.dump(obj, handle, protocol=pkl.HIGHEST_PROTOCOL)
def load_pickle(director... | [
"daniellsmarta@gmail.com"
] | daniellsmarta@gmail.com |
34247801de12ae00efba811166f8e0d13c3ee1f6 | 8510a309405fd924e2d4d9a4e2d0dbb650ffe8dd | /gym_gamblers/envs/__init__.py | 1c0a5b75537ce69801ae2f59cf277a67f8e7c789 | [
"MIT"
] | permissive | prasad-madhale/gym-gamblers | b289ac046703097cb4e3f4ae92b7563d4d21ee65 | 99f30ef70609b499eb2877c01d77b5723d7bbcd1 | refs/heads/master | 2020-04-12T16:55:00.267144 | 2019-01-04T20:48:44 | 2019-01-04T20:48:44 | 162,627,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from gym_gamblers.envs.gamblers_env import GamblersEnv
| [
"prasadchelsea33@gmail.com"
] | prasadchelsea33@gmail.com |
962fbb14795b9c15bc3ea3931f9575d595e59c8c | 66ad6bd8e1743ff1bce5b0f6860041de0ba5d91e | /dynamic_input_clerigo.py | d8ef12929a4c7510da6aa79237e5f60d73182cfe | [] | no_license | MarkClerigo/fcpc_python_projects | d6ff9d1a8188596f72e31d92273bb0273a7665b6 | 2236484a62adb78eed65b667a426252ef905516a | refs/heads/master | 2020-04-08T09:56:55.917797 | 2019-03-12T01:50:51 | 2019-03-12T01:50:51 | 159,246,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #accept input form user
name = input("Enter your name:")
print("Your name is: " + name)
#accept numerical input -- int()
fnum = int(input("Enter First Number: "))
snum = int(input("Enter Second Number: "))
to_int_value = int("10")
print(fnum + snum)
print(to_int_value ** 2)
| [
"noreply@github.com"
] | MarkClerigo.noreply@github.com |
05a2150b0affb55aa6e432500723bc7299ab5630 | e45bc0309496d9bd25e1121e01c99811cf4db746 | /Training CD/IDA Pro/IDA Plug-ins/IDA Python/1.1.1/python/init.py | c81483d3d0b97a46c4280f9ecf6f4fc6e3fdcedb | [
"MIT",
"BSD-3-Clause"
] | permissive | fengjixuchui/Malware-Analysis-Training | d9165c75591934181586c4fb3e4db1dfa8a48c72 | 08ad2a088bf5e7230476ab823cad9bae2c00de58 | refs/heads/master | 2021-01-08T15:31:14.505959 | 2020-02-28T14:20:35 | 2020-02-28T14:20:35 | 242,067,909 | 0 | 1 | MIT | 2020-02-28T14:20:37 | 2020-02-21T06:12:40 | null | UTF-8 | Python | false | false | 6,383 | py | #!/usr/bin/env python
#------------------------------------------------------------
# IDAPython - Python plugin for Interactive Disassembler Pro
#
# Copyright (c) 2004-2009 Gergely Erdelyi <dyce@d-dome.net>
#
# All rights reserved.
#
# For detailed copyright information see the file COPYING in
# the root of t... | [
"pedram.amini@gmail.com"
] | pedram.amini@gmail.com |
1c0597fc90c5ca82d46b382016f2caf6ba0ded43 | 6a9721174baba35c3e2536d6b5fd1e5386c96b77 | /venv/bin/easy_install-3.7 | 03b60a646b5153b5f3f27a34f7213c5465024d2f | [] | no_license | SolidRocketBooster/SDA_DevOps_tests | 80e8f2a6c3cf0c251129e3b0b51262c2c8ee9e33 | fd6ed2dc4b857e117b029ee3f57e97993e258eef | refs/heads/master | 2020-04-28T18:33:54.953081 | 2019-03-20T17:01:56 | 2019-03-20T17:01:56 | 175,482,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | 7 | #!/home/srb/PycharmProjects/end_of_story/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"aleksander.wojtal@tieto.pl"
] | aleksander.wojtal@tieto.pl |
55d98fd560361bfd4ff2ee4b424703be01d1342b | 26774b0a8133955c05fe9b8973e011f0730241c6 | /MyAnimations/box/box_animation.py | 7b0679217a3287df28a69fa3b81db187c85533e6 | [] | no_license | codecxx/manim_sandbox | 056d7b1654738b5c0f7104dd73a157ff4f7d6d1c | 2d546b99403018bd1362bbe58b45683762e32716 | refs/heads/master | 2022-11-24T03:29:04.077646 | 2020-07-25T13:43:04 | 2020-07-25T13:43:04 | 282,556,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #from manimlib.imports import *
from manimlib.imports import *
from MyAnimations.box.box_object import *
class BoxAnimation(Scene):
def construct(self):
#Set objects
box=Box()
note=NoteBox()
label=TexMobject("A",color=BLACK)
#Set properties
note.set_heig... | [
"919791421@qq.com"
] | 919791421@qq.com |
25e591adef5ca985e8cab7d3e2b459c786644f81 | f999bc5a6e0da4f0904ef2112d7b6191f180ca5b | /180Geeks/Arrays/Leaders in an array.py | 781946d8a3bb6668110d53804e507f78136e1677 | [] | no_license | ritesh-deshmukh/Algorithms-and-Data-Structures | 721485fbe91a5bdb4d7f99042077e3f813d177cf | 2d3a9842824305b1c64b727abd7c354d221b7cda | refs/heads/master | 2022-11-09T00:18:51.203415 | 2018-10-08T22:31:05 | 2018-10-08T22:31:05 | 132,504,988 | 0 | 1 | null | 2022-10-23T00:51:15 | 2018-05-07T19:07:33 | Python | UTF-8 | Python | false | false | 550 | py | # Write a program to print all the LEADERS in the array.
# An element is leader if it is greater than all the elements to its right side.
# The rightmost element is always a leader.
arr = [16,17,4,3,5,2]
size = len(arr)
def leaderfunc(arr,size):
leader = arr[-1]
l = []
l.append(leader)
# print(leader)... | [
"riteshdeshmukh260@gmail.com"
] | riteshdeshmukh260@gmail.com |
ab1c997d8bee9c087d806f0f271e68e964de7b0f | ffe019bf25ca51dc1e30d04bf51823107ca58089 | /skmultiflow/demos/_test_prequential_mol.py | 3e232030a016f4f31b36e595d596da3efe1e988b | [
"BSD-3-Clause"
] | permissive | yupbank/scikit-multiflow | dc759285bf1b095681cb7094baaa9b0356a068f2 | ef4a37144bb7d377cfd358643cd3f34e9056ea40 | refs/heads/master | 2021-09-11T09:50:11.918721 | 2017-11-30T15:44:38 | 2017-11-30T15:44:38 | 112,630,179 | 1 | 0 | null | 2017-11-30T15:52:30 | 2017-11-30T15:52:30 | null | UTF-8 | Python | false | false | 2,153 | py | __author__ = 'Guilherme Matsumoto'
from sklearn.linear_model.stochastic_gradient import SGDClassifier, SGDRegressor
from sklearn.linear_model.passive_aggressive import PassiveAggressiveClassifier
from sklearn.linear_model.perceptron import Perceptron
from skmultiflow.classification.perceptron import PerceptronMask
fro... | [
"guilhermekmatsumoto@gmail.com"
] | guilhermekmatsumoto@gmail.com |
51bccdfb0ed05ff0a075f4464cd01bc92b7d52bd | 06733bdb8fdc692631842253884a7079ff5917cc | /unittests/test_overrides.py | a6ad18a4b4533398d1a8cc5ddef4091855a8eaf6 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | pombredanne/pygccxml | ef9303cf6e0d26685219493e69ee32e9526c4c77 | 27aa1a805b0e1d5bdb24eef64f7b39873adb4627 | refs/heads/master | 2023-05-14T00:39:54.972935 | 2021-05-25T19:12:20 | 2021-05-25T19:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | # Copyright 2014-2020 Insight Software Consortium.
# Copyright 2004-2009 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
import unittest
from . import parser_test_case
from pygccxml import parser
from pygccxml import declarations
class Test(p... | [
"joe.snyder@kitware.com"
] | joe.snyder@kitware.com |
5314bcd247fba7ad6e690fc9f393d04c07ee36bf | e03c6f8453396cf3743e376e775f0f760b94f355 | /backend.py | afe88e2346a2587a0b31902d7e74fd095260569e | [] | no_license | tommynti/Digital-Library | 6d044aa4dc69911d072c263d7aa4144003d0c68b | 6271c950207238f1c9dbb8a2e14176fb0e0b806d | refs/heads/master | 2022-12-24T18:42:53.252521 | 2020-10-01T12:47:24 | 2020-10-01T12:47:24 | 300,272,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | import sqlite3
def connect():
conn=sqlite3.connect("books.db")
cur=conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS booK (id INTEGER PRIMARY KEY, title text, author text, year integer, isbn integer)")
conn.commit()
conn.close()
def insert(title,author,year,isbn):
conn=sqlite3.connect("boo... | [
"work.with.ntinas@gmail.com"
] | work.with.ntinas@gmail.com |
0d48d030220a35939e0381ff0776d35c898236d0 | 849d27e666651be44849999d1cca75df5c9e68ee | /testcases/tc3.py | b60fb4a22a6118e9cfb2c0182bef1c3575aaafaf | [] | no_license | smominnt/Cpp-Python | a28279ac63328b9645a2a94c7e60994925a36259 | d73b2e0fc3380eefca00af1648bbbaf71bc1ac17 | refs/heads/master | 2020-06-26T17:55:34.391504 | 2019-07-30T18:27:59 | 2019-07-30T18:27:59 | 199,705,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | def f():
print("recursive function")
return f()
def f1(n):
if n==1:
return 1
else:
return n * f1(n+1)
f()
f1(5)
| [
"noreply@github.com"
] | smominnt.noreply@github.com |
425b5455d764d14857902124565390053183ac18 | fcbe63e53f90be593975d897c84633354dd92684 | /most.py | ab91bb32f0707cd52189fa80f92da63af75b66df | [] | no_license | Kuljat991/Diplomski-rad | d631017c7dc73234abeeccf112f83d85227d8221 | f23fa72a6862b5087b7a46ca8888e2da912da753 | refs/heads/master | 2020-03-22T00:43:51.967626 | 2018-06-30T16:08:38 | 2018-06-30T16:08:38 | 139,262,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,965 | py | # -*- coding: utf-8 -*-
#solver = icoFoam
#foamMonitor -l -r 2 -i 5 postProcessing/residuals/0/residuals.dat
#gdje su dodatne oznake:
#-l oznaka za logaritamski y skalu (koristi se za residuale)
#-r 2 refreshanje grafa svake 2 sekunde
#-i 5 možeš ga zatvorit 5 sekundi nakon što se prestanu zapisivat podaci
# funkcija ... | [
"kuljat991@gmail.com"
] | kuljat991@gmail.com |
c57a263d7d3c8f34cde58823cfa794bb82d9788f | 71b72a7caa66c1453203c972c86aaa703989a6b1 | /djangowebsite/settings.py | 3f5bb4f3baa09bafa413e91ddc3297a16852b9f2 | [] | no_license | lego666/pythondev | 786d118951281d1ad51731799567833a5529b6f5 | a8a1bb99156078c1f591fc26f717c67cf8585a11 | refs/heads/master | 2021-03-20T15:03:41.105648 | 2020-03-14T07:46:07 | 2020-03-14T07:46:07 | 247,215,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | """
Django settings for djangowebsite project.
Generated by 'django-admin startproject' using Django 2.2.11.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"komitetsx@gmail.com"
] | komitetsx@gmail.com |
55fdd27357fef324e815b7aa812a8aa6cbae5d6b | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /tests/openbb_terminal/forecast/test_mstl_view.py | dd57c9c97a035d072474b258f58e1ed64881516b | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import pytest
try:
from openbb_terminal.forecast import mstl_view
except ImportError:
pytest.skip(allow_module_level=True)
def test_display_mstl_forecast(tsla_csv):
mstl_view.display_mstl_forecast(
tsla_csv,
target_column="close",
seasonal_periods=3,
n_predict=1,
s... | [
"noreply@github.com"
] | conrad-strughold.noreply@github.com |
ed5415ab65f0be90b74c57b2574130610b45775e | 4cbe1a48b8e55a31782bcdb540213daee4e2486a | /dsplot/tree/tree_node.py | 0ddb9d9cbb15339b32ad191f41deed2909cbdbe3 | [
"MIT"
] | permissive | subhamChakraborty23/dsplot | 140694332512fedd2589d67ec7f8fac5f79608e5 | b4d399544aa1556395f729ee2e6163dc6cedbff9 | refs/heads/master | 2023-07-15T06:57:01.490108 | 2021-08-08T11:05:37 | 2021-08-08T11:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | class BinaryTreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
| [
"trantriducs@gmail.com"
] | trantriducs@gmail.com |
66151a83ec088503878c239841ec21bda8cc9c6e | 90f211662add017213701c4aaa933451857ca3a3 | /crawler/dblp_conf_spider/dblp_conf_spider/spiders/rotate_useragent.py | 6b2f71542384dbff1b0f3cc34f258061cf2fabee | [] | no_license | yungu-imr/dblp-search | 656bc67988ab0f2931bebd030642d31cce87ea15 | a217c5d1b077f10b520591eb834dfb66b8d23a1f | refs/heads/master | 2023-08-18T14:34:44.834124 | 2016-06-14T17:10:18 | 2016-06-14T17:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | # -*-coding:utf-8-*-
from scrapy import log
"""避免被ban策略之一:使用useragent池。
使用注意:需在settings.py中进行相应的设置。
"""
import random
from scrapy.contrib.downloadermiddleware.useragent import UserAgentMiddleware
class RotateUserAgentMiddleware(UserAgentMiddleware):
def __init__(self, user_agent=''):
self.user_agent =... | [
"geron762@sjtu.edu.cn"
] | geron762@sjtu.edu.cn |
e2a594fe676c056cabe454d935e579994841c1dd | 4d6e3c55fc839191b97a40751fd4cbc211969fb0 | /08_apples_and_bananas/solution1_iterate_chars.py | d7efb98a2fab3470de1859d7b15949963f87046d | [
"MIT"
] | permissive | wFanhua/tiny_python_projects | 580860c82a840214ba6255eb6a5a544edc5943a4 | f639352c0cf206cd4bee649c6d45d28ae10c877d | refs/heads/master | 2022-12-02T19:13:16.158045 | 2020-08-23T06:14:48 | 2020-08-23T06:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #!/usr/bin/env python3
"""Apples and Bananas"""
import argparse
import os
# --------------------------------------------------
def get_args():
"""get command-line arguments"""
parser = argparse.ArgumentParser(
description='Apples and bananas',
formatter_class=argparse.ArgumentDe... | [
"744118724@qq.com"
] | 744118724@qq.com |
0156d344f559f46eae61beca0b02e4facf7eb7c7 | 8a3c7cf72f37236c43a180feeb89cf0355e6c901 | /hw3/text_manager.py | dc6c6c630985c25fe7e8ded1028131b0b21f859c | [] | no_license | itay-berko/DL-course-097200-technion | 71abe42a9027d996e5249cb3f51ca30748339fef | a4fdd4bcfbcedea2b030b3e671ab411147ca2052 | refs/heads/master | 2022-03-29T03:07:48.085033 | 2020-01-30T10:47:52 | 2020-01-30T10:47:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import json
from collections import Counter
import itertools
import config
import data
import utils
def extract_vocab(iterable, top_k=None, start=0):
""" Turns an iterable of list of tokens into a vocabulary.
These tokens could be single answers or word tokens in questions.
"""
all_tokens = itert... | [
"noreply@github.com"
] | itay-berko.noreply@github.com |
102c4de4c693165f76ea729d639e60df2acffa74 | b5d6219ac738ed05485439540f38d63d21694c51 | /DAT/ED6_DT01/R2402.阿伊纳街道.py | 8e819262eb8ffe2163c28982576d61cad7038f0e | [] | no_license | otoboku/ED6-FC-Steam-CN | f87ffb2ff19f9272b986fa32a91bec360c21dffa | c40d9bc5aaea9446dda27e7b94470d91cb5558c5 | refs/heads/master | 2021-01-21T02:37:30.443986 | 2015-11-27T07:41:41 | 2015-11-27T07:41:41 | 46,975,651 | 1 | 0 | null | 2015-11-27T10:58:43 | 2015-11-27T10:58:42 | null | UTF-8 | Python | false | false | 44,997 | py | from ED6ScenarioHelper import *
def main():
# 阿伊纳街道
CreateScenaFile(
FileName = 'R2402 ._SN',
MapName = 'Ruan',
Location = 'R2402.x',
MapIndex = 103,
MapDefaultBGM = "ed60020",
Flags ... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
513df6f938a5ae43120df15ddbb973bad05c57ab | d0181f0cea5d45a24b2ca57286bc9059d5be55a6 | /play.py | 7ada1317e180dce5edaf0eb9153709a788475ed6 | [] | no_license | Miatosz/Bomberman-game | af68ed18883a6130d983896748141aebd0682a7c | 461b566e9b9f0bb428c874ff7306ed25b8cd3109 | refs/heads/master | 2022-11-16T20:19:13.127911 | 2020-07-11T16:08:13 | 2020-07-11T16:08:13 | 278,895,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import board, character, pygame
class Play:
def __init__(self, level):
pygame.init()
player = character.Character()
b = board.Board(player)
b.draw(1, player)
| [
"drelewski@gmail.com"
] | drelewski@gmail.com |
6423e20d4242199e03d2bad7d1c5abe7f05adf75 | 5db4a741d248a96e88634a6bbd5444d35e511d8e | /gr-CyberRadio/python/__init__.py | f41fe6c79807900397e732b66d637f85e4bd3581 | [] | no_license | luwangg/gr-cyberradio | f223c4aff47c3325cf3930b472af6aca802fb28a | e4ea67f70523aca3a3d221c512ccdfa0984347ef | refs/heads/master | 2020-04-12T05:30:13.658415 | 2018-01-25T04:48:01 | 2018-01-25T04:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | #
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This application 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 3, or (at your option)
# any later version.
#
# This application is di... | [
"crs-nh@users.noreply.github.com"
] | crs-nh@users.noreply.github.com |
6bca8503d36403378d588fd22ef3051a3e505a38 | a33be4d406a44aba3c3b5b5390e7e875d951eee4 | /simulator/send.py | 093bd703ccf786456fd745ab609ca21708614bf4 | [] | no_license | CyrilBellotti/Projet_SpeDev | 5c9280ba3f241aba399174e3a3e5ec26a76f9e04 | dfd58a67c807a9046a1a938f1359b4fc46286076 | refs/heads/master | 2023-01-09T02:11:02.444882 | 2019-10-09T11:11:05 | 2019-10-09T11:11:05 | 213,896,520 | 0 | 0 | null | 2023-01-01T12:10:55 | 2019-10-09T11:10:27 | TypeScript | UTF-8 | Python | false | false | 1,064 | py | #!/usr/bin/env python
import pika
import json
import random
import time
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='172.20.10.11', credentials=pika.PlainCredentials("cyril", "azerty")))
channel = connection.channel()
channel.exchange_declare(exchange='atlantis-exchange', durable='true', ... | [
"bellotticyril@gmail.com"
] | bellotticyril@gmail.com |
661bbdf1650ffa78f3e6c3e1f60eb557c81f47bd | 4476597f6af6b9cd4614bf558553a7eb57c9f993 | /kaggle/数据结构.py | f12cc0c6bfdb5348c92a61533aff811eacaf725e | [] | no_license | zhengziqiang/mypython | 07dff974f475d1b9941b33518af67ece9703691a | 7a2b419ff59a31dc937666e515490295f6be8a08 | refs/heads/master | 2021-07-14T20:01:34.231842 | 2017-04-19T01:18:25 | 2017-04-19T01:18:25 | 56,583,430 | 3 | 1 | null | 2020-07-23T11:46:35 | 2016-04-19T09:26:39 | Python | UTF-8 | Python | false | false | 131 | py | #coding=utf-8
import pandas as pd
with pd.HDFStore("/home/zzq/kaggle/train.h5","r") as train:
df=train.get("train")
print len(df)
| [
"1174986943@qq.com"
] | 1174986943@qq.com |
cf362caab39d92d55368251d63e897f4faef0053 | e664ce599c5e31e787f004f68970ace2202e32b9 | /blog/models.py | 1e63f16cb15c8fe5fa759f81cb9fcaa7443d04de | [] | no_license | AdamC66/Django-Blog-P4 | bd12d0ad7fb7f52511422f7310b8845d96c0f678 | d11c33434ade968fe789d027981a578ebd248f44 | refs/heads/master | 2020-06-27T06:13:42.997716 | 2019-07-31T14:18:51 | 2019-07-31T14:18:51 | 199,866,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from django.db import models
class Article(models.Model):
title = models.CharField(max_length = 255, null=False)
body = models.TextField(blank = True, null=False)
draft = models.BooleanField()
published_date = models.DateField()
author = models.CharField(max_length = 63, null = False)
def __st... | [
"adam.cote66@gmail.com"
] | adam.cote66@gmail.com |
ad447df8131a08aa324a0422bb83f8862c30bfac | 5b68845f5e24085d6f85fbc805251ffb690eae6e | /Pmw/Pmw_2_0_1/lib/PmwLoader.py | 0b6f2871ca74be0e88296a6a9e9fac7877c30d2c | [] | no_license | rdb/panda3d-thirdparty | 15bf5646635b812c7c68f6dfc7a9a43013c2b7c9 | a7db4147cfdf22c639e79fc20843496966038e6c | refs/heads/main | 2023-08-31T18:27:12.388222 | 2023-08-24T10:22:02 | 2023-08-24T10:22:02 | 56,599,172 | 33 | 29 | null | 2023-02-19T15:47:23 | 2016-04-19T13:29:06 | M4 | UTF-8 | Python | false | false | 6,220 | py | # This module is used by the Pmw package system.
# The PmwLoader class can be used to simulate a python module,
# but also supports importing of submodules on demand. This technique
# reduces startup time because Pmw submodules which are not used are
# not loaded.
#
# The PmwLoader class also supports runtime selectio... | [
"git@rdb.name"
] | git@rdb.name |
037b7b147c7f3197184c2e5c46416288ed605101 | 0332c80c7829075759e504d484eae4436336fa3c | /__main__.py | b3595d6191166ffb192cd0d68cec7d39df07923d | [] | no_license | AshishYUO/PySnake | bc804ce94729ca0b31fbb9b9da85ef1be2681acb | 1e01be05b56b7ef2c4344be16caaa925a91331be | refs/heads/master | 2020-05-16T16:51:49.588778 | 2019-09-23T14:56:34 | 2019-09-23T14:56:34 | 183,176,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from tkinter import Tk
import __player__ as pl
def init() :
__game__ = Tk()
__game__.title("Snake")
play = pl.Player(__game__)
play.Update(__game__)
__game__.mainloop()
if __name__ == "__main__" :
init() | [
"noreply@github.com"
] | AshishYUO.noreply@github.com |
430c663277731eab65f3d86a584b42573a3df135 | 78db5bc74181173f2d00bea409997a64b4682adf | /venv/lib/python3.9/site-packages/pip/_vendor/pep517/compat.py | 5ae94f60b698b9a6b387c60dc0ab6bd3764e319e | [
"MIT"
] | permissive | CiscoDevNet/meraki-code | dfe680f077ebd053a3b663f1434f648f5a91b541 | d031aab82e3fa5ce7cf57b257fef8c9a4c63d71e | refs/heads/master | 2023-05-28T18:43:28.848983 | 2022-04-11T19:45:19 | 2022-04-11T19:45:19 | 188,288,487 | 67 | 60 | MIT | 2023-05-23T00:51:58 | 2019-05-23T18:43:15 | Python | UTF-8 | Python | false | false | 814 | py | """Python 2/3 compatibility"""
import json
import sys
# Handle reading and writing JSON in UTF-8, on Python 3 and 2.
if sys.version_info[0] >= 3:
# Python 3
def write_json(obj, path, **kwargs):
with open(path, 'w', encoding='utf-8') as f:
json.dump(obj, f, **kwargs)
def ... | [
"agentle@cisco.com"
] | agentle@cisco.com |
f4d754f2961e43900540a4af7b2ecdaf0117b821 | 9cd86202b6160f423220e20203038d4576a3a40c | /case1/app.py | ebf9537a80a3b75ec38ed9d47bb3837d868f1a9d | [] | no_license | rush8170/docker | e40e5329f1afd647e90a0b1e072e117e75ad4514 | ec96af2a3b0a008c18b7bef777b4873c5aeb9a1b | refs/heads/master | 2020-06-01T17:49:19.276420 | 2019-06-08T10:24:43 | 2019-06-08T10:24:43 | 190,871,331 | 0 | 0 | null | 2019-10-31T17:45:26 | 2019-06-08T09:49:40 | Python | UTF-8 | Python | false | false | 600 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def hello_world():
#return '<h1>Flask created</h1>'
return render_template('prod.html')
#import sys
@app.route('/action',methods = ["POST"])
def product():
product = request.form['product_name']
print(product)
try:
fh = op... | [
"shahrushil@yahoo.com"
] | shahrushil@yahoo.com |
a1be2fca03092fcb54fe9d3430814646fdc8b536 | 989880f013fb35bbb67ea9106d072c157015dba8 | /price_aggregator/migrations/0001_initial.py | 903afb46dd0f5026a7365b4f9108107f138333b8 | [] | no_license | inuitwallet/price_aggregator | b88bf1c2e862d28693f0ecf507fbba89a8658911 | 838e600c3ab1270e7af4f916d2b3a11f4f502d03 | refs/heads/master | 2021-04-29T20:46:00.160398 | 2021-01-04T09:48:04 | 2021-01-04T09:48:04 | 121,603,435 | 0 | 1 | null | 2021-04-16T20:48:58 | 2018-02-15T07:50:08 | Python | UTF-8 | Python | false | false | 1,612 | py | # Generated by Django 2.0.2 on 2018-02-14 20:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AggregatedPrice',
fields=[... | [
"contact@inuit-wallet.co.uk"
] | contact@inuit-wallet.co.uk |
1499ffc21bf07911e411682fdfe4260bab3863f1 | d1a0293ed4cf978a37b4b186896df209d9d32fc7 | /pyboleto/bank/febraban.py | 1ba3a8c499e6a3d3555887b0f532914524a610d5 | [
"BSD-3-Clause"
] | permissive | thiagosm/pyboleto | 408a2a90348303481426c1e47cc92184a026294e | 95151eb9738cb6903d2030b686e4c21afd8f0c39 | refs/heads/master | 2023-07-06T17:59:01.095935 | 2023-06-30T13:36:48 | 2023-06-30T13:36:48 | 6,001,976 | 20 | 14 | NOASSERTION | 2021-05-29T22:42:09 | 2012-09-28T19:23:02 | Python | UTF-8 | Python | false | false | 3,568 | py | # -*- coding: utf-8 -*-
from ..data import BoletoData, CustomProperty
from decimal import Decimal
import re
class BoletoArrecadacao(BoletoData):
"""
Arrecadação Febraban
"""
carteira = CustomProperty('carteira', 1)
def __init__(self):
BoletoData.__init__(self)
self.moeda_formato ... | [
"opencode@gmail.com"
] | opencode@gmail.com |
de55432aa62203c7893bb2e5f0e16ea10e91e600 | 7f9c6238b2fb44117adb3bc40eda3fa9f9b743f3 | /CARDAINATION-UPDATED/cardination/__init__.py | 87755830e64a9b5316b80c46c33ecfb4a5365e4d | [] | no_license | Sarthak251099/Login-System | faea23e2b3cf71eec20c1036a17cd2bc3348071d | 935dd6851ba735286518ad56e2af0b31f0a86223 | refs/heads/main | 2023-01-05T12:10:08.290035 | 2020-11-01T04:56:52 | 2020-11-01T04:56:52 | 309,026,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from flask import Flask
import os
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_cors import CORS
app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['SQLALCHEMY_DA... | [
"noreply@github.com"
] | Sarthak251099.noreply@github.com |
559d97cdce99a1160f9152e0378028e6b5c18267 | 9e02e411290fa4fc5d6fac8cb51e437377e05bbb | /tests/transformers/test_image.py | 83672f4fa7241eb3255f19e3cd465e229ccd74ca | [
"MIT"
] | permissive | nagyistoce/mila-udem-fuel | f62551a9937fc86ea0b0c40a736318a89522e4eb | 3b82041b10700e001cd294df0a0de5cb3e738613 | refs/heads/master | 2021-01-22T18:32:49.567897 | 2015-07-27T13:25:42 | 2015-07-27T13:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,846 | py | from collections import OrderedDict
from io import BytesIO
import numpy
from numpy.testing import assert_raises
from PIL import Image
from picklable_itertools.extras import partition_all
from six.moves import zip
from fuel import config
from fuel.datasets.base import IndexableDataset
from fuel.schemes import ShuffledSc... | [
"wardefar@iro.umontreal.ca"
] | wardefar@iro.umontreal.ca |
f12f01d52af9e9c739bd9b77c749631275a251d3 | 01b0dac640bbf26b8957c7bf4c519e3d36108664 | /offset-inventory-GWO.py | 401d8a6c2a0dcc624544b57516a6f79b60d3cd05 | [
"MIT"
] | permissive | curlyz/comparision_offsetting_inventory_between-GWO_and_PSO | 61aac065cf2697ece3bfa9fe37c35af380149724 | 98b23c9069fdddd87c5986aa05b71f19017b7106 | refs/heads/master | 2020-09-20T18:22:09.073135 | 2019-11-28T02:57:03 | 2019-11-28T02:57:03 | 224,557,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 20 14:15:12 2019
@author: USER
"""
import copy
import xlrd
import pandas as pd
import numpy as np
import random
import matplotlib.pyplot as plt
wb = xlrd.open_workbook('data.xlsx', on_demand=True)
sheets=(wb.sheet_names())
df=pd.read_excel('data.xlsx',she... | [
"noreply@github.com"
] | curlyz.noreply@github.com |
b722747a673abeb16c78385aa295b6da3e1a5809 | d82595a7161e3125caa9f3db51ad4bdaaec3d018 | /Python/SLAPMi/__init__.py | 725874455460242c214e96f37a243437a84f2783 | [] | no_license | KasparP/PSI_simulations | ad34c33e9ed6695778b6ec595da8abcfb28ff3b6 | 5d740d8fe1d0f729847da61e2d285c1f3de697f1 | refs/heads/master | 2016-08-12T19:27:11.214856 | 2016-03-10T21:46:06 | 2016-03-10T21:46:47 | 36,687,037 | 5 | 2 | null | 2015-11-03T22:22:01 | 2015-06-01T20:31:38 | Matlab | UTF-8 | Python | false | false | 22 | py | from slapmi import *
| [
"k.podgorski@gmail.com"
] | k.podgorski@gmail.com |
5ba82c6bf3b10cd1ddea1cfdd7d5c3b6cf9cea6b | 5609adbab83e073020974baedc63d2e3cc7ba5bc | /ive.py | 9a5da4c5ad9c2c052edeb3f1533d2d831432d49c | [] | no_license | KenNN99/code_2020ICASSP_five | e5eb5e5cd184b5d5fbeb73605723567f5f9ba9a7 | 66ddc55d50bbbc41cb73e375c7a93ac34d45dc43 | refs/heads/master | 2023-05-01T20:05:59.190573 | 2020-05-07T13:56:22 | 2020-05-07T13:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,396 | py | # Copyright (c) 2019 Robin Scheibler
#
# 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 use, copy, modify, merge, publish, dis... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
2e574eac9c395ecd6a108c5528442f4546c52b38 | 1df9e499033265aff0a118827654af95ac30791f | /13.py | 2d5a1b76f7477ddea2573aa852f493358506d7f2 | [] | no_license | RamyaSekaran/guvi | 99d3b0ea3f3301fc98b97e8339cbade5ee29648c | e44c3bf846be531f5a443592b1263ac9109a2fb8 | refs/heads/master | 2020-03-22T05:53:36.928817 | 2018-08-09T16:08:39 | 2018-08-09T16:08:39 | 139,597,655 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | a=input()
count=0
if int(a)==1:
print("No")
else :
a=int(a)
for i in range(2,a):
if a%i==0:
count=1
if count==1:
print("No")
else:
print("Yes")
| [
"noreply@github.com"
] | RamyaSekaran.noreply@github.com |
0bc5e43c87e3091c5c4d74c36eb378586fad1b1d | fd3df5db5fec7daf5711018024773272e9a78043 | /pajbot/modules/songrequest.py | 86ea9f40a7be27d3d0a2eee40b6cb623ac08f093 | [
"MIT"
] | permissive | metrize/troybot | af7de305345b3d165f2316c4cc9472c83f948467 | c42f46569b3a7af14af7300e3aa033269cf3a487 | refs/heads/master | 2022-06-09T00:04:03.043950 | 2020-05-06T23:55:42 | 2020-05-06T23:55:42 | 261,893,673 | 0 | 0 | null | 2020-05-06T22:35:39 | 2020-05-06T22:35:38 | null | UTF-8 | Python | false | false | 18,605 | py | import logging
import urllib
import urllib.request
import urllib.parse
import re
import json
import random
from pajbot.managers.db import DBManager
from pajbot.managers.handler import HandlerManager
from pajbot.models.command import Command
from pajbot.models.songrequest import SongrequestQueue
from pajbot.models.song... | [
"troybensonsa@gmail.com"
] | troybensonsa@gmail.com |
3937c0bb55b8d468311b4c62e567d8e7c277c070 | 6eab4ba163cbee11ae1e31263e2ed0df69ad304b | /scripts/on_the_fly_assessment/add_feature_to_master.py | 68cfbdd764241d283c42c11b93411a0fc7cb7e4e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | liuze-cloud/on_the_fly_assessment | c72bbdc2649afa6d7b3c0b9bf72a000d1957d370 | 102a7985d1765b11e6a7fdc1a11ac973cbc5fe3d | refs/heads/master | 2020-11-28T23:03:34.244558 | 2017-08-02T21:00:20 | 2017-08-02T21:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 21 14:48:10 2016
@author: fangren
"""
import numpy as np
import os.path
import csv
import os
def add_feature_to_master(features, base_filename, folder_path, save_path, master_index, index):
"""
add a feature 'feature' to master meta data, feature is in the form ... | [
"ren.fang.ren@gmail.com"
] | ren.fang.ren@gmail.com |
231ac3f59f691f80ea3a67f977c3d947c79a9390 | 34bcf239c02aabe9a70d70b1a33b2286200e3ad9 | /banking_system/bank/views.py | ea28220babddd1c82803ce73c94c22ad23592dfb | [] | no_license | mruga7/Sparks-Internship | ce564308a3d29919667c78a11fd8f73e0ffae18c | 91751bbbb1484f475d24dc1f3d7f71922d3fe4ed | refs/heads/master | 2023-06-09T00:31:25.840835 | 2021-06-21T08:17:36 | 2021-06-21T08:17:36 | 378,855,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from .models import Transfer,History
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return render(request,"bank/Home.html")
# def customer(request):
# return render(request,"bank/Customer-List.html")
def info(request,id):
... | [
"mrugakshi9@gmail.com"
] | mrugakshi9@gmail.com |
28ca4de31ddec554ace8a4ed19c5f70d7811a4ae | 8520b42a00fc7d1cfd80f963fed959cfea079306 | /api/model.py | 310fb1c305b32c0ffd2927069153b1c2f339c429 | [] | no_license | sfioritto/dustbin | 5ae9054da3a26cb888bd34d368ea54c781b37b90 | cae8debcbcb689b949b03bc15c50cee6e13c4b91 | refs/heads/master | 2020-11-26T19:32:19.960993 | 2012-12-21T15:45:55 | 2012-12-23T18:11:03 | 6,970,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,285 | py | import dustbin.config as config
import json
import re
import cgi
import dateutil.parser
import hashlib
import urllib
import os.path as path
import types
from bleach import clean
from markdown2 import markdown
from datetime import datetime as dt
from time import strftime
from urls import urlpatterns
subdomainre = re... | [
"sean.fioritto@gmail.com"
] | sean.fioritto@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.