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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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"
] | wangsi12.noreply@github.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"
] | conniepocky.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 |
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 |
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"
] | dy11.noreply@github.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 |
2c89c660b810940e0e17394b53f00bb8ef74ea30 | 473060b36cb34668e2900e43aed22f4f41ce5140 | /python-api/conftest.py | b5253fccd946683a2e2f864e826af56e43066847 | [] | no_license | pavelsaman/test-blueprints | 5bbce7d7724ca0a4a19914e5f18eeb250f1c86f5 | 1fecb2bccb3c257ef1fad1d4137831111fb67073 | refs/heads/master | 2023-04-29T01:41:39.172550 | 2021-05-26T20:16:32 | 2021-05-26T20:16:32 | 368,270,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from Configuration.Config import Config
def pytest_configure(config):
config._metadata['Env'] = Config.env()
config._metadata['Base Url'] = Config.base_url()
def pytest_html_report_title(report):
report.title = Config.REPORT_TITLE
| [
"pavelsam@centrum.cz"
] | pavelsam@centrum.cz |
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"
] | mc2259.noreply@github.com |
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 |
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 |
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 |
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 |
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"
] | RoyceRichmond.noreply@github.com |
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 |
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 |
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 |
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 |
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 |
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"
] | Rajesh0045.noreply@github.com |
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 |
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 |
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 |
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 |
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 |
42fc049f5fbe9158138cdc5955c4368bb6a33bf9 | ea2090193444cf7041d97a16f33b7a168051dee5 | /Chapter 6 - Dictionaries/6-02 Favorite Numbers.py | da4d2e03bd81134bfbefd4250004c85c751c4ba3 | [] | no_license | nanotech24/python-crash-course | cb7e81b07893ac0d85e4949c682e307117c58973 | a5abe44ddc67981b8b6eac87211e60f9f9dfbc13 | refs/heads/master | 2023-03-16T06:30:53.436854 | 2021-03-12T01:39:06 | 2021-03-12T01:39:06 | 341,738,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #store 5 peoples favorite numbers in a dict
fav_numbers = {
'richard' : '24',
'sarah' : '69',
'brandon' : '54',
'kayla' : '18',
'rebecca' : '21'
}
#print the name and number
print(
"Richard's favorite number is " + fav_numbers['richard'] + '.\n' +
"Sarah's favorite number is " + fav_n... | [
"rsharpe24@gmail.com"
] | rsharpe24@gmail.com |
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"
] | johnny87422.noreply@github.com |
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"
] | JuHuang1024.noreply@github.com |
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 |
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"
] | spencer-bain.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 |
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 |
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 |
2665af70a535b15961a85fcd7f63751772321701 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/OVERFLOW/DS-ALGO-OFFICIAL/temp/algorithms/algorithms/maths/base_conversion.py | b538f2b3bfc0b89f2a4c708831f88b8ba847a996 | [] | no_license | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | """
Integer base conversion algorithm
int2base(5, 2) return '101'.
base2int('F', 16) return 15.
"""
import string
def int_to_base(n, base):
"""
:type n: int
:type base: int
:rtype: str
"""
is_negative = False
if n == 0:
return "0"
elif n < 0:
is_negative ... | [
"bryan.guner@gmail.com"
] | bryan.guner@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 |
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 |
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 |
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 |
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"
] | Thameem27.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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] |
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 |
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 |
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 |
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 |
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) |
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 |
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 |
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 |
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 |
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"
] | mingggkeee.noreply@github.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 |
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 |
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 |
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"
] | ha-lins.noreply@github.com |
ebc22e699980c3f5b7b8234f2aad220fa055e67a | 7f0548b7191b7589712af19baebafddae1d0505f | /dojoassignments/python/django/full_stack_django/bad_travel_buddy/apps/login_registration/migrations/0004_auto_20170627_1628.py | cb00a717c150b7df258a975ef221794b3969c1e7 | [] | no_license | mtjhartley/codingdojo | dd8eab1bd61fb847e44766e89fe3db2340468102 | 65dc558d19adbe62f85ad61c32cb1c392b56567c | refs/heads/master | 2022-12-14T23:06:11.927445 | 2017-08-16T21:08:35 | 2017-08-16T21:08:35 | 92,218,728 | 1 | 5 | null | 2022-12-07T23:59:48 | 2017-05-23T20:46:03 | Python | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-06-27 16:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('login_registration', '0003_remove_user_birthday'),
]
operations = [
migrations.Rename... | [
"mtjhartley@gmail.com"
] | mtjhartley@gmail.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 |
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 |
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 |
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 |
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 |
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 | |
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"
] | pparas007.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 |
c49f30d5d4ee6b00020e6753de6d3dfc98a5d402 | 0296c284ba64ee538f90171ef9d031ce41b27634 | /Lab4/core/loadSensor.py | c46bff34e4570154af8b47397148ac8bb3673ffb | [] | no_license | paloitsingapore/Lab3AgritechCron | 1961092872897b2d279efc25ae9c81e8d24f8baf | 0111c7d8b4d7c6b63237c6573ef3d5e29ca76e83 | refs/heads/master | 2021-06-28T18:11:43.510439 | 2021-03-08T07:11:22 | 2021-03-08T07:11:22 | 221,591,549 | 0 | 2 | null | 2020-06-24T03:33:04 | 2019-11-14T02:11:45 | Python | UTF-8 | Python | false | false | 1,858 | py | import os
import json
from datetime import datetime
from azure.cosmosdb.table.tableservice import TableService
import access
import logging
import sys
sys.path.insert(1, '/home/pi/Lab3AgritechCron/')
import logHandler
logHandler.run("azure_ml_sensors")
account_name= access.get_name('1')
account_key = access.get_key('... | [
"pkesavan@palo-it.com"
] | pkesavan@palo-it.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 |
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 |
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 |
a961e5012524167cb669c64c86afbaa4d9707ed2 | c104dbd09a853725cb4f4b17df7c5dd59d47e04e | /test/opsgenie_swagger/models/amazon_ses_integration.py | 270f9fd25ff796979da446388dc26a706331bae3 | [
"Apache-2.0"
] | permissive | bm-lab/opsgenie-python-sdk | 5a64e2c24f1b9168ecadf482ba8084ba27a659fc | 244c4c40ddcc25e70df5ba4425ab8d7c8da59c18 | refs/heads/master | 2021-10-09T03:18:48.101672 | 2018-12-15T01:03:36 | 2018-12-20T15:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,335 | py | # coding: utf-8
"""
OpsGenie REST API
OpsGenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from opsgenie_swagger.models.integration import Integration # ... | [
"c.chary@criteo.com"
] | c.chary@criteo.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 |
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 |
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 |
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 |
505e44b07ae47951dbd2c52b70321a8456b2258a | be2a109c49d4571ded376e9d5aab47540b221102 | /cascade_v3.py | 6d7909d2374003e93e4ace967c462241e0d9417d | [] | no_license | ammar-bitar/brain-data-deep-learning | 4cbbee22184d2fec46cdd78f288c32dd17d257ea | f39cb299f4304fa79337891385c752bcf7e2d550 | refs/heads/master | 2022-07-01T11:03:46.951625 | 2020-03-22T17:19:22 | 2020-03-22T17:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | import numpy as np
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Conv2D, MaxPool2D, LSTM, Dropout, concatenate, Flatten, Dense, Input
import tensorflow
class Cascade:
def __init__(self):
self.model = self.cascade_model()
def cascade_model(self):
inputs = []
... | [
"c.sahinli@student.maastrichtuniversity.nl"
] | c.sahinli@student.maastrichtuniversity.nl |
35fc120289bb20eb079c1ccbcdc423567dccaa9c | 76f0e9fb49690d5b099aa67d310183a93eb7dcf6 | /project2-mad libs.py | f6e6d5d4ea0cf3e3ce5e299dbe8f527d5f0583ff | [] | no_license | IAmJustSomeRandomGuy/Hello-World | 2770dce48820491f42d0531d6d2e584e9bc8d5ac | 14b3beca55f5eed61179d311165a6265f71d3f7c | refs/heads/main | 2023-08-18T09:09:27.216643 | 2021-10-05T18:22:19 | 2021-10-05T18:22:19 | 413,927,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n1 = input("comparative adjective: ")
n2 = input("adjective: ")
n3 = input("plural noun: ")
n4 = input("adjective: ")
n5 = input("noun: ")
print("\"Everybody knows that Donald Trump is " + n1 + " then the Corona virus, because of his " + n2 + " tweets and "
+ n3 + "\" says his self proclaimed " + n4 + " " +... | [
"noreply@github.com"
] | IAmJustSomeRandomGuy.noreply@github.com |
1a2a79c4c2018e104f9467715ad305e56df8cec2 | ad6cd0aa5d96ef7a4116ec20737a3026082b9e16 | /src/test/directory_lister_test.py | d3008e8dc00832476b28d24880a822d71170e5c7 | [
"MIT"
] | permissive | pgecsenyi/router-fs | 0a00ad9f5cb5995048aa7fe08c20ee7eaf0621b7 | 1d4f579fb3cccd022fe1ab0e61aa00693e7234c1 | refs/heads/master | 2020-04-19T06:47:26.791739 | 2019-04-15T18:21:13 | 2019-04-15T18:21:45 | 168,028,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import unittest
from unittest.mock import patch
from filesystem.transformation.directory_lister import DirectoryLister
class DirectoryListerTest(unittest.TestCase):
@patch('os.walk')
def test_list_directory(self, mock_walk):
dirpath = '/home/root/doc/fruits'
expected_files = [dirpath + '/app... | [
"pgecsenyi@protonmail.com"
] | pgecsenyi@protonmail.com |
36532ee5c85b919df895937c26f85572f220875a | 6a4e1e4f320ae81a8069fbe2587d62420976dbf1 | /mysite/polls/urls.py | 949fd485050af7d1c38bb5918e4fc6677c444057 | [] | no_license | YuriiKhomych/First-Django-App | 2f192ec00be6f84318905d4b18595b1cbad2b955 | 440a4618053adddf3b647975218bb6a003260243 | refs/heads/master | 2020-03-18T16:17:20.352467 | 2018-08-22T06:44:13 | 2018-08-22T06:44:13 | 134,957,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
# ex: /polls/5/vote/
path('<i... | [
"yuriykhomich@gmail.com"
] | yuriykhomich@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 |
f261f5a1db764a67ca1856010f72f2f566155c6d | 4e8fbcbbaac494618ca0a7ce8337b1375651db1c | /TriangleQuest.py | d16e7157c3410ec8e5c983e8a9ae807365d2ef47 | [] | no_license | Bsmith1997/HackerRankPython2 | 2f9516dc592fade8ff125b756a948b14c3b1e626 | c52ade3bc13eed27d114b8ff4db4cb675caebce5 | refs/heads/master | 2020-05-31T19:00:55.511890 | 2019-07-18T17:51:38 | 2019-07-18T17:51:38 | 190,448,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py |
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
print i * (10**i - 1) / 9
| [
"noreply@github.com"
] | Bsmith1997.noreply@github.com |
5c7920e431a13e5debf7f18977506ff67a0dc341 | 68ffa85cb6bd8974ef9b12279419d25e415eaae0 | /IntroductionBigData/lab3/lab3_text_analysis_and_entity_resolution_student.py | c64835c9fc34094c34fe83a3bd6a7b69139908c0 | [] | no_license | jesuisnicolasdavid/Spark | 0a0e0df44a8d586c96be91e01d04f550e15dc0a7 | 429c17403ed20b1b1e55bf7dc0aa22d8a2532563 | refs/heads/master | 2021-01-10T09:04:08.733219 | 2015-11-25T17:24:57 | 2015-11-25T17:24:57 | 46,879,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,661 | py |
# coding: utf-8
# # version 1.0.3
# # + 
# # **Text Analysis and Entity Resolution**
# ####Entity resolution is a common, yet di... | [
"jesuisnicolasdavid@gmail.com"
] | jesuisnicolasdavid@gmail.com |
321561a6db87b3ba65ab9e899d105a1cb50f9113 | 6ce40c0f29e008a9e26c3007cc878cb65836412b | /venv/bin/pip3.7 | 66e069605fcef85ea081e147c4f87dda3a43ac27 | [] | no_license | skharlamov/Data_Mining | 5dcdb0610bb3239d0905a9d93903ca4913b03f42 | 665cdc2e63efff3ee4a15c0298fe8a8e5a60cd9f | refs/heads/master | 2022-08-24T01:28:02.488132 | 2020-05-22T13:21:25 | 2020-05-22T13:21:25 | 266,114,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | 7 | #!/Users/mihailcahnin/Desktop/DataMining/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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])
... | [
"mchakhnin@list.ru"
] | mchakhnin@list.ru |
a1ea1ab2fe1c8928ba2f2471965c5005a359734e | 80a443b71dccee8b92020a816d3f4127e80d2aa0 | /uslc.py | 6783f479738a43edf2f518c22d264128b9940696 | [] | no_license | tacoman/guardbook-scrapers | be42ebb3079d9f3ef9d6f02d724639f5e4faed3a | dfce7e1fee671b50a05f7c8c35eaf62ebe451c78 | refs/heads/master | 2022-05-15T06:53:44.856474 | 2022-04-30T14:20:38 | 2022-04-30T14:20:38 | 207,665,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,254 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.color import Color
from pymongo import MongoClient
import json
import os
import re
def atoi... | [
"Sam.L.Shrum@gmail.com"
] | Sam.L.Shrum@gmail.com |
9f8d54f121a90a42448f65ab026c8618e7e70a56 | e3d10f0976db42c48b86b0431cfd25358116bee5 | /Python 3/Графический интерфейс/GUI Button/GUI_Button.py | fea1c7bb23464bbca94d08d6c15f1398486bf4dd | [] | no_license | Anton0593/Programming | a81be20ee85c8f5c4d7cd7ee677272573ae38def | eb6c200122c6e7cb8b72a9c06d804bcb7be951c3 | refs/heads/main | 2023-08-29T08:43:26.935011 | 2021-10-18T17:24:59 | 2021-10-18T17:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import tkinter
from tkinter import messagebox
top = tkinter.Tk()
def helloCallBack():
messagebox.showinfo( "Hello Python", "Hello World")
B = tkinter.Button(top, text ="Hello", command = helloCallBack)
B.pack()
top.mainloop() | [
"noreply@github.com"
] | Anton0593.noreply@github.com |
71d5adb1747bad4cca8ec9f7600b3d14e37cc9ae | 41960a07a8118cf99236972c1e94a36ef00c55c9 | /jvbhw/Lib/site-packages/pre_commit/languages/python.py | 634abe58734a922aacd2036baa2f2306690c2c32 | [
"MIT"
] | permissive | wahello/jvb | 7288f3fc8099dbbdfa5cdac86b251d4d739f4dca | c87fdf49ae040668323d1a034aa407cfe23c4a1d | refs/heads/bug/aa_ranges/chart2 | 2022-11-29T12:58:37.561674 | 2019-06-17T10:50:17 | 2019-06-17T10:50:17 | 211,479,327 | 0 | 1 | MIT | 2022-11-19T02:54:15 | 2019-09-28T09:52:28 | null | UTF-8 | Python | false | false | 2,582 | py | from __future__ import unicode_literals
import contextlib
import distutils.spawn
import os
import sys
from pre_commit.envcontext import envcontext
from pre_commit.envcontext import UNSET
from pre_commit.envcontext import Var
from pre_commit.languages import helpers
from pre_commit.util import clean_path_on_failure
fr... | [
"saumyagarg@gmail.com"
] | saumyagarg@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.