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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef27d001cfe1f15f1746179b07b5ffc8218bcbae | e3de9d0fe973060071470f4703e4edf8defc4b87 | /venv/lib/python3.8/site-packages/guizero/ButtonGroup.py | 57adb4fc0d2e4e6cff66d3d09e0f9b5b4b4c23e2 | [] | no_license | nhannguyengithub/emoji_game.py | 62ed14efb76118b77a11be6077e0554907cfc431 | f78a77a8283591ea3b1f230a19d19c5e7ea62bf1 | refs/heads/master | 2023-06-30T07:23:54.803480 | 2021-07-27T22:38:04 | 2021-07-27T22:38:04 | 390,146,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,388 | py | from tkinter import Frame, StringVar
from . import utilities as utils
from .base import ContainerTextWidget
from .tkmixins import TextMixin
from .RadioButton import RadioButton
from .event import EventManager
class ButtonGroup(ContainerTextWidget):
def __init__(
self,
master,
o... | [
"ntnhan.hk@gmail.com"
] | ntnhan.hk@gmail.com |
5bd653bae84debbeefe7b946c6c94548d75f2cd1 | 8d03c3d4768ba866210b21aba3d8177984bfde3a | /Applications/OneDrive/文档/UT/2019 Winter/CSC411/HW3/q1.py | 829a5f30769a6fffd369cbf54c53b6deeed16e3e | [] | no_license | JimmyWen511/b58FinalProject | 3fa313d9f5c3547bc25fe67a0da870efef04dad5 | 900f4ab63ca37e723661045b3a8a830bd888b85d | refs/heads/master | 2021-01-18T16:47:36.298721 | 2019-02-08T15:52:21 | 2019-02-08T15:52:21 | 86,769,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import numpy as np
def gradient_descent(X, y, lr, num_iter, delta):
w = np.zeros((len(X[1]), 1))
b = 10
for i in range(num_iter):
y_predict = np.dot(X, w) + b
alpha = y_predict - y
dloss = np.where(np.abs(alpha) <= delta, alpha, delta * np.sign(alpha))
dw = np.dot... | [
"wenming.lu@mail.utoronto.ca"
] | wenming.lu@mail.utoronto.ca |
7c6973701596621ef379cf527d1b3b1047184f0a | dc06008809d6257d024d0673107ef69a2c6151cb | /accounts/views.py | d27341fafaa08734a453072ffc9694b9edf75b59 | [] | no_license | K3vwe/BLog-Application | 1526b71322167302f4e9a2cee45c0a4c70847143 | 12a31b60f9da3e2615871d57a00322db67efbc24 | refs/heads/main | 2022-12-24T12:43:05.495484 | 2020-10-05T20:32:38 | 2020-10-05T20:32:38 | 301,538,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
# Create your views here.
class SignUpView(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = ... | [
"rukkimax@gmail.com"
] | rukkimax@gmail.com |
32d5dcf040bbe38413b58e6d2302d1d574012652 | d518dc5a84a018b0c704886d7b0e1a63e71d65c1 | /nytimes/settings.py.template.py | bd7dd1ca165d6b3807ca024d673c7355a57d5be6 | [
"Apache-2.0"
] | permissive | ljvillanueva/data_download | 1b0ac84bef43483a548ded86c832feab7d4c219a | 073878bf849700d928d8c3a044a3a6d1e982336e | refs/heads/master | 2022-12-10T08:43:25.071371 | 2020-09-05T17:30:57 | 2020-09-05T17:30:57 | 258,795,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | nytpath = "" | [
"villanueval@si.edu"
] | villanueval@si.edu |
788e90f3a30b4c82f945b157818a5ac3cd85e728 | c09b440f329c12fcaefe3484317eaec1b7d8f137 | /src/main.py | d68b4fc7a833d3822670a793ec5f0e2c07b89660 | [] | no_license | kyosek/name-classifier | a96f5c54fc32800c3e76816a965a4919d51c4160 | 56343f8a4bf637e78a5282598087403b8a1eb5cf | refs/heads/master | 2023-03-18T08:59:28.296446 | 2021-03-19T23:36:30 | 2021-03-19T23:36:30 | 349,576,068 | 0 | 0 | null | 2021-03-19T23:36:31 | 2021-03-19T23:02:26 | Jupyter Notebook | UTF-8 | Python | false | false | 2,527 | py | import argparse
import logging
import pickle
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from modules.transform.preprocess import cleanNames
from modules.train.train import trainNaiveBayes, saveModel
logging.basicConfig(
... | [
"kyosuke1029@icloud.com"
] | kyosuke1029@icloud.com |
cea9ae785ef6a31a24ff306dd44bd8cb277f1816 | f082f9e3553578ba57e47311994c75f067143abc | /Unit_digit_value.py | dc5d46c677b275a992dff4ff459bac3cb375e05c | [] | no_license | Mbonea-Mjema/random-python-scripts- | 1c9ec17e5145e6d3c2adab5ef0509e10874f5198 | 1f116a729b77e0846321c7be8455f53cfd8df77d | refs/heads/master | 2020-03-11T07:17:13.400683 | 2018-05-06T22:27:23 | 2018-05-06T22:27:23 | 129,853,079 | 0 | 0 | null | 2020-02-04T20:40:37 | 2018-04-17T05:53:02 | Python | UTF-8 | Python | false | false | 481 | py | '''
unit place values
By mbonea mjema
'''
Numbers={}
#importing prettyprint
import pprint
pp=pprint.PrettyPrinter(indent=4)
for num in range(10):
container=[]
temp_list=[]
for i in range (1,10,1):
unit_place_value=(num**i)%10
if(not unit_place_value in temp_list):
temp_list.ap... | [
"mjema86@gmail.com"
] | mjema86@gmail.com |
fd5a05d0ceb01e4ed7cbca40b447b506540c68c1 | bcf99042596397b1b58dc9e175855802dcfb8a1c | /HomePage/MySQLUtil.py | fc9543169daed04392dfbe9bd2142cf64dc8e618 | [] | no_license | sdgdsffdsfff/WorkJean | 3775500383121e92b191f29e79540cf85460ee5b | ed9b887c351b4dc155e14c068e2331b7802e3af4 | refs/heads/master | 2020-12-25T09:37:34.725698 | 2015-01-05T07:16:23 | 2015-01-05T07:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,211 | py | # -*- coding:utf-8 -*-
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"shen_jl@Ctrip.com"
] | shen_jl@Ctrip.com |
ba54ef7ffb1baac0a542ab9205ad64cd67fc1ec1 | 49bb27ea1ed99dbc9a68aad82e5be186e08c0207 | /f1ftw/calculate_progression.py | a16527c02ed53b5b12a8dc356b297da20fcc1306 | [] | no_license | JamesScanlan/f1ftw | e96b3cb1a063316a5681df97a18ad9d6a5e85552 | 5969b34fbbade05f4eda18bb27d21ed1435c5961 | refs/heads/master | 2023-08-09T17:55:27.484932 | 2023-07-31T22:35:15 | 2023-07-31T22:35:15 | 110,609,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import objects
def calculate_progression_score(race_team, race_results, drivers_championship):
progression_score = 0
for race_result in [r for r in race_results if r.driver.team == race_team]:
driver_championship_index = drivers_championship.get_ranking(race_result.driver)
start_position ... | [
"djamesscanlan@gmail.com"
] | djamesscanlan@gmail.com |
481dc9bb944ff3f959e0bcc63adc027ad0de60b1 | 54bf4a3a1820e62cd9c86978167eb71324c174d7 | /nets-in-progress/ditella-8r-1c-srv6-pm/isis8d.py.backup | b30fe257f0373427c075a53c8dd18c9114b31bf3 | [
"Apache-2.0"
] | permissive | huangoldman/rose-srv6-tutorial | 7ef90379031e73c376d6172425477b83310fc313 | 30a7ed46ba0efa050ca6d76a5a608d9b7b7aadad | refs/heads/master | 2023-08-18T23:14:23.907140 | 2021-10-05T18:18:59 | 2021-10-05T18:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,531 | backup | #!/usr/bin/python
# pylint: disable=missing-module-docstring
# pylint: disable=missing-function-docstring
# pylint: disable=missing-class-docstring
import os
import shutil
import sys
from argparse import ArgumentParser
import python_hosts
from dotenv import load_dotenv
from mininet.cli import CLI
# from mininet.link... | [
"carmine.scarpitta@uniroma2.it"
] | carmine.scarpitta@uniroma2.it |
8dde1cb41318b2e39719aa73d12da6ee67a46207 | 9bc8b5b2db293fce019b024312cb5406e06ea8f0 | /optimize.py | 3abfc2426c70371ee6f50cf249cbe04de0962d41 | [] | no_license | lbl9988/convexOptimization | 5246b1e66a6fc26527f0f3bb8daea58b0e566792 | cdfbe347dfd778db7713b6ace712ed837a4aba1e | refs/heads/master | 2021-05-27T06:18:00.584886 | 2014-04-28T19:11:20 | 2014-04-28T19:11:20 | 18,122,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,606 | py | #!/usr/bin/env python2
import sys
import math
import numpy as np
import pickle
import matplotlib.pyplot as plt
import itertools
import pylab
import glob
from pylab import plot, show
from numpy import vstack, array, arange
from scipy.cluster.vq import kmeans, vq
from collections import Counter
from cvxopt import matrix... | [
"linge.bai@gmail.com"
] | linge.bai@gmail.com |
4152272941dbe857b515676f5a4c8f164df20aee | b3d0f568f6e73dcaa6fe45e3e625f416ce60743e | /mapcreator/persistence.py | 333b0d8c4b6c8381e34007038859365eaa7a67db | [
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | 3Dmaps/mapcreator | fecf07a86f12ebb467db82a430ff9bae1ebbd58a | f5d0a321905af6bf0c336d0a3e416bf580c8893a | refs/heads/master | 2021-04-28T10:17:28.232729 | 2018-05-02T09:54:52 | 2018-05-02T09:54:52 | 122,063,184 | 1 | 1 | MIT | 2018-05-02T07:39:29 | 2018-02-19T13:02:26 | Python | UTF-8 | Python | false | false | 778 | py | import json
import shutil
from os import path, makedirs
from mapcreator.state import State
STATE_DIR = '.mapcreator'
STATE_FILE = 'state.json'
def init_state():
initial_state = State()
save_state(initial_state)
return initial_state
def state_path():
return path.join(STATE_DIR, STATE_FILE)
def state_... | [
"julius.laitala@relex.fi"
] | julius.laitala@relex.fi |
a6acc0487ea9ab45a61c37a1a14d4f41c46a950f | 7202a05f16571ca9a485f07a3bee610f531879a2 | /personas/forms.py | 9b5d4acb0967d2fec4ffbe9d9d72801465dd0b13 | [] | no_license | yrey420/DjangoMangaka | 59a4ac665838383c8ea30af9f2b6ceef310c3fee | 529a4d0e8e0b42e8ed5d54adbc49eeb18aad5ef8 | refs/heads/master | 2023-01-29T04:37:40.195188 | 2020-12-07T20:50:30 | 2020-12-07T20:50:30 | 318,555,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from personas.models import LocalUser
class LoginForm(forms.Form):
username = forms.CharField(
widget=forms.TextInput(
attrs={
"placeholder": "Enter your Username",
"class": "form-co... | [
"yrey415@unab.edu.co"
] | yrey415@unab.edu.co |
e5c5c568489326a5ff8d9196eaf8e9c0da078b97 | 2801ac4b53af45ed051b8eb19b7643f4f81a2132 | /LinSinkhorn.py | 62b9503e5c5a84194c53f0df9a9378ba9f7686d7 | [] | no_license | cxxszz/LOT | eb3a9f06ee0402aff999e45c035f388b9660337a | 2cdd7136e8e7320848c692fa72001b92a8346a7f | refs/heads/main | 2023-08-03T17:22:08.515693 | 2021-09-25T08:32:40 | 2021-09-25T08:32:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,928 | py | import numpy as np
import time
from sklearn.cluster import KMeans
import scipy
from scipy import special
# Here C = C1 * C2 and P = P1 * P2
# Useful for kernel-based methods
def compute_OT(P1, P2, C1, C2):
OT_trans_1 = np.dot(P1.T, C1)
OT_trans_2 = np.dot(C2, P2.T)
OT_trans = np.dot(OT_trans_1, OT_trans_... | [
"mscetbon@ens-paris-saclay.fr"
] | mscetbon@ens-paris-saclay.fr |
f89dbf512849258484575327a254d71329f70ec0 | fe5d970498e3b5a31178f5df72fa02d6c5add884 | /Lab_2/taks1/Domain/Drone/__init__.py | 92365fb7a14f8e1bbe3c986fbb886738d7a597ec | [] | no_license | AndreiZavo/Artificial-Intelligence | ca045c77bbcb6ad2d50f3e80a55f9117888bd450 | 40444f23a13fb5226e5a79293eb4624aee946cbf | refs/heads/main | 2023-04-01T21:56:33.053913 | 2021-04-10T17:52:04 | 2021-04-10T17:52:04 | 347,122,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | from .Drone import *
| [
"andrei_lucian01@yahoo.com"
] | andrei_lucian01@yahoo.com |
7d694881d590f7fe45d3be9f6d9c0c180d407993 | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /django_demo_applications/djangoprojectsot/modelinheritanceproject/testapp/models.py | 2ba2ba663d87e53e60132476cad2e672ab93660a | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.db import models
# Create your models here.
# class ContactInfo1(models.Model):
# name=models.CharField(max_length=64)
# email=models.EmailField()
# address=models.CharField(max_length=264)
#
# class Student1(ContactInfo1):
# rollno=models.IntegerField()
# marks=models.IntegerField()
#
# c... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
5b84d20e2ac52bc2051118bcec24336ace41a489 | 9ce64348ece747953cbd85a91ca95deb2e7f45ad | /events/urls.py | bb928607ecd2b1543c722c2bf2865314205c8fcb | [] | no_license | julianrofrano-eb/todo-list | 521a29808e8c0c05f478ba9b77aa382211a9bbfb | 06be26b0808da0806def4a131922d0ce8ffa953c | refs/heads/master | 2023-01-11T19:37:21.784433 | 2019-09-04T14:52:18 | 2019-09-04T14:52:18 | 206,325,749 | 0 | 0 | null | 2023-01-04T08:56:56 | 2019-09-04T13:27:51 | JavaScript | UTF-8 | Python | false | false | 723 | py | from django.conf.urls import url, include
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
url('(?P<event_id>[0-9]+)/task/complete/(?P<pk>[0-9]+)/$', views.complete_task, name='task-complete'),
url('(?P<event_id>[0-9]+)/task/delete/(?P<pk>[0-9]+)/$', views.TaskDelete.as_... | [
"julian.rofrano@julian.rofrano-07322"
] | julian.rofrano@julian.rofrano-07322 |
0790ec119fc1b814c8df24850e63b50d09c127ef | b3d28cc90fb2fbb3efe177c6ee5ac6077175c79f | /settings.py | 2e833405aef60e6d0673de39b2568ed9a5ef71f6 | [] | no_license | DiviLOL/Zobmie-shooter | b7a708312be3d75d163c44a9280ee11644f487d7 | 1aa4c844cd06d169b8a251f5da4a2302e7eb2381 | refs/heads/main | 2023-08-24T09:13:31.339750 | 2021-10-06T10:10:40 | 2021-10-06T10:10:40 | 414,154,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | import pygame as py
import random
vec = py.math.Vector2
# define some colors (R, G, B)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
BROWN = (106,55,5)
# game settings
WIDTH = 1376 # or 1,376
HEIGHT = 100 * 9... | [
"88365505+DiviLOL@users.noreply.github.com"
] | 88365505+DiviLOL@users.noreply.github.com |
13458787d9118c6413743360eea1fd4dd2d6ab97 | f130171785cf702c695dfd58b05e7afe84b15847 | /firecrest/api.py | 9e944b3c424d53d50ebd283aac2c98f36f979f3d | [] | no_license | Corwinpro/firecrest | 019ab9e983d6d3faa7b3642a0f94c2662be67db1 | 4b6cb4b57c55f0cbd2d0c59c4729e7548a668a67 | refs/heads/master | 2021-12-25T14:16:44.675636 | 2021-12-19T15:28:08 | 2021-12-19T15:28:08 | 174,002,822 | 0 | 0 | null | 2021-12-19T15:28:08 | 2019-03-05T18:53:17 | Python | UTF-8 | Python | false | false | 803 | py | """
Core API for the firecrest package.
This module represents the public API of the firecrest library.
It contains everything you should need as a user of the library.
No stability guarantees are made for imports from other modules or subpackages.
"""
from firecrest.mesh.boundaryelement import BSplineElement, LineEl... | [
"noreply@github.com"
] | Corwinpro.noreply@github.com |
8e69c3352dd01ab3c1ddd9e93e9305d5063b68ed | 1f21a6c258dc1ef79ffbb985ee8af21cdd51db40 | /generating.py | 5fa7d39794640b4af5d6a46c8e0b492adc343610 | [] | no_license | sem980/mtg_like_textgen_lstm | 858fc9d80421d036965c5a676e1d9e647276b441 | 0fadbd5b31d49587451b2fc89385271a1e7f8c2f | refs/heads/master | 2020-04-30T03:20:14.002734 | 2019-03-21T13:18:23 | 2019-03-21T13:18:23 | 176,582,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | # -*- encoding: utf-8 -*-
from keras.models import load_model
from MorphTable import MorphTable
import numpy as np
import json
import sys
import warnings
def passing_warn(*args,**kwargs):
pass
def lottery(y_pred):
#次に予測される形態素の確率が与えられた際に抽選を行う関数
#多項分布で抽選を行い,np.argmaxでインデックスを返す
pred_f64 = np.asarray(y_p... | [
"heyhey1089@gmail.com"
] | heyhey1089@gmail.com |
2a8d31ce9ce3683a0d4c071feaf1b1488a845422 | 48dab42eeef7f971af1fe98045e669edb8e57ab0 | /behavioural/observer_pattern.py | 864f36310cf2de51d7e96f2ba31734a1eb35c03e | [
"MIT"
] | permissive | cosmos-sajal/python_design_patterns | b7df3e83e74ac5eccd30e8037ebc70987407ca2b | d270989f1dfafaef48e4b585eca91603a6c0ac8e | refs/heads/master | 2022-06-06T16:41:41.638518 | 2020-05-05T08:20:16 | 2020-05-05T08:20:16 | 260,250,022 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | # Docs - https://deductionlearning.com/design-patterns/observer-pattern-introductory-example/
# https://www.youtube.com/watch?v=wiQdrH2YpT4&list=PLF206E906175C7E07&index=4
# https://www.quora.com/What-are-some-real-world-uses-of-observer-pattern
# difference between PubSub and Observer Pattern -
# https://hackernoon.c... | [
"sajal.4591@gmail.com"
] | sajal.4591@gmail.com |
bd4c169910e6c1636360c87417b1e758cd7f99cb | 8335147b15c0d38873ac54f16048ef66579bf85f | /dox17.py | 6284011ca0410eb01de325b692ceb6723ff287ad | [] | no_license | Zeventeen-17/dox17 | 2204b0b3be472ac9210c5954a6d7ebf0d4a164ff | 4a458affb0ab18d204b5582117e6dc6193cb7a4f | refs/heads/main | 2023-08-29T00:47:26.000389 | 2021-10-01T20:08:08 | 2021-10-01T20:08:08 | 410,429,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,575 | py | #!/bin/python
import os
import time
'''
def fetr():
def get_cookie(self, key, default=None, secret=None, digestmod=hashlib.sha256):
""" Return the content of a cookie. To read a `Signed Cookie`, the
`secret` must match the one used to create the cookie (see
:meth:`BaseR... | [
"noreply@github.com"
] | Zeventeen-17.noreply@github.com |
819ec1c8c8d85fbbd009ac02e237aa8676c7034b | fd20345d593aa0b500ab3af466ee5ead6fb8da21 | /apps/prettyboyapp/migrations/0009_auto_20180620_0121.py | a666e85cfbb94e9282c7625feddce1dd1316039e | [] | no_license | paulwine/prettyboyRepo1 | 7c25f6d276d88717a2c9667ec1fe6813181767cf | 7736a6a283bee7131200d44db799573c9b99d883 | refs/heads/master | 2021-06-28T19:06:23.370780 | 2020-09-02T15:51:00 | 2020-09-02T15:51:00 | 136,745,540 | 0 | 0 | null | 2018-07-12T02:43:46 | 2018-06-09T17:48:28 | Python | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-20 01:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('prettyboyapp', '0008_auto_20180610_0034'),
]
operatio... | [
"paulwinegard@gmail.com"
] | paulwinegard@gmail.com |
8d88b612386c5811f2709b90cd9a046cf5b1236e | 0e1e8d9a3622070bed359b9d062a4e51fbf169e5 | /graphs/BAckTraceBFS.py | 0d774ed89f2fe93f1f54126955837afff4e645d9 | [] | no_license | anuragdogra2192/Data_structures_with_python3 | 69f4aed4cbe17fd449b1bdc225c5d1d832af5e4f | d8b5b3dd8beb8ec0516d89a7be17d2a3cec8119d | refs/heads/master | 2023-02-19T23:59:21.142338 | 2023-02-15T10:51:59 | 2023-02-15T10:51:59 | 188,711,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #!/usr/bin/env python3
# graph is in adjacent list representation
graph = {
'1': ['2', '3', '4'],
'2': ['5', '6'],
'5': ['9', '10'],
'4': ['7', '8'],
'7': ['11', '12']
}
def bfs(graph, start, end):
# maintain a queue of paths
queue = []
# push th... | [
"anuragdogra.2192@gmail.com"
] | anuragdogra.2192@gmail.com |
6c3830beabee9c3e23adcf288f92d160bd2bae52 | f806767449782b48517f33032ca9bec2849b18fb | /Triage_Report.py | 668c3805b93fd98ce4e46e16fa1040edb18a39a8 | [] | no_license | abcwangxiang/web_develop | b1445652f4142acc4286773ae4f6abef8749510d | 84d51b32271648331916038631e46b10279f8c46 | refs/heads/master | 2021-01-10T18:44:44.066255 | 2015-06-10T11:32:42 | 2015-06-10T11:32:42 | 37,596,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,404 | py | import os
import re
import urllib
import cookielib
import xmlrpclib, httplib, sys
from urlparse import urljoin
import mechanize
from bs4 import BeautifulSoup
#report_order = ['triaged', 'fixed']
report_order = ['triaged','fixed', 'no_checkin_request', 'no_checkin']
class Triage_Report:
def __init__(self, usernam... | [
"fangchiw@vmware.com"
] | fangchiw@vmware.com |
5b84c8e2df7b21d734d52b16a4f8de9d6aa1f669 | 74306310e5c235164ee27f3ea6591e7d4aa5d8c7 | /EVE/tools/createScene.py | e0134e8b7eecae1e890ac33d8cbf9734f81c6423 | [] | no_license | Kolominsky/Houdini | afaf60c15ea6abba9d46aca0f5a41d1ad39fc3c1 | 0faefdda0c86731678f5a5cd4adaab937b2dc964 | refs/heads/master | 2020-04-18T10:44:33.254304 | 2019-01-23T21:30:37 | 2019-01-23T21:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,772 | py | # 256 Pipeline tools
# Create ANIMATION and RENDER scenes
import hou
import os
from PySide2 import QtCore, QtUiTools, QtWidgets
from EVE.dna import dna
reload(dna)
# Get Houdini root nodes
sceneRoot = hou.node('/obj/')
outRoot = hou.node('/out/')
class SNV(QtWidgets.QWidget):
def __init__(self, filePath, sceneT... | [
"KKO8@dsone.3ds.com"
] | KKO8@dsone.3ds.com |
1e5122dc89c65f5bcead30da6a84115a1b6723ee | 94f978c65b6368f936e18364cc477591094750f5 | /quart/__init__.py | c7fa2b897ed9969c7681fd2a6aa8a28fd1fd4750 | [
"MIT"
] | permissive | tharvik/quart | 2a4ff330dd384dc9f917b179e8d247808e7ccd6c | 038680bcc1c0966481d73bdbe474f55a3ce104f4 | refs/heads/master | 2021-04-18T21:54:18.339532 | 2018-03-06T08:06:33 | 2018-03-06T08:11:48 | 126,790,492 | 0 | 0 | null | 2018-03-26T07:29:58 | 2018-03-26T07:29:58 | null | UTF-8 | Python | false | false | 2,082 | py | from jinja2 import escape, Markup
from .__about__ import __version__
from .app import Quart
from .blueprints import Blueprint
from .config import Config
from .ctx import (
after_this_request, copy_current_request_context, copy_current_websocket_context,
has_app_context, has_request_context, has_websocket_conte... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
9a595b0c0afd43784fd25b50fbdf0f7538d47de5 | a7780057b446fefea67ba98de074b543216b69df | /version1_antimart.py | d282b875ffbd3e23d131a8f87862a292f28228cd | [] | no_license | kgodonoghue/FX_2020 | a8101876186b16d3fd06f0fc81bdd68d34aad0ae | f97432f68773bef23d3065e2ff5b7ef14a333e55 | refs/heads/master | 2022-04-27T07:31:41.905412 | 2020-04-18T16:04:16 | 2020-04-18T16:04:16 | 254,858,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,385 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 2 18:26:16 2019
@author: kgodo
# counter added and time after the limit hit
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import classification_report
from pandas import DataFrame, read_csv
import time
im... | [
"noreply@github.com"
] | kgodonoghue.noreply@github.com |
9cebfe78ac4726d95ef3d85151f40b31288a7c66 | 71962596a0693e03e19257f1beb3bdda223ed4ff | /profile_xf05id1/startup/80-areadetectors.py | 606dcb874953ff5d84513d47929ed37814781b3f | [
"BSD-2-Clause"
] | permissive | tacaswell/ipython_srx | 53561979f27a108063f4851ea314073768098cbb | e3dbb45cfd87c166878e8420654cc7995f772eda | refs/heads/master | 2020-12-25T00:19:11.936763 | 2016-02-18T00:30:51 | 2016-02-18T00:30:51 | 51,659,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | from ophyd.areadetector import (AreaDetector, ImagePlugin,
TIFFPlugin, StatsPlugin, HDF5Plugin,
ProcessPlugin)
from ophyd.areadetector.cam import AreaDetectorCam
from ophyd.device import BlueskyInterface
from ophyd.areadetector.trigger_mixins import Single... | [
"xf05id1@xf05id1-ws2.cs.nsls2.local"
] | xf05id1@xf05id1-ws2.cs.nsls2.local |
8463f1d6308fa2292d9dfa2ea550c1529e9d3cd5 | 1c3c155f39573ca9b382bc2520dde359cc6f8fe6 | /mix_traffic.py | 0480d3f061e9e726c1ed9516f74c19b851135496 | [] | no_license | zxyap/mix_traffic_collection | 885a60a3f30783d05124e26eb7ddc97fc6ecbf5d | 14f34dec56226ca2ed1ac6c29cb5f155cb9420e1 | refs/heads/master | 2022-12-11T10:02:19.215427 | 2019-10-03T13:35:04 | 2019-10-03T13:35:04 | 211,783,201 | 0 | 0 | null | 2022-12-08T06:39:30 | 2019-09-30T05:38:15 | Python | UTF-8 | Python | false | false | 14,711 | py | import os
from selenium import webdriver
import subprocess
import datetime
import logging
import socket
import random
from fake_useragent import UserAgent
import time
from urllib.request import Request, urlopen
import urllib.error
import argparse
from bs4 import BeautifulSoup
import sys
from selenium.common.exceptions ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
037c36b38eb376e91ce6c2b3bb5d768258458fdd | 343622a56b72a72ac016d3855a1c16c1c4fc8bc1 | /first_rest_api/03_flask/item.py | d40ca2746ad1c87ec06d18e9131cfb030b490548 | [] | no_license | copetty/test-repository | c74dde301fc3a102cc953042a51d8a7db669caf6 | be9daa5aa416a699a3bb84a1fed11ba3449d194a | refs/heads/master | 2023-05-07T13:07:31.238903 | 2021-05-24T00:02:51 | 2021-05-24T00:02:51 | 370,181,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | from flask_restful import Resource, reqparse
from flask_jwt import jwt_required
import sqlite3
class Item(Resource):
parser = reqparse.RequestParser()
parser.add_argument(
'price',
type=float,
required = True,
help="This feild cannot be left blank!")
@jwt_required()
... | [
"copetty96@gmail.com"
] | copetty96@gmail.com |
9c49f34c4e0af8d51ca97a03a373e5fc2d76440a | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/middleware_20191129081531.py | bed0186b917d604de34c93cc7df6e8c7ddb4bfb8 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from datetime import datetime
import toolbox.sheets as sheet
import pandas as pd
def middleware():
driver = webdriver.Chrome(executable_path='chromedriver.exe'... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
0240279d614cdfa43d1feb765b1158095b2c2b3e | 4ce40248e08e753ec1916297cb2f803bc5066e0c | /utils/downloadFTP.py | 5969c007b28c54410073d1429976dc3bfa0a4493 | [] | no_license | adpolicarpo/SCRAG | db0d0078b815d5567a860bb64788dd326754195a | db5e23cf5408cccc8dab5239f068cb743c71e37b | refs/heads/master | 2020-06-01T06:53:00.046642 | 2015-09-03T16:32:25 | 2015-09-03T16:32:25 | 40,362,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | #########################################################
##### Script to download genomes from GenBank FTP #####
##### Author: Adriana Policarpo #####
#########################################################
from ftplib import FTP
import os
ftp = FTP('ftp.ncbi.nih.gov') # connect t... | [
"adri_poli@hotmail.com"
] | adri_poli@hotmail.com |
d643ffc82c8f5d1f4332b0ca587f905ec10b6b0c | 689114d6466fdba8da2b20beabe56320b97410f3 | /assignment2/cs231n/classifiers/cnn.py | 49f244cfaef3841bff5e8a45a00c5beae622a083 | [] | no_license | jaja7/cs231n_assignment_winter1516 | 87b39a2e6c93ad5d309836b261de1033daf94eef | 8a807e837e956ffeec2944bd043160d51073c587 | refs/heads/master | 2021-01-20T08:31:18.485716 | 2017-05-03T16:12:53 | 2017-05-03T16:12:53 | 90,159,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | import numpy as np
from cs231n.layers import *
from cs231n.fast_layers import *
from cs231n.layer_utils import *
class ThreeLayerConvNet(object):
"""
A three-layer convolutional network with the following architecture:
conv - relu - 2x2 max pool - affine - relu - affine - softmax
""... | [
"wangjiajia123@gmail.com"
] | wangjiajia123@gmail.com |
de26330ae9f9fa29b1fab8740fe3cd8dc6ec643a | 6291f0d789d9d6ec2f117eefa5d29ec234c9015e | /get_lyric/__init__.py | a428eddef5633a970b30688bd84fcc0e0f73a1cc | [] | no_license | atcdot/get_lyric | 25c4cfb7eb4d7e1c8e3622446e94c2b6f63ca931 | 7f0ef53a5ec75be71dc1446fb72f6476b69aa85c | refs/heads/master | 2021-09-06T10:12:45.351560 | 2018-02-05T10:42:39 | 2018-02-05T10:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | '''
Created on 2015/06/07
@author: yoshi
'''
__all__ = ['common','sites']
| [
"tripod31@hotmail.com"
] | tripod31@hotmail.com |
43d3606680c7c08b541d8e66a106bbe7f13c0fa7 | 2923b9f58e6a143a3e070169612165585c301def | /LA/gp_rupture_test/LA/gp_rupture_test/gp_021219_Scott_7.35_noplas_2hz/fault_full_loc.py | d3f385c3d1a7f68a7593b81008a1ecdc93ae3228 | [] | no_license | hzfmer/summit_work_021421 | 16536dd716519bc9244da60007b9061ef5403429 | 6981b359fefb2af22e0bea6c47511de16cad22bd | refs/heads/master | 2023-03-11T15:34:36.418971 | 2021-02-05T23:22:10 | 2021-02-05T23:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 17 2018
@author: Zhifeng Hu <zhh076@ucsd.edu>
"""
import numpy as np
from numpy import sin, cos, pi, sqrt
import os
import sys
import glob
import time
nt_ref = 2000
nt_des = 10 * nt_ref
theta_rot = 35
f = open(glob.glob('./*.srf')[0],'r')
f.readl... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
1773f9b8b03adcd61ad6b4dce8b09156adfd7af0 | ef0ac2e679f6f059658aa3732cc706fe4c5d5cbf | /brain_invader/concat_all_result.py | 396015f567c0e4f6959b9679a20b16b2aee63579 | [] | no_license | nbuton/PLDAC | f4e51d43fd6166716768e0226a64ce5a55c98241 | 662d5d6155a4ba15b67f2b5cfd2c2792365c9a02 | refs/heads/master | 2022-01-05T04:05:01.488608 | 2019-05-27T16:50:26 | 2019-05-27T16:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import os
import csv
def getListOfFiles(dirName):
# create a list of file and sub directories
# names in the given directory
listOfFile = os.listdir(dirName)
allFiles = list()
# Iterate over all the entries
for entry in listOfFile:
# Create full path
fullPath = os.path.join(dirN... | [
"holophore@holophore.home"
] | holophore@holophore.home |
760f2a534ec5161bec67df526d1c6f2f94bd9a02 | e590f1892d08c18cb2e5233c830934592be90b53 | /config.py | e08deb19e8b3bc57a6f1fcf45ff0cfaecf5d0bb8 | [] | no_license | demtodeath/TGSPAMMER | cc38558ebadb2c5cc719b7bf0a879ce065ddc2bc | 0e10b0ec78b7c934507f93daf4526bd9197f442e | refs/heads/main | 2023-06-05T18:22:01.492992 | 2021-06-22T19:05:20 | 2021-06-22T19:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
#BOT:
TOKEN = "" # ТОКЕН БОТА
ADMIN = 392192947 # ИД АДМИНА, узнать свой айди - @get_any_telegram_id_bot
DIR = "" # Путь к файлу, если нужно
#USER: # https://my.telegram.org/auth
API_ID = 6623613
API_HASH = "3504ada74bdd34a2e5bf510e1bfd6460" | [
"noreply@github.com"
] | demtodeath.noreply@github.com |
3a2aace405551240c749077517533bdee9b234de | e562f7e0a51273475e50a7e61d1d377f88775622 | /flags.py | 39c29607dfbc5649d50a4d7b0c0d48d7e2e0df9b | [] | no_license | bloodcurdle/ReadableWebProxy | d1c6ae0220fdb04ea7ab82963c86e776a0dbbfd9 | 10f68f913a78f8b0e47582996d9860a61da55dd6 | refs/heads/master | 2021-05-29T19:58:32.965610 | 2015-11-09T18:25:00 | 2015-11-09T18:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py |
RUNSTATE = True
FEEDER_STARTED = False
RSS_DEBUG = False
RULE_CACHE = None
SPECIAL_CASE_CACHE = None | [
"something@fake-url.com"
] | something@fake-url.com |
60226e9a1da94d8a374b9fb6ff9f4b35b54917ef | c08cbc3589f2542ee2718ba900dec682e80cbd48 | /authentication_practice_part_2/models.py | a3c1e6015bd6103dd34cfd688dcba1f531316dd3 | [] | no_license | pun1sh3r/flask_lab | 4abf1f1d4d1ada4de556e87e70861c3f5902c677 | 0e2fb2c9ed46d22a3a36584b36adb37d3c2ebfc0 | refs/heads/master | 2023-09-04T01:49:06.795779 | 2021-11-08T21:41:52 | 2021-11-08T21:41:52 | 421,600,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from app import db
from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin, LoginManager, login_required, login_user, current_user
from werkzeug.security import generate_password_hash,check_password_hash
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.... | [
"lmendieta@fidelissecurity.com"
] | lmendieta@fidelissecurity.com |
cee79224828046ad207e51d9a47d49cf7fe50c1f | 21ebe23f27cced0b5f9fa01a350268eb19cf26bf | /run_radon_varying_intercept.py | 0e70ec6281244a497b924637b276188a01784289 | [] | no_license | joseffaghihi/pymc_radon | dfe7879dd03e56d756a4db96d4248e07c08c5240 | aeeb71f4c50f22b90bc2659e8f5841e2070c3c54 | refs/heads/master | 2021-01-15T09:24:24.291545 | 2011-03-08T18:19:19 | 2011-03-08T18:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import pymc
import radon_varying_intercept
from pylab import hist, show
from pymc import Matplot
M = pymc.MCMC(radon_varying_intercept)
M.sample(iter=50e3, burn=10e3, thin=5)
fit = M.stats()
for k in fit.keys():
print(k,fit[k]['mean'])
Matplot.plot(M)
| [
"armstrong.whit@gmail.com"
] | armstrong.whit@gmail.com |
c553f3cf8e814068e3de80a5d5d74670c9a32497 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_212/62.py | 2e921c86f22c4e6edb1a0681c1da5040d943a43a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import sys
import itertools
sys.setrecursionlimit(10000000)
tc = int(sys.stdin.readline().strip())
for tmp_tc in xrange(tc):
[ N, P ] = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
gs = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
cnts = [ 0 ] * P
for g in gs:
cnts[g % ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f5a3b71c6bff9673ba71eeecf036dd3089d9ae7c | 9eb09e374d6f1fea46844b8325e30f875b0813f3 | /conf.py | 9196537ce6bce033ae0fda957584b428d5b46b2a | [] | no_license | TuuuNya/sphinx_demo | ef6fdb896703f697b71904a8ec4ec0bf5ec9dc45 | 42808595f0581de552045ea3d97926b773c7bad1 | refs/heads/master | 2020-04-25T21:02:04.036206 | 2019-02-28T08:42:09 | 2019-02-28T08:42:09 | 173,068,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"song@secbox.cn"
] | song@secbox.cn |
73be991d92aa7d1f221c705467c3b65a83ab1b85 | c8faa6a4343a1b3775eb0cd707271f6c4aede6be | /quant/platform/deribit.py | 3d076c1c19b2afd753315af68b2af69209a0dfa9 | [
"MIT"
] | permissive | 51bitquant/thenextquant | adada6c2b88723971413f12df23505bd250c86d0 | b0b9d60439a916bc4b1980f908f648aa863d5918 | refs/heads/master | 2023-05-29T21:23:18.198952 | 2023-05-14T08:42:56 | 2023-05-14T08:42:56 | 640,403,755 | 6 | 2 | null | 2023-05-14T01:06:46 | 2023-05-14T01:06:45 | null | UTF-8 | Python | false | false | 13,662 | py | # -*- coding:utf-8 -*-
"""
Deribit Trade module 交易模块
https://docs.deribit.com/v2/
Author: HuangTao
Date: 2019/04/20
"""
import json
import copy
import asyncio
from quant.utils import logger
from quant.const import DERIBIT
from quant.position import Position
from quant.utils.websocket import Websocket
from quant.t... | [
"huangtao@ifclover.com"
] | huangtao@ifclover.com |
bee3b42d7296eade936964032ad2370f89b807d1 | cb3b8fda8f03642e50fa5bc84438a594128930a2 | /src/lgpl/SConscript | 2bb90c23349d315937aee4e34fee58e8ba3b6e4c | [
"ISC"
] | permissive | OuluLinux/pedigree | fbb83055d0afd1e620f48d8cfd89a2bf88235701 | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | refs/heads/master | 2022-12-28T15:49:01.918113 | 2013-05-25T02:20:01 | 2013-05-25T02:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | ####################################
# SCons build system for Pedigree
## Tyler Kennedy (AKA Linuxhq AKA TkTech)
####################################
import os
import shutil
Import(['env'])
# To include a new subdirectory just add to the list.
subdirs = ['SDL-1.2.14']
SConscript([os.path.join(i, 'SConscript') for i ... | [
"matthew@theiselins.net"
] | matthew@theiselins.net | |
b945efe586fc69a6bd39e654fb0ea895ace5cc29 | fc79f39e32bcb97e2c47ab7fb820098e388cd55c | /Listas.py | 781e3d0da36bf9ab433957a5fe4124ef70b915ae | [] | no_license | EdwardAlvarado/Clase1 | 859f84ca4bc4e9b4ef4f190e6d792a2a85d94ffa | 1f167cd3afbaa5fce21af79d0c7053837307036e | refs/heads/master | 2020-06-18T00:50:01.685152 | 2019-07-16T02:52:10 | 2019-07-16T02:52:10 | 196,114,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | valores = range(100)
print valores
m = 0
for i in valores:
m=i**2
print m
| [
"noreply@github.com"
] | EdwardAlvarado.noreply@github.com |
b2fc4e3cfd43f94cd2d66299af2e1b8145681be7 | fea4402f50b7a340db6122bf900243ada95018d4 | /src/password_manager/panel.py | 95422dcff8e5867e452ed91b6ffda710644ee538 | [] | no_license | CloudPadovana/openstack-security-integrations | ae516c5e7b15cee50fd01da3d69f66bfb26dde10 | fc22a9930aecc466d7b29af4095fbe922962077a | refs/heads/master | 2023-08-08T09:51:30.659062 | 2023-07-28T10:00:28 | 2023-07-28T10:00:28 | 14,750,978 | 0 | 2 | null | 2017-11-17T14:29:47 | 2013-11-27T15:31:37 | Python | UTF-8 | Python | false | false | 936 | py | # Copyright (c) 2014 INFN - "Istituto Nazionale di Fisica Nucleare" - Italy
# 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/LIC... | [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
b068a3f92381280a3c6a6e752cc92bdfb5747bba | 1542ec5349d8be375cb7b2aa0b9b894982831448 | /gui/qt/fee_slider.py | dffff5c4bc727cf8b1e8b003a8cf7f1a86740365 | [
"MIT"
] | permissive | NeblioTeam/electrum-nebl | 31edf95e30e914d7e04c0298842b33a6408fc4e5 | a22a5dbeec15b93e24aefd974e5bb896a1d96a5f | refs/heads/master | 2022-11-14T13:57:25.623247 | 2020-07-15T15:11:13 | 2020-07-15T15:11:13 | 110,052,588 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | from electrum_nebl.i18n import _
import PyQt4
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import PyQt4.QtCore as QtCore
import threading
class FeeSlider(QSlider):
def __init__(self, window, config, callback):
QSlider.__init__(self, Qt.Horizontal)
self.config = config
self.window... | [
"neblioteam@gmail.com"
] | neblioteam@gmail.com |
ed97e8811b6301d5bad032acec68d9d059cf10d8 | 999312fc8102f952d4da618914b0b8b97a899667 | /src/data_utils.py | 002368fbd919bafa236558ac5567328fe5fefbfd | [] | no_license | adregan/APImachine | 60d140bbdd8b39f2b90779277a69bf6c32bd036c | e4d62ed3b9ed24b64d6fdf0599377b20ea384abe | refs/heads/master | 2020-05-29T23:10:53.143361 | 2015-03-24T04:17:19 | 2015-03-24T04:17:19 | 31,473,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | def convert_id(entry):
entry['id'] = str(entry['id'])
return entry
| [
"duncanregan@gmail.com"
] | duncanregan@gmail.com |
d6177edf3e386fe4a31432ae43201ef687f67376 | 938e0e6ea9b5ed59f1cd0243cf2f3f9bed061c32 | /src/main.py | c3537c3ac81967b6af66c7419fdea85ac82d359f | [] | no_license | KristianAsp/WordTreeExercise | 57393eaee3312e472bc92bab8b0ff59e55fb1457 | 5b8bbb5095ab1fb0169f3ca8390af75f0cae4b83 | refs/heads/master | 2020-09-30T06:53:31.118112 | 2019-12-11T22:26:28 | 2019-12-11T22:26:28 | 227,233,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from src.WordTree import WordTree
t = WordTree()
t.add("car"); t.add("can"); t.add("cat"); t.add("cat"); t.add("cat")
print("1: ",t.count("ca"),t.count("can"),t.count("car"),t.count("cat"),t.minst())
print(t, t.size)
# t.remove("")
print(t, t.size)
t.add("")
print(t, t.size)
t.add("ca")
print("2: ",t.count("ca"),t.cou... | [
"kristian.aspevik@gmail.com"
] | kristian.aspevik@gmail.com |
dc0bd4f2663604ec7cd4633cec7f0b91e328e640 | 8ee20b9758f34b1dfcf5a823f5f8f0c7e96e12c4 | /basic.py | f40a52098a5e2e876b36f05f25d1a4b928db41b4 | [] | no_license | Ashwin-Dhakal/learning-machine-learning | d749850e361408ae2173801167b1ace82a766f42 | 0d7400a3f1710fd5827c8499d7e65aff3296a777 | refs/heads/master | 2021-05-05T11:32:43.685193 | 2018-02-10T11:46:43 | 2018-02-10T11:46:43 | 118,204,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import pandas as pd
import quandl
df= quandl.get('WIKI/GOOGL')
df= df[['Adj. Open','Adj. Close','Adj. Low','Adj. High', 'Adj. Volume']]
df['HL_PCT']= (df['Adj. High'] - df['Adj. Close'])/df['Adj. Close']*100
df['percent_change'] = (df['Adj. Close']- df['Adj. Open'])/df['Adj. Open']*100
df= df[['Adj. Close', 'HL_PCT',... | [
"ashwindhakal97@gmail.com"
] | ashwindhakal97@gmail.com |
e2fbe9dfcab8909ac704f3fd6cc475c17abfa26e | 10b116a0e957089c80ef61efe447e132892742af | /matematicas.py | 745aca1dc5407acedfe87409730abc3150017212 | [] | no_license | apdaza/clase4 | 7b7b6a0fa081086daa8a87afc584432e0b213105 | 6c6340981f24d093dc1e3341cff3a562939ec5cd | refs/heads/master | 2020-05-18T10:38:17.917338 | 2019-05-01T02:09:03 | 2019-05-01T02:09:03 | 184,357,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | def suma(a, b):
return a + b
def resta(a, b):
return a - b
def producto(a, b):
return a * b
def division(a, b):
return a / b
def factorial(n):
acum = 1
for i in range(1,n+1):
acum *= i
return acum
def factorial2(n):
if n == 0:
return 1
return... | [
"noreply@github.com"
] | apdaza.noreply@github.com |
742b3474b402ecfb9f2c483f25434098751f9c93 | 43b13c066530348bd0eecaa4efd68f148ec8467a | /learnpython/projects/ex48/tests/lexicon_tests.py | fdb3d55cb374da841f38804a31f7784201923f7f | [] | no_license | NoJhonnie/Github | 0d9c4098de60f1bbc40041c8303a18ce5e825b20 | 9768d4aa1393008981d1bd818d4bec54fb25d5d2 | refs/heads/master | 2021-09-06T18:23:07.388778 | 2018-02-09T15:40:56 | 2018-02-09T15:40:56 | 112,492,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | from nose.tools import *
from ex48 import lexicon
def test_directions():
assert_equal(lexicon.scan("north"), [('direction', 'north')])
result = lexicon.scan("north south east")
assert_equal(result, [('direction', 'north'),
('direction', 'south'),
('direct... | [
"smgjc123@163.com"
] | smgjc123@163.com |
383fd6ad815752f90385310887146c923428992e | 15c3fd316a6ba0fd0581e1ca3fc0bc526ee15957 | /holdem_calc.py | 1dd8b0e3acdf8ab9e712ab136f9adf182fe2b315 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shakedzy/holdem_calc | 758ea845732ebb98df486617ea5bcf991771ae9a | 7e1b360fcd194734c49238dc873c70ee9e1672c3 | refs/heads/master | 2020-03-26T21:31:47.460144 | 2019-04-26T22:37:12 | 2019-04-26T22:37:12 | 145,393,300 | 0 | 1 | MIT | 2018-08-20T09:05:12 | 2018-08-20T09:05:12 | null | UTF-8 | Python | false | false | 3,570 | py | import time
import holdem_functions
import holdem_argparser
def main():
hole_cards, num, exact, board, file_name = holdem_argparser.parse_args()
run(hole_cards, num, exact, board, file_name, True)
def calculate(board, exact, num, input_file, hole_cards, verbose):
args = holdem_argparser.LibArgs(board, ex... | [
"kevin.tseng@gmail.com"
] | kevin.tseng@gmail.com |
0564ea410472f263a69ec01666ed0456ace1bef1 | 542d8c7b2c8e8f08cad1e0fa44420aa063e3eece | /Array_Rotation.py | ad23e6f9f149ffd66311c3b564de1a292c4fa642 | [] | no_license | bharatigupta2405/Python_Hacker_Rank | 28b63fff5c565df69dc87d2332864ff7f52cd4f3 | 0c336dc2e6a4de2e71181479f3d9523250b399da | refs/heads/master | 2023-01-14T07:55:20.357746 | 2020-10-26T12:28:32 | 2020-10-26T12:28:32 | 290,551,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the circularArrayRotation function below.
def circularArrayRotation(a, k, queries):
for i in range(k):
p=a.pop()
a.insert(0,p)
l=[]
for j in range(len(queries)):
l.append(a[queries[j]])
return l
... | [
"bharatigupta2405@gmail.com"
] | bharatigupta2405@gmail.com |
995e7d7fa2a00ac9c6f5dbea6b5dcb634a78969e | 74684bedb970ed2513df94610d2bc112e4c2fc2f | /venv/bin/sqlformat | 79b5cf7dad5c5b99d29b2e2355a475fbc1cbcf6a | [] | no_license | yuwenjian/appdownload | 5d540d56799408769474f516f089a25a231ca85f | 2fd6fd1a5483fc3bd7908a25bc237d4df53dcdb6 | refs/heads/master | 2023-04-30T17:43:17.014096 | 2021-05-20T14:37:01 | 2021-05-20T14:37:01 | 369,238,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/yuwenjian/PycharmProjects/appdownload/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"740225978@qq.com"
] | 740225978@qq.com | |
0c5dad277b1f94b096cb126e84f0d1017a3d54d2 | a9bc7252381890cb95a4d56215ae9094e355c793 | /products/admin.py | 2efd3c24f71c899d3225e4c10151d45604e12fec | [] | no_license | behnazkhoshnood/tadig_restaurant_v2 | 35e2f89206824dda61ddc58bf7ae6b81ea7b741f | 0abb0e1c6e96ea57d6924a4eacbed883745804c4 | refs/heads/master | 2023-06-26T00:31:49.495375 | 2021-08-02T10:36:16 | 2021-08-02T10:36:16 | 361,359,556 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from django.contrib import admin
from .models import Product, Category, Review
# Register your models here.
class ProductAdmin(admin.ModelAdmin):
list_display = (
'sku',
'name',
'category',
'price',
'image',
)
ordering = ('sku',)
class CategoryAdmin(admin.ModelA... | [
"behnaz.khoshnood@gmail.com"
] | behnaz.khoshnood@gmail.com |
6d73d131e26cfb65c423acd5a641958d3283c4e9 | 8704a683e1fa8c7c15d114fca47345eef060326b | /类/Pingclass.py | 37f162cbbd1550ec1a90053f63e4624826cfe8ab | [] | no_license | jiaojiner/Python_Basic | 823be07e8c02585174d933bc3e4ecf528086162c | 788243f95746e2a00890ebb3262085598ab84800 | refs/heads/master | 2020-12-31T22:47:04.561208 | 2020-11-23T13:59:04 | 2020-11-23T13:59:04 | 239,061,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python3
# -*- encoding = utf-8 -*-
# 该代码由本人学习时编写,仅供自娱自乐!
# 本人QQ:1945962391
# 欢迎留言讨论,共同学习进步!
from scapy.layers.inet import IP, ICMP
from scapy.sendrecv import sr1
class Pingclass:
def __init__(self, srcip, dstip, qua=1):
self.srcip = srcip
self.ip = dstip
self.qua = qua
... | [
"15148365776@163.com"
] | 15148365776@163.com |
970b585846494138f5ad4e230612d400e3710200 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/util/lazy_loader.py | 44594aaf70c93ad1b1494c16df3e8a52cb7efb6d | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 178 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/util/lazy_loader.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
27828211be311596d2c18ff3abb1ad40fcdeeb1b | 41874a979a1e34fde24c868a622c985192e6b082 | /chairdb/dbs/attachments.py | b567e5e8790868504df891b1abc30ffeb5f9a1a4 | [
"Apache-2.0"
] | permissive | KouchDB/chairdb | 85f978ecee5ddf9fe1005982d0f41e66c71dc166 | 5cd64c7b58eef960a434da672e72c9b73e576283 | refs/heads/master | 2023-04-26T01:07:35.421151 | 2021-05-29T19:05:26 | 2021-05-29T19:05:26 | 562,342,461 | 1 | 0 | Apache-2.0 | 2022-11-06T03:05:41 | 2022-11-06T03:05:40 | null | UTF-8 | Python | false | false | 2,953 | py | import bisect
import typing
from ..errors import PreconditionFailed
from ..datatypes import AttachmentMetadata, AttachmentStub
class AttachmentRecord(typing.NamedTuple):
meta: AttachmentMetadata
data_ptr: typing.Any
def read_atts(att_store_raw, branch, selector):
att_store = decode_att_store(att_store_... | [
"m@rtendevri.es"
] | m@rtendevri.es |
8cd9a1e1e32f967d1d4ab387ae290f7e282e8669 | ab224876fc8da911f3a43554701c2d8392191039 | /source/module_triggers.py | 5fc446775e0cda62d8b8641ac459a53840a99e7e | [] | no_license | LilyModzStuff/warband_mod_source | ab5170f7ee3dd5a1af3541e50891029bcd5701be | c9737d7793ccdb185d8d3caedda0da915104e405 | refs/heads/master | 2022-10-04T21:01:08.032485 | 2019-04-05T06:59:44 | 2019-04-05T06:59:44 | 144,548,421 | 18 | 17 | null | 2022-09-08T08:31:38 | 2018-08-13T08:06:59 | Python | UTF-8 | Python | false | false | 86,926 | py | from header_common import *
from header_operations import *
from header_parties import *
from header_items import *
from header_skills import *
from header_triggers import *
from header_troops import *
from module_constants import *
from compiler import *
##############################################################... | [
"lily.metaxas@gmail.com"
] | lily.metaxas@gmail.com |
66e0c84a835d00f66e63f4eabefe603562658452 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/EBackend/CollectionBackendClass.py | 9bef82e9cc16e52ae4c3acc39b19c2255df0443e | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,476 | py | # encoding: utf-8
# module gi.repository.EBackend
# from /usr/lib64/girepository-1.0/EBackend-1.2.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
4ab6db4ddd15683d5486a6ce5d4a368545640938 | 4a1ce8dc34b771334867fc8f3eacf9eb140c7a15 | /contributors/ChrisDent/verticals/UnaForms/uf/tiddlywebconfig.py | 60e4c4e51b404a2059c5c1f646e909fabd4ca5fc | [] | no_license | dineshkummarc/tiddlywiki-svn-mirror | 4bbfbd22ba150f90543b983b3875dd30ad8abe4e | e1d4198d99f143d4a836d42e6c9b88891f2b6798 | refs/heads/master | 2021-01-20T01:25:05.375480 | 2010-12-08T16:12:00 | 2010-12-08T16:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | config = {
'system_plugins': ['former', 'logout'],
'twanager_plugins': ['former', 'lister'],
'instance_tiddlers': [
('system', [
'http://svn.tiddlywiki.org/Trunk/association/adaptors/TiddlyWebAdaptor.js',
'http://svn.tiddlywiki.org/Trunk/association/pl... | [
"cdent@bb0f57cd-c710-0410-a8fb-e8bc1be0d679"
] | cdent@bb0f57cd-c710-0410-a8fb-e8bc1be0d679 |
d9db690c91fc2ddc09d2c0a1a3de68d70af49ae3 | c608832b2e4c731722d43d5fc579a56634bcc219 | /GUI/servomodule.py | b22a01c7a2863bd87778dfec57522e6faaad11b7 | [] | no_license | neiltarar/GUI-Controlled-Self-Driving-Robot-Car-Project | 09277109a466e36d2e6707cbdb5d16ac5e4b3e56 | c133145eb33c4846e33230a7e75441b3782bcaab | refs/heads/master | 2023-06-24T07:32:59.390109 | 2023-06-11T08:51:30 | 2023-06-11T08:51:30 | 247,864,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | # servomodule.py
import RPi.GPIO as GPIO
import time
def servo_down():
servoPIN_1 = 18
servoPIN_2 = 4
GPIO.setmode(GPIO.BCM)
GPIO.setup(servoPIN_1, GPIO.OUT)
GPIO.setup(servoPIN_2, GPIO.OUT)
p_1 = GPIO.PWM(servoPIN_1, 50) # GPIO 18 for PWM with 50Hz
p_1.start(6) #Initialisation
p_2 =... | [
"noreply@github.com"
] | neiltarar.noreply@github.com |
285edea7dbbb66cd9e8bcc73dcb3e942f5c9406d | b7526d2cd24326f5b1133971e984b38d05855969 | /modules/solvers.py | 56b42105ea5953ffcc8ec89d28cf3c979efd8811 | [] | no_license | WCZ93762/ImpSq | 0515918f9eec816f3e1b481f7723a2e6ee254369 | bd490e95596608b351c73a6513db557ce94a09f0 | refs/heads/main | 2023-09-02T18:15:15.473544 | 2021-11-24T19:53:37 | 2021-11-24T19:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,679 | py | import torch
import torch
from torch import nn
import torch.nn.functional as functional
from torch.autograd import Function
from torch import autograd
import numpy as np
import pickle
import sys
import os
from scipy.optimize import root
import time
def _safe_norm(v):
if not torch.isfinite(v).all():
retur... | [
"ericaragorncn@gmail.com"
] | ericaragorncn@gmail.com |
9a9b803419d5990b9026b87d2c0f13bb6ede8384 | 008cb73de02f0ecb445f37a3a7ffe5e5ab85930e | /old/IRphotometry.py | 485bdd8195b0f59e28da93b028e9382b54f36689 | [
"MIT"
] | permissive | pbrown801/aggienova-templates | e3589ada6aa1f2e37492f34a8c3cbe5d1f345e89 | e57bef9b1cec03a39ec83fff5ce9b0832a3073e1 | refs/heads/master | 2023-01-14T02:32:02.314243 | 2022-10-20T22:22:16 | 2022-10-20T22:22:16 | 166,312,098 | 6 | 2 | MIT | 2022-12-27T15:34:55 | 2019-01-17T23:30:10 | Python | UTF-8 | Python | false | false | 2,794 | py | import numpy as np
from spectrophot_array_in import *
from astropy.cosmology import FlatLambdaCDM
import pysynphot as S
cosmo = FlatLambdaCDM(H0=73, Om0=0.3)
F200_wave,F200_tp = np.loadtxt('F200W_NRC_and_OTE_ModAB_mean.txt',dtype=float,
usecols=(0,1), unpack=True,skiprows=1)
F200_f... | [
"peterbrown@byu.net"
] | peterbrown@byu.net |
87375f2c2f39dfe9a1ad71c371098b8f691bf395 | d1d4efba2ef0f8e37fb7d78dfcb007f0fc475093 | /semana_6/programas/00_csv.py | b5bfc3e4e517b5eea10fb340f826899a7b8ebe01 | [] | no_license | mariaelisa492/Fundamentos_python | 4597d3bb3600e245ac769e4b98d09249d56d2473 | 933ad80b502633c26fe2a430a11961272dfaee42 | refs/heads/main | 2023-06-17T00:53:34.867268 | 2021-07-07T20:51:15 | 2021-07-07T20:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | # -*- coding: utf-8 -*-
"""
libreria csv
"""
# In[]
# persistencia en los datos
import csv
# In[]
# para leer
# open abre y prepara el archivo
archivo = open("arreglo.txt")
# lee lo que hay en el archivo
a = archivo.read()
print(a)
# In[]
# lo divide tomando como referente la ,
b = a.split(",")
print(b)
# In[]
#... | [
"gomezmunera@corum.org.co"
] | gomezmunera@corum.org.co |
0c1e08fd4a1399434643badb0efceafbc90ea86d | c57d718f1b5f9ccb4e59d202823f1ce8a9515ace | /oo/contas.py | a4c3d399239df5a920ecbcf345c75ae82527c17b | [] | no_license | mvfrasca/Caelum-Python | c01c6b568174e2ed9c9c7e8f86eb0c34f94ea959 | a3da3c0ebc067685d92a791ea3813f69d2566edd | refs/heads/master | 2020-09-29T07:25:12.730291 | 2019-12-20T00:14:01 | 2019-12-20T00:14:01 | 226,986,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from collections import MutableSequence
from conta import Conta
class Contas(MutableSequence):
_dados = []
def __len__(self):
return len(self._dados)
def __getitem__(self, posicao):
return self._dados[posicao]
def __setitem__(self, posicao, valor):
if isinstance(valor, C... | [
"mvfrasca@gmail.com"
] | mvfrasca@gmail.com |
815daa7a085d07da2383291fdfe140fe3de24d40 | 667f153e47aec4ea345ea87591bc4f5d305b10bf | /Solutions/Ch1Ex005.py | 0a2cd702fe7a62a4875fa2674961e86c12ac5580 | [] | no_license | Parshwa-P3/ThePythonWorkbook-Solutions | feb498783d05d0b4e5cbc6cd5961dd1e611f5f52 | 5694cb52e9e9eac2ab14b1a3dcb462cff8501393 | refs/heads/master | 2022-11-15T20:18:53.427665 | 2020-06-28T21:50:48 | 2020-06-28T21:50:48 | 275,670,813 | 1 | 0 | null | 2020-06-28T21:50:49 | 2020-06-28T21:26:01 | Python | UTF-8 | Python | false | false | 342 | py | # Ch1Ex005.py
# Author: Parshwa Patil
# ThePythonWorkbook Solutions
# Exercise No. 5
# Title: Bottle Deposits
def main():
lessThan1 = int(input("Less than 1 L: "))
moreThan1 = int(input("More than 1 L: "))
refund = (0.1 * lessThan1) + (0.25 * moreThan1)
print("Refund: $" + str(refund))
if __name__... | [
"noreply@github.com"
] | Parshwa-P3.noreply@github.com |
8a4708add6cdfe447fdcca3cdccadf54add34fad | 220f1e6f1bd604b0ce452d2337669ad72ef7c11e | /quiz.py | a002fa0a884bdd8c7e27d8c73631451a5e2cfbde | [] | no_license | bikashlama541/RoomA | 9545fa75cf0f02ef4022b692de366423b27d906d | a7f9035ad67ad7cc7e32e2bbb488d65f4ec5c4a1 | refs/heads/master | 2020-07-23T01:29:44.354382 | 2019-09-09T21:45:52 | 2019-09-09T21:45:52 | 207,400,892 | 0 | 1 | null | 2019-09-09T21:45:53 | 2019-09-09T20:42:38 | Python | UTF-8 | Python | false | false | 547 | py | class Question:
def __init__(self, prompt, answer):
self.prompt = prompt
self.answer = answer
questions_prompts = [
"What colors are apple?\n (a) Red/Green\n (b) Orange",
"What colors are bananas?\n (a) Red/Green\n (b)Yellow",
]
questions = [
Question(question_prompts[0], "a"),
Question(question_prompts[1],... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4cce4300cd93c522062d17864b7d7b6579a90919 | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/520_Detect_Capital.py | 72853824378aa294f92113350b1c6fc2394d75c7 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word.isupper() or word.islower():
return True
elif word[1:].islower() and wprd[0].isupper():
return True
else:
return False
'''
Runtime: 40 ms, faster than 42.73% of Python3 onlin... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
8451258e50d96e33c60b41669ed2db703480788c | c5e4a9a66f686de6eaca331f1ee3823ac925101b | /apps/management/models.py | 56efc0b62de24b22ffdb241452489a41abeab41d | [] | no_license | Tiilon/Hospital_project | b1409be60f0d6daecb0e294bfbe81698d97b7c1f | 6506218f4ad504f9031482999d9b33c92b350df8 | refs/heads/main | 2023-01-23T13:30:11.564836 | 2020-11-24T16:15:12 | 2020-11-24T16:15:12 | 303,461,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,585 | py | from random import randrange
from django.db import models
from django.conf import settings
from django.utils import timezone
# Create your models here.
class Ward(models.Model):
label = models.CharField(max_length=100, blank=True, null=True)
incharge = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=mo... | [
"tiilon42@gmail.com"
] | tiilon42@gmail.com |
9f80e717ea9714ed99db1309ab8affa2ee9ab24d | faf80886b0b826b0b9ec45e5e99112ddcdf55382 | /venv2/bin/uvicorn | 5817609c8197a3c3db081314c9ae55f0b2a3494c | [] | no_license | pythonashoksahu/testpro | 84c9b5d30ab053421252eebd05aa00a33cfcd76e | 870f3b7017948f6bc9d21e7cf25aebe816fc103d | refs/heads/master | 2023-03-14T04:48:57.411522 | 2021-02-25T07:15:04 | 2021-02-25T07:15:04 | 342,155,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/republic/PycharmProjects/projectfastapi/venv2/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from uvicorn.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"niraj.kmr777s@gmail.com"
] | niraj.kmr777s@gmail.com | |
268df992d4a58fa7d9720b5e331578c2652054a2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_segmentation/NAS-SEGM_ID1142_for_PyTorch/src/engine/trainer.py | 6e598066959d4fb2592982d4218e84c0c4d156e0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 11,811 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f4f0cff6f974d4d35b0bc2790b525b68d3c8bf48 | 9c17ef83b0f5bf93438f210dbdcd2a4be566a9ee | /V3/graph.py | 057b8c82b4bd2c7f98eddeba6acdb60c6ae0d307 | [] | no_license | rubencg195/GraphEditor | b8a76f287c8d065e1fec06417a3eaf25a10ed8fd | af271aaa9e83c59e9cfa1012b04ce2e6b39787c2 | refs/heads/master | 2021-01-20T05:46:39.995102 | 2017-08-27T16:40:10 | 2017-08-27T16:40:10 | 101,469,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,605 | py | import sys
import json
from random import randint
from PyQt4 import QtCore, QtGui
from fysom import Fysom
# from automata.fa.dfa import DFA
# from automata.fa.nfa import NFA
import logging
import pickle
import re
from DFA import DFA
from NFA import NFA
from NFA_e import NFAe
from grammaregex import print_tree,... | [
"noreply@github.com"
] | rubencg195.noreply@github.com |
639eb6874b95a9e96a37069b983815ce6ac2bc13 | 227c102ed508ad2b1d046340dcb598a7b16e2925 | /.history/Forritun/Verkefni með einkunn/Lokaverkefni/lokaverkefni_20201208144514.py | abaca0b10d37452fa155d2847cc3949d691d5db1 | [] | no_license | larusarmann/Skoli-haust-2020 | 298e48f1c20d7ec0c92124018650253f13bcbb2f | 3061a0238b74919daccaa74117bc1c32b3436619 | refs/heads/master | 2023-02-07T09:15:45.493928 | 2020-12-09T19:46:53 | 2020-12-09T19:46:53 | 292,543,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,104 | py | """
Show how to do enemies in a platformer
Artwork from: http://kenney.nl
Tiled available from: http://www.mapeditor.org/
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.sprite_enemies_in_platformer
"""
import random
import arcade
import os
SPRITE_SCA... | [
"larus.armann@gmail.com"
] | larus.armann@gmail.com |
05770b3305811e367771593ca4927690af14e802 | 5f8cfff64811b37ba3cbdee17100c23cc2bb3a53 | /encoding/models/danetPSP_nonsharedbn.py | d4f4f3ddf010412c4fe37988292d118bfc2936cc | [] | no_license | ZhenningZhou/AffKpNet | 656d1f31e66bdb39ddfbca60281b574efc556a99 | 412813d2ca0d8cc2b0b75f78ee957e1b7a919b83 | refs/heads/master | 2023-05-29T08:15:37.097045 | 2021-06-15T04:15:02 | 2021-06-15T04:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,607 | py | ###########################################################################
# Created by: CASIA IVA
# Email: jliu@nlpr.ia.ac.cn
# Copyright (c) 2018
###########################################################################
from __future__ import division
import os
import numpy as np
import torch
import torch.nn as n... | [
"fujenchu@gatech.edu"
] | fujenchu@gatech.edu |
343be7b674ad7ed5232dd69911abf6fbc5fe98a4 | 78ddf555db358f9683db00bf49b3d1a45cd998a9 | /forum/sitemaps.py | a4b63e0a11b35c9a8578c0a28eaf27bfbf104a43 | [] | no_license | azeez010/AfriconnForum | 9e0aa7a6abb40f20ac0739b9cadc75da89e91110 | 1b597850208c3caef474b9412bdf02dfefd1a30b | refs/heads/master | 2022-12-19T12:49:09.389062 | 2020-09-19T14:40:48 | 2020-09-19T14:40:48 | 298,311,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from django.contrib.sitemaps import Sitemap
from root.models import Profile
from polls.models import Poll
from job.models import Job
from blog.models import Blog
from .models import Thread, Category
from django.shortcuts import reverse
class StaticViewSiteMap(Sitemap):
changeFreq = 'always'
def items(self):
... | [
"dataslid@gmail.com"
] | dataslid@gmail.com |
4e05342bbe67e0b1ef38fe46f34073cc3d59822c | 0567b686db4d05b44a70fdfd7a61ed07f3be1fb4 | /flask_mail.py | 50630a3d0f3206394769458abef4da70620487e8 | [
"MIT"
] | permissive | achiang/flask-unchained | 624271d903a8d2af2c15d83c79571e8b5f91a56e | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | refs/heads/master | 2020-04-19T20:21:10.731764 | 2018-12-29T07:06:14 | 2018-12-29T07:06:14 | 168,411,738 | 0 | 0 | MIT | 2019-01-30T20:39:42 | 2019-01-30T20:39:41 | null | UTF-8 | Python | false | false | 22,070 | py | # -*- coding: utf-8 -*-
"""
flaskext.mail
~~~~~~~~~~~~~
Flask extension for sending email.
Copyright (c) 2010 by danjac.
Some rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source c... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
b6e2db285793968bc194f0cc1a2912dc59ad5622 | 8cadb441c5734c6dae2ed47419bd1ce5fac69afa | /13-파이썬기초_내장모듈2.py | bf78b99950cb5a27de4d0b30b38bf211c65a305d | [] | no_license | swj8905/Basic_Course_0904 | cf969a14ececacd369377bc9db611b639a4823a0 | 501620bb185851c3638d3b2029cc8259de67d770 | refs/heads/master | 2023-08-01T04:08:51.134526 | 2021-09-12T04:18:50 | 2021-09-12T04:18:50 | 402,959,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import turtle as t
t.shape("turtle")
for i in range(3):
t.forward(100)
t.left(120)
t.circle(50)
t.done() | [
"swj8905@naver.com"
] | swj8905@naver.com |
5f67ab5c03e5c44dd8eafab1df10221c656733c3 | 3a60b8935f809e300405214a66d949f0042e7e46 | /src/game/logic/player_control/player_control.py | 01107f77ef3e00a355c7b889bb6556490849130a | [] | no_license | stellarlib/centaurus | e71fe5c98b94e8e575d00e32f55ba39fe71799e6 | 896ae73165f3f44dfb87378ef2635d447ccbccae | refs/heads/master | 2020-08-29T00:02:47.294370 | 2020-07-06T20:06:02 | 2020-07-06T20:06:02 | 217,860,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,929 | py | from .standard_control import StandardControl
from .jump_control import JumpControl
from .ranged_control import RangedControl
from .charge_control import ChargeControl
from .action_cost import *
class PlayerControl(object):
STD = 0
RANGED = 1
JUMP = 2
CHARGE = 3
str_to_enum = {
'std': ST... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
71fe371cda7d83fe8f25cf62601d8c71bf778d42 | 7c6598d32701acaa47e5a010504a47ea502061bd | /old_py/QRcode_demo_0.py | 68315b16bdf48c909721083c077b884dcb8e0245 | [] | no_license | markkua/RobotArm | fed669eb36a0b7c0be2f1b6023b839de9ac61540 | fe7dcdddb4757c5a2e79229d3c3e9fc5014c6043 | refs/heads/master | 2022-05-04T19:41:46.146579 | 2022-04-14T14:22:18 | 2022-04-14T14:22:18 | 198,443,105 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # -*- encoding: utf-8 -*-
import cv2
import numpy as np
from pyzbar.pyzbar import decode
import cv2
import pyzbar.pyzbar as pyzbar
def decodeDisplay(image):
barcodes = pyzbar.decode(image)
for barcode in barcodes:
# 提取条形码的边界框的位置
# 画出图像中条形码的边界框
(x, y, w, h) = barcode.rect
cv2.rectangle(image, (x, y), (x + ... | [
"markkua@live.com"
] | markkua@live.com |
c6a945a9af09303e35a60962d0884c7ad7e64f0a | 06129696dde15566e1a7a032f7f11c4f6bc4402a | /RasterToArray.py | 206af530b0c3a991d86fa1d95e079594f6a0cc12 | [] | no_license | NaomiBda/Remote_sensing_yields | caa8aa79aaf2818bf18bb46eb73bb96e3e02bc7d | 61f6d9a3bf38cb1b37c00d7dbb2d70e0d8d4bc30 | refs/heads/master | 2023-02-02T10:51:51.505262 | 2020-12-24T06:45:12 | 2020-12-24T06:45:12 | 246,301,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 12 14:24:13 2020
@author: naomiberda
"""
import rasterio as rio
import numpy as np
import pandas as pd
def noNa(path_drone):
"""
enleve les valeurs de nA
Prend comme reference limage drone
cree une liste de pixels nA (liste de lis... | [
"38361396+NaomiBda@users.noreply.github.com"
] | 38361396+NaomiBda@users.noreply.github.com |
815c76dd550f722378d6bff415d0149b9b990336 | e793d5a3554270823529f7463f42151fc1813e39 | /penzgtu/application.py | 1df9d96ad7917a6ebf9fe9ca96c4221610a971c2 | [] | no_license | VadimDunin/TestSeleniumSamples | bbd8e3bc7ead22286daafbed82a3173b7ce0afd2 | 9423c7009c9635702825a1f49411efe4e15ca13c | refs/heads/master | 2022-10-21T22:21:23.588118 | 2020-06-10T18:06:33 | 2020-06-10T18:06:33 | 271,199,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from selenium.webdriver.chrome.webdriver import WebDriver
from main_page import MainPage
class Application:
def __init__(self):
self.app = WebDriver(executable_path="C:\Temp\ChromeDriver\83.exe")
self.app.implicitly_wait(5)
self.main_page = MainPage(self)
def quit(self):
self.... | [
"duninv@gmail.com"
] | duninv@gmail.com |
89fe64bb16e4911173adfeeedc5c0b370f1d07e4 | af2c6e555b9ecb67a6594ba8c7df308a12443a85 | /tests/unittests/test_read_from_file.py | d83465df683f176239a58ca5906fe393fb95edcb | [] | no_license | soulnai/internal | 97df543711e5daf62a5cfee92a29010d8442b9d0 | 887cef9b868c5f97f6463ce83d5af0795d8fe4bb | refs/heads/master | 2016-09-03T06:57:50.016593 | 2014-12-04T15:02:24 | 2014-12-04T15:02:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | #from __future__ import unicode_literals
from unittest import TestCase
import unittest
import mock
import game.io_
import StringIO
__author__ = 'avasilyev2'
TEST_TEXT = """
domain1.com
domain2.com
domain3.com
"""
class TestReadFromFile(TestCase):
def test_read_from_file(self):
my_mock = mock.MagicMock(sp... | [
"soulnai@gmail.com"
] | soulnai@gmail.com |
edd5de10db555203eeb30040b17b795764b8f079 | 41bfb83fdbfe8114b4b709da1931a30278c2370a | /fairlearn/post_processing/__init__.py | f7f7d0cc4e7af444dc88f63c764a8cba29b359c0 | [
"MIT"
] | permissive | seongl/fairlearn | 6e95d5bd6eb7498a12be68000279a79767c78b57 | 4f8dddad9fe24a914db4ffd3a2f699e3248c46c5 | refs/heads/master | 2020-08-14T12:24:58.839830 | 2019-10-14T17:38:30 | 2019-10-14T17:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .post_processing import PostProcessing # noqa: F401
from .threshold_optimizer import ThresholdOptimizer # noqa: F401
| [
"noreply@github.com"
] | seongl.noreply@github.com |
bd5b68d31c1dfff4c57d83ec3c12c7d3a1751700 | 681ad82b3c7f18411f83a4be2c190a7cd123ce8a | /EDBRCommon/python/datasets/cmgTupleList_XWW/cmgTuple_0314_CA8/cmgTuple_RSG_WW_lvjj_c0p2_M600_xww_cff.py | 0942c55b6711dc8ad9941a5bd92959d18d54163b | [] | no_license | cms-edbr/ExoDiBosonResonances | 5009161fdc76b39f121316e26497bedd29abe3d7 | b8ae400a20bfb8ed66c83b8f38e98d853058ae17 | refs/heads/master | 2021-01-19T18:33:17.435519 | 2014-03-12T12:00:43 | 2014-03-12T12:00:43 | 12,613,661 | 0 | 0 | null | 2015-10-18T15:06:39 | 2013-09-05T09:06:16 | Python | UTF-8 | Python | false | false | 1,101 | py | import FWCore.ParameterSet.Config as cms
cmgFiles = cms.untracked.vstring()
source = cms.Source("PoolSource",
noEventSort = cms.untracked.bool(True),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
... | [
""
] | |
2c95291499f567de5b404c3a0497041dbf0cbaf3 | 0872dbbd571aa2b4a4fe1dc7174f74108be7c653 | /hellsec.py | 9030e328abd1822959abe9ac494dfc544c39c391 | [] | no_license | JOJO123218/PythonDDOS-Scripts-Fixed | fe85d5e077c24297312d52d0a956cdf17b4e24cb | 7354ff12bf43abfa68175ca2a72d48bbaa8fd00e | refs/heads/main | 2023-07-31T23:01:17.386562 | 2021-10-04T15:10:46 | 2021-10-04T15:10:46 | 413,472,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,936 | py | # -*- coding: utf-8 -*-
# coding: utf-8
# coding: latin-1
from urllib.request import urlopen, HTTPError, URLError
import sys
import threading
import random
import re
#global params
url='' ... | [
"noreply@github.com"
] | JOJO123218.noreply@github.com |
5c48292c1a0e15ded45f817f64d7dc0f5106c3a5 | 7dfabdddeb5b8f1628e445cdb6d536958c8bc85b | /pcdet/models/dense_heads/anchor_head_fuse_context_fpn.py | d59a820290723d6120f227037cd95e972f181593 | [
"Apache-2.0"
] | permissive | vehxianfish/SRDAN_Open | d6ba16ebc201c9651fac16bc30f57dc3a740041f | 47c1bd9d2369d8e486b18a7aea220af7324c9011 | refs/heads/master | 2023-08-15T10:36:56.483018 | 2021-09-25T03:35:53 | 2021-09-25T03:35:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,507 | py | import numpy as np
import torch
import torch.nn as nn
from .anchor_head_template import AnchorHeadTemplate
class GradReverse(torch.autograd.Function):
def __init__(self, lambd):
self.lambd = lambd
def forward(self, x):
return x.view_as(x)
def backward(self, grad_output):
return (g... | [
"zhangweichen2006@gmail.com"
] | zhangweichen2006@gmail.com |
ae0589f75dfaf3d4bd56dd724ab1be86d93211b8 | 568d688fc1ee489ef7fc8a930d917b2c111acd46 | /src/mOps/hello.py | 10ae457b9088d73d4d5d7880c2491e3db88d4d29 | [
"BSD-3-Clause"
] | permissive | verbaros/mOps | fcd7b1ae2e2d647caab614375b8ed88607e9705e | 2e4e6753b0fb802ec3b2aa6e83bc290af16e799c | refs/heads/main | 2023-03-29T11:53:39.856743 | 2021-04-04T13:11:33 | 2021-04-04T13:11:33 | 348,343,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | def hello(x):
return x * x
| [
"thezaza102@gmail.com"
] | thezaza102@gmail.com |
4d911da096648f2c955c09b37077016ea36e6d17 | b4d334e6495f97fa20e4a19d5546cafab49c36c9 | /src/ProdavacPrikaz.py | eaba9e0e89ca580364da502f9887cd0f9cad5505 | [] | no_license | OMKE/CinemaApp | 892cf35312ca0e23e0fe7a33980bbe496210a2a8 | e58d251e0f52f5e60981fdca5f435d3862c6a4d9 | refs/heads/master | 2020-03-21T14:25:11.507322 | 2018-10-11T23:16:09 | 2018-10-11T23:16:09 | 138,656,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import PretragaPrikaz
import Prodavac as Prodavac
def prodavacPrikaz():
print(22 * "-")
print("")
print("1. Pretraga projekcija")
print("2. Prodaja karata")
print("3. Odjava")
print(22 * "-")
print("Unesite broj funkcije")
prodavacNavigacija()
def prodavacNavigacija():
netacanInput... | [
"noisewavehd@gmail.com"
] | noisewavehd@gmail.com |
46004d74bd264a0af3e6a4f53f89730bc658e2bd | b8e3d0b261416f62c2a8ee5b6e249436e2e61c74 | /replace_vsm.py | f05838ae43a9d4118c9677d4b9f638cb52ff79b9 | [] | no_license | iamchetry/Evaluate-IR-Models | 370628f6ff67b0a82e064a33b6b46182a2cfa8ab | cf67f389fb8e7658603e3e7e9f27298209d61d84 | refs/heads/main | 2023-09-04T12:09:20.415191 | 2021-11-06T16:45:49 | 2021-11-06T16:45:49 | 424,779,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,503 | py | import os
import pysolr
import requests
import json
CORE_NAME = "project3_VSM"
AWS_IP = "localhost"
def delete_core(core=CORE_NAME):
print(os.system('sudo su - solr -c "/opt/solr/bin/solr delete -c {core}"'.format(core=core)))
def create_core(core=CORE_NAME):
print(os.system(
'sudo su - solr -c "/o... | [
"nirajchetry123@gmail.com"
] | nirajchetry123@gmail.com |
d146abd0ce416e7ed962725d433481917c4eff94 | 636743ea912b7a88efe99e8b2e642f38ed4ed588 | /tests/spam/__main__.py | 5c977b29a6845feceabf84db09f6317be2309b85 | [
"MIT"
] | permissive | anxuae/setuptools-cythonize | e1ad04b71cf652022133b27612b9233bb552ce9e | 11d16bf09bf8d779cdfc2232ff5e72fa7482f8ca | refs/heads/master | 2023-03-09T11:25:49.529571 | 2023-02-23T10:01:06 | 2023-02-23T10:01:06 | 171,926,063 | 40 | 11 | MIT | 2022-08-08T20:18:50 | 2019-02-21T18:47:47 | Python | UTF-8 | Python | false | false | 56 | py | # -*- coding: utf-8 -*-
from . import ham
ham.main()
| [
"anxuae-prog@yahoo.fr"
] | anxuae-prog@yahoo.fr |
36967479d5f75a1c249097eadad1d5a82ddaa0c1 | 86446de4615ad079d379215fc579191734530a2b | /models/networks/__init__.py | f2a1ade9fb0e6b56998d4ca7e4c0caff65780800 | [] | no_license | devhliu/PerfusionCT-Net | 6ac7a8c7040073f00d58e807049171316a541130 | a1e1311b7c1524b94628d554df3149fdf2b168ff | refs/heads/main | 2023-03-11T09:00:27.770804 | 2020-12-18T09:13:29 | 2020-12-18T09:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | from .unet_2D import *
from .unet_3D import *
from .unet_nonlocal_2D import *
from .unet_nonlocal_3D import *
from .unet_grid_attention_3D import *
from .unet_pCT_multi_att_dsv_3D import *
from .unet_pCT_bayesian_multi_att_dsv_3D import *
from .unet_pCT_cascading_bayesian_multi_att_dsv_3D import *
from .unet_pCT_multi_... | [
"tensu.wave@gmail.com"
] | tensu.wave@gmail.com |
ba8b5a1c25a0b68a6c7c75b2bac381e05780d884 | 640b2fc43cf917d11ba866a20af545e63842c39f | /Projects/2048-Game/2048-Game-Answer.py | c6ac333e91911536019d482edd0ad1ccf51f9c9b | [] | no_license | mosalaheg/Python-Programming-Language | ad11c50f58fb014a2f61bc9d8f6c9a6bc960ca98 | 0441b259e8c35b00047d7ed8b3ca62528c739eae | refs/heads/master | 2023-02-16T07:22:09.186463 | 2021-01-16T15:21:51 | 2021-01-16T15:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,561 | py | '''
Assigning values to the grid
The grid will look like this:
0,0 | 0,1 | 0,2 | 0,3
1,0 | 1,1 | 1,2 | 1,3
2,0 | 2,1 | 2,2 | 2,3
3,0 | 3,1 | 3,2 | 3,3
'''
import random
N = 4
grid = []
#This function prints the grid of 2048 Game as the game progresses
def print_grid():
print('--' + '-----' * N + '----'... | [
"noreply@github.com"
] | mosalaheg.noreply@github.com |
100087e0a834aae204c9f9f5dc60991b44184e19 | ed1c02ef4c4841d26df38442a595d48d837ac51c | /jianguo/views.py | 7c07ac54627199d388be94034bfd3a8710dba5f3 | [] | no_license | shuoli84/jianguo | 12e6b684b47bbd4181b31266b5ab23edf4a8b5e2 | eec39d8e55f31405fb18788017b70be367809102 | refs/heads/master | 2021-01-10T19:51:27.227560 | 2014-10-09T04:39:03 | 2014-10-09T04:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,603 | py | import json
from PIL import Image
from cStringIO import StringIO
from allauth.account.views import SignupView, LoginView
import bleach
from django.conf import settings
from django.core.files.storage import default_storage
from django.contrib.auth.decorators import login_required
from django.db.models import Q
from djan... | [
"shuoli84@gmail.com"
] | shuoli84@gmail.com |
d9710887764f46586e84460a1df8a1f12d86b0f2 | c8b7c217a0b9ecb69913ccaf533348167a5f6fd4 | /sarsa_old_c.py | 747a60e5cedcf2ce102c55c44155e010ab50bea5 | [] | no_license | vaishnavh/gridworld | 343701aab897c0015fbfaf7bf4665519efba56a2 | 806bdc6ad11fd6a7ea137e8a4e3bac599a4ae9b3 | refs/heads/master | 2020-04-13T17:24:39.158075 | 2015-03-11T16:43:25 | 2015-03-11T16:43:25 | 31,503,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,565 | py | #
# Copyright (C) 2008, Brian Tanner
#
#http://rl-glue-ext.googlecode.com/
#
# 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 requ... | [
"vaishnavh.nagarajan@gmail.com"
] | vaishnavh.nagarajan@gmail.com |
13d05cb39bba97f674f5ca270d5b2d2e124d3ff1 | 677463864f16211de9b9449af003ba9394779815 | /01_hash/q2_전화번호 목록.py | dddb06e26a5e9769aff19c6f84bbd2091a4ce2b2 | [] | no_license | seydouxxx/programmersLearningSet | c1bb13de8c63126d3108dbfe6e63a3a49f988fc7 | a7f2e37b10bf0d30601d74b51f5b1935b53b3b64 | refs/heads/main | 2023-05-14T13:06:11.580997 | 2021-06-07T11:59:37 | 2021-06-07T11:59:37 | 368,510,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # 20210518
def solution(phone_book):
d = dict()
for n in phone_book:
d[n] = 0
for n in phone_book:
t = ""
for c in n[:-1]:
t += c
if (t not in d):
return False
return True | [
"risc@kakao.com"
] | risc@kakao.com |
4b74f65c26c7b559cf75340d7f17ac6af0f1a7dc | 36c76076b0be2c6e8e517ff745e0e5d50f2c4293 | /scripts/plotImageTest.py | 34d6b33c481a28f64dee12bb70335dff5c0cf41f | [] | no_license | helrick/DicomAnonymizer | b2148e36e7b3375a0fe53f99ab3d498d8f0d1153 | 9e633ff7690dd2c46a0da597bcbebcc153c8cb7b | refs/heads/master | 2023-01-18T17:27:20.615572 | 2020-12-04T12:48:11 | 2020-12-04T12:48:11 | 119,464,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | '''
Testing the embedding of a dicom image inside a wxPython GUI window
'''
import dicom
import matplotlib
import wx
matplotlib.use('WXAgg')
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigCanvas
#for displaying the image as part of a GUI window
def main():
... | [
"hillary.elrick@gmail.com"
] | hillary.elrick@gmail.com |
b2fc2a7a9e5cfd93c15fce3f77b061f55bfa1b3d | 8774de94e7a7e320cfe0ff3cd54370c63327ea08 | /setup.py | 24657a62294916121751e1afadee2dfc40147796 | [] | no_license | OMO-NOSA/pgbackup-tool | fa9ae3c2fbb6a4ecc1c0da05b37558c61d67addd | da05e658b58b41869a7eb402c4ea51cca02d2427 | refs/heads/master | 2021-06-24T23:41:09.729765 | 2019-12-01T11:17:47 | 2019-12-01T11:17:47 | 225,121,137 | 0 | 0 | null | 2021-04-30T21:55:50 | 2019-12-01T07:11:36 | Python | UTF-8 | Python | false | false | 679 | py | from setuptools import find_packages, setup
with open('README.md', 'r') as f:
long_description = f.read()
setup(
name='pgbackup',
version= '0.1.0',
author = 'Nosa Omorodion',
author_email='nosdgenius@gmail.com',
description='A utility for backing up PostgreSQL databases',
long_description... | [
"japhet.omorodion@gmail.com"
] | japhet.omorodion@gmail.com |
9ec87df973d15b7a680f9953251805be2e3cc00e | 5ee1288e54ebbd25c402d9dd6ce88b0fab6a631b | /rank2_munish/boost_final.py | d593b5b539765054ce1e5f39ac022b66784bdeb4 | [] | no_license | pyreqt/ML-Challenge-3 | 7853039774340dd060e1644f1c16509ad0c5301b | 518777cd1374f998e057092b7b50dc2e10007f57 | refs/heads/master | 2020-03-27T02:36:34.286174 | 2018-08-23T05:14:31 | 2018-08-23T05:14:31 | 145,803,465 | 0 | 0 | null | 2018-08-23T05:10:09 | 2018-08-23T05:10:09 | null | UTF-8 | Python | false | false | 7,402 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 31 15:36:56 2017
@author: mbansa001c
"""
print ('loading libraries and data')
import pandas as pd
from catboost import CatBoostClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
import os
train = pd... | [
"manisara0000@gmail.com"
] | manisara0000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.