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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a074f5ca113dcf316aea9d846b7627ad4ff1dda5 | e4abac625b72077e96396ded8cf9784b5fb9e186 | /01 學習區/xgboost_with_python/code/chapter_04/first_model.py | 09fc3af624a782389e3a641bbde8f95a6b0afb33 | [] | no_license | kent1224/Learning | cc9d30c5c971af74f07e7dfe8198244ebb5b0b79 | 5b2c56dfd7f784ad670839752e61d36f657f2525 | refs/heads/master | 2021-05-16T14:57:28.846934 | 2018-01-26T02:21:09 | 2018-01-26T02:21:09 | 118,734,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # First XGBoost model for Pima Indians dataset
from numpy import loadtxt
from xgboost import XGBClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
# load data
dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",")
# split data into X and y
X = dataset[:,0:8... | [
"noreply@github.com"
] | noreply@github.com |
4b4b97c33e554a7922e57e099a4f18a5e9e0f444 | ff04496e4c69c47e43934ade6e6b28e47eea5a1f | /train.py | 950a9c1e3229be8939ce04ebc1499e11a841bf3e | [] | no_license | adeelz92/Barcode_code | 332f7dd4097df51176ee41665fbd48cc6981729a | 6fc3257b88c589fa7bca3e77be73e82ae07d45c8 | refs/heads/master | 2020-04-02T09:09:39.624360 | 2018-11-15T02:26:07 | 2018-11-15T02:26:07 | 154,278,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | from keras.models import Model
from keras.layers import Input, Conv2D, MaxPooling2D, Concatenate
from keras.layers import Dropout, Flatten, Dense, BatchNormalization
from keras.callbacks import ModelCheckpoint
from keras.preprocessing.image import ImageDataGenerator
import keras.optimizers as opt
from keras.optimizers ... | [
"adeelz92@gmail.com"
] | adeelz92@gmail.com |
a6f3acb6b119c6a7b83bda654ccc2e610af29885 | af4eb8204923b5848fce3158c6f8a89a480ea1d8 | /script/AGNSS/AGNSS_Test_0084.py | afe06efc62851c32680c7b868f5dba30c5625c8c | [] | no_license | wanghaoplus/gatog | 4ab0c77d4f9eb93da136ad3933a68cbf0b5c5bca | 8935e20a426638462cd1cc7bc048a16751287a2f | refs/heads/master | 2022-04-10T21:36:20.395304 | 2020-03-26T10:09:28 | 2020-03-26T10:09:28 | 248,264,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # -*- coding: utf-8 -*-
# @Time : 2020/02/21 22:14
# @Author : wangdelei
# @Site :
# @File : AGNSS_Test_0084.py
# @Software: PyCharm
from aw.LbsTestCase import LbsTestCase
import time
from aw.core.Input import *
import threading
class AGNSS_Test_0084(LbsTestCase):
def __init__(self):
super(AGNS... | [
"418816179@qq.com"
] | 418816179@qq.com |
49f6372be4dbd4d5b5afa73800df88ec46448170 | e035e042c425b7abbaee50b8f331b1d4ebcbd388 | /test/testapikeyfilegenerator.py | 4447a5f57529b553266526308950cbab3a2cfe21 | [] | no_license | Archanciel/C2 | 6ae2589c23c1499db3ca3d362459afecb52283ed | 8abf29d6798743d06d1949e22ff5c4bece2cd85d | refs/heads/master | 2020-03-21T11:19:38.298586 | 2018-09-01T10:23:50 | 2018-09-01T10:23:50 | 138,500,734 | 0 | 1 | null | 2018-07-28T18:33:25 | 2018-06-24T17:09:59 | Python | UTF-8 | Python | false | false | 1,318 | py | import inspect
import os
import sys
import unittest
import pickle
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
sys.path.insert(0,currentdir) # this instruction is necessary for successful importation of util... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
856cfd06d92357b4bc69a5ffd34cfdb638597415 | 5375899dbf84b68b6c03ae1ca32b7276a5b45bed | /Python3网络爬虫开发实战_崔庆才/scrapy框架/btmovie/btmovie/pipelines.py | 62483d43789b2399c4ba19ff5bf7939306d7fcd9 | [] | no_license | Katherinelove/teacher_liao | ae1ed30ec5734699e797b3872142fcc86b7b4a67 | 8dba099c23dc930f9e542da1a5c8f89fd4e0722f | refs/heads/master | 2020-06-03T10:56:34.557149 | 2019-06-12T09:35:37 | 2019-06-12T09:35:37 | 191,541,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import logging
from pymongo import MongoClient
class BtmoviePipeline(object):
def process_item(self, item, spider):
... | [
"15281857366@163.com"
] | 15281857366@163.com |
201cb18806e64a90eab4c2b766ae1aae7d263ec3 | 598548d1364ea8e4810404d6aa17d5a6653b4d1c | /torba/client/basetransaction.py | a022bfa2ba10da401397daa64c9763199ed493c5 | [
"MIT"
] | permissive | productinfo/torba | 844d362ac8791715bcb16e883f994b5b5ed67109 | 45669dad336f7b74dd7c04d3f826620ed2f777c7 | refs/heads/master | 2020-04-19T18:33:44.480802 | 2019-01-29T17:51:59 | 2019-01-29T18:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,238 | py | import logging
import typing
from typing import List, Iterable, Optional
from binascii import hexlify
from torba.client.basescript import BaseInputScript, BaseOutputScript
from torba.client.baseaccount import BaseAccount
from torba.client.constants import COIN, NULL_HASH32
from torba.client.bcd_data_stream import BCDa... | [
"lex@damoti.com"
] | lex@damoti.com |
8d43c7651b50f3a0c96f3f843c17662d2e42a204 | c7d7cfed89bdff66893896dd2c26310a9112fa20 | /helloworld.py | 73ce05f889fa44817cbe284614f729ef90c62c16 | [] | no_license | rnaredl/hello-remote | 509b5ea0158d2926bd39e349b60ba887b15ef7e8 | 1920e4c0ac9490eb1f133ca8f17d51c47e7923d7 | refs/heads/main | 2023-09-02T17:52:27.053709 | 2021-11-18T05:50:43 | 2021-11-18T05:50:43 | 429,305,383 | 0 | 0 | null | 2021-11-18T05:50:44 | 2021-11-18T05:15:56 | Python | UTF-8 | Python | false | false | 54 | py | import sys
print("Hello world!" .format(sys.argv[1]))
| [
"nrsreddy86@gmail.com"
] | nrsreddy86@gmail.com |
b919d9c0d29ca46b3bc5fc729c1194993effc7e6 | e55ac35349d0c4a306b4fc16cdee5998f2019276 | /lengthOfLongestSubstring.py | 14ee597b5d60360c0c21cea5db14704ac60a2f7c | [] | no_license | xeroxzen/Coding-Challenges | c6b740091ab684c855fd4f773c54a1b9e7ca96d0 | c68044c018c78f0180042f0462106bee02518249 | refs/heads/main | 2023-05-28T10:57:09.465868 | 2021-06-11T02:55:37 | 2021-06-11T02:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | """
Longest Substring Without Repeating Characters
----------------------------------------------
# Source: https://leetcode.com/problems/longest-substring-without-repeating-characters/
- Given a string s, find the length of the longest substring without repeating characters.
# Example 1:
>>> Input: s = "abcabcbb"
>>... | [
"legendaryanoldb@gmail.com"
] | legendaryanoldb@gmail.com |
4cd0e47d8b15d665841ab5e45666807243eefdd0 | 923a75c5288bd4174e0df59cde83c6cfbe695ed3 | /nirob1.py | e66e0f930bbba2fa8850fa0fff5dff7b7cf23810 | [] | no_license | Owhab/Python-Codes | d3aaed6c4a55ca5c33f6b3c0c4b2175b9ae6b3f4 | eda42fb5d0be4d0e445bccd4212afeaa1fa22616 | refs/heads/master | 2022-02-01T01:11:17.086688 | 2019-07-20T06:25:47 | 2019-07-20T06:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
c = int(input("Enter the value of c: "))
if a > b and a > c:
print("a is larger")
elif b > a and b > c:
print("b is larger")
else:
print("c is larger")
| [
"noreply@github.com"
] | noreply@github.com |
16127aa13974427bc0f3874250f37ea6074014bc | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-712.py | 2e6cbaabd1989e69d23b731561665ff903d049e3 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,287 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d2fa5c025df7d0f0b0c733033a41cee5353f6d5e | c9a8fb056b73309a3a6ac460426b89a2198190db | /缩孔和温度场/crack.py | 32dfbb6e43eaba915d46952aa3c4f4373caa80b6 | [] | no_license | wangsi12/continuous_caster | 4816c19bb99e9f377c47fdbe487374f73ef5e18e | 96d316073084d7d3c73b359fc2d96c672f5c911b | refs/heads/master | 2020-04-29T08:03:17.740820 | 2019-06-11T03:03:52 | 2019-06-11T03:03:52 | 175,973,156 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 17 14:52:30 2019
@author: ws
"""
import math
def fs(Ts,T,Tl):#固相率
if T<Ts:
return 1
elif T>Tl:
return 0
else:
return (Tl-T)/(Tl-Ts)
def crack(MiddleTemp_all,var_XNumber,var_X,var_YNumber,var_Y,Time_all,var_liqTemp,var_SodT... | [
"noreply@github.com"
] | noreply@github.com |
fc9a91f8832a9e9583dfed7a9b8dbfdde0d1adee | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/counter/counter_vtep_stats.py | f46f33a278bb54b92bf117eca714b56cd163fb28 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 8,169 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class Stats(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param rx_bad_inner_ipv4_len_pkts: {"description": "Packets received with Bad Inner IPv4 Payload length", "format": "counter", "type": "number", "oid": "34", "... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
d1bd38d846bba7c4f5d34cc464f4dabfaad0e668 | f3925f09a3e8b0ab6bb73d51cb95864b31701637 | /pylib/tests/test_history.py | 9cd31ea8052e322a6ced7b61771ef5924939cd80 | [
"MIT"
] | permissive | timlardner/SteamieBot3.0 | 88c40a36450f43e85fa7eba4b4c5f77189d00af4 | d18e701cc454c5087dac537b43f0c3b803a1b494 | refs/heads/master | 2023-06-14T05:29:15.838963 | 2021-07-12T20:35:04 | 2021-07-12T20:35:04 | 382,972,650 | 4 | 0 | MIT | 2021-07-06T20:57:36 | 2021-07-05T00:13:10 | Python | UTF-8 | Python | false | false | 124 | py | from post_components.history import History
def test_history():
h = History()
text = h.get_body()
assert text
| [
"timlardner@gmail.com"
] | timlardner@gmail.com |
d78c74a89a2d825092214a06c0b507e9f7cd2602 | 2d3aa5a8e14230c1c64f97c951cff74df7fbd305 | /accounts/migrations/0002_auto_20210212_1107.py | 074c01fb3acb72ca2cd06179462a837735f1e1f5 | [] | no_license | AcaoAngel/Oth | 8ed8e66cb63499bb0c01d6c7d92237238e6fce47 | 264f77142fd5896c7fa79152693e69294c1ec4fa | refs/heads/master | 2023-03-21T13:39:46.668779 | 2021-03-21T19:56:56 | 2021-03-21T19:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # Generated by Django 3.1.5 on 2021-02-12 09:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account_value',
name... | [
"angel.acao92@gmail.com"
] | angel.acao92@gmail.com |
1012ccd3a8287889d5aac3d37652c29a5606c7b0 | c30d0066ef1d35689515deeaa4fa87d9a6f95526 | /config.py | 9aa1b71440bf5f9ddc650dff255bfec6512218f4 | [] | no_license | olufemi424/flask_blog | 6a39924732a3d44192cb48fe2ef46c10c0421f20 | 1a7af65d6b1c5d5973c5f75449eff314aa59796d | refs/heads/master | 2022-11-30T16:29:29.826188 | 2019-10-15T00:09:42 | 2019-10-15T00:09:42 | 200,443,471 | 0 | 0 | null | 2022-11-22T04:11:42 | 2019-08-04T03:07:20 | HTML | UTF-8 | Python | false | false | 412 | py | import os
# enviroment variables embeded in the env file
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MA... | [
"femiafolabidiipo@gmail.com"
] | femiafolabidiipo@gmail.com |
22c2b127d3545443c284f98beee6bf08b3c94539 | 60b7674e75116f1ad71937d2a7dd0b9319d2e489 | /math/triangle_quest.py | ea71eea26eb4419681d30482b50ab4bbbd0f9b66 | [] | no_license | tomelisse/HackerRank | e3953977ca127b18d679f91f7bfc3ad84e148507 | 9c7eb7cef7710e875ac7887f8d94645cc1b9bc8d | refs/heads/master | 2021-01-16T18:34:00.612310 | 2017-08-26T07:26:00 | 2017-08-26T07:26:00 | 100,093,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | for i in range(1,input()):
print i*(10**i-1)//9
| [
"tomelisse@gmail.com"
] | tomelisse@gmail.com |
596976fda6a42f23d13b1d6e33d45142d68a285a | f565bb7c87bdecc21746ef7030dfb86263b5edc3 | /hw_2/constants.py | 557c733f33fc13d33da69b26fa6743847281e2be | [] | no_license | nbutcher/butcher_phys239 | 232edb82ffa698523b15f74269b27482e00b317a | a28b2aebcc5d90c53e385a1a770c62df02678480 | refs/heads/master | 2021-01-12T17:47:05.367916 | 2016-12-08T21:58:11 | 2016-12-08T21:58:11 | 69,390,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #This file contains useful physical constants and unit conversions to be used in homework 2
#Unit Conversions
pc = 3.0857e18 #pc in cm CHECK THIS
year = 31557600 #year in seconds
#Physical Constants in cgs units
c = 2997924.58
| [
"butchernate@gmail.com"
] | butchernate@gmail.com |
2c0e7248dadf03783ae40799c81f19df12380c55 | de5ec5d2897aa373d5c55f5fd065f12bd902a418 | /train_model_for_image_folder.py | 508d77e4113e20e20211b8fb68536adb9b917312 | [] | no_license | dy11/DogBreed | ecf0deb5e2c392072809700f42d216b7e678583c | e9ffbe0538b4c34c5c31e52578c76dd122853050 | refs/heads/master | 2021-08-20T09:41:37.088377 | 2017-11-28T21:15:06 | 2017-11-28T21:15:06 | 112,384,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,900 | py | # -*- coding:utf-8 -*-
__author__ = 'Yi'
import argparse
import os
import shutil
import time
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.utils.data
import torch.utils.data.distributed
import torchvisi... | [
"noreply@github.com"
] | noreply@github.com |
0df7c76050bece519f89682bce0b765177ed5576 | 58baa1e14c2491abf5f33c7785ad7fba0be40b07 | /rango/views.py | f3ed0825e3dc71c3825ba8558861a1d8d8e94eaf | [] | no_license | RobertAndrews96/tango_with_django_project | fd6f63eb81e6b8b9bcce3865eabc2b0e3280262d | 5bab21f6a17df2cf8c6066ec65f2cdc14c9365a1 | refs/heads/master | 2021-09-08T05:19:45.410731 | 2018-03-07T14:15:10 | 2018-03-07T14:15:10 | 117,132,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | from django.shortcuts import render
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm, UserForm, UserProfileForm
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth import authenticate, login, logout
from django.core.urlresolvers import reverse
from d... | [
"2256856a@student.gla.ac.uk"
] | 2256856a@student.gla.ac.uk |
2241a6690333ae6509e556b65fccb35af2f114c3 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/examples/NerveNet/scripts/ppos/mujoco/test_env.py | 66cb7b6d26ae7b5ddd7b2ed0f8b11ee777bf4a40 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 621 | py | import gym
# you can choose other environments.
# possible environments: Ant-v2, HalfCheetah-v2, Hopper-v2, Humanoid-v2,
# HumanoidStandup-v2, InvertedPendulum-v2, Reacher-v2, Swimmer-v2, Walker2D-v2
env = gym.make("Walker2d-v2")
num_inputs = env.observation_space.shape[0]
num_actions = env.action_space.shape[0]
pri... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
f6b74de65dfb9b450d827c0b8c8a01263f7b6766 | 64b135891387dac3a4bb29f3001a524830d0e4e4 | /news/forms.py | d5177748c1fd666136f6e163c39fd7bca1f0fca6 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | dynamicguy/treeio | 9ad52802722b64a212e22710c04dbb0bb50d831e | 4f674898cff2331711639a9b5f6812c874a2cb25 | refs/heads/master | 2021-08-28T11:25:41.504635 | 2014-01-31T17:16:22 | 2014-01-31T17:16:22 | 11,323,559 | 0 | 0 | NOASSERTION | 2021-08-16T20:18:53 | 2013-07-10T20:31:31 | Python | UTF-8 | Python | false | false | 2,878 | py | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
News module forms
"""
from django import forms
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
from treeio.core.conf import settings
from treeio.core.mode... | [
"letoosh@gmail.com"
] | letoosh@gmail.com |
08c8484a9115d0f2328f802075cb3e960a8331b5 | fa359e23ef9ad40d79832702ae582fba570b15cd | /Attendance project/Update_Record.py | b20408b65604b8a8862423a5d041ca9cbd02df91 | [] | no_license | mc2259/Attendance-Project | 8cf0268dca271ea19e6a75613aa8ec4a6bee980d | f8f23f939ab078d61c8efdf03c1e25d3a54655f4 | refs/heads/master | 2022-11-28T14:49:20.275177 | 2020-07-26T15:15:42 | 2020-07-26T15:15:42 | 256,731,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import mysql.connector
db=mysql.connector.connect(user='root',password='',host='127.0.0.1',database='maitreyi')
cursor=db.cursor()
choice=int(input('1. Update Course \n2. Update Student \n3. Update Teacher \n4.Enter Choice: '))
if(choice==1):
CID=input('Enter CID: ')
CNAME=input('Enter CNAME: ')
... | [
"noreply@github.com"
] | noreply@github.com |
a8e8de1a7e09c753aa375fa37bff40d4e1945b90 | 4a17541f6ad54c4e87a7a727719e6eafa1951d72 | /Supporting Code/combine_all_Data_For_RTF.py | 6b1bcafefc48ab00495b2e5762726c1bc5fd91a1 | [] | no_license | jvlatzko/Diploma_thesis | 83bfba629b9c6e889be3429e465342da4177924c | c4fbe692060097674d4c32a4b3176c5afc94d83f | refs/heads/master | 2021-01-13T14:39:44.807359 | 2017-02-12T12:46:50 | 2017-02-12T12:46:50 | 76,684,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | #!/usr/local/bin/python3.5
import numpy as np
import matplotlib.pyplot as plt
from skimage import img_as_float, io
from os import listdir, path, getcwd
cwd = getcwd()
print(cwd)
#c0 = 299758492 #Simulation by luxrender is not as exact - do not introduce new "error"
c0 = 3*10**8
TOFfreq = 20*10**6
dataPath = "ToF-da... | [
"jvincentlatzko@gmail.com"
] | jvincentlatzko@gmail.com |
1b2beebcfce2d6669e1ab5bf05f8a9f49f94fa6b | a7b07e14f58008e4c9567a9ae67429cedf00e1dc | /lib/jnpr/healthbot/swagger/models/device_schema.py | 1952a7576fcf36a41d947010eca0a51bf076602f | [
"Apache-2.0"
] | permissive | dmontagner/healthbot-py-client | 3750d8375bc4fa7bedcdbc6f85f17fb812c19ea9 | 0952e0a9e7ed63c9fe84879f40407c3327735252 | refs/heads/master | 2020-08-03T12:16:38.428848 | 2019-09-30T01:57:24 | 2019-09-30T01:57:24 | 211,750,200 | 0 | 0 | Apache-2.0 | 2019-09-30T01:17:48 | 2019-09-30T01:17:47 | null | UTF-8 | Python | false | false | 11,136 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from jnpr.healthbot... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
0892d047ff269b657d6ee21fe381e614e296de3c | 5f5684eb3e1ad4e413b0944c1f32b5c9b63e313c | /ScoreKeeper.py | 64482a75d7cef3b537c7969e8d3d7685d21a4733 | [] | no_license | elnursahbalayev/Petrobowl-Score-Keeper | d98fd19a69e919309631c0b7c5b0bfe37b1a25aa | e87ecac59dfd07d8b5477697f8336ef87728c0b9 | refs/heads/main | 2023-07-30T14:28:00.321261 | 2021-10-02T16:20:03 | 2021-10-02T16:20:03 | 412,824,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QLabel, QLineEdit
from PyQt5 import uic
import sys
class UI(QMainWindow):
def __init__(self):
super(UI, self).__init__()
uic.loadUi('ScoreKeeper.ui', self)
#define the widgets
self.score1_label = self.findChild(QL... | [
"elnursahbalayev@gmail.com"
] | elnursahbalayev@gmail.com |
8929de1dd4441865c55d4dcb7a063a6b3ee7b872 | 637bb3f080ff18001a732d9bf607ef962b09c5dd | /AtiviadeMeioDisciplina/marte.py | f9f948a67a836eaaa4301207c7e9bf074231a62a | [] | no_license | magnoazneto/IFPI_Algoritmos | 995296fa22445c57981a1fad43e1ef7a8da83e5e | 3b5e79c79b7a1fb7a08206719fd418fba1b39691 | refs/heads/master | 2022-02-27T10:59:17.123895 | 2019-11-17T13:51:35 | 2019-11-17T13:51:35 | 186,868,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | def main():
msg = input()
print('Mensagens alteradas:', identify_mars(msg))
def identify_mars(string):
default = 'HELP'
lenght = len(default)
i = 0
def_idx = 0
infected_msgs = 0
while i < len(string):
if string[i] == default[def_idx]:
def_idx += 1
i += 1... | [
"magnoazneto@gmail.com"
] | magnoazneto@gmail.com |
f2f4823388349621ad80326960b1991b808953a9 | 0e6561b026eb41d73005b5c7cbc0708b43bfc2c9 | /Getting-Started-with-TensorFlow-master/Chapter 3/Kmeans.py | 5e8149c133c6363108b38312ee7cc671070a3531 | [] | no_license | RoyceRichmond/Getting_Started_with_tensorflow | c3948514496b410c64ecc84a7695a6163568b84e | 37e198491be13326b6259713792b1ea2b03e69a0 | refs/heads/master | 2022-03-31T00:03:55.103315 | 2020-01-13T18:32:51 | 2020-01-13T18:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os; os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
#compatibility mode for tensorflow, runs like a tensorflow 1 no advantages of tf 2.0
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
def display_partition(x_values,y_values,assignment... | [
"noreply@github.com"
] | noreply@github.com |
ebe61823f230bf6d45bdfab7c10060e7919519bb | 76cba124f60bf963b2e6bf4dbf03e74bfdb37899 | /democode/comet.py | 54d41fbd8968dc7de0a04921458475eae9bd6b57 | [] | no_license | gasman/exogenesis | b51d553bdb20fe523fe00f5fe585f6d7aaa84b72 | 511af1c990bb82d5364d6f950125c057610c8404 | refs/heads/master | 2021-01-22T11:51:35.771421 | 2013-09-08T10:53:59 | 2013-09-08T10:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from democode.antialias import Antialiaser
import draw
import math
class CometScene(object):
def __init__(self, lp):
self.aa = Antialiaser(lp)
def tick(self, pattern, beat):
self.aa.clear()
for x in range(2, 16):
b = beat - x / 4
head_y = max(2, 14 - (b / 4)) - 2 * math.sin(b * math.pi / 4)
greennes... | [
"matt@west.co.tt"
] | matt@west.co.tt |
f61070eb23f30a2cb49f8055f110f8c7523ddc9e | d612c5c0482b5114b87a7416ef90b41bc742e14a | /controllers/__init__.py | 9e0efc907226bbc80e4ad0a7175beb06d5b35e4b | [] | no_license | vandekul/zynthian_ecommerce_template | b620d2c48013819148a32b77a2182d58fc7b7360 | f03186ddff2abe5a8632e74195ea22e85907a3c3 | refs/heads/master | 2023-04-30T06:41:19.398794 | 2021-05-21T09:33:30 | 2021-05-21T09:33:30 | 104,468,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main | [
"fernando@zynthian.org"
] | fernando@zynthian.org |
b06db2c4ea14c1be7f50595eeed2b7f73570a8fd | 9ca5486c0bf9d4a4a7dc26605a79eadb76ee9c7b | /scraping/jjmeds/scrape.py | 11b0d2903d761fc8d711e7bd5252ce382b9e4eb1 | [] | no_license | MelonFaceDOOM/cannabis_scraping | e6f41e3741c483699085b85035b0eb3adf5252b1 | e1aef9554346aa00102e8e8059b336d7ff95183c | refs/heads/master | 2020-09-05T10:19:59.199381 | 2020-03-09T20:15:22 | 2020-03-09T20:15:22 | 220,071,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from lxml import html
import json
import requests
# this site checks for headers
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
page = requests.get("https://jjmeds.com/store/", headers=headers)
tree = html.fr... | [
"JMILLER@ad.hc-sc.gc.ca"
] | JMILLER@ad.hc-sc.gc.ca |
8edbc5115b8bcb7daf60315a79c5ba0bceac55a3 | de96646f9182004b4cf82ab39d9fcbff157e93e8 | /HW9/topNpageRank.py | 451d47daae99d6f3d0d909911687878cc0846bc2 | [
"MIT"
] | permissive | bhuvneshsharma/Machine-Learning-At-Scale | 370daa06db678617ee45ce2f9a17648e7b512c38 | 00406de025e3a94d3514d056a0ec7d46473444ef | refs/heads/master | 2020-12-23T10:39:53.397191 | 2019-02-10T12:23:16 | 2019-02-10T12:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | #!/opt/anaconda/bin/python
from mrjob.job import MRJob
from mrjob.step import MRStep
import ast,sys
class MRtopNpageRank(MRJob):
def steps(self):
return [
MRStep(
mapper_init = self.init,
mapper = self.m_rank,
mapper_final = self.final,
... | [
"lteo@ischool.berkeley.edu"
] | lteo@ischool.berkeley.edu |
b9a7d9f5e0b0a53798362891f356a066e77acd0e | 763d7e4c9267cbc9a0630685e15015c2bede2bc7 | /11-20 Solutions/11. Largest product in a grid.py | 4234c7387d220ee9a39c1b02cbf7db1427ddb4f5 | [] | no_license | slamatik/Project_Euler | 9fc1050324d15c91be598b75cdabf933c90b3595 | b9bdfe72c092ff9ea0318908f4453ff1d53d0cbc | refs/heads/master | 2023-01-07T05:01:19.498604 | 2020-11-10T18:25:24 | 2020-11-10T18:25:24 | 275,577,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | data = """
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91
22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80
24 47 32 ... | [
"vjaceslavsmatess@gmail.com"
] | vjaceslavsmatess@gmail.com |
c37a6eabbe04999369afcaca6484ce1d5d461ba3 | 2393395a46634ed12b749aaca2c461e235d62815 | /rutaVueltaOriente/rutaVueltaOriente.py | 2badddbb0d2f1e78aa4147f2af9fbeed3bed2695 | [] | no_license | vivianaZuluaga/DataEco | c2d5b63a40db9e1a8fe27eb617573664c427f65e | b0ac94e8598b0342742e9e37c755c059c953505a | refs/heads/master | 2021-01-19T00:05:07.610296 | 2017-05-21T19:40:15 | 2017-05-21T19:40:15 | 72,902,880 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
from rdflib import Namespace, URIRef, Literal, Graph
from rdflib.namespace import RDF, RDFS, FOAF
from utils.ontologias import UMBEL, CRUZAR, GEOES, OWL, skos
from uti... | [
"vazuluagab@gmail.com"
] | vazuluagab@gmail.com |
59a7f5997788e3abac546919980ba49f86147976 | 6ffcc7f189a6332c71c4f012ec5c2b7ee6748606 | /vaping_com/urls.py | 605cb96a20e8e3321a345b9a2ca5f39a48799dd9 | [] | no_license | VagnerSpinola/artofvaping | 591b487327d248ec669ec6f630bfa29789704cdd | a4076949f5aa759eccb89b9af56ee052902159db | refs/heads/master | 2022-12-11T10:40:39.890146 | 2019-11-07T14:14:32 | 2019-11-07T14:14:32 | 220,238,441 | 0 | 0 | null | 2022-11-22T04:48:13 | 2019-11-07T13:02:42 | CSS | UTF-8 | Python | false | false | 748 | py | from django.contrib import admin
from django.urls import include, path
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic.base import TemplateView
app_name = 'vaping_com'
urlpatterns = [
path('recipe/', include... | [
"v.spinola@onyxtechnology.it"
] | v.spinola@onyxtechnology.it |
53a918e3da7373feaf7ba73412451df8825f8a1a | 729ac731cc69ffb331e1ad86ec09946f6e210da3 | /welcome.py | a48ea96191811a0c14eccb4ee05f94eb1dd2eaa2 | [] | no_license | sadiqulislam/Python-Practice-All- | 1fb31095653137ea954ddf3d7173261b8e86a872 | f4a0305c0c4363ada6459bf55ee3ef267dcea53f | refs/heads/master | 2020-07-26T12:39:50.437859 | 2020-02-10T15:41:12 | 2020-02-10T15:41:12 | 208,645,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | message = "Hello's World"
print (message)
s = 'Amar Vai Tomar Vai Shishir Vai'
print(s) | [
"sishishir2015@gmail.com"
] | sishishir2015@gmail.com |
573fec4286cfc42c41152853e3c0f86ebf1b946c | 524a478da42f6497811f959fb70c0230f5e36d56 | /variables.py | 2f098139572b5d6417b224e84be6c10370bd7a5c | [] | no_license | conniepocky/Python-Files | 78969b3d284483479a1adbac00a8873155eafab3 | fb849f06363cea586578daedf08b1ce3aebd863c | refs/heads/master | 2020-04-01T04:20:11.664842 | 2018-10-13T10:20:46 | 2018-10-13T10:20:46 | 152,858,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | #!/bin/python3
#Game variables that can be changed!
#game background colour.
BACKGROUNDCOLOUR = 'white'
#map variables.
MAXTILES = 20
MAPWIDTH = 10
MAPHEIGHT = 10
#variables representing the different resources.
DIRT = 0
GRASS = 1
WATER = 2
BRICK = 3
#a list of all game resources.
res... | [
"noreply@github.com"
] | noreply@github.com |
0dfe0eb8b1e73f267341051377bd80e24735fa2d | dccec15d1d85fb654c52fe93a66da7383231a0d3 | /emotrix/RawData.py | 91d652431ec5a94c3e821d99693af6c0b5e4683f | [
"BSD-2-Clause"
] | permissive | emotrix/Emotrix | f238a6b987ef81106475ff526829ccdf6fdce3c4 | be771367ba6f38059094d9aad4d1ffa6f40c6d57 | refs/heads/master | 2021-01-19T18:14:10.129449 | 2017-10-30T03:07:53 | 2017-10-30T03:07:53 | 101,116,800 | 0 | 2 | null | 2017-10-25T02:47:14 | 2017-08-22T23:35:29 | Python | UTF-8 | Python | false | false | 5,546 | py | # -*- coding: utf-8 -*-
# **********************************************************************************************************************
# Archivo: RawData.py
# Proposito: Esta es la clase que obtiene la informacion en bruto, a partir de un archivo de texto.
# Contiene todas las funciones ... | [
"emotrix.uvg@gmail.com"
] | emotrix.uvg@gmail.com |
7c76eb80c29eade93325aedd9df6a6696a102335 | 4a9749d6eadd7bc0eac5e63647d49656bd7e4d4d | /Ajiself.py | 3166c83d6f301e28b7c14aaa9c7d95e0dd5da2e4 | [] | no_license | PutraRandy/Bot6-8 | da3e9b0bd4273efb75059e0b5e36bc0b57b2efaf | f2be6dd221b861e7cf9a45015670afef838aca8c | refs/heads/master | 2021-09-04T00:34:18.043029 | 2018-01-13T11:05:19 | 2018-01-13T11:05:19 | 112,493,805 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135,502 | py | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
# from imgurpython import ImgurClient
import time,random,sys,json,codecs,threading,glob,re
cl = LINETCR.LINE()
cl.login(token="EnFFw83lKCRm8HT72GP4.x6EvjLE74Nmu1Wo4pafGra.dcOZJ56wSLmaVuGKfv6dkSv58jj49J... | [
"noreply@github.com"
] | noreply@github.com |
eec486626a15cfc2fe84cee4502784e8873d9f69 | 3fb660ec514a7e2d2f225313991f16b58974f708 | /Learning/assert-keyword.py | 434293e5a78caed67cee76c60559b793cca2795a | [] | no_license | jwatson-CO-edu/py_info | e2c89bbe05b411d2086c182630d165f87a99ec3f | 297f9f5733fe256e5c96f2da82f49d82c2a4ba9d | refs/heads/master | 2022-02-06T13:03:14.178557 | 2022-01-22T03:01:46 | 2022-01-22T03:01:46 | 230,357,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | """
RESULT: If the conditional following the 'assert' keyword evaluates False , then an 'AssertionError' is raised , Just like C++
You can optionally provide a message string to give more information about the assertion was violated , which is a good idea anyway
"""
def picky_arg( arg ):
""" 'arg' mu... | [
"james.r.watson@utah.edu"
] | james.r.watson@utah.edu |
852a42bbc2e421b938c6ca4762c6f1e94e3589a7 | dfa44974e206b7fd694c80dc5d61ab4f491740ae | /WebApp/simple_server.py | f16d01cc90962bbd9287ce9467b72ff04b212d39 | [] | no_license | spencer-bain/Mobile-Robot-Package-Delivery | 9dbac5c5298c28303bbd30fdd969100105741be9 | 84ecdc4b1ded7c8103a1bbe4f00f351ccefe6c29 | refs/heads/main | 2023-05-07T11:25:06.051352 | 2021-05-17T21:24:05 | 2021-05-17T21:24:05 | 304,912,694 | 3 | 3 | null | 2021-05-03T18:45:06 | 2020-10-17T15:49:02 | Python | UTF-8 | Python | false | false | 406 | py | #!/usr/bin/env python
import http.server
import socketserver
class MyRequestHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.path = '/old_index.html'
return http.server.SimpleHTTPRequestHandler.do_GET(self)
Handler = MyRequestHandler
server = ... | [
"noreply@github.com"
] | noreply@github.com |
4566e30934b4af642689d49489be5223259ba13a | bda947383ef6b11152323610202540b0315b1cf6 | /metabase_client/__init__.py | 52ed8442b63da3b120caf167a8006f20fe1d7bf4 | [
"MIT"
] | permissive | victormartinez/metabase_client | 48470dc3e0ba54ba92c59bbaa2fdbaf45d56389f | 59946007a740078c1ae2307461488fd89f49b91f | refs/heads/master | 2020-11-27T23:25:45.864124 | 2019-12-22T23:41:27 | 2019-12-22T23:41:27 | 214,240,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | __version__ = "1.0.0"
from metabase_client.client import MetabaseClient
| [
"vcrmartinez@gmail.com"
] | vcrmartinez@gmail.com |
ec51d656acb20e3dd31c52af1abfe0d4519a0a86 | c3c7e4fb96aaf90842a7f90eac2c5c864e7d300a | /app/prediction_engine/trained_models/other_relations/relation_prediction.py | d71dc93aa12af56349b8783274d95a384bf872ab | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | templeside/visual-relationship-detection-api | 811d3991651b5cadc7750e83df19ec61ee3fb619 | 8e6ef885fb5cd79021ea6b1d4b498650aec8e30d | refs/heads/master | 2023-08-21T13:14:52.639076 | 2020-09-27T06:47:24 | 2020-09-27T06:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,711 | py | # -*- coding: utf-8 -*-
"""
"""
__version__ = ''
__author__ = ''
import numpy as np
import pandas as pd
import tensorflow as tf
from tqdm import tqdm
import os
from keras.preprocessing import image
from keras.preprocessing.image import ImageDataGenerator
import argparse
import imutils
import cv2
import time
from a... | [
"utkarsh.srivastava@nexxo.com"
] | utkarsh.srivastava@nexxo.com |
441550910b8e10288fe7e1729523362f985800c8 | 9c15e7ce43749814709a71e26e23f75aaf696be5 | /orders/migrations/0003_rename_orderitems_orderitem.py | 4e9f839a7d53ccf7ed1c5b68ca2afbd6dce47771 | [] | no_license | AndreVld/geekshop-server | aef881e5ab43a059d3a266d000e6382381cfafcf | 7aed3c2f6387eb16ebca86ff42cc9c0f6be002e8 | refs/heads/master | 2023-07-29T18:51:58.333818 | 2021-08-28T14:31:44 | 2021-08-28T14:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.2.4 on 2021-08-20 17:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
('orders', '0002_auto_20210820_2039'),
]
operations = [
migrations.RenameModel(
old_name='OrderItems... | [
"andrey.iotko@bk.ru"
] | andrey.iotko@bk.ru |
37bebcb32eb35ecc87094e0cc6707efc09833e4b | 92a3153dbf9f21740c83fe644369587d67938be6 | /Project3_Data Visualization/PartIII_trend_graphs.py | 90c938b82ddb0953b0224950e97e3caeef03c012 | [] | no_license | JuHuang1024/Movie-Industry-Exploration-2010-2017 | d301265ca437ad294739fa03f6b50f4fc02a2bf7 | 1e0b373c5a705847da2d3945bc835f4e9e762ee8 | refs/heads/master | 2020-04-16T17:30:36.797982 | 2019-01-15T03:23:39 | 2019-01-15T03:23:39 | 165,774,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 27 00:36:40 2018
@author: Xinyue Liu, Tianyi Yang, Zikai Zhu, Ju Huang
"""
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
# Calculate col by year by avg/cnt/sum:
def col_by_year(y_var, df, method, var)... | [
"noreply@github.com"
] | noreply@github.com |
6090db2a0db5f854d9643baa6f47785dc2d7ef2d | 712953727bc2b413ea007f4002df065b6a577a6a | /arm.py | bc1be07ec325735a0552934172373695e3e610b0 | [] | no_license | Rajesh0045/project | bd4fa2b91432bb915bfd5eab3a668f4d6dfd50d3 | 9fdffc98f25a645a713c989ea7a5ad04d4447754 | refs/heads/master | 2020-06-14T10:07:36.482449 | 2019-07-17T06:36:28 | 2019-07-17T06:36:28 | 194,977,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | num=int(input())
sum=0
t=num
while t>0:
digit=t%10
sum+=digit**3
t//=10
if num==sum:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
50125ef71e5713edfe2bb156f8eddb742273df84 | 478ef9bd8f6a91d9a4e637030a7e0e116db0ccf5 | /config.py | ab0aded3f5439199506e9e9205442fcf7e2f3296 | [] | no_license | skill12/Flask_Base_Template | 6197af6ad2016870ae3b92a5184d592d708a8233 | d4106516c0395d3174b1637f8b59e15edb46f582 | refs/heads/master | 2022-07-18T10:45:16.885899 | 2020-05-18T02:44:03 | 2020-05-18T02:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | import datetime
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config():
# Flask
SECRET_KEY = os.environ.get('SECRET_KEY') or 'asdl1230axcqaq24yr4'
# DB Base Config
MONGODB_DATABASE = os.environ.get('MONGODB_DATABASE')
MONGODB_SERVER = os.environ.get('MONGODB_SERVER')
MO... | [
"94wogus@gmail.com"
] | 94wogus@gmail.com |
b0737e53bab3a189f26c79793e6107c969e82108 | 7004661440b908a622ccc01809864971ed6f6d7b | /main.py | d594a99dc4f2b81f4a0b3a1fce2710a201520858 | [] | no_license | hanj2270/E-HentaiCrawler | a00aa91d4fae2fe1082eebc0daa30ad152ca9f41 | 46f778db61da2166c35bcf03aaf930177c3acd8d | refs/heads/master | 2021-01-19T02:33:13.803416 | 2017-03-08T08:34:18 | 2017-03-08T08:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
import threading
from multiprocessing import Queue, Process
from Proxy.IPPool import getIP
from config import PROCESS_MAX, THREAD_MAX
from crawler.indexgeter import indexgeter
from crawler.webDataGeter import webdatageter
from database.data_writer import data_writer
from error.error_handling im... | [
"shuiqukeyou@gmail.com"
] | shuiqukeyou@gmail.com |
bacda6f7b3882e406e17352de467fd44bcd4599a | 13e5575a085d215dbae178e67306b83edea73e19 | /Day11/demodjango/demodjango/wsgi.py | d58775054f8c2676b292b0ceb0e33d4f150be845 | [] | no_license | Thameem27/PythonTraining | b5783b908fc2f4bff414e4e8c1121d02031ca834 | effff96aa5f0518c6924f4d102618080dc6dee02 | refs/heads/main | 2023-03-17T13:39:32.546718 | 2021-03-18T19:58:41 | 2021-03-18T19:58:41 | 339,074,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for demodjango 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.setdefau... | [
"noreply@github.com"
] | noreply@github.com |
b153cb992e2977e0e3314dcfde786cd291bb96ce | 5ca9ff4fad7d4dbf5bdec0dc1effe15106062496 | /Spider/ScanningSpider/spiders/CVEDetails.py | e20aae6a3c7bc628ede1c78033fd0f2eaf838cb5 | [
"BSD-3-Clause"
] | permissive | kenuosec/discern | 392b9d5626dc5c03a14cbe5e7b5ff8cb1b1e4f5a | f304b0557aa0c7293566ced9075d9ff9365ea424 | refs/heads/master | 2023-02-27T10:21:36.628892 | 2021-02-06T06:18:12 | 2021-02-06T06:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | import re
import scrapy
import util
from ScanningSpider.items import CVEItem
from ScanningSpider.items import CVEDetailItem
class CVEDetails(scrapy.Spider):
name = "cve_detail"
allowed_domains = ['cvedetails.com']
base_url = 'https://www.cvedetails.com/vulnerability-list/year-'
baer_detail_url = "https... | [
"i888.happy@163.com"
] | i888.happy@163.com |
0f409090e76cc23fcaec572007906a2ff8e13d85 | d1dc165f2626222f4e860a36490bdb4b9518b948 | /segment_model/cam_new_test_server.py | 52e718158bf15278a2df187cc77eb9475b78ae5d | [] | no_license | JaMesLiMers/tf-model-segment | ab2041beeaf82393cbba8002d23bbe7551f26b54 | ed772dc8fa5a802a3f70f6b7b847a4469fdc3211 | refs/heads/master | 2020-04-01T10:19:11.732415 | 2019-01-27T16:54:08 | 2019-01-27T16:54:08 | 153,112,612 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,813 | py | import tensorflow as tf
import os
import cv2
import numpy as np
import os.path
import net_max3
import weights_loader
import time
import json
import socket
def sigmoid(x):
return 1. / (1. + np.exp(-x))
def softmax(x):
e_x = np.exp(x - np.max(x))
out = e_x / e_x.sum()
return out
def iou(boxA,boxB):
# b... | [
"jameslimers@gmail.com"
] | jameslimers@gmail.com |
66f3a68f4a272e0e38cc2bdd19290f27e907d755 | 97ca52e0c73f7bf7048e28751e022a38504b5a1b | /codeblue/crypto/lagalem/modified.py | 70e2bbb8520a80a867860d0e453a0881714b22f4 | [] | no_license | SoulTaku/ctfs-2018 | 4f224ab140d7f8e3561b7a8cfbcc512c9f48afc3 | 45f50458cb8a686f24968f63f06cb85ed9ff3787 | refs/heads/master | 2020-04-16T13:40:13.158602 | 2019-02-06T20:22:50 | 2019-02-06T20:22:50 | 165,637,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d1891a9860868c1f211c55ecfe0d209a198de5ef691eb39525427998833f740d
size 923
| [
"alexmoga69@yahoo.com"
] | alexmoga69@yahoo.com |
b29ebbd136c29bd1e5de693ced5bd51baf0ff8bd | 106872abd9c268df1b5e95342abe5ddf11f0045d | /TP/games/level1.py | 5b981ad7cba8f0e5e698a6bc7d8b598c0c9042c3 | [] | no_license | Anisha7/TermProject | e85fbd567107976b7a11bda5f575c3dbabc5a3a8 | 8ba5733d6a203e550327bea5da7e612f65d95823 | refs/heads/master | 2021-03-27T17:34:14.956814 | 2017-12-07T17:45:38 | 2017-12-07T17:45:38 | 111,124,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,881 | py | # game for level1
#############################################################################
import pygame
from main.pygamegame import *
from main.player import *
import random
#############################################################################
class RockPaperScissor(PygameGame):
def __init__(self... | [
"Anisha7@users.noreply.github.com"
] | Anisha7@users.noreply.github.com |
f4a585dc74125e35db73eec3d12e0304518d7dc2 | 6060af9089e781f1f8f93d605077609cadb31c29 | /script/pretranslate.py | 187a4740eb6111fd93df9e6465b64c8105bda4a2 | [] | no_license | robo-marc/moveit_documents | 53a02d16711aef8d29f8f448d17af2fb209097d4 | 419a14db5d3aa294618dbec2b79d18ab62b86225 | refs/heads/master | 2020-12-06T13:41:49.119829 | 2020-01-31T13:07:39 | 2020-01-31T13:07:39 | 232,476,686 | 4 | 0 | null | 2020-01-20T07:10:10 | 2020-01-08T04:20:59 | Python | UTF-8 | Python | false | false | 855 | py | import sys
import polib
import langdetect
#import goslate
from google.cloud import translate_v2 as translate
import time
from urllib.error import HTTPError
#gs = goslate.Goslate()
translate_client = translate.Client()
podata = polib.pofile(sys.argv[1])
podata.metadata['PO-Revision-Date'] = time.strftime("%Y-%m-%d %H... | [
"yosuke.matsusaka@gmail.com"
] | yosuke.matsusaka@gmail.com |
cf6364cfe0b6485a6cb715e366ab55a7804f6714 | dd7e2cb3366855584fc27bbb2e0dc7ed63977117 | /vida/vida/migrations/0019_auto_20160204_1447.py | f82aefc2ee0ce4b604551cdbd531c2578fedde9d | [
"MIT"
] | permissive | ProminentEdge/flintlock | 3d3eb6efbe4a2d0e731f8a26e69ffcd314e25cb9 | 271c897b332f0c24e00a23c1fe86f5172fb9dd30 | refs/heads/master | 2021-01-17T07:58:49.650273 | 2016-03-05T02:06:59 | 2016-03-05T02:06:59 | 50,030,647 | 1 | 1 | null | 2016-03-04T05:10:45 | 2016-01-20T13:06:30 | JavaScript | UTF-8 | Python | false | false | 645 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
('vida', '0018_auto_20160204_1131'),
]
operations = [
migrations.AlterModelOptions(... | [
"garnertb@gmail.com"
] | garnertb@gmail.com |
19daad741d77ccc3bc7c8e4f92324d581d8c60bd | 69b1f36de682899c5d0c92b9851e402f69992d5a | /backend_ass/backend/core/migrations/0002_delete_user.py | 04ac72cf3af3f14dc9d5a0f3df59b887f0462aa1 | [] | no_license | DimpleM/django-crud-apis | 9eef02481719638b19b9aa0d849dede44ffe0833 | 956c2824679a37cbd6de218a6313290f057d45c9 | refs/heads/master | 2022-11-11T18:08:36.780980 | 2020-07-08T06:21:49 | 2020-07-08T06:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Generated by Django 3.0.7 on 2020-06-28 09:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='User',
),
]
| [
"dimple.m@tyroo.com"
] | dimple.m@tyroo.com |
da58ea12054c170cd0037d9f7aeb33239ee18377 | e04daaafeab0bb35202615c83b7be6b8fb56e307 | /Scripts/massfluxdata_comparison_steadystate.py | b1d78072db396c87d2aa13b88eb05c7892c00e3a | [] | no_license | Skhurana136/Spatial_heterogeneity_saturated_zone_microbial_dynamics | 2e0783c7039f1aa57980fdfcbf39bf79f05e2b47 | e92953dfef2195c58145f8f11296836c3496aa49 | refs/heads/main | 2023-03-20T21:09:11.845672 | 2021-03-18T14:19:54 | 2021-03-18T14:19:54 | 315,624,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 3 12:05:06 2020
@author: khurana
"""
import os
import pandas as pd
import numpy as np
#Load data
parent_dir = "E:\Zenodo_spatial_heterogeneity"
path_data = os.path.join(parent_dir, "massflux_steadystate_BG.csv")
data = pd.read_csv(path_data)
data.columns
data.dtypes
re... | [
"swamini.khurana@ufz.de"
] | swamini.khurana@ufz.de |
dce850901558d0ff6dc63d78d4a0bae84ace70ca | 9096770587f0e1d74f974565ceb14c226b76af07 | /docker_web/prediction/views.py | 98fc20f7013e20279b1b818e72190fe0f35f85a1 | [] | no_license | johnny87422/spine-model | f1e8ae26b444f706ff9ad8f2008b1b9e2cdf19e5 | ed242fa91edec1bf11b1463afa6f54ff6c065a17 | refs/heads/main | 2023-03-22T02:37:23.889645 | 2021-03-18T03:31:49 | 2021-03-18T03:31:49 | 348,180,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,870 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
from rest_framework import status
from .utils import context_wrapper
import requests
from reques... | [
"noreply@github.com"
] | noreply@github.com |
4bdce0129f0b13ab55c5164365ae675155e59628 | ce35973058f807a748eccf0a69f8ebeb66849540 | /variance-networks-pytorch/core/layers.py | 0b0ccbb7cb95dc6df6bf82ec344da67f9f9997fb | [
"Apache-2.0"
] | permissive | da-molchanov/variance-networks | 0758c13e7d84f761464419e0cdd18919fbbf1b4c | a2a811af02e6a1a30a68a4bda23bd5256e4f5101 | refs/heads/master | 2020-03-23T01:08:04.339297 | 2020-01-31T18:06:41 | 2020-01-31T18:06:41 | 140,902,151 | 38 | 7 | Apache-2.0 | 2020-01-31T18:06:42 | 2018-07-13T23:52:26 | Python | UTF-8 | Python | false | false | 16,750 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.nn import Parameter
from torch.distributions import Bernoulli
import math
from core import metrics
class ModuleWrapper(nn.Module):
"""Wrapper for nn.Module with support for arbitrary flags ... | [
"ars.ashuha@gmail.com"
] | ars.ashuha@gmail.com |
d608869a023c98b59d85dbbe2e93b9492c03a9c8 | 0b9a4e8017a283f84ed4dea8a2b913c1dd40797b | /FileListing.py | 451d1e59c9a43e7daf2a2cf7ac7283e00467f556 | [] | no_license | ZorroLeVrai/Python.StockCheck | 864356024dc4f353a28178f99c3cfe5fe1f6e6fa | db73d9df802fdbfdfacd7a0434233ce0622b3612 | refs/heads/master | 2022-12-18T02:34:21.994018 | 2020-08-17T06:51:36 | 2020-08-17T06:51:36 | 288,104,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,953 | py | from os import listdir
from os.path import isfile, join
import os
import os.path
from shutil import copyfile, copy
class PathExplorer(object):
"""Explore the current Path"""
#constructor
#folder_src: source directory
#filters: extensions to take into consideration
#display_path: int used to tell u... | [
"69362591+ZorroLeVrai@users.noreply.github.com"
] | 69362591+ZorroLeVrai@users.noreply.github.com |
1ba02ad86db880b590726760aa39a2c2e57b614f | 1dd0269153ee6e4f32eb18e967e0dae30718c811 | /src/django-mysql/tests/testapp/test_rewrite_query.py | 2dc240f3fcbf24e3ac6724eb08b3c2e24cb2c957 | [
"Apache-2.0"
] | permissive | cometsong/jaxid_generator | 35a2e498f8c58c4b7d03b2a6e3c7d4dc83ea1cf4 | be5222d9c5ce57a169b94b0afd1ae9f7f10a66c1 | refs/heads/devel | 2023-02-02T05:00:52.958563 | 2020-10-21T00:05:29 | 2020-10-21T00:05:29 | 130,707,163 | 2 | 0 | Apache-2.0 | 2020-12-22T15:19:35 | 2018-04-23T14:13:53 | Python | UTF-8 | Python | false | false | 12,612 | py | # -*- coding:utf-8 -*-
from __future__ import (
absolute_import, division, print_function, unicode_literals,
)
from django.db import connection
from django.test import TestCase
from django.test.utils import override_settings
from django_mysql.monkey_patches import patch_CursorWrapper_execute
from django_mysql.rew... | [
"benjamin@cometsong.net"
] | benjamin@cometsong.net |
aecd13af114aac7a671b50ba81a99c200188841a | 471f6e411e86bbd41c909d626ca6925202900d08 | /app/migrations/0002_auto_20200910_1734.py | 509b0dd624301610a7a1f55a9268e2bee26c007a | [] | no_license | fearsd/url_shortener | 04b0f30a665c33df1e3493bebb9355e8aba14bb6 | 8843060c3d3db5b713667874d39b5e985a046232 | refs/heads/master | 2022-12-07T06:16:09.044467 | 2020-09-13T06:59:29 | 2020-09-13T06:59:29 | 294,408,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 3.1.1 on 2020-09-10 12:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='url',
name='id',
field=models... | [
"46864568+Rifat-Fazlutdinov@users.noreply.github.com"
] | 46864568+Rifat-Fazlutdinov@users.noreply.github.com |
56071c9dbe2ba7e34e38e15fca15143a1dcf295b | db9140a12939db6226d68624eecc3cc3fdadf3dd | /adage/node.py | 417b8feaaa05c5f55453175c310e5311253af50e | [] | no_license | nextiams/adage | dedb09a64bdbd714d7043a00a51f556b6224e129 | 57525f7ed67d765525009b639bb355c74b1054e1 | refs/heads/master | 2022-09-08T23:25:24.163519 | 2017-10-09T08:13:33 | 2017-10-09T08:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | import time
import uuid
import logging
import adage.nodestate as nodestate
log = logging.getLogger(__name__)
class Node(object):
def __init__(self,name,task,identifier = None, define_time = None):
self.identifier = identifier or str(uuid.uuid4())
self.name = name
self.task = task
... | [
"lukas.heinrich@gmail.com"
] | lukas.heinrich@gmail.com |
3f214075e3131a79c2639187c0cf14cc0c6ca404 | 517b22b8021f1d9907ea994303f70eadb563ace5 | /plugin.py | 54ed908a102ecaefd373a8978ca36766eca63192 | [] | no_license | MiniHero/mapcache_xml_generator | e5f0635c153910d9dbf340ac2737104574e5480a | 9cd7897eb08a2fa064800268579a3af8a7f9e27d | refs/heads/master | 2021-01-22T02:39:43.881662 | 2015-03-18T02:40:56 | 2015-03-18T02:40:56 | 32,367,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | from PyQt4.QtCore import *
from PyQt4.QtGui import *
import resources_rc
class Plugin:
def __init__(self, iface):
self.iface = iface
def initGui(self):
self.action = QAction(QIcon(":/mapcache_xml_generator/icons/logo"), "Generate Mapcache xml config file", self.iface.mainWindow())
... | [
"MiniHero@Yuchuans-MacBook-Pro.local"
] | MiniHero@Yuchuans-MacBook-Pro.local |
07ff0cbffd1bd8b601da060adb7645e04a982e53 | 4ba6e58255643acf5c4bd3a7b1bf2765705f84b2 | /OldProjects/segmentation/venv/bin/f2py3.7 | 051339fb4cb97d760fe3fad423e99a8c2e2efffa | [] | no_license | CliffordC/OldPythonProjects | db4358a4cc53d98248052f1aed821ca9a28c0e62 | 502ffc0998040e6d9060169906c03fa73f62b070 | refs/heads/master | 2022-07-24T00:30:07.351813 | 2020-05-18T05:01:57 | 2020-05-18T05:01:57 | 264,800,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 7 | #!/Users/cliffordchi/PycharmProjects/segmentation/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"siestaftw10@gmail.com"
] | siestaftw10@gmail.com |
8c6ac0054f84acf8258cc2a5a97dfeaac8b5bdab | 6fabea35bd3f431ec2fc76c3b3e439494b8e12a8 | /prototypes/P02/code/snippets.py | 91d2507ac303dc54932e599feb67c6c54c90b4e7 | [] | no_license | brugazoni/collabBruno | 51776046c9f2d282916eef489d5df9c0a225be0b | 122ced078678a795c302d78a79adcf71228156e3 | refs/heads/main | 2023-06-11T08:08:20.074268 | 2021-07-06T16:52:44 | 2021-07-06T16:52:44 | 353,496,953 | 0 | 0 | null | 2021-03-31T21:39:52 | 2021-03-31T21:39:52 | null | UTF-8 | Python | false | false | 1,524 | py | import sys
from os.path import join
from collections import defaultdict
from sharedDefs import getMountedOn, deserialise, report, saveAsText, dict2text, distance
essayid = sys.argv[1]
configid = sys.argv[2]
sourcepath=[getMountedOn(), 'Task Stage', 'Task - collabBruno', 'collabBruno', 'results', 'spotify', essayid... | [
"andre.p.lima@gmail.com"
] | andre.p.lima@gmail.com |
50f5396966de7692e11e6369a27b10ec30a47ad7 | debc224134dd6dc1d87811dda9d2276fc841f56d | /scrape_jobs.py | 13fcae233a5031c9612057fefa566c1efac83da9 | [] | no_license | btroy94402/bullpen | a3beb3edf6d4a5efb4d73dd0fdc523e344c76610 | a2086cebc9e34772af3fa17bc2a78b65e53e8a52 | refs/heads/master | 2023-07-31T21:46:16.243796 | 2021-09-26T20:24:02 | 2021-09-26T20:24:02 | 296,965,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | ### Written by Brian Troy July 7, 2021 (bitroy@yahoo.com)
def extract(page, my_url):
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
url=f"{my_url}{page}"
r = requests.get(url, headers)
soup = BeautifulSoup(... | [
"bitroy@yahoo.com"
] | bitroy@yahoo.com |
52c025692aaad19bacf308a26578cc9bf8277340 | 57c570d1b5a621158d8763f935e2069be6b8c90a | /tykj-operation/tykj-operation/service/service/estoreservice/api/tests.py | 5be1dda2c5f44a1c0e04cdf10ddf55e7dc9f2c39 | [] | no_license | liuliainio/liuli | e011decf45f7eca7009a12ad4a96f33a17055945 | 203fbf4f135efb6432c77b937633003ce2f2c9a2 | refs/heads/master | 2021-01-10T20:35:08.070770 | 2018-08-21T05:52:59 | 2018-08-21T05:52:59 | 25,625,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | from __future__ import print_function, division, absolute_import
from bson.objectid import ObjectId
from django.test import TestCase
from estorecore.servemodels.push import PushMongodbStorage
from estoreservice import settings
import logging
import os
import time
from estorecore.test import get_all_test_cases
logger ... | [
"liuliainio@163.com"
] | liuliainio@163.com |
000fe1399dc9571f68c7ea1593b8fcf2e18e8693 | 5dda3f8d9995888cb8b467816f3e43cce95a4b76 | /May21/Thouses.py | 9984996a9e15b5db86065e7207ffb45f02ecef89 | [] | no_license | Shlok-Zanwar/Codechef-Solutions | c15e0c83896a4033d6c6c65e1ea4b48d2028e94c | b4471dc9b923bc5969e76a613ffb89f754a9914a | refs/heads/main | 2023-07-09T08:07:29.699715 | 2021-08-09T06:19:17 | 2021-08-09T06:19:17 | 354,012,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | cases = int(input())
while cases > 0:
nodes, start = map(int, input().split())
tree = [[] for i in range(nodes + 1)]
values = [0 for i in range(nodes + 1)]
for i in range(nodes - 1):
parent, child = map(int, input().split())
tree[parent].append(child)
ans = start
def getOrde... | [
"Shlok-Zanwar@users.noreply.github.com"
] | Shlok-Zanwar@users.noreply.github.com |
9dad450b751d4f27979188dbad375d5eaf84f02f | 58b6ed538e306988b0d99e41d28da57006fedcfe | /experiments/lidc_exp/data_loader.py | 6c9767049c8e12004cc15f089323a513fa6e3105 | [
"Apache-2.0"
] | permissive | odysseus0/medicaldetectiontoolkit | 1f30ba697cce33c13cb81507a9a8df68a2d09be8 | 9a041f5d087dfdb3984c681144ae118a07061ea6 | refs/heads/master | 2020-05-17T18:32:20.588733 | 2019-04-28T09:33:08 | 2019-04-28T09:33:08 | 183,886,991 | 0 | 0 | Apache-2.0 | 2019-04-28T09:29:37 | 2019-04-28T09:29:37 | null | UTF-8 | Python | false | false | 23,990 | py | #!/usr/bin/env python
# Copyright 2018 Division of Medical Image Computing, German Cancer Research Center (DKFZ).
#
# 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... | [
"p.jaeger@dkfz-heidelberg.de"
] | p.jaeger@dkfz-heidelberg.de |
27254b0f27633c1b90e0cccf74b46dd635fd6e20 | e4ce8b3fd012f4db91507e5d1567277b9b31804a | /scripts/presetCleanup.py | ce21510dbb4f7bc8faac9775dfeafca187b2516f | [] | no_license | nicelifeBS/BJsToolBox | 7a2a60e98967af958501bfc2e8622c83872e133f | 5016f25982d283c72960a35d056b0ca499bb0e82 | refs/heads/master | 2016-09-06T08:05:36.547922 | 2014-05-12T07:50:11 | 2014-05-12T07:50:11 | 15,488,086 | 4 | 0 | null | 2014-01-19T08:51:25 | 2013-12-28T06:07:05 | Python | UTF-8 | Python | false | false | 2,937 | py | #python
##----------------------------##
#
# Clean up material presets
# in the shader tree
#
#
#
##----------------------------##
# Services
sceneservice = lx.Service('sceneservice')
layerservice = lx.Service('layerservice')
# Arguments
arg = lx.arg()
sceneservice.select('render.id', '0')
renderID = sceneservice.q... | [
"bj.siegert.forum@gmail.com"
] | bj.siegert.forum@gmail.com |
5c0d2bfc9f817295930bb22add7aaaa45b633a0b | 79ce199b19e546aa19a9619d76483cb5cca76506 | /func_global.py | 1b3c20a757114fe8e10f8fd29cad2f5bb137e886 | [] | no_license | andriyevski/study | 2483dafd75ab902a6d5bdd35bb52fc06b6952290 | f144232968121d3d5dac4515b7cbd50331fd8b30 | refs/heads/master | 2021-02-11T10:49:26.267812 | 2020-03-02T21:13:13 | 2020-03-02T21:13:13 | 244,484,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | x = 50
def func():
global x
print('x ravno', x)
x = 2
print('zamena x na ',x)
func()
print('Znachenie x est : ', x)
| [
"[Andriyevski@gmail.com]"
] | [Andriyevski@gmail.com] |
291249ca174379bb84d42e63c78fdf78cee4b58c | 27e2b4b14d8217fcad3b57ef8918cb857931d89f | /learning/modules/cuda_module.py | abc88462975e47882fa8c9515c8385d895769c71 | [
"BSD-2-Clause"
] | permissive | jhu-lcsr/good_robot | 205b31e9a2399032488ffa094d9f1e0d07592aa4 | 61217d65f040d536e54804150ce8abcf97343410 | refs/heads/master | 2022-03-31T23:49:04.958796 | 2022-03-25T18:14:14 | 2022-03-25T18:14:14 | 198,902,668 | 95 | 24 | BSD-2-Clause | 2022-02-18T20:45:13 | 2019-07-25T21:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 365 | py | import torch
from torch import nn as nn
"""
class CudaModule(torch.nn.Module):
def __init__(self):
super(CudaModule, self).__init__()
self.is_cuda = False
self.cuda_device = None
def cuda(self, device=None):
nn.Module.cuda(self, device)
self.is_cuda = True
self... | [
"elias.stengel@gmail.com"
] | elias.stengel@gmail.com |
c632202a18af1392cc6f6afef28eb9a3fe8ac4fa | 47fd026ee1096d013cc41afe12c4e2736167fb9e | /src/leetcode/java/LC370/370.py | 3152647c2f711c5de810263e2f1ea8bc9ee4c046 | [] | no_license | dddwj/Leetcode-Solutions | a71b0f7aeb9d0bdaf74acbbd0c6e90c380708dd1 | dcdce4b099d401fe934d00dc9c3cdf8c455d8179 | refs/heads/master | 2022-11-25T23:13:22.028597 | 2022-11-23T22:30:21 | 2022-11-23T22:30:21 | 242,368,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Reference: https://leetcode.com/problems/range-addition/discuss/1339761/Detailed-explanation-or-Python
class Solution:
def getModifiedArray(self, length: int, updates: List[List[int]]) -> List[int]:
ans = [0] * length
for start, end, incr in updates:
ans[start] += incr
end ... | [
"dwj2930@163.com"
] | dwj2930@163.com |
2835c6426469a8c114fb1a60b7567e563589339c | cca53e4b21ca8d31f4b66519ac678e37ebce47a8 | /exercises/ex8.py | 90790acc57dae4156d8660a53d5b61fb7b4b6265 | [] | no_license | hancush/pynotes | b115a92ac9eb9b9d4e410177da855a828487adbd | be27097a8726d4cc22740b1b96398a7a77289d22 | refs/heads/master | 2021-01-19T00:47:23.246090 | 2015-09-15T21:20:30 | 2015-09-15T21:20:30 | 40,318,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | formatter = "%r %r %r %r"
print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, False, False, True)
print formatter % (formatter, formatter, formatter, formatter)
print formatter % (
"I had this thing.",
"That 'you' could type up right.",
"But it didn't s... | [
"hannah.cushman@gmail.com"
] | hannah.cushman@gmail.com |
36a81822d94255673f665f9ee2e182f77d8a7ad4 | 0ec179729d7d6c32be2f132c3fe604bb9dd4e66e | /Model/Mixmatch_Wide_Resnet.py | 13f1c7a04ac34fbbfe35654c1515b3e7176f1912 | [
"MIT"
] | permissive | maple-research-lab/EnAET | 8cb2277e6d1bd764f34bf579701041b94d46415b | 45872fc8704b723395e8c5a489a3157a771fc6df | refs/heads/master | 2023-08-03T14:57:27.024739 | 2020-12-28T01:49:54 | 2020-12-28T01:49:54 | 222,971,462 | 88 | 9 | MIT | 2023-07-27T20:57:22 | 2019-11-20T15:42:27 | Python | UTF-8 | Python | false | false | 22,120 | py | # /*******************************************************************************
# * Author : Xiao Wang
# * Email : wang3702@purdue.edu xiaowang20140001@gmail.com
# *******************************************************************************/
import math
import torch
import torch.nn as nn
import torch.nn.functi... | [
"wang3702@purdue.edu"
] | wang3702@purdue.edu |
0a703a848e5a2d7aed38d289ea6d14dffacd37a5 | 1374d2aeaf391aa9be8256d34ec440cb37f6461b | /python-basic/my_module.py | d9263bbae33fb5267947058f83685c87d0b6d2a5 | [] | no_license | mingggkeee/python | 8c394682ce6339329beb6922d2f740a46e0ee047 | b15c474bda604ecf14ad5c8aa25996d91e7657d9 | refs/heads/main | 2023-01-30T10:09:32.990608 | 2020-12-14T10:05:56 | 2020-12-14T10:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py |
print('this is my_module')
X = 100
def add(*args):
total = 0
for d in args:
total += d
return total
print(add(10, 20, 30, 40, 50)) | [
"noreply@github.com"
] | noreply@github.com |
05b1f77092060e63d75e668a1221e319952163a7 | e7a9bac3b02a3849c1ab5d6990012510b8592c47 | /src/briefcase/commands/__init__.py | 5ed9108309d7fddad2a7683abe59158b365c852f | [
"BSD-3-Clause"
] | permissive | saroad2/briefcase | 3d15dabfa6462a3b123053042532d0ae482b689d | afbe8ed499c08afbeaa837ea032fa24d20b320a5 | refs/heads/main | 2023-03-06T12:33:52.929614 | 2022-10-04T22:27:03 | 2022-10-04T22:27:03 | 245,388,096 | 1 | 0 | BSD-3-Clause | 2023-02-26T20:59:27 | 2020-03-06T10:12:29 | Python | UTF-8 | Python | false | false | 402 | py | from .build import BuildCommand # noqa
from .create import CreateCommand # noqa
from .dev import DevCommand # noqa
from .new import NewCommand # noqa
from .open import OpenCommand # noqa
from .package import PackageCommand # noqa
from .publish import PublishCommand # noqa
from .run import RunCommand # noqa
from... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
f0fe4ca2175284e073366e4bb5c3fd85bbe2a82c | 6b7aef6254b5a3535e2540792299ca52fadeed68 | /src/pi_django_app/views.py | bfca293c7929a11d4f77963b2ccb8ce4d3c6245d | [] | no_license | asfcarter/pi_django | 1137d4443778e7218776fcc89aef94fcf74627ba | 4c1671bb2b3668c0ef77c1ad231aa864e69cf97e | refs/heads/master | 2021-06-17T19:20:05.994607 | 2021-03-24T15:33:33 | 2021-03-24T15:33:33 | 42,591,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,"index2.html",{})
| [
"pi@raspberrypi.(none)"
] | pi@raspberrypi.(none) |
e5ea3b4483415826728ec223ead23ae15f0a82b8 | 270ea5a82141b1b70c899aa66510edb078135714 | /excercise/ex150.py | 636e0a76f57c9e9948bd6ca74b3f0d4c1e04f9fd | [] | no_license | asheed/tryhelloworld | 79075293c3a98924aecef903f8f371316776d4c9 | b7c5643a83d2fb5ceee6a293010482cfccd5c505 | refs/heads/master | 2021-01-25T06:18:25.096895 | 2017-11-12T04:08:11 | 2017-11-12T04:08:11 | 93,552,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # 문제 150 : 최대 공약수 구하기
# 최대 공약수란 정수들의 공통 약수 중에서 가장 큰 수를 의미한다.
# 예를 들어서 8과 12의 최대 공약수는 8의 약수 1, 2, 4, 8과 12의 약수 1, 2, 3, 4, 6, 12 중 공통하는 가장 큰 수인 4가 된다.
# 최대 공약수를 구하려면 정교한 수학적 알고리즘이 필요하다.
# 최대 공약수를 구하는 알고리즘은 기원전 300년 전에 이미 유클리드에 의하여 개발되었다.
# 따라서 여기서는 그 알고리즘을 구현하는 데만 초점을 맞추어보자.
# 유클리드 호제법
# 1. 두 수 가운데 큰 수를 x, 작은 수를 y라고 한다.... | [
"wjahn@outlook.com"
] | wjahn@outlook.com |
2d37dc59f7b514b78dcc1c30bee95be85ca763e3 | 0728a2e165808cfe5651693a6e7f47804bfb085f | /bot/pymorphy/pymorphy/contrib/lastnames_ru.py | 446291d75d74e00a2d96ae2e019b13b9ac7170de | [
"MIT"
] | permissive | testTemtProj/OLD_PROJECT | 5b026e072017f5135159b0940370fda860241d39 | 9e5b165f4e8acf9003536e05dcefd33a5ae46890 | refs/heads/master | 2020-05-18T15:30:24.543319 | 2013-07-23T15:17:32 | 2013-07-23T15:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,149 | py | #-*- coding: UTF-8
from __future__ import unicode_literals
import re
from pymorphy.morph import GramForm
# Порядок важен: ЯНЦ должно быть перед ЯН для правильного срабатывания.
LASTNAME_PATTERN = re.compile(r'(.*('
r'ОВ|ИВ|ЕВ'
r'|ИН'
r'|СК|ЦК'
r'|ИЧ'
r'|ЮК|УК'
r'|ИС|ЭС|УС'
r'|ЫХ|ИХ'
r'|... | [
"Kyzmenko_Pavel@mail.ru"
] | Kyzmenko_Pavel@mail.ru |
79820f805f4d9935b549ebface67fcdef9904eaa | bf952a1d808ba893881aade9521fed9f1691c66f | /app.py | ab5394585832f344b30d6ef174959943fc17df18 | [] | no_license | crised/majose | c534ac921869fec1ea5f95980938f57c65bd2397 | 57e5296945d25f7dc648760eefec76186feb2e70 | refs/heads/master | 2022-12-11T08:48:03.759281 | 2020-09-02T20:24:21 | 2020-09-02T20:24:21 | 292,305,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from flask import Flask
from flask import render_template, request
import data_parser
app = Flask(__name__)
@app.route("/", methods=['GET', 'POST'])
def hello():
"""
Unique HTTP Endpoint of the application
If the request is POST and it receives a valid form
input, it will filter the countries.
I... | [
"cristian.edwards@bairesdev.com"
] | cristian.edwards@bairesdev.com |
12c57ffcb4c07e1a1ebed5383e3c61ecf7ac9827 | 85c92543001dad53ea6c571c4c6544e0588b1a73 | /Python-Kivy-Tic-Tac-Toe-master/main.py | 92ac24a3c68d0ca46a00afcc91e7469de18873d7 | [
"MIT"
] | permissive | pparas007/Tic-Tac-Toe | 6cd120ffdb32c9d5d8f27331176b3a8801c82cb1 | 377c270320e17092f9aea5e2d710bfc7b0a7ae5d | refs/heads/master | 2020-04-15T22:10:55.552344 | 2019-01-10T13:37:41 | 2019-01-10T13:37:41 | 165,062,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from kivy.uix.stacklayout import StackLayout
from kivy.config import Config
#from ai import Ai
from random import randint
from my_ai import Dqn
import time
class TicTacToeApp(App):
title = ... | [
"noreply@github.com"
] | noreply@github.com |
e0f4af75b34d14d995f8d325064ac1b59dc67765 | c51646689136744bc4e188f0406ba113b5c77a85 | /tests/forte/processors/sentiment_processor_test.py | b1ee5e0385a274cac5f8302d47944655e65e97a1 | [
"Apache-2.0"
] | permissive | ha-lins/forte | 0bb7a23b07f3595055bfbf5804b81c531b0b6aa7 | 4594f65f41a8dbfc822573d12fb9af58c37a83a4 | refs/heads/master | 2022-12-05T06:04:15.742592 | 2020-07-30T16:32:10 | 2020-07-30T16:32:10 | 275,398,114 | 1 | 0 | Apache-2.0 | 2020-07-30T16:32:11 | 2020-06-27T15:17:30 | Python | UTF-8 | Python | false | false | 4,897 | py | # Copyright 2019 The Forte 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 ... | [
"noreply@github.com"
] | noreply@github.com |
62dffbb21ad8bfd2fb90e766057c1a6e49c6ac04 | 10fddce056973c339b1d939110ca2b29591e77f7 | /wc_utils/workbook/__init__.py | 57e2da10440dbb50fab80104f1190e0ddc100808 | [
"MIT"
] | permissive | KarrLab/wc_utils | 4ed3bdfa558171ab32293a452f9e6e02b3fc16f1 | a4c0e2e8b9bd88356729e38faf5c0d09d61ff921 | refs/heads/master | 2022-05-01T06:17:54.910791 | 2020-09-28T22:38:30 | 2020-09-28T22:38:30 | 69,289,809 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from .core import (Workbook, Worksheet, Row, Formula,
WorkbookDifference, WorksheetDifference,
RowDifference, CellDifference)
from . import io
| [
"jonrkarr@gmail.com"
] | jonrkarr@gmail.com |
751a980d09ebcb4d658d29eca3e3cdac37c73b11 | 571b6a150360892b78ea529e5933755f56fdf8b3 | /smartcab/agent.py | ea9aa3952f2c41f39d9157534ded75504cacad98 | [] | no_license | mikenomitch/smartcab | d505b2e4df340460d77dc98fc2b0fb98964d7844 | 42a3cdad85aa7f5ac2d9da13afa138ad890e0084 | refs/heads/master | 2020-07-03T11:53:37.936207 | 2016-12-17T16:50:47 | 2016-12-17T16:50:47 | 74,175,181 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,252 | py | import random
import math
from environment import Agent, Environment
from planner import RoutePlanner
from simulator import Simulator
class LearningAgent(Agent):
""" An agent that learns to drive in the Smartcab world.
This is the object you will be modifying. """
def __init__(self, env, learning=Fals... | [
"mnomitch@instructure.com"
] | mnomitch@instructure.com |
cdf3db44384592e2e47bc7eb22f6392d06971ef1 | f0b7b642c8ece0fb37206ade891b60ac3d12e766 | /detection/mpface.py | 7902602b929131d498698f5d85881fff87521e17 | [] | no_license | mdgunathilaka/VisitorTags | 2440bde5a4e55a1929556c0aff25c36709d89f2a | a167b1ced24b85ce635e1687389af470562528f6 | refs/heads/main | 2023-08-23T20:43:56.461467 | 2021-10-04T09:26:34 | 2021-10-04T09:26:34 | 413,353,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | import cv2
import mediapipe as mp
import time
cap = cv2.VideoCapture(0)
pTime = 0
mpFaceDetection = mp.solutions.face_detection
mpDraw = mp.solutions.drawing_utils
faceDetection = mpFaceDetection.FaceDetection(0.75)
while True:
_,frame = cap.read()
imgRGB = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
results... | [
"maneeshadilshangunathilaka@gmail.com"
] | maneeshadilshangunathilaka@gmail.com |
68a9e00c01783e8032ebfa06d4436747cfec88b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02612/s636347083.py | 580b43933e3e425618cddf0df173aca1748fc2f8 | [] | 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 | 59 | py | N = int(input())
ans = (1000 - N % 1000) % 1000
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b51770e9c0090e43be57ab7731b36661732667d5 | 23ce78c3a438e6c7ca455243fbd2510332228508 | /authx/models.py | f5d58ac1117bfc579526802f28cdfed6a950559d | [] | no_license | tinaam/acepower-api | 25c614ebee02a18c852cea88d138c2e0674ccf1f | f7ead5e31e5e47af8f7c78915b4506282ad9fc80 | refs/heads/master | 2021-08-22T19:53:31.441121 | 2017-12-01T04:42:42 | 2017-12-01T04:42:42 | 103,839,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,415 | py |
from enum import Enum
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, \
UserManager as BaseAuthUserManager
from django.core import validators
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class UserManager(BaseAu... | [
"ace.jl.han@gmail.com"
] | ace.jl.han@gmail.com |
da422c97eff0f525cb82538d2842bbdd13a7ba3e | 987da239fca713d4e6d405c8313dbe880ba8d83a | /profiles/migrations/0001_initial.py | 8143830565a89f200ac86a2e4bc70df47704b73b | [] | no_license | Tim1119/BuzzTalkDjango | 3b1733046819a3a8c7e9715683a464e40308aaaf | 95997b3f697a549f5e80aa201dc9880bf92bc64e | refs/heads/main | 2023-08-19T05:39:52.857368 | 2021-10-16T07:04:29 | 2021-10-16T07:04:29 | 403,406,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | # Generated by Django 3.2 on 2021-09-05 19:14
import autoslug.fields
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_M... | [
"timothyinioluwa@gmail.com"
] | timothyinioluwa@gmail.com |
e0a714d62fa7ed1b5e9e8a33f7a7064b51a80de8 | 1e95d42650db5342a7a968f0547e3786350ba796 | /Lib/site-packages/django/contrib/staticfiles/apps.py | fccc9e5c98f26ff61fe032a72e430e4b9ea5a4f0 | [] | no_license | AbdelErrahmane/portail_decisionnel | 71c7cb6e50a2b4377394bfe6d1ab088d3a068eaa | 976b05d92030654596ace91d1ba5625ade35e9f4 | refs/heads/master | 2023-04-01T11:05:47.973299 | 2021-03-26T11:57:54 | 2021-03-26T11:57:54 | 291,841,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.apps import AppConfig
from django.contrib.staticfiles.checks import check_finders
from django.core import checks
from django.utils.translation import gettext_lazy as _
class StaticFilesConfig(AppConfig):
name = 'django.contrib.staticfiles'
verbose_name = _("static Files")
ignore_patterns = ['C... | [
"hamdo.abdo.22@gmail.com"
] | hamdo.abdo.22@gmail.com |
9fb38590c5f71af6d4e4a18577416948774e05a2 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/operations/onn22RuTehcaQS1zaHxEHrrSRdCPTXUbHByyutPHL2EppBtd7Yg/test_forge_onn22R.py | cf5f4f0b31136df8e8cedf859b2a06b0447a6563 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 567 | py | from unittest import TestCase
from tests import get_data
from pytezos.operation.forge import forge_operation_group
class OperationForgingTestonn22R(TestCase):
def setUp(self):
self.maxDiff = None
def test_forge_onn22R(self):
expected = get_data(
path='operations/onn22RuT... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
9b051dc803973572a486b1988999c0cdd09fb903 | 71b1275b0b2ef0753d70fbfb401c24c6975ff75b | /bmd.py | 37334ee5cd9f2c37d942621cf9eb72a5d267b686 | [
"MIT"
] | permissive | DeyuGoGo/bmd | 16b87193b179d39528d42c9515c46e47fb31c62a | c25d05482e3a1f1d90601ffbdd7ed673f53c6f9c | refs/heads/master | 2021-01-10T18:04:09.484801 | 2016-10-21T09:30:18 | 2016-10-21T09:30:18 | 54,093,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
import argparse
import sys
baseSWSzie = 300
parser = argparse.ArgumentParser(description='Oh Deyu.')
parser.add_argument('-p','--path', help='app path name',required=True)
args = parser.parse_args()
path = str(args.path);
if not os.path.exists(path+'src/main/res/values'):
print('Make sure you -p your mou... | [
"a0924xxx@gmail.com"
] | a0924xxx@gmail.com |
071c79476d78e2784ea8fbb4cfc6dd8da5c9bc28 | e60713efb8a5eee4a545a2f28a283285caf1b3e6 | /lib/utils.py | bf65260dc3828fe5f2c8e23df66c952b925397ea | [] | no_license | lerry/tornado-template | 326a87d660c751971270c9648fb36c056e6a7726 | d3d017fd6455fc8bef28d17d54d4d2190e1d21f0 | refs/heads/master | 2021-01-20T11:31:50.480227 | 2014-01-24T07:18:50 | 2014-01-24T07:18:50 | 12,940,368 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
RE_EMAIL = re.compile(r'^\w+[-+.\w]*@\w+([-.]\w+)*\.\w+([-.]\w+)*$')
class ERR:
NO_LOGIN = 1
PERMISSION_DENIED = 2
OPERATION_FAILED = 3
POST_TOO_QUICK = 4
| [
"lvdachao@gmail.com"
] | lvdachao@gmail.com |
69bfd070800b4ff7327bb6c5c1c22f09e7e00d18 | 8b582302e2afc09f5ea7e01717b8a1910fb9380b | /contatopf/migrations/0004_auto_20210521_1651.py | d0303f55668793d3e6b32eeeeebdda65562ad748 | [] | no_license | lgalima13/noponto | c5c3cdd0ba88d7f311a6231da25f7eda73f6cf53 | 719c22df5909571031ad7e565765ce8eef823dfa | refs/heads/master | 2023-05-01T19:12:13.191976 | 2021-05-23T00:56:59 | 2021-05-23T00:56:59 | 367,675,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | # Generated by Django 3.2.3 on 2021-05-21 16:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contatopf', '0003_precadastro_ativo'),
]
operations = [
migrations.AddField(
model_name='evento... | [
"luizlima@iMac-de-Luiz.local"
] | luizlima@iMac-de-Luiz.local |
3e5bba2104769d5d2094b1f2e1ec070a9e39f17c | 910b0994952a02bffcb9ce7d38121c73d631323f | /application/schemas/__init__.py | df53d67c267ef841454136284aa42e5e48136762 | [] | no_license | andrii0yerko/frog-farm-api | eeeda5118988eed11042345832d404ae43600a52 | 107cd71813b1f183119bb946e4d1a915aa1093c6 | refs/heads/main | 2023-05-14T14:10:21.619115 | 2021-06-03T13:55:25 | 2021-06-03T13:55:25 | 368,579,274 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from .frog_schema import FrogSchema
from .user_schema import UserSchema | [
"aerko12@gmail.com"
] | aerko12@gmail.com |
fec2b0f4e805ece8401c67af7a049e370b510ddf | 1c177b755707b5b9486950b4941374a689f76149 | /venv/bin/pip3 | d82c083bf10b0a23573fa044c432e0a9de8e9565 | [] | no_license | believeyinuo/PythonStudy | b2030669c0fd46df91f06da2f74c72a2c632fe41 | 9c195b470a492ffd8897c09c84b01fd35b58987d | refs/heads/master | 2020-07-08T03:52:52.121037 | 2019-11-03T13:28:09 | 2019-11-03T13:28:09 | 203,555,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | #!/Users/szdl/Desktop/PythonStudy/venv/bin/python
# 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?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"lqc@xsdsport.com"
] | lqc@xsdsport.com | |
88dffbc51bb093e45344f79ff27b6e2229b3f3fb | 89a9c607edc2813d2000b52adff045f030d57db4 | /Artifical Intelligence/Assignment1/a1.py | 3a4ef6e7c63abb60df5319e77b06b2762c852875 | [] | no_license | Amrit-Padda/Portfolio | 957912261a30cf72312f156a4671f395a650fc09 | fbd30468189bb720378eb6e4128084cb6d44de07 | refs/heads/master | 2021-01-19T10:24:04.174747 | 2020-11-29T20:58:05 | 2020-11-29T20:58:05 | 87,858,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | from typing import Tuple
from ast import literal_eval
import matplotlib.pyplot as plt
import matplotlib as mpl
import geopandas as gp
import numpy as np
from shapely.geometry import Point
from astar import search
#Helper function to determine threshold
def getThreshold(pct, arr):
return arr[int(len(arr) * (pct / ... | [
"amrit_padda@live.ca"
] | amrit_padda@live.ca |
63cb898df27304256d3eda6761d7598a49396687 | 5b7b69289f586a64a75facf51e0470608b9e2441 | /Elementary/2- functions and loops/Ex_4_2Age_max.py | db0efe26b205e81bb4b03a0bc5130a6dc84204c7 | [
"MIT"
] | permissive | AlirezaMojtabavi/Python_Practice | 833312c5cb5bafdb3ae4af26a7b78116ff83fd84 | c0128d6ce4cf172d93cc4e48861e7980e8e016a2 | refs/heads/master | 2021-10-13T02:17:36.173978 | 2021-09-24T15:57:58 | 2021-09-24T15:57:58 | 247,717,914 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | initialAge = int(input())
secondAge = int(input())
age = 0
if initialAge > secondAge :
FirstMaxAge = initialAge
SecondMaxAge = secondAge
tempAge = FirstMaxAge
else:
FirstMaxAge = secondAge
SecondMaxAge = initialAge
tempAge = FirstMaxAge
while age !=-1 :
age = int(input())
if age > Fir... | [
"alireza_mojtabavi@yahoo.com"
] | alireza_mojtabavi@yahoo.com |
7154c7663a0755fe6d396cc3932b007a87d4237e | 3b3636b42520a7b04d41c8e826b67b47922bf8d1 | /0_Basic/37debug.py | 65fda256b4a6bac96f42356bce2cb1afb1b62e7e | [] | no_license | neharathig/Python-Zero-to-Mastery | 2ac2216bc6e7dedbc1a1a982df777a9b48260cc2 | 70cbdd797d3f1b55dbe646a4acd46e11cc320305 | refs/heads/master | 2022-11-05T05:33:20.585959 | 2020-07-01T06:04:30 | 2020-07-01T06:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import pdb
def add(num1, num2):
#pdb.set_trace()
return num1+num2
print(add(8,12))
| [
"neharathi1699@gmail.com"
] | neharathi1699@gmail.com |
1f3bfae4db8913dfd24255d46803ea63e87bd277 | e5e0d729f082999a9bec142611365b00f7bfc684 | /tensorflow/python/estimator/canned/dnn.py | cde0d955dfddd3a9ea810c9a1d333d593cb03465 | [
"Apache-2.0"
] | permissive | NVIDIA/tensorflow | ed6294098c7354dfc9f09631fc5ae22dbc278138 | 7cbba04a2ee16d21309eefad5be6585183a2d5a9 | refs/heads/r1.15.5+nv23.03 | 2023-08-16T22:25:18.037979 | 2023-08-03T22:09:23 | 2023-08-03T22:09:23 | 263,748,045 | 763 | 117 | Apache-2.0 | 2023-07-03T15:45:19 | 2020-05-13T21:34:32 | C++ | UTF-8 | Python | false | false | 1,263 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.