blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58d24c74d7b413b4c84424a01795b23245494e1c | 5a7be7d5cc921062582c8e5f014e53da9bf541b0 | /Tasks_code/task_add_primary_date.py | c96fc00566d5e5423eebd1010a6961ae0ff6677f | [] | no_license | UdaikaranSingh/zillow_analysis | 93efc0a4ce4861ecc09e451a50c468a17fee869c | a4d74514ae90bd10937b004ab8ed78aec1d64fa5 | refs/heads/master | 2020-08-29T18:04:50.907553 | 2019-11-27T20:03:17 | 2019-11-27T20:03:17 | 218,121,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
from ZillowUnivariate.univ_stats import SingleTableReader
def program(fips_code, gen_dir = os.getcwd()):
file_dir = fips_code + "/"
gen_path = gen_dir
transaction_main_table = SingleTableReader("ZTrans", "Main", file_dir).read(
u... | [
"udaisingh@Udaikarans-MacBook-Pro.local"
] | udaisingh@Udaikarans-MacBook-Pro.local |
c29e4fcb17ba98010f15b65b0383c453ae095f67 | 4ee2ebef215cf879aafdfa44221f52d82775176a | /Inheritance/Exercise/02-Zoo/project/reptile.py | 75f13a08a48e503a16c38a736c1bf215ce43adcd | [] | no_license | Avstrian/SoftUni-Python-OOP | d2a9653863cba7bc095e647cd3f0561377f10f6d | 6789f005b311039fd46ef1f55f3eb6fa9313e5a6 | refs/heads/main | 2023-08-01T09:31:38.099842 | 2021-08-24T04:21:38 | 2021-08-24T04:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from project.animal import Animal
class Reptile(Animal):
def __init__(self, name):
super().__init__(name)
| [
"noreply@github.com"
] | noreply@github.com |
9ca7a052e7117038353576d0ec3d66ac59d833ae | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_k_alkiek_countingsheep.py | f323c616326819f23c2e79d41df1a4a52585b9c4 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 736 | py | T = int(raw_input()) # read number of cases
nums = [0,1,2,3,4,5,6,7,8,9]
def elementsofin(L,ref): #function to compare seen with all numbers
x = [i for i in ref if i in L]
if x == ref:
return True
else:
return False
for i in xrange(1, T + 1):
N = int(raw_input()) # read cho... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
63229fcec11be87eb0dbe3e74dc61d9c35ae0353 | f17dcee16ca0302fc703dbe04b45d35d68747f97 | /Exam/Qn_4.py | 154d4cef547e3ffee7c4797c7c0a0619a241cb0e | [] | no_license | Vineeth-97/Comp_phys_TIFR | 3ff124278d689909487d9561878f96869990e803 | 6a7b1de15d2436d269a5f01fbccae1b88478f4c3 | refs/heads/master | 2021-12-14T19:26:18.599190 | 2021-11-21T06:32:24 | 2021-11-21T06:32:24 | 243,167,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.random.uniform(0.0, 1.0, 1024)
plt.plot(x)
plt.xlabel('Sample')
plt.ylabel('Value')
plt.title('Uniform distribution of Random Numbers')
plt.show()
Fs = 1/1024
ps = np.abs(np.fft.fft(x))**2
freqs = np.fft.fftfreq(x.size, Fs)
k = 2*np.pi*freqs
idx = np.argsort(... | [
"vineethbannu@gmail.com"
] | vineethbannu@gmail.com |
9cdbaac23eae2e713a247e3023bddbc2840fb4b9 | 66c8c43ee01504e7530b020cb468ffb49865673a | /Detection/model/teacher/teacher.py | 83187e2558bac2b11b4a28254b0dec746a9bba60 | [] | no_license | Senwang98/ReviewKD | 26ef3820efce8d1c6d6e74ac5d50b48b14b45bad | cede6ea6387ae9b6127de0e561507177bf19c11e | refs/heads/master | 2023-06-10T23:31:32.694486 | 2021-07-05T12:45:51 | 2021-07-05T12:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from detectron2.modeling.backbone import build_backbone
from detectron2.modeling.proposal_generator import build_proposal_generator
from detectron2.modeling.roi_heads import build_roi_heads
from detectron2.checkpoint import DetectionCheckpointer
from torch import nn
class Teacher(nn.Module):
def __init__(self, ba... | [
"pgchen@proj72"
] | pgchen@proj72 |
a17811f686265c67220bd262c90c17b8f6164be8 | 9d6c07f636cbd011c7d5ade8a20ab5807afde6b8 | /Lib/tdb/tests/examples/uniquecalls.py | e934a4b0c3343d48a047ae1b1b06c5662f31d660 | [
"LicenseRef-scancode-jython"
] | permissive | smnbackwards/jython_tdb | 9eb0981bb25b6a965ce472e9158bd0686c2921ec | 6d0e13c0c51b8d92d7b45691998c5928206162b0 | refs/heads/master | 2021-03-27T19:06:01.501366 | 2016-06-06T15:39:09 | 2016-06-06T15:39:09 | 62,494,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | def aaa():
print 'aaa 1'
a = bbb() + eee()
print 'aaa 2'
return a
def bbb():
print 'bbb 1'
b = ccc() + ddd()
print 'bbb 2'
return b
def ccc():
print 'ccc 1'
c = 1
print 'ccc 2'
return c
def ddd():
print 'ddd 1'
d = 0
print 'ddd 2'
return d
def eee():
... | [
"Niklas Steidl"
] | Niklas Steidl |
5e0157cbe7967799bd395e9d9038dedcf13957bb | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_v1_scale_io_persistent_volume_source.py | 0ee57636f0970338a9cb0f60be03d7b2ee42a7f5 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,122 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
22dd923e7b80f1c955e94162b923d27992dc7bb4 | b3f7ceb487f72b7cf09b58dcd6f7ac594d229bca | /profiles_api/serializers.py | 735d70fc90121d954155a178fd21dc02de4e86b9 | [
"MIT"
] | permissive | subban358/profiles-rest-api | eff5959f1f1443ed3b3a34ad3992149685543a5f | 79a441adf6449f08aecebd31752c3a952b53f7fa | refs/heads/master | 2022-04-30T15:12:11.594398 | 2020-06-06T02:06:02 | 2020-06-06T02:06:02 | 238,642,560 | 0 | 0 | MIT | 2022-04-22T23:00:48 | 2020-02-06T08:37:24 | Python | UTF-8 | Python | false | false | 1,200 | py | from rest_framework import serializers
from profiles_api import models
class HelloSerializer(serializers.Serializer):
""" Serializes a name field for testing our APIView """
name = serializers.CharField(max_length=10)
class UserProfileSerializer(serializers.ModelSerializer):
""" Serializes a user prof... | [
"subhambanerjee138@gmail.com"
] | subhambanerjee138@gmail.com |
c79f737de7690fc52877eb13c4099495de3fe7d9 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901040051/d08/mymodule/try_except.py | 2bab5904e58d40ed0977888a300dca3aa289874d | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 217 | py | def spam(divideby):
try:
return 42 / divideby
except ZeroDivisionError:
print('error:Invalid argument.')
print(int(spam(2)))
print(int(spam(12)))
print(spam(0))
print(spam(0.1))
print(spam(1)) | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
032ccf681f1e2851361f8583215105b58ac8455e | f11b090095c3d9dab32932a6e7afca5fe46fade2 | /blog_django/forms.py | 82cde936ff0bba233f84f508ef500b84da13a378 | [
"MIT"
] | permissive | marthaurion/blog_django | 94d2f30736fb68f40e4118fca0aee4998b7e9a7c | 98b2bc0baf72fa6fd6dee3562b74440162a00b41 | refs/heads/master | 2020-04-04T04:12:11.956346 | 2019-05-01T03:39:23 | 2019-05-01T03:39:23 | 41,460,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django import forms
from django.core.mail import send_mail
from captcha.fields import CaptchaField
attrib = {'class': 'form-control'}
class ContactForm(forms.Form):
name = forms.CharField(max_length=100, required=True, widget=forms.TextInput(attrs=attrib))
sender = forms.EmailField(label="Email", require... | [
"marthaurion@gmail.com"
] | marthaurion@gmail.com |
e64c4148cd45c64ab109e437f17adfb407d43fd4 | 93dd16432fcb4b42670f208edf81b2eb29f40d41 | /__init__.py | d6ecb6b7a55d08523e19946d03b10da7deef48b2 | [
"MIT"
] | permissive | shyams1993/pycaesarcipher | d067f4fda7acdb5f70687d5262a6fbc39d5e3790 | a396f165cc9a103950d060c94e25f7f344e7b257 | refs/heads/master | 2022-06-27T17:28:48.417994 | 2020-05-07T10:05:25 | 2020-05-07T10:05:25 | 261,873,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from pycaesarcipher.pycaesarcipher import pycaesarcipher | [
"noreply@github.com"
] | noreply@github.com |
fdf116fc0fba39809c9daedd37fdb20c0c721dc8 | 5115d3fd60826f2e7eb36c3467608a31e34d8cd1 | /myshop/orders/urls.py | a9ba0463ffca3b9978db9ce5070203cf9675187e | [] | no_license | Dyavathrocky/e-commerce | 650ca4e764723101c9f1cf456c15ab43c503d1b4 | 2c6368fc514c5a2102088df1427da41a8b8af34a | refs/heads/master | 2022-12-10T11:31:36.052547 | 2020-09-06T14:27:34 | 2020-09-06T14:27:34 | 289,501,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.urls import path
from . import views
app_name = 'orders'
urlpatterns = [
path('create/', views.order_create, name='order_create'),
path('admin/order/<int:order_id>/', views.admin_order_detail, name='admin_order_detail'),
] | [
"davathrak@gmail.com"
] | davathrak@gmail.com |
e40250615dd41dd7211a4ed1b2dca574944d53f6 | e9f33742ee046d785f4b653667769415cb6dc6f1 | /django_lite/django_lite.py | 5250b7eec79c38a04d5cf5b5b43c494b192c2023 | [
"MIT"
] | permissive | fmarco/django-lite | 5bd754b0ea5abf0cc543cbc227e8f51bd12d402e | b7c6162755893cefd3d448e4a2ae180dec1fcd96 | refs/heads/master | 2020-12-30T14:20:36.737255 | 2017-06-13T11:32:04 | 2017-06-13T11:32:04 | 91,315,035 | 3 | 0 | null | 2017-06-13T11:28:45 | 2017-05-15T08:44:22 | Python | UTF-8 | Python | false | false | 11,344 | py | # -*- coding:utf-8 -*-
import os, json, inspect, sys
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.db import models
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from ... | [
"federighi.marco@gmail.com"
] | federighi.marco@gmail.com |
b6ef5650d08eea12702799633726678c48be5259 | 552ebada003b5f3dda1e705f6de235048ac1c4aa | /readData_IWR1443.py | 943eefc6f46158914f37f07ea2f899a6e561eb52 | [] | no_license | gimac/IWR1443-Read-Data-Python | c5e3dfdb13ba8587a3878d3413611cc7d285f450 | 88a3991e41761206d3ac4e3ca42e0f5a2d7c90eb | refs/heads/master | 2020-06-28T14:52:10.887842 | 2019-06-09T06:47:17 | 2019-06-09T06:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,955 | py | import serial
import time
import numpy as np
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui
# Change the configuration file name
configFileName = '1443config.cfg'
CLIport = {}
Dataport = {}
byteBuffer = np.zeros(2**15,dtype = 'uint8')
byteBufferLength = 0;
# -----------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
bd2ae5fb7ab409ebe2302f6ad8f5950260059205 | 05d3cbb10e11b9c3e717bb0f48842f51ea7fc77a | /myapp/china/route/index.py | a17e6c8d8ea9a07db36b42b3ce49ae070ef8f009 | [] | no_license | karthus007/flask-demo | 6c253a75359ea1139b738b482f15316e66b4fb37 | ca75c1848b37bc9d56b33c617a8600a44d5649cc | refs/heads/master | 2020-09-03T15:41:40.097486 | 2019-11-04T12:54:42 | 2019-11-04T12:54:42 | 219,500,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from flask import Blueprint, render_template
from selenium import webdriver
import time
china = Blueprint('china', __name__)
@china.route("/index")
def demo_index():
return render_template("home/index.html")
@china.route("/baidu")
def demo_weibo():
driver = webdriver.Chrome("tool/chromedriver")
driver.... | [
"237458345@qq.com"
] | 237458345@qq.com |
73f699b53370be080a723734410e86ee80b96259 | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py | 00eeab16165cc40c5ceea36e2021cce7127c7ea9 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 10,414 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | noreply@github.com |
158301fb55b8e41ffda571e1fd41f022ce8efaf8 | ecd5b484d3cc1931f23376c06dc36e247435c81f | /excelpp.py | 256869f8ac5b4a9d438e4e78044a7bd6a57cc1e4 | [] | no_license | t6166as/duos | 3391b386a7974207d6f8e6985c0518938e097768 | 3a7da48473a271459408da0d1372d683a4788c0f | refs/heads/master | 2021-01-19T16:21:16.378272 | 2018-09-18T15:10:01 | 2018-09-18T15:10:01 | 101,002,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | #!/usr/local/bin/python3
import xlrd as exc
import csv
import argparse
from abbv import abbvtool
def parse_args():
parser=argparse.ArgumentParser( description ='supply file that need to be parsed')
parser.add_argument('--filename',required=True)
parser.add_argument('--outputname',required=True)
return parser.parse... | [
"j1axs01@node7.awishkar.com"
] | j1axs01@node7.awishkar.com |
71e9b21280f294cc649378a9840f97acf29ad84d | 8724722b33a3f6489d467bfe32f12eb94aa0a901 | /Final_Project/quickstart.py | 75d3d8be34a0e83439ac9c372270f5486cb72e62 | [] | no_license | keyaria/SI206 | 97c89bb9980b76f429f5c4ed142a88be012cfc66 | c6dcec1771cd12d014fab44fdb9cc58627bb19bb | refs/heads/master | 2021-08-29T20:02:49.576043 | 2017-12-14T21:41:37 | 2017-12-14T21:41:37 | 105,152,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | import os
import google.oauth2.credentials
import sqlite3
import google_auth_oauthlib.flow
from datetime import datetime
import dateutil.parser as dateparser
import calendar
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from google_auth_oauthlib.flow import InstalledAppFlow
... | [
"keyariaw"
] | keyariaw |
f884f1ae88a326d402d9caadf012a5eb529f084f | d1410b20da549dcb986861064db68e74cb836627 | /targetview/settings.py | 2e9763c14fbadffb6a4fbf1b3df61ff8ff2a456a | [] | no_license | ta-ou/target-deploy | a69d965233f9a104ccbb4dd0231aa994cd0456d8 | eddc283e7112797a6f331f6adc77b1c69a61336e | refs/heads/master | 2022-12-30T13:51:07.076910 | 2020-10-21T14:51:20 | 2020-10-21T14:51:20 | 297,659,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,026 | py | import os
from decouple import config
from dj_database_url import parse as dburl
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoprojec... | [
"takuyaouchi18@gmail.com"
] | takuyaouchi18@gmail.com |
2c23efbcaca7f08a26a6b5dcd830320bbbb50db5 | fc56e214468af3752296683c175e57ee0dce6064 | /AER_test.py | 106f4994a9d697fcf521fd7a92fa66fb1e24c764 | [] | no_license | sray0309/Speech-Emotion-Recognition-based-on-both-Audio-and-Text | 775e294bc6a0509651e1719131293c33b25f3ccb | 3b7e30317b4abaad0e4e9a4c249aee53649f49ab | refs/heads/master | 2022-12-28T22:48:18.938067 | 2020-10-12T14:28:25 | 2020-10-12T14:28:25 | 303,415,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | import os
import pandas as pd
import glob
import matplotlib.pyplot as plt
import time
import numpy as np
import pickle
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch.optim as optim
# Load audio MFCC
MFCC = (np.load("FC_MFCC12EDA.npy")).transpose(0,2,... | [
"sray1997@163.com"
] | sray1997@163.com |
b718955f50d1f4ad7b792f47ff62beb3938634f9 | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch06/instructions/math/Rem.py | cc1e03153ae35a83b62c6b568c1c156b2675f163 | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: Rem.py
@time: 2019/9/15 20:04
@desc: 求余(rem)指令
"""
import math
from ch06.instructions.base.Instruction import NoOperandsInstruction
# double remainder
class DREM(NoOperandsInstruction):
def execute(self, frame):
stack = frame.operand_... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
5a05c368915f91b2fa2adce1dd15e0fd531cac44 | abfe7041f66b9441e5748d3eeae36abedf94e708 | /manager/admin.py | e02874bdc57f1de3a354ab65f250b360bd3be097 | [] | no_license | SaurabhKumarVerma/newsfeed | 743333ff10354723f234fa6513927693ff4f9449 | 57271b3f4e45e7cde500e0eff8cd0874bd796172 | refs/heads/main | 2022-12-30T22:45:07.114578 | 2020-10-22T10:08:49 | 2020-10-22T10:08:49 | 303,373,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from . models import Manager
# Register your models here.
admin.site.register(Manager) | [
"saurav88871kumar@hotmail.com"
] | saurav88871kumar@hotmail.com |
278050766a8cc25d551e9bb1d2c27c53d27b3b1a | 4a518e86e013596c31f1e389f12b8b00bbb3d725 | /package190904/test12.py | ddab69c0ce689d1a7cc35c5888f13bcbd4e935ce | [] | no_license | Ccccaramel/Python | e88b9b8d6d156b9ee80fefc17b88a7dfd21885fd | e503818564c9689e57b7a77165bcb44cc2ece096 | refs/heads/master | 2021-06-21T14:07:23.652783 | 2021-05-07T02:29:19 | 2021-05-07T02:29:19 | 218,760,966 | 0 | 0 | null | 2019-11-01T03:29:05 | 2019-10-31T12:28:44 | null | UTF-8 | Python | false | false | 428 | py | # 关键字(end)
print("-----end-----")
# 关键字end可以用于将结果输出到同一行,或者在输出的末尾添加不同的字符
a, b = 0, 1
while b < 1000:
print(b, end=',')
a, b = b, a+b
# 异包调用通过继承的方式重写内置模块的方法
# import sys
# sys.path.append("package190904A")
# from stringR import string
# s1=string("yes")
# print("s1" ,s1.capitalize())
# print("s1" ,s1.isalpha()) | [
"444543565@qq.com"
] | 444543565@qq.com |
0da8477d69cb6d25da46902f07980694e0ef0879 | d6af70695194177fc60a774660e83f0628ded147 | /dortgen_alan_hesapla_v1.py | 5dad1589df3d56dfd63b3a704bdc962263818a7d | [] | no_license | ibrhmisot/dortgen-ve-daire-alani-if-kosulu | 8cbd6c6ce67665f540b725c5cc65c77bdbe39b0d | 1f64e79488b0d6883cbdc9ab7cd73247fdc8748d | refs/heads/master | 2021-05-25T14:24:51.805422 | 2020-04-07T20:33:59 | 2020-04-07T20:33:59 | 253,789,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | def dortgen_alan_hesapla_v1(uzun,kisa):
print("uzun kenar:", uzun)
print("kisa kenar:", kisa)
sayilari_carp = uzun*kisa
print("Alan:", sayilari_carp)
dortgen_alan_hesapla_v1(10,8)
| [
"ibrhmisot@gmail.com"
] | ibrhmisot@gmail.com |
ca1612d5068d3f4480ffbc0428ee9943db2a5476 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/network/v2016_09_01/models/application_gateway_ssl_policy.py | ff1c8f6c4ca1af9b4fb15521b1d8135387e1a75f | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 1,153 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
30478c215b9a270f62b60b57d3b5b0f724f32c95 | d2c8f44e23b8cab81af2672f9384aa12d063b251 | /Preprocessing/process.py | 18ab155db021cdc98712ec1c31cb251aa7406658 | [] | no_license | tjlogue4/kaggle-OSIC-Pulmonary-Fibrosis-Progression | bf8a0b0f2a8c1a5e75f31739b8abfde4c0a7de95 | e028fc8da2b7b44afe786e4f92f0f63fe28676b0 | refs/heads/master | 2023-02-17T02:27:12.003839 | 2021-01-13T04:47:24 | 2021-01-13T04:47:24 | 295,912,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | import pandas as pd
import pydicom
import numpy as np
import os
import cv2
from tqdm import tqdm
import multiprocessing as mp
cpu_count = mp.cpu_count() #gets the number of cores your machine has
NEW_SIZE = 512
DATA_DIR = 'X:/OISC/osic-pulmonary-fibrosis-progression/train/'
SAVE_DIR = 'C:/temp/processed_files/'
PA... | [
"tjlogue4@gmail.com"
] | tjlogue4@gmail.com |
898f8669c025fcb6c7a6aba2fa3dcebc841b282c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02957/s796407054.py | 9de0035e3ab02e37a3607cddb48ae764505a081a | [] | 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 | 87 | py | A,B=map(int,input().split())
if (A+B) % 2 == 1:print("IMPOSSIBLE")
else:print((A+B)//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0b156200bd22de56905cd83e7809dfe81abdbab | 75d518a3129b5d5fc50fe49ac6e4d0a5a1078946 | /Truncatable_primes.py | 9c50eec508574f51922af8fa4905d42b1b40819a | [] | no_license | Goasty/Project-Euler | 823455673245b7bc74a6dbbc705a4f3014c1ebde | 9df17550427b7ede0e30a35c72329717c552b978 | refs/heads/main | 2023-03-26T02:13:41.316311 | 2021-03-24T18:10:20 | 2021-03-24T18:10:20 | 351,173,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | #https://projecteuler.net/problem=37
a = 3797
c = []
d = []
def left()
def right()
a = int(str(a)[:-1])
def prime()
if a % 2 == 0:
return False
return True
def loop(a)
x = all(c)
| [
"noreply@github.com"
] | noreply@github.com |
dd3a13b3441bdb43584cc9c9fa763ecb19c44f8e | 3e8e1add88b0782bc64f8682b05f399638094729 | /teacherstudent/urls.py | b239ac643a67403dbc79edb5bef2e6da441b6a22 | [] | no_license | nnish09/Task2 | 3e154c8f61ef88034cff6e1e42fdd616d2922951 | cddc23c062c81e0669b6656d7f294f61f3c05976 | refs/heads/master | 2023-04-29T12:04:14.565984 | 2019-09-23T10:52:08 | 2019-09-23T10:52:08 | 209,307,595 | 0 | 0 | null | 2023-04-21T20:37:36 | 2019-09-18T12:51:29 | CSS | UTF-8 | Python | false | false | 1,171 | py | """teacherstudent URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"nishtha0995@gmail.com"
] | nishtha0995@gmail.com |
eed8531d3cb546a055192bd95204d0d304ac460e | df9d6ecde9202bd4b73e69cd28c50b41195c0aa1 | /tests/data.py | c5e249eb686ffb112d8483880a75c1c68a661d9d | [
"MIT"
] | permissive | ppinard/dataclasses-sql | 8d6d18dd558537fbf40c386a11fdd75f4720fa2a | 8f2eeaf090887985f8fd9853adb763883906bed6 | refs/heads/master | 2021-03-23T22:48:34.437619 | 2020-06-10T14:23:07 | 2020-06-10T14:23:07 | 247,489,847 | 6 | 3 | MIT | 2020-11-02T01:43:20 | 2020-03-15T15:06:32 | Python | UTF-8 | Python | false | false | 858 | py | """"""
# Standard library modules.
import dataclasses
import datetime
# Third party modules.
# Local modules.
# Globals and constants variables.
@dataclasses.dataclass
class TaxonomyData:
kingdom: str = dataclasses.field(metadata={"key": True})
order: str = dataclasses.field(metadata={"key": True})
fa... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
d1ca62f472d0cfb194929d1011a5b121f36a89d1 | c0527d63f267223d91288db0566a559a2b13b091 | /Problem Set 2/2.2/data/animals.py | 11f10ca0003ff0d69e94c5082b68a3dd9244919f | [] | no_license | fyjgreatlion/Computational-Linguistics | 43439a768b8bc595bd31df331c24767c00530243 | fcc6371c1abe52eb462b63c393d6d49a275ee06d | refs/heads/master | 2022-02-15T01:07:46.075257 | 2019-04-15T02:41:14 | 2019-04-15T02:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,819 | py | from collections import defaultdict
###animals from Hill et al. (2012)
african_animals = ['aardvark', 'antelope', 'buffalo', 'camel', 'chameleon', 'cheetah', 'chimpanzee', 'cobra', 'duiker', 'eland', 'elephant', 'gazelle', 'genet', 'giraffe', 'gnu', 'gorilla', 'hippopotamus', 'hyena', 'impala', 'jackal', 'kongoni', '... | [
"josh.gelua@mail.utoronto.ca"
] | josh.gelua@mail.utoronto.ca |
3f9b54e396ee8f2754c5e658f4b89988a00aaac7 | 66a031b47088d52f1b2f3121fde45c8fb8ebe4ad | /1 лаба/1.py | 47e2ff7d1db473d058315dbf2bc6a91457460160 | [] | no_license | Aznhalfblood/PytonCourse | 0fa2f24faa8fc4041a6b81a1f6ff0567b3eff502 | 7e9e884f28ca9fa08ce746c1df5548ace7805574 | refs/heads/main | 2023-04-30T19:33:01.663218 | 2021-05-13T20:13:32 | 2021-05-13T20:13:32 | 341,880,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | print('Введите деньги: ')
try:
A = float(input())
if A <=0:
raise ValueError
except (ValueError, TypeError):
print('Введено число с минусом')
raise SystemExit
a = float(A) // 1
b = float(A) % 1
print("Рублей: " ,int(a))
print("Копеек: " ,int(b * 100))
| [
"noreply@github.com"
] | noreply@github.com |
005b9ddae67b81e287690165c8501ea5af4efa32 | f08b297a61acdc85071af0883ca98f1f91397b13 | /home/views.py | b24aa0b0c4090ce36d382732cf491a1170ac4ed1 | [] | no_license | SSN-IEEE/IEEESB | 2edde18ff7bdaaa0a72f65517cb9a4c1554f5060 | 0a1407eccfe24ce2b442f5b000899bc67cdab528 | refs/heads/master | 2020-12-02T06:18:57.678688 | 2018-01-16T00:14:23 | 2018-01-16T00:14:23 | 96,814,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | from datetime import date, datetime
from django.shortcuts import render, render_to_response, get_object_or_404
from .models import events
from .models import gallery
# Create your views here.
def index(request):
event = events.objects.filter(start_date__gte=datetime.now()).order_by('start_date')[:5]
return ren... | [
"chamow97@hotmail.com"
] | chamow97@hotmail.com |
3f74c1b5fa2bc630a8bf21264065d02361cd4cb8 | be36550ed6c8ab32351b4512af095c1ab907dd22 | /u19_pipeline/alert_system/custom_alerts/rig_bias.py | 076d36dbd531b980a51ae59490c60f91cb7748ec | [] | no_license | BrainCOGS/U19-pipeline_python | 633d47250641f3eb2f60708a8ca7a8e8f19bacd4 | 7bc81be171fe4b68bc3e59e1f57f2148651d9772 | refs/heads/master | 2023-08-17T04:48:30.044265 | 2023-08-16T13:33:19 | 2023-08-16T13:33:19 | 216,374,484 | 2 | 9 | null | 2023-07-20T04:23:35 | 2019-10-20T14:26:17 | Jupyter Notebook | UTF-8 | Python | false | false | 3,059 | py |
import pandas as pd
import datajoint as dj
import datetime
import numpy as np
import u19_pipeline.alert_system.behavior_metrics as bm
import u19_pipeline.alert_system.alert_system_utility as asu
# Slack Configuration dictionary
slack_configuration_dictionary = {
'slack_notification_channel': ['custom_alerts'],
... | [
"alvalunasan@gmail.com"
] | alvalunasan@gmail.com |
5fbea83c44a90125a9a8c6ce5805d9cd624a5b3b | 1a0567251e17892a4345008de30203010608270f | /Optimum Thread Testing/Process.py | 588818c4b50bc44471b806b795d452f90352de41 | [] | no_license | gokulbeeshman/ultimate-comics-scraper | a9e8d0d4f961b2545b8970903b4774162e453c6e | 2c4d8214b0fce84cf53f4a40b345255ff404cd05 | refs/heads/master | 2016-08-05T01:56:03.206413 | 2015-08-24T17:29:28 | 2015-08-24T17:29:28 | 41,248,537 | 1 | 2 | null | 2015-08-24T17:29:28 | 2015-08-23T12:18:54 | Python | UTF-8 | Python | false | false | 2,337 | py | import sys
import os
import urllib.request
from html.parser import HTMLParser
from bs4 import BeautifulSoup
import time
from threading import Thread
from multiprocessing import Process
# INSTRUCTIONS : Modify processcount[] list with no of processes to test with
def getxkcd(id):
url='http://xkcd.com/%d' ... | [
"gokul.beeshman@gmail.com"
] | gokul.beeshman@gmail.com |
b24e16046c837fac814f79eec431149bee4d0c75 | d38c87a4987508518472aa55b7de6be952a58d2a | /main/db/database_handler.py | 385126024b7de4bc5651e97973cee22ee537bd99 | [] | no_license | lbaribeau/los-helper | 43ca8984e87433a147d21ff0621342efe6433534 | 94534df7f3a2bee2c5c84e75c993b593910770fa | refs/heads/master | 2023-08-10T21:03:47.248417 | 2016-11-01T16:13:06 | 2016-11-01T16:13:06 | 14,797,233 | 1 | 1 | null | 2022-08-12T13:56:27 | 2013-11-29T09:26:41 | Python | UTF-8 | Python | false | false | 257 | py |
from db.Database import *
from db.MudMap import MudMap
class DatabaseHandler(object):
def __init__(self, map):
self.map = map
create_tables()
db.close()
def get_smithy_paths(self):
return self.map.get_smithy_paths
| [
"laurier.baribeau@gmail.com"
] | laurier.baribeau@gmail.com |
3efaa1849901cad977f39d385cefc6029dad88a6 | bf279c2ec0d6e7f326c860c618f3a379da391eb0 | /Python/Lessons/tkinter/fromHabrahabr.py | 2908d95a2e2aead514aa072be25179ab4d2310c4 | [] | no_license | alisatsar/itstep | 356b38598c8adddb2b93777d197511cbc4b8ed2a | acb2761e167c2ec84338a0429749bb8e33d301cf | refs/heads/master | 2021-01-25T05:56:17.222305 | 2018-07-25T18:04:30 | 2018-07-25T18:04:30 | 80,703,725 | 2 | 2 | null | 2017-04-06T08:47:39 | 2017-02-02T07:42:42 | Python | UTF-8 | Python | false | false | 1,696 | py | from random import *
from tkinter import *
from tkinter import colorchooser
window = Tk() #создание окна tkinter
colorchooser.askcolor() #открывает окно выбора цвета и возвращает кортеж из двух значений: кортеж из трех элементов,
# интенсивность каждой RGB цвета, и строка. цвет в шестнадцатиричной системе.
size = 600... | [
"noreply@github.com"
] | noreply@github.com |
fffa8fbb2fdfd6329893112ece1a66dea0255f23 | 1f3780d9e6bb5cd985bba9f609739c118f5691ff | /hive_attention_tokens/chain/base/auth.py | 99760f7d9fe4741f7cac2580274cf2cc85ba5261 | [
"MIT"
] | permissive | imwatsi/hive-attention-tokens | 8c0e4823abc7707944e4219e9d509dc3a38e479d | 87b02b1b6fa6dc75f2cdf25d92f0a79cbeeb7e5f | refs/heads/master | 2023-08-18T03:08:59.373281 | 2021-06-19T16:50:21 | 2021-06-19T16:50:21 | 345,184,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | import base64
import ecdsa
import json
from hashlib import sha256
from binascii import hexlify, unhexlify
from ecdsa.util import sigencode_der
from hive_attention_tokens.config import Config
from hive_attention_tokens.utils.base58 import Base58
from hive_attention_tokens.ibc.hive.hive_api import HiveApi
from hive_att... | [
"imwatsi@gmail.com"
] | imwatsi@gmail.com |
8b45f0d93aee22425ef4d4d65d12ce9ee00adbbc | 2a6b3bceff31cda4bd99d4978084c08107a160e8 | /multi-scale-lstm/multi_lstm_s.py | 026b3619bbe62714b2ad272521e3b27c5d8745db | [
"Apache-2.0"
] | permissive | jiacheng-xu/Cached-LSTM | 8c1a6ae46f8d3dc211cb3cfc3757d6586eac7b93 | 8e684d5558e18216d6ec8186f8fd46fa1e15ccfd | refs/heads/master | 2021-08-26T08:39:19.123101 | 2017-11-22T17:28:17 | 2017-11-22T17:28:17 | 111,713,187 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | from optim import *
from util import *
from gate_module import *
SEED = 123
numpy.random.seed(SEED)
def init_params(options):
"""
Global (not LSTM) parameter. For the embeding and the classifier.
"""
params = OrderedDict()
# embedding
# randn = numpy.random.rand(options['n_words'],
# ... | [
"noreply@github.com"
] | noreply@github.com |
bb3e9bf050d7d33ee69a5976c27520dbba8eb9b4 | 09ecfada6ef8afea6153d67d013c2c88a5f4008d | /cryptovenom/modules/symetric/cast/menu.py | a42b47027605b5e3ac3a03cb3fdb6f2ad71519fa | [] | no_license | ryantxu1/BearshellTools | f35eff15272c5256239bfc3a04f61cdc43fd1ffc | e959dbe0f95f6b84af4a244606e454b66cc3a966 | refs/heads/master | 2020-08-28T03:18:18.358377 | 2019-11-13T19:28:21 | 2019-11-13T19:28:21 | 217,571,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | #!/usr/bin/python
#
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# [====={ CRYPTO VENOM }=====]
#
# | ATTENTION!: THIS SOFTWARE IS PART OF THE "CRYPTOVENOM FRAMEWORK" |
#
# ( https://github.com/lockedbyte/cryptovenom )
#
# <... | [
"ryanxu@wustl.edu"
] | ryanxu@wustl.edu |
69bcf13bef1b5163826eb88f8f1c07f84740a576 | 21c1da4a354037f8aed1fb323d64295f1d40d0c6 | /combination-sum-ii/solution_test.py | b7e0f896c063203f32bafc1f132b4691bb535d97 | [] | no_license | hsinhoyeh/leecode | b0de2334a1bcd9277335fba4ae7e3519775da8f9 | 7760d44f7a9038f48e12eabb6d5bafd182a0a8f6 | refs/heads/master | 2021-01-10T10:11:40.259319 | 2017-08-11T01:31:22 | 2017-08-11T01:31:22 | 45,776,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import unittest
import solution
class TestSolution(unittest.TestCase):
def list_of_list_to_set(self, lsts):
sset = set()
for ele in lsts:
sset.add(tuple(ele))
return sset
def test_case0(self):
sol = solution.Solution()
got = sol.combinationSum2([10,1,2,7,6,1... | [
"yhh92u@gmail.com"
] | yhh92u@gmail.com |
7f7fb87aa946e005e8e5b5d89d94c27b1ed77685 | 6766e99fcd0a5d49d0ac4d25cff6e366bdde4dd2 | /dusty/scanners/sast/gosec/scanner.py | a43299a4cc3e6907567aa44e1c40bd38aaea5394 | [
"Apache-2.0"
] | permissive | carrier-io/dusty | 9b75a7df8669a033a2821d1d6b251e1006d1bfab | 4846f6a00ea4db2ac271113787e49954ead97018 | refs/heads/master | 2023-09-03T20:07:41.832111 | 2023-08-22T18:42:03 | 2023-08-22T18:42:03 | 160,715,359 | 5 | 17 | Apache-2.0 | 2020-07-24T10:48:00 | 2018-12-06T18:28:23 | Python | UTF-8 | Python | false | false | 3,268 | py | #!/usr/bin/python3
# coding=utf-8
# pylint: disable=I0011,E0401,W0702,W0703
# Copyright 2019 getcarrier.io
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
133911539ddc4f7e9dc1505e0990830e78bccf81 | 1c29d8ed7faeb4fb244ee31c9125c515b715fafb | /dealer.py | a98f0d5441ba7bc58823911bed44385774886288 | [] | no_license | Atinanoraa/Motorcycle-Dealer | a717f9cbdae4d0422ffca1a484d4421bce863edc | 3da031e358beb580d850f84d42a7b4c2c2b4fbe7 | refs/heads/master | 2022-12-24T08:49:59.511150 | 2020-09-17T08:32:32 | 2020-09-17T08:32:32 | 296,258,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import mysql.connector
import connect
db=connect.koneksi()
#menambahkan data baru ke dalam table dealer
def add(data):
cursor=db.cursor()
sql="""INSERT INTO dealer(nama,motor)VALUES(%s,%s)"""
cursor.execute(sql,data)
db.commit()
print('{}Data pembeli berhasil ditambahkan!'.format(cursor.rowcount))
... | [
"atinanhy@gmail.com"
] | atinanhy@gmail.com |
98f4e7acd30637d80c64b6e77a2ee86abcc026b2 | 60165cc59bb3b3cad7d315a6018cc85496e04ff8 | /MapSuiteGisEditor/WpfDesktopExtension/DlrLanguages/CodeTemplates/PythonFilterFunction.py | d7010aaab09c9b60b9b5c63e53999e606d7679a0 | [
"Apache-2.0"
] | permissive | hnjm/GIS-Editor | 0e031e640642c07a08c0b5aed84c7eca21f702c0 | 1f0be7f6944650c04317ff63cc35398369a3ecc4 | refs/heads/master | 2022-10-14T09:23:28.135007 | 2020-04-06T17:42:56 | 2020-04-06T17:42:56 | 272,882,016 | 1 | 0 | Apache-2.0 | 2020-06-17T05:01:07 | 2020-06-17T05:01:06 | null | UTF-8 | Python | false | false | 345 | py | import clr
clr.AddReference("mscorlib")
clr.AddReference("ThinkGeo.MapSuite")
from System.Collections.ObjectModel import *
from ThinkGeo.MapSuite import *
def match(feature, features):
[expression]
resultFeatures = Collection[Feature]()
for f in Features:
try:
if match(f, Features): resultFeatures.Add(f)
except... | [
"howardch@outlook.com"
] | howardch@outlook.com |
17b0c3efb04efec5a6d635005649370d3c085113 | 3e3bf98840d133e56f0d0eb16ba85678ddd6ca45 | /.history/iss_20200102103033.py | 9612bd296d926015d41b8fbb1e476f1266919608 | [] | no_license | Imraj423/backend-iss-location-assessment | a05d3cc229a5fc4857483ae466348c1f8c23c234 | b0565c089a445ccffcb8d0aab3c0be3bb0c1d5b8 | refs/heads/master | 2020-12-03T17:04:58.512124 | 2020-06-24T16:02:02 | 2020-06-24T16:02:02 | 231,400,854 | 0 | 0 | null | 2020-06-24T16:02:04 | 2020-01-02T14:43:44 | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/env python3
__author__ = 'Imraj423'
import requests
import turtle
r = requests.get('http://api.open-notify.org/astros.json')
print(r.text)
s = requests.get('http://api.open-notify.org/iss-now.json')
print(s.text)
# if __name__ == '__main__':
# main()
| [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
a00f4cde9d2bf4e5616e7ef2af441f62039f190c | 0dc24aef69a9bc12c7454d25db90e464d2dd947f | /4/e4.py | 294862352437bdf184eb8a353e40e2d20486703c | [
"MIT"
] | permissive | gorbunov-dmitry/rucode-spring-2021-d | 6e63896de8856daa79f2da36a878224ba3a86ff8 | 6930895b62458f48fda3a9c99f00dd13b1a6b75c | refs/heads/main | 2023-05-26T08:46:40.679839 | 2021-06-15T13:00:15 | 2021-06-15T13:00:15 | 376,492,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from math import gcd
from random import randint
def f(x, n):
return (x**2 + 1) % n
def find_simple(n):
p = 2
while p**2 <= n:
if not n % p:
return p
p += 1
return 1
def find_rho(n):
x = randint(1, n-2)
y = x
counter = int(n**(1/4)) * 3
while abs(gcd(n, x-y)... | [
"gorbunov.dmitry.1999@gmail.com"
] | gorbunov.dmitry.1999@gmail.com |
c6e19072060391328f872ea19f17b658ffc82705 | 776c0c9ced44af2b056cd116d9bbba1d9e771e02 | /app/main/admin.py | c04ee4202fd9a6650ff6640881a5f786ca566a5e | [] | no_license | thulasiraman9468/Rama | 4cee00c5dfbe49ee79b63bc83d272d2b21bc76fb | 0cffef4a893f364126d7b55d1f134e5426d30292 | refs/heads/main | 2023-07-10T08:24:19.414659 | 2021-08-19T08:10:20 | 2021-08-19T08:10:20 | 392,018,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from django.contrib import admin
# Register your models here.
from .models import booking
class bookingAdmin(admin.ModelAdmin):
class Meta:
model = booking
admin.site.register(booking, bookingAdmin) | [
"thulasiraman9468@gmail.com"
] | thulasiraman9468@gmail.com |
0d64a8c636f9f2e49653c5f639d440261262932e | fe8ea0cc7e6b850975affa42970723d774dd8d72 | /main.py | e6e6e552b706fda1afb077005a96a73f3b6e3d02 | [
"MIT"
] | permissive | christophschnabl/lewansoul-lx16a | 2b345b6030fab2d1ca5c056500879166a0046d01 | fc92dc3470bc12353576bae00f6bc0873c753a7a | refs/heads/master | 2020-04-19T00:25:02.982773 | 2019-10-25T00:11:04 | 2019-10-25T00:11:04 | 167,846,051 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import serial
import lewansoul_lx16a
SERIAL_PORT = '/dev/ttyUSB0'
controller = lewansoul_lx16a.ServoController(
serial.Serial(SERIAL_PORT, 115200, timeout=1),
)
# control servos directly
#controller.move(1, 100) # move servo ID=1 to position 100
# or through proxy objects
servo1 = controller.servo(1)
#servo2 = ... | [
"christoph.schnabl.cs@gmail.com"
] | christoph.schnabl.cs@gmail.com |
1d959f7ffb45e5bd71979204e4f0c6b34379fcf2 | 55883f5c70f634b4341b2368ad3c6eccbe13e7e5 | /CEPNetworks.py | 30de48a2acd99ea226f70ff8ba9a0a7fe1d56710 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaihami/pycsa | e93fcceb4b7fed1c0b4ae23fbebd0a5bc3e2bf44 | a85594526a4d10d2e8097b6e90f5b93b44a8236f | refs/heads/master | 2021-01-23T02:40:29.036635 | 2016-04-29T17:21:11 | 2016-04-29T17:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,029 | py | """
CEPNetworks.py
This module is used to control all of the pipeline flow and do
the reshuffling, etc. It works with the CEPAlgorithms module which can
easily be adapted to include more algorithms. The main pipeline is initialized
with all of the information for the rest of the project.
@author: Kevin S. Brown (Un... | [
"kevin.s.brown@uconn.edu"
] | kevin.s.brown@uconn.edu |
01503584d16b7c4a0cb75a7cc758eb2adfac62e9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/cb96f8a25034763e9f45f371afae4ca021d26a68-<process_state>-bug.py | 6773a85f0e7bd66ac286e39e30972daccc1daef3 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | def process_state(self):
try:
dvs_host_states = {
'absent': {
'present': self.state_destroy_dvs_host,
'absent': self.state_exit_unchanged,
},
'present': {
'update': self.state_update_dvs_host,
'present': self... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
5f589a00f44a392774b00c5be087bfbd0071b735 | 40b6fc12bea094e81deb2ac992c4314477f6a35f | /django/mathias/api/slack.py | 2b99b7e6cb3bd38ad538f562f7cf24b8d6b0bc5c | [] | no_license | mateusflavio/mathias | d2ea11638f62182230a780dc0350e5dcc97b2772 | cf6cf9e541d51a67237dd3236b73b1899e76b255 | refs/heads/master | 2021-01-11T08:16:45.945002 | 2017-10-10T18:41:57 | 2017-10-10T18:41:57 | 68,975,603 | 3 | 2 | null | 2017-10-10T18:41:58 | 2016-09-23T01:09:50 | Python | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
import http.client
import requests
from django.conf import settings
from django.utils.six import BytesIO
from rest_framework.parsers import JSONParser
class SlackApi:
host = settings.SLACK['host']
token = settings.SLACK['token']
@staticmethod
def send_message(self, channel, ... | [
"mateusflavio@gmail.com"
] | mateusflavio@gmail.com |
f251afa3b7e3e955386ac164c6b65104d166d613 | 0c1a586af2040fdc955c0ebde15639cf5a3c01f9 | /install/cms.py | a2ef055d38d05994b28a535c50f9d0d979f55a79 | [] | no_license | akali/easy_cms | 5640017ee63b975b0dad40c0d021cb44f9e80044 | 6a56bbe2b28865f5e237830b812adaaa87c240d4 | refs/heads/master | 2021-04-28T20:21:25.754528 | 2018-01-20T11:45:24 | 2018-01-20T11:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py |
import subprocess
import config
def install(ip):
commands = ""
commands += "wget https://github.com/cms-dev/cms/releases/download/v1.3.rc0/v1.3.rc0.tar.gz;"
commands += "tar -xvf v1.3.rc0.tar.gz;"
subprocess.call(config.commands.ssh + ["ubuntu@{}".format(ip), commands])
subprocess.call(config.comm... | [
"erel3.69@gmail.com"
] | erel3.69@gmail.com |
de6406c817df44c40d6f9af3cabf9e0a1ae90cfd | 5f4ea8b9d32eb399736f44d39bc7b3d7c233b271 | /django_movie/urls.py | 773d580aff7008fafd32c63f44e0786115e74674 | [] | no_license | SmartBoY10/django_movie | 15208e4ac45e148ebcb2639cb92a062b8f411849 | 5c8d43b69cb7201c36e3ce086eccc8a75b661c71 | refs/heads/master | 2023-04-30T01:14:20.880132 | 2021-05-17T17:59:48 | 2021-05-17T17:59:48 | 367,028,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | """django_movie URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"qurol.abduajalilov99@gmail.com"
] | qurol.abduajalilov99@gmail.com |
208e9e694fe4431263cb5db015d442871a25daaa | eced0633e98865c735dcbe40fb8ce12ece27f48f | /models/bonet.py | fbff7084b536ee851280c265ba599fee74827d9f | [
"MIT"
] | permissive | nichakornchaisuwan/Bonet | 448f231af7a2cb2e538f31c3cebba43a3626086b | d167b66a02c03439f201e9e5e461bc6f9468a916 | refs/heads/master | 2023-03-18T16:29:28.479775 | 2021-01-23T02:51:33 | 2021-01-23T02:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | # -*- coding: utf-8 -*-
"""
Bone Age Assessment Network (BoNet) PyTorch implementation.
"""
import re
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from collections import OrderedDict
import torch.utils.model_zoo as model_zoo
from torch.utils.model... | [
"mc.escobar11@uniandes.edu.co"
] | mc.escobar11@uniandes.edu.co |
3b2de14b58dc4026e326e6c37c57ada52e92a0b9 | 9d48227b24770b4142be2696a4315f01e0fe0bd7 | /Docx_anon/server/venv/Lib/site-packages/razdel/tests/partition.py | 0cb9715c93bb8e8d16f884691495aab122d81f0e | [] | no_license | AbbaVaR/1191b_Abbazov_mobile | ea65c00207f2644b20a998d0dabc35611980882b | 05f7b74286b2f001765a359ff18c5a7127b0c633 | refs/heads/main | 2023-04-25T18:07:52.832196 | 2021-06-07T13:18:25 | 2021-06-07T13:18:25 | 337,994,551 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py |
import re
from razdel.record import Record
from razdel.substring import Substring
FILL = ' '
FILL_PATTERN = re.compile('^\s*$')
class Partition(Record):
__attributes__ = ['chunks']
is_fill = FILL_PATTERN.match
def __init__(self, chunks):
self.chunks = chunks
@property
def text(self)... | [
"asr77734@gmail.com"
] | asr77734@gmail.com |
7e5707c253c5dd0752d89832311a101d4f2ddd7f | 4ae7a930ca6aa629aa57df7764665358ee70ffac | /cflearn/data/blocks/ml/__init__.py | 004f79c534726862b6d1c4593e1b88dbc9ee2142 | [
"MIT"
] | permissive | carefree0910/carefree-learn | 0ecc7046ef0ab44a642ff0a72a181c4cb5037571 | 554bf15c5ce6e3b4ee6a219f348d416e71d3972f | refs/heads/dev | 2023-08-23T07:09:56.712338 | 2023-08-23T02:49:10 | 2023-08-23T02:49:10 | 273,041,593 | 451 | 38 | MIT | 2021-01-05T10:49:46 | 2020-06-17T17:44:17 | Python | UTF-8 | Python | false | false | 169 | py | from .schema import *
from .file import *
from .nan_handler import *
from .recognizer import *
from .preprocessor import *
from .splitter import *
from .gather import *
| [
"syameimaru.saki@gmail.com"
] | syameimaru.saki@gmail.com |
cdbeb9fa3d7154cdaf2a4181e90676a14873159b | 6080843c9d68a285ccb8b37a65c921dcb6ca994f | /seo_link/migrations/0001_initial.py | 7c41cb945fc3ac0ecdf4545f7f2abe7db44a0427 | [
"BSD-3-Clause"
] | permissive | lubosvr/django-seo-link | 161f4ba6147b943d4a1128866f6fb29b1febcc38 | 48df353152ac066437892bd478d8186bdb59464e | refs/heads/master | 2020-12-26T04:05:51.104081 | 2011-03-16T16:07:02 | 2011-03-16T16:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,149 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'MatchType'
db.create_table('seo_link_matchtype', (
('id', self.gf('django.db.m... | [
"frank.bieniek@produktlaunch.de"
] | frank.bieniek@produktlaunch.de |
c457235b9a8c39152cc8605e92397937890b35f0 | d30a41cd32c48a779d473f02c87119ab23ebf18a | /src/stk/molecular/topology_graphs/macrocycle/macrocycle.py | ac2f50e4f5b66a65bebaad61fe5100a2808c1b02 | [
"MIT"
] | permissive | pk-organics/stk | 7c69e97a40b1e0195a24c7d2921f8200e91a9fa8 | 4dc93ddcccf0ff96f8ecc1110fcc42bd5719b2da | refs/heads/master | 2023-03-25T06:28:08.818537 | 2021-03-09T09:47:00 | 2021-03-09T09:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,669 | py | """
Macrocycle
==========
"""
import numpy as np
from .vertices import _CycleVertex
from ..topology_graph import TopologyGraph, NullOptimizer, Edge
from ...reactions import GenericReactionFactory
class Macrocycle(TopologyGraph):
"""
Represents a macrocycle topology graph.
Building blocks with two func... | [
"noreply@github.com"
] | noreply@github.com |
9eb9374124783aaea8cce51a1e158d0970a5cda4 | 653224ae441821ed95e7fb9c26d6f24425b550cb | /udemy-curso-python-projetos-reais-django/djangotemplates/blog/views.py | 9285cd7100bf97aa825ef9cb27b5e7f5d8d3e29b | [
"MIT"
] | permissive | herculeshssj/python | d68432e2cf38622bbba3d50be48810ceeaea6694 | a6b9dedf81162467a4d99ae61ca001bd4b691819 | refs/heads/master | 2023-09-05T00:18:55.126544 | 2023-08-18T18:07:02 | 2023-08-18T18:07:02 | 230,921,078 | 0 | 0 | MIT | 2023-07-06T01:07:08 | 2019-12-30T13:29:34 | Python | UTF-8 | Python | false | false | 131 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'blog/index.html')
| [
"hercules_hssj@outlook.com"
] | hercules_hssj@outlook.com |
222d7d7d0a8181630d15e2fec554272d154b8807 | 65e78f7069e68de8e3ad49dc267a5343933b4ca3 | /plist2txt.py | 4304b7190d4adc198bf3a68f6d45b2464ebfe7d8 | [] | no_license | ZuyingWo/contrib | e5315a33eb02d9172ce2701c13edd1993902f2fb | fa3316135b015f711b863b9cb13dc1ce1f54303f | refs/heads/master | 2021-01-17T19:25:56.858627 | 2016-06-28T14:22:04 | 2016-06-28T14:23:07 | 64,099,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# plist2txt.py: convert a Info.plist file to a text list
# Copyright (C) 2016 Ludovic Rousseau
"""
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softw... | [
"ludovic.rousseau@free.fr"
] | ludovic.rousseau@free.fr |
bb979d8fa0d21924647fd592b6f4a360ffb3851c | db46d617df684974ba774ca672ad74aa90decdf7 | /images/migrations/0023_auto_20200505_1750.py | a753f1eb6e5fcdbb53a9c6ffe1bf313c0193a214 | [] | no_license | kylebruder/kbruder | 664d86b7d5c35dec67efa6fe85805a325d29acdb | d50aa09bb33cc53ae3b7b3e28b5a2a1b24c4880e | refs/heads/master | 2021-07-16T09:03:37.755443 | 2020-06-10T18:50:43 | 2020-06-10T18:50:43 | 245,283,002 | 0 | 0 | null | 2021-04-08T19:51:47 | 2020-03-05T22:45:54 | Python | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.0.3 on 2020-05-05 17:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('metrics', '0001_initial'),
('images', '0022_auto_20200505_1744'),
]
operations = [
migrations.Alter... | [
"kylebruder@pm.me"
] | kylebruder@pm.me |
bb4870710eb00f3e5b229972f2c6af8a5271ca74 | b21d7531d5f873e35515f4d39575e6ed93668509 | /Server.py | ae80794677de3ec26c6b9bcb9c7d639dc8531edd | [] | no_license | GadiTab/DevOps-Puppet-for-Linux | 399752f2ec94086570096fe50eefbf0cf33f2ff8 | ca22a67f96e5fb62d0641ae14fb83fa172a051d3 | refs/heads/master | 2021-04-30T17:40:01.112914 | 2017-01-27T19:43:47 | 2017-01-27T19:43:47 | 80,240,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,185 | py | #!/usr/bin/python
# Import Libraries
from time import sleep
from os import system, path
from datetime import datetime
from socket import *
import fcntl, struct, subprocess, shlex, threading
# Extended Library
try:
from netaddr import *
except:
system("apt-get install python-netaddr -y")
from netaddr import... | [
"slipkno5@hotmail.com"
] | slipkno5@hotmail.com |
cec36baa612c60f379002a0c6efbe3bfb85d5786 | 13e588e2e656caee69bfc31106dd8d52f5a64b7a | /lib/refresh_view.py | a21f698cc7d2d7f0988e39843f6326fa80a3c771 | [] | no_license | fbraza/DSTI-SQL_VIEW | cdf6a875e85b76f672f203e6c10aafba53c34880 | a49337b9c2c42145304552a21014ca88a5837fa8 | refs/heads/main | 2022-12-27T19:32:10.328407 | 2020-10-06T17:43:18 | 2020-10-06T17:43:18 | 301,807,665 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | from __future__ import annotations
import os
import filecmp
import pandas as pd
from .connection import Connection
FILE_NAME = "Survey_updated_view.csv"
TEMP_NAME = "temp_view.csv"
def is_folder_empty(path_directory: str) -> bool:
"""
Function designed to determine if a folder is empty
Parameters
-... | [
"fbraza@tutanota.com"
] | fbraza@tutanota.com |
67d0ba7db3b094445dde8bc9fe3cbec390cc5a2e | dcc97cf781a72b07020c87a1d8413de9eb29191e | /data/velopass_data/load_inout.py | bbbcf10f46cfdad13c86955b23e4843e7c06bb6b | [] | no_license | loicgasser/bikestats | 0a234d8de9666ae65b0ca52026d3cbafc82a0239 | 28b90b15681323c0101ed31628f6909b8857aa0a | refs/heads/master | 2020-04-15T00:06:37.417438 | 2015-05-18T09:12:41 | 2015-05-18T09:12:41 | 31,642,944 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | import csv
import psycopg2
'''conn = psycopg2.connect("dbname=velopass user=postgres password=")
SELECT TIMESTAMP '1999-01-08 04:05:06'
cur = conn.cursor()
cur.execute("SELECT * from public.velopass")
results = cur.fetchall()
INSERT INTO transactions_aggregated
(
no,
date,
"in",
"out",
diff,
weekday... | [
"vishal.chandra.sood@gmail.com"
] | vishal.chandra.sood@gmail.com |
58a1e44faa93679374aa5383c8cda2d3e4ae08e2 | 2a304da07857054b1c52b9aa0f1d6c06fd37d16f | /CSVFileReader.py | edca375c773113d9c3e9c172b9aada42f7761a84 | [] | no_license | adamacampbell/PythonCSVFileReader | 532067877349c2e616f406cc4e6d1888b335e0f0 | ecff47b60392cfe29cb282c3500e1373bf3572b5 | refs/heads/master | 2020-04-15T16:24:17.786834 | 2019-01-09T10:51:52 | 2019-01-09T10:51:52 | 164,833,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import csv
import os
def choosefile():
file = input("Please enter file name or directory\n")
if os.path.isfile(file):
return file
else:
print("File directory not found")
choosefile()
with open(choosefile(), 'r') as file:
csv_reader = csv.reader(file, delimiter=' ')
pack... | [
"noreply@github.com"
] | noreply@github.com |
f0ae000ed1eb0a79a633644c810f5132c954dd92 | 3883736fc8742282552287159bff1ef209243779 | /alejandra/punto_2.py | 9e68801240887d5ec9ed082c76e0fb19ffc64a04 | [] | no_license | riyanhax/Control_Venta_Jugos | 9c161cc6f43bf008bdf4c9fa95b87208ea6636b3 | efa4204e97f500f522f42400ad1f95d0375987c2 | refs/heads/main | 2023-08-11T00:35:17.415866 | 2021-10-01T01:19:46 | 2021-10-01T01:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | def invertir(vec1):
vecinv = []
x = len(vec1)-1
while x >= 0:
vecinv.append(vec1[x])
x -= 1
return vecinv
def destruir(num):
a = []
while num > 0:
if num >= 100000:
quita = num % 100
a.append(quita)
num //= 100
i... | [
"nadroy11720011022@gmail.com"
] | nadroy11720011022@gmail.com |
d03b154d78c9833bf938cf54367d34ddaaaed477 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4144.py | 437f1315e60150f35c8d478d47df71dfcc8adc9d | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
9b5c2cbf6056ca51b45eea33164c9c2990e8a7e8 | 8f6e1fb537cf5a0d9800a63aa20abb596e5aff8f | /Basics/Anagrams finder/find-anagrams.py | c92bf383851c977d603ee160af449a4cd7bb9ab9 | [] | no_license | georgiev-ventsi/my-python | 827407ec83b3470a42659791fc76e1825f8a73ad | 581603f6634c80d348a7a1aebf15c6162b1e127b | refs/heads/main | 2023-08-17T18:03:39.448656 | 2021-10-19T07:15:52 | 2021-10-19T07:15:52 | 417,171,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | def find_anagrams(str1, str2):
sorted_lower_str1 = sorted(str1.lower())
sorted_lower_str2 = sorted(str2.lower())
print(sorted_lower_str1, sorted_lower_str2)
if len(sorted_lower_str1) == len(sorted_lower_str2):
if sorted_lower_str1 == sorted_lower_str2:
print('These two strings are a... | [
"vgeorgiev@AGROLAND.BG"
] | vgeorgiev@AGROLAND.BG |
f7af00972670b3961fb2a93450be13284126ec84 | 1af379b14252defebfe9ba55154770a021d040f9 | /2018-09-26/attract/gen/limiti.py | a3f48e45a0f7f19d52915b6b1f0cd1afd65e549c | [] | no_license | romeorizzi/esami-algo-TA | ee8cc12731963ae0d6b46a026b3ef8782539a73b | 57af9679a95ee76c302cae1c5daf5cd9fbc9afd3 | refs/heads/master | 2020-06-24T14:39:03.361825 | 2019-08-02T07:22:02 | 2019-08-02T07:22:02 | 198,989,340 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | MAXN = 200000
MAXM = 500000
| [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
0288094a09c412b85518605c28634aa250b5342a | d7527f2be1a03ed29147fc0a8afc98bfa63afb6c | /RunningCalc.py | 67d9dd2bddd64a5dfe5f4a9160e24c85f0a066c9 | [] | no_license | sakobrin/running-calculator | 05551c226a51362565177c3118be0a828e037081 | d723c81cdd1c569ca8b613a4dc70e316ea60c7b3 | refs/heads/master | 2021-01-21T16:44:55.923915 | 2017-04-30T05:02:23 | 2017-04-30T05:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from tkinter import *
from tkinter import ttk
main = Tk()
content = ttk.Frame(main)
main.title('Running Calculator')
frame = ttk.Frame(content, borderwidth=5, relief="sunken", width = 500, height = 300)
timelbl = ttk.Label(content, text = "Time")
time = ttk.Entry(content)
distancelbl = ttk.Label(content, text = "Di... | [
"spencerhusen@gmail.com"
] | spencerhusen@gmail.com |
8d0d1313e78693d985b4e4c39f8e046404d8c52c | 67542fb4ac2e6eedd660e0966363676751bbbd0b | /DB/DataBase.py | fd1df602b354b89b7d315b4af6b8f90e1c9dc6c6 | [] | no_license | PnP4/IoTLink | a389b1fd88e8a0876eea4025ab753a575b111633 | 495b20343166b153bb7e214db1a385648a5f35cc | refs/heads/master | 2020-06-10T04:53:37.211881 | 2016-12-31T13:16:39 | 2016-12-31T13:16:39 | 76,085,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,367 | py | import sqlite3
class SQLDB:
def __init__(self):
try:
self.getCon()
except:
pass
try:
self.CreateTable()
except:
pass
try:
self.insertInitData()
except Exception as e:
print e
pass... | [
"nrv.rox.u@gmail.com"
] | nrv.rox.u@gmail.com |
8f1d7509d6740417abcd8905bddf1141f2fc7058 | 87b249bde7c729800f2c2530a0ee35c101e3d363 | /game/models.py | 0182d4d21bfdffb62927c088fda77e2b58ca7a54 | [] | no_license | infsolution/prehistory | 9c909230cdc114dfdbc97875df27de23262befcc | 70bab6b9c8352612bd46572b63330c1187dd869e | refs/heads/master | 2020-09-12T12:14:39.358521 | 2019-11-29T23:59:43 | 2019-11-29T23:59:43 | 222,422,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | from django.contrib.auth.models import User
from django.contrib.auth import *
from django.db import models
class Knowing(models.Model):
name = models.CharField(max_length=30)
force = models. IntegerField(default=0)
defense = models.IntegerField(default=0)
allowed_level = models.IntegerField(default=0)
def __str__... | [
"clsinfsolution@gmail.com"
] | clsinfsolution@gmail.com |
e4e53d12e0453f00ec4986d03ad123974f9e5a3b | e055d7bac58de449f57cf4077c7d64a154868af8 | /rbvm/lib/auth.py | cffc289ccf4ccd89e55eb683641e867d5abf67f2 | [] | no_license | redbrick/rbvm | 4b7d60971229596f1eda3cffdfb0e3582ace976b | db36ff9287a6e36f8673b959799b01432ad8454d | refs/heads/master | 2021-01-22T06:18:27.662294 | 2017-05-26T19:56:25 | 2017-05-26T19:56:25 | 92,534,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import cherrypy
from rbvm.model.database import *
import rbvm.lib.sqlalchemy_tool as database
import rbvm.config as config
def get_user():
"""
Returns the currently logged in user
"""
if cherrypy.session.get('authenticated') != True:
return None
else:
username = cherrypy.session.ge... | [
"werdz@users.noreply.github.com"
] | werdz@users.noreply.github.com |
b63687b59f50e081926916d0bcc2589d6d2e1d3c | 1d5bc6615a1d870d36efd8033f048279f58b4258 | /puppycompanyblog/users/forms.py | 0136658377a71ff784d2e25ad1280de8b6adb840 | [] | no_license | Dzenis-Pepic/Flask-Aplication | b502e455bbe56bc6c115444d32acd072ebfae10a | 42b6495f687283c96308b0d518a0479f983abaeb | refs/heads/master | 2023-07-18T11:27:36.099347 | 2021-09-07T08:57:49 | 2021-09-07T08:57:49 | 398,843,215 | 0 | 0 | null | 2021-09-07T08:57:49 | 2021-08-22T16:12:45 | Python | UTF-8 | Python | false | false | 1,950 | py |
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired,Email,EqualTo
from wtforms import ValidationError
from flask_wtf.file import FileField, FileAllowed
from flask_login import current_user
from puppycompanyblog.models import User
... | [
"dzenisinedz@gmail.com"
] | dzenisinedz@gmail.com |
ddd97e76402b836d715d4a083b77c3284909e904 | 712d76224c59b5f46f02bd480562582645e1b517 | /test3.py | 98a3e742571aec2a94d1870f54bda85756e35f66 | [] | no_license | xinghudamowang/iForestTest | 8f2e1e777f197a564841909a3f2dcbe5e506ba48 | 9ea2b6621f8cc49f7f60fdfb57ccf5db02aac9e3 | refs/heads/master | 2021-01-21T18:11:10.646267 | 2017-03-10T10:13:37 | 2017-03-10T10:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,515 | py | # -*- coding: utf-8 -*-
### the simple version for existing customers
def getTransMatrix0(customers, products):
## get trans matrix
prods = set(products)
prods = list(prods)
prodsList = []
for item in prods:
tmp = [customers[ii] for ii, x in enumerate(products) if x == item]
tmp =... | [
"h510493094@qq.com"
] | h510493094@qq.com |
49ddb28a6f3660f534a2fe170d8242a86a905300 | 6864a19974eb513074b384b189dd28efebc660a2 | /tests/unit/test_interact.py | 6f3254ca41e7d28390fe75737a90bcce978d27aa | [
"MIT"
] | permissive | EdenInTheEast/zig | 1c8bdb4139f22779edeeae7b94b7a7c46900e661 | 7e0c0b9fb1ae9e9191445310f77c2dff7cc11fea | refs/heads/main | 2023-06-29T18:39:47.272339 | 2021-07-14T16:26:56 | 2021-07-14T16:26:56 | 364,528,761 | 1 | 1 | MIT | 2021-07-14T16:26:57 | 2021-05-05T09:44:43 | JavaScript | UTF-8 | Python | false | false | 8,484 | py | import pytest
from zig.interact import Interact, InteractOut
from zig.interact.interact_in import InteractIn
from zig.html_components import *
class TestInteractBlackBox:
"""
Basic methods:
0. Able to create Interact object with specs [IMPT!]
1. Store all input elements and th... | [
"alterrxalter@gmail.com"
] | alterrxalter@gmail.com |
7f175dcfcf3289d553a65601a42e1f53cf9b8c94 | bd497b739c49eefd96ea62a1bb9aebec7f7cebc0 | /data_processing/utils.py | 11910bef1b0ed9c694da85684350fdc6a1aa98fb | [
"MIT"
] | permissive | gcalmettes/fitApp-fullstack | 3908d82da41f679d5fc57444502c6ee5c47a3066 | 42c5f40f52e2f19127ca37638617ef39445a13f0 | refs/heads/master | 2022-12-21T13:44:06.858334 | 2020-08-08T08:36:42 | 2020-08-08T08:36:42 | 152,452,977 | 1 | 1 | MIT | 2022-12-13T11:52:45 | 2018-10-10T16:13:22 | JavaScript | UTF-8 | Python | false | false | 2,164 | py | import io
import base64
import pandas as pd
import json
def convertUrlToBytesStream(url):
# isolate base64 encoded data part
data = url.split(',')[-1]
# decode base64 to bytes
bytes = base64.urlsafe_b64decode(data)
return bytes
def csvUrlToDf(url):
bytes = convertUrlToBytesStream(url)
df =... | [
"guillaume.calmettes@gmail.com"
] | guillaume.calmettes@gmail.com |
fab339050b992558c77da577c671a699a7775d41 | 6ab67facf12280fedf7cc47c61ae91da0bcf7339 | /service/yowsup/yowsup/layers/auth/protocolentities/failure.py | 12d1d8ed0f8ee7267a59a9cbb7493f6c5c879d4d | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | PuneethReddyHC/whatsapp-rest-webservice | 2f035a08a506431c40b9ff0f333953b855f9c461 | 822dfc46b80e7a26eb553e5a10e723dda5a9f77d | refs/heads/master | 2022-09-17T14:31:17.273339 | 2017-11-27T11:16:43 | 2017-11-27T11:16:43 | 278,612,537 | 0 | 1 | MIT | 2020-07-10T11:04:42 | 2020-07-10T11:04:41 | null | UTF-8 | Python | false | false | 684 | py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class FailureProtocolEntity(ProtocolEntity):
def __init__(self, reason):
super(FailureProtocolEntity, self).__init__("failure")
self.reason = reason
def __str__(self):
out = "Failure:\n"
out += "Reason: %s\n" % self.r... | [
"svub@x900.svub.net"
] | svub@x900.svub.net |
a2305f410c636a1f73e9eb03c70036300b797b07 | 76938f270e6165514162856b2ed33c78e3c3bcb5 | /lib/coginvasion/shop/ItemType.py | e96efa1c25c3578ab1b279372a20d21679db23fd | [] | no_license | coginvasion/src | 9a5ec682845cc4c9c013fcc35e9b379bd4360b6c | 2d7fcdb0cd073050250cb51292ee48300a9fe19f | refs/heads/master | 2021-01-19T06:50:11.786112 | 2015-11-08T12:28:52 | 2015-11-08T12:28:52 | 61,545,543 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | # Embedded file name: lib.coginvasion.shop.ItemType
"""
Filename: ItemType.py
Created by: DecodedLogic (13Jul15)
"""
class ItemType:
GAG, UPGRADE, HEAL = range(3) | [
"ttarchive@yandex.com"
] | ttarchive@yandex.com |
7b54810242d09c7362950443e7fb95afecc7c011 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201115165700.py | 0eac60d92b9d9ae7be453f6bd85a6871087bd4aa | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.db import models
import re
class UserManager(models.Manager):
def user_registration_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_name'] = "First ... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
88c76b97606d527768fb95a39096714fdae6701c | 534b4e4d173df16cd8c9a198dfe83b6aefb48e55 | /train/train_svm.py | 5f80ef52c6169643b032ad75ceb92ba9e19fc632 | [] | no_license | fatzh/data-science-titanic | 652cff4477af62f83daa4bdd56814c25339903d8 | e05772d22482e481d292df9d6a368884e586aa14 | refs/heads/master | 2021-01-10T12:12:34.062245 | 2015-10-21T16:38:32 | 2015-10-21T16:38:32 | 43,350,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
import pandas as pd
from sklearn import cross_validation, svm, tree
from sklearn.ensemble import RandomForestClassifier
from sklearn.externals import joblib
import argparse
import sys
import os
from distutils.util import strtobool
def user_yes_no_query(question):
print('%s [y/n]\n' % quest... | [
"fabrice.tz@gmail.com"
] | fabrice.tz@gmail.com |
8f37672040f9e295c8762f408ad6bd4bb41e491a | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_NoCycle_MLP.py | 46db9aa8f60fd81599dfc2f183a3cf62b5ad1657 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 149 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['Lag1Trend'] , ['NoCycle'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
96b5cb6d0cc6d595ec025397e6fba91ee28c1540 | 48433e782befb20935d2272c63299c41ce41a999 | /similarity.py | ce3468575404d7e1962b629ecd73867867d04c20 | [] | no_license | marcielbp/softwareConflitoInteresses | e7827f088681e8c69af9a735f55ba17f177bbc13 | e462352f05d5797c87d0e724ce8f9ba18bdf46c8 | refs/heads/master | 2020-05-27T10:24:59.562976 | 2019-05-25T15:58:30 | 2019-05-25T15:58:30 | 188,582,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | __author__ = 'andremeireles'
from difflib import SequenceMatcher
def similar(a, b):
return SequenceMatcher(None, a, b).ratio()
# print similar('Andre Andrade', 'Andre Souza Andrade') | [
"noreply@github.com"
] | noreply@github.com |
217093a5295f3f4271c4c94eec44528a6ce7ad70 | 0c24fcbf802ed1881abdfbf14b867d4545237602 | /students/y2331/practical_works/Levashova_Nastya/lesson_11022020/lesson_11022020/urls.py | 2767832730380fdde8745167eccc8a0042a4f937 | [] | no_license | TonikX/ITMO_FSPO_Web_Django_2020 | d435d2984778d668f6d04c86d78c991b3f390c1a | 267141d6e4ee231ca689c8929f3db25fef15a5fd | refs/heads/master | 2023-01-18T17:38:05.964240 | 2020-11-20T18:08:57 | 2020-11-20T18:08:57 | 245,081,715 | 2 | 139 | null | 2023-04-25T18:54:50 | 2020-03-05T05:59:54 | Python | UTF-8 | Python | false | false | 810 | py | """lesson_11022020 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"62665598+tommmatojuice@users.noreply.github.com"
] | 62665598+tommmatojuice@users.noreply.github.com |
803b42aa13d6faa1c2502eba19d4b72a915cf30b | a63264a25fe18a94d9e2cba2632d7d59262e36a1 | /app/handlers/converttopopulation.py | d1a9eb7efeab1d636cec5909a9a923a2ef1a3ffd | [
"BSD-3-Clause"
] | permissive | bbbales2/stochss | 4f3ac8f909f52aaba0c863ffed91c2ae70b2fe27 | afddf9ad8936993a5b17d1d4130677eb42afa439 | refs/heads/master | 2021-01-15T23:11:40.983003 | 2013-11-27T19:27:23 | 2013-11-27T19:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | try:
import json
except ImportError:
from django.utils import simplejson as json
import traceback
from collections import OrderedDict
from stochssapp import *
from stochss.model import *
class ConvertToPopulationPage(BaseHandler):
def authentication_required(self):
return True
def ge... | [
"bbbales2@gmail.com"
] | bbbales2@gmail.com |
b7517557feafba0275822f0660ff6499f13f43cb | ef9c6abc94ee95dbf59dbc2a2272d59687c4ea61 | /src/restaurants/migrations/0023_auto_20200924_0405.py | 1e10e8cd9913cb74ba71d7ec08991139fa3e2285 | [] | no_license | arturocastillo95/Localito | 0ab7a6d07b533d444b59e4b6788286f40703c42e | 5391f8fd9ca780dc22516998674a63bf11cd1e84 | refs/heads/master | 2023-09-01T03:56:58.797047 | 2021-10-07T22:16:26 | 2021-10-07T22:16:26 | 290,685,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # Generated by Django 3.1 on 2020-09-24 04:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0022_restaurant_qr_code'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
name='addre... | [
"arturguay@gmail.com"
] | arturguay@gmail.com |
2cb23a3c1884756723095a7f604218153b7ae32c | a7e9720068f00de9c64ba5807894070f77e5420c | /faster_rcnn/function/test_rcnn.py | 39d5f2a8e6e831a1a84639c3959f654b66cac9fc | [] | no_license | novageno/novageno | af2808a46d720ea44a71b5e10c34039b3ddea554 | 16ffe13dcaa463cd2f66c26232e7893f914153e4 | refs/heads/master | 2021-01-16T19:08:46.676527 | 2017-08-19T06:13:49 | 2017-08-19T06:13:49 | 100,146,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Guodong Zhang
# --------------------------------------------------------
... | [
"lilhope@163.com"
] | lilhope@163.com |
73dd2273af55639c6c3c75288dacb97133f8bd7c | 104d98cda5885b70fd294fbf2de5afda83bff478 | /load_ohlcv.py | f5c0123d8af5fdc32efdc531fa2f984736eff231 | [] | no_license | harishkumar92/EMAIndicators | 98a21c1738ccd00beb549af4e696203eae9963e4 | ca59d6e6e18a6ad5053bb7c701ea49d9ff26a8e3 | refs/heads/master | 2020-12-09T17:02:49.381232 | 2020-01-12T09:19:09 | 2020-01-12T09:19:09 | 233,366,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | import requests, sys
from datetime import datetime
import pandas as pd
def get_coin_list(n):
req_url = 'https://min-api.cryptocompare.com/data/top/mktcapfull?limit={0}&tsym=USD'.format(n)
result = requests.get(req_url)
coins = [x['CoinInfo']['Name'] for x in result.json()['Data']]
return coins
def mak... | [
"noreply@github.com"
] | noreply@github.com |
249f9ba65f1a6d2c88a635746d6ef863b1611db8 | 26dfaaa5c084832122a45242b4f15ba4aead229c | /Projects/trilobot/trilo_remote_control.py | 8ccb1336988e6ab843297fb518d237a3b2f407e8 | [
"MIT"
] | permissive | pkbullock/RaspberryPi | aa622b641031bf49c6a3d19e90a030071accc51a | a1312b0732d2cc7e1b79f26bd2adb44443734135 | refs/heads/master | 2023-07-20T12:16:26.677502 | 2023-07-16T13:58:43 | 2023-07-16T13:58:43 | 83,076,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,886 | py | #!/usr/bin/env python3
import time
import math
import sys
from mappings import *
from mappings import custom_controller_mappings
"""
An advanced example of how Trilobot can be remote controlled using a controller or gamepad.
This will require one of the supported controllers to already be paired to your Trilobot.
At... | [
"paul.bullock@capacreative.co.uk"
] | paul.bullock@capacreative.co.uk |
15ca578cab22380a15803413284472c6b9776021 | 4e5510dbc74a8ff1b817df2d25f8ada529f7fdee | /mysite/settings.py | 33b7223aa4aaa76815f5c2eaf3106516b8435eee | [] | no_license | danaitabay/my-first-blog | 9de5c24688e5dad111bca4d349d9f1c009db897f | 1ba5421dfe7a1d6e021a00bb2d7659a7fcad7ce6 | refs/heads/master | 2021-07-01T04:10:37.459551 | 2017-09-18T14:40:51 | 2017-09-18T14:40:51 | 103,775,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os ... | [
"db.tsegaye@gmail.com"
] | db.tsegaye@gmail.com |
ca2c59cf13ee879f9813dc695189e615fcc25a53 | 7020c7833efc19f79731356604e8008831bb2a29 | /product/migrations/0001_initial.py | f9b5cc008a1f2bbeda7eb107f84fbab03339593c | [] | no_license | alladini0/task2 | 1673581495b532fabaeadf84bf17434a86900a51 | f46000bf75c505c4683ee7bf413863caeb84a451 | refs/heads/master | 2023-07-27T13:35:36.136500 | 2021-09-10T11:53:18 | 2021-09-10T11:53:18 | 405,063,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # Generated by Django 3.2.7 on 2021-09-10 10:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"mankeypanda@gmail.com"
] | mankeypanda@gmail.com |
b39568cfb41bd202d421f08638b802aa3c233233 | adcd8b283755697c5e58276f9682b768c03dba81 | /dache/backends/redis.py | 28b6c611c618f77bb353db14d518ad3ea0dc43fd | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eliangcs/dache | 4cfd87d06feee75f0acf567e4e5985b63767a5bd | 7499942a0b0cb21acc6e31cde3678cdda66519b6 | refs/heads/master | 2023-04-15T11:20:43.664066 | 2014-11-08T23:26:12 | 2014-11-08T23:26:12 | 25,982,568 | 0 | 0 | NOASSERTION | 2023-03-31T14:26:36 | 2014-10-30T17:43:44 | Python | UTF-8 | Python | false | false | 1,567 | py | from __future__ import absolute_import
import redis
from six.moves import cPickle as pickle
from .base import BaseCache, DEFAULT_TIMEOUT
DEFAULT_PORT = 6379
class RedisCache(BaseCache):
def __init__(self, url, **options):
super(RedisCache, self).__init__(**options)
port = url.port or DEFAUL... | [
"cliang@machinezone.com"
] | cliang@machinezone.com |
4bdc54ae579efbe9fc29fa19f160057551d83d98 | 4ed9dd49d6dc87d03258c7019274b1dfd1a90e9b | /manager.py | 84e7cd121b37975bafc7b649d34def1e54a3803d | [] | no_license | OSP123/Python_exercises | 824945c296bae5bb4db2ed2db3192d200c3907a2 | 6a1406ae8851f1908892d4a88f893521b3deacbc | refs/heads/master | 2021-01-22T18:14:44.734799 | 2015-07-22T15:55:53 | 2015-07-22T15:55:53 | 39,515,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py |
from employee import Employee
"""
An object of this class represents a manager with the attributes inherited
from Employee and the additional data members: title and annual bonus.
"""
class Manager (Employee):
"""
An object of this class stores a title and annual bonues of a manager, along with
the attr... | [
"omarpatel123@gmail.com"
] | omarpatel123@gmail.com |
3ad2dd87828157dd063f2b7458571a524017263a | 833ae432c07ff3c33812b4847c247aa730a2549b | /glue/_plugin_helpers.py | 341fbd440fc91bad6628fe8c03f9dba38fea1a07 | [
"BSD-3-Clause"
] | permissive | scalet98/glue | 3e4bc49ac53766d4e1927da3434ad02410d93486 | ff949ad52e205c20561f48c05f870b2abb39e0b0 | refs/heads/master | 2020-11-25T07:50:11.278074 | 2019-10-29T09:23:19 | 2019-10-29T09:23:19 | 228,563,694 | 1 | 0 | NOASSERTION | 2019-12-17T07:58:31 | 2019-12-17T07:58:31 | null | UTF-8 | Python | false | false | 2,776 | py | # The following function is a thin wrapper around iter_entry_points. The reason it
# is in this separate file is that when making the Mac app, py2app doesn't
# support entry points, so we replace this function with a version that has the
# entry points we want hardcoded. If this function was in glue/main.py, the
# refe... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
c51601e1b9ee338db02f4c1f497e0198df94460b | 29a47609913b7cec54266f230f19611b60b2080a | /examples/light_head_rcnn/train_coco_multi.py | f5b126c6e8072cf5f6af9613f1d78ddc18fbfdf1 | [
"MIT"
] | permissive | xiaolonghao/chainercv | ec89ec711eb05f4a9a62c7d535d0c42c49500883 | 1db5572aa4bac6c40fd811c51dd63f1b6ad57dcf | refs/heads/master | 2020-12-05T21:20:49.118214 | 2019-12-24T06:01:34 | 2019-12-24T06:01:34 | 232,251,009 | 1 | 0 | MIT | 2020-01-07T05:41:06 | 2020-01-07T05:41:05 | null | UTF-8 | Python | false | false | 8,388 | py | from __future__ import division
import argparse
import functools
import multiprocessing
import numpy as np
import random
import six
import chainer
from chainer.dataset.convert import _concat_arrays
from chainer.dataset.convert import to_device
import chainer.links as L
from chainer.training import extensions
from ch... | [
"shingogo@hotmail.co.jp"
] | shingogo@hotmail.co.jp |
a08d641b179f3b456201c7309f9916d1711d11c8 | c0193e3918f855fb06046446d16e6b5c8c0bf5ae | /students/tests/test_context_processors.py | e5b82ba497ecb510e4e222aa1acc8807a76f0086 | [] | no_license | e-krasyuk/studentsdb | c1dcd6e76ebb2c3fc75f54af38ed8ad0d67ecea1 | 2e8944477b7973e4d00c46957bd3cfdeba8aeeb7 | refs/heads/master | 2021-06-10T08:28:26.399337 | 2017-02-20T19:07:59 | 2017-02-20T19:07:59 | 67,284,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from django.test import TestCase
from django.http import HttpRequest
from students.context_processors import groups_processor
class ContextProcessorsTest(TestCase):
fixtures = ['students_test_data.json']
def test_groups_processor(self):
''' Test groups processor '''
request = HttpRequest()
... | [
"evgeniykrasyuk@gmail.com"
] | evgeniykrasyuk@gmail.com |
af2b6b930dbd7322f60e7441c3a68f82d72a1a83 | f5611d9af6a6d8ab3e66164f804a395ac394a4dd | /boss_list/serializers.py | eecb59dd352b2dc260ac1e5f428bf242504ec7e8 | [] | no_license | Lux-Sales/absolute_boss_list_API | cd3bafd06d69df10a9993827af355ba4ba0867f4 | 8b867d5f7996a7140f992cd95a65c0a634cac640 | refs/heads/master | 2023-03-16T11:09:37.075269 | 2021-02-26T18:02:58 | 2021-02-26T18:02:58 | 338,630,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | from rest_framework import serializers
from players.models import Player
from .models import BossList
from players.serializers import PlayersSerializer
class AddPlayerSerializer(serializers.Serializer):
name = serializers.CharField(max_length=255, required=True)
vocation = serializers.CharField(max_length=255,... | [
"sales_l@hotmail.com"
] | sales_l@hotmail.com |
075bab59ba6d1149112ae36f9a6a72d45b6ef270 | 439872cbc12a9a73ba70e4ff2162681bfbad2a00 | /exercises/lesson 13 locator examples/find_element_by_id.py | da5f33890d8048c74da805e68d3357a5b16e9a6c | [] | no_license | Qola-Learning/Selenium | 9182780dd33be741a38b99a836c62423ecdf54cb | f93deb7787c7f6a4b238222ceca1f0bfa79d2ec9 | refs/heads/master | 2022-11-29T23:39:13.287720 | 2020-08-05T10:00:31 | 2020-08-05T10:00:31 | 273,363,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # find element by id
from selenium import webdriver
# invoking chromedriver to open chrome browser
driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe")
# get method to to open the url
driver.get("https://katalon-demo-cura.herokuapp.com/")
# find element by id
driver.find_element_by_id("btn-m... | [
"noreply@github.com"
] | noreply@github.com |
9a4313fa0814d9397f41b20ed086b55e7abb6250 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QgAwpaFWD2jtxZ2wG_4.py | 58922c617047ba45a395b810841f6329c9e8ff3b | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py |
def sum_digits(n):
if n==0:
return 1
k = 0
j = n
while (int(j)>0):
k += 1
j /= 10
return k
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9da54dc53cf6b17761258afa02f01e041e98a274 | 19dfccf1567cb93d57b7c526e1d5a15b6c8d9098 | /minecraftControl/controllers.py | 000ff8b2b69e1c1e0a08fdcba2487e622788b59c | [] | no_license | AndyLamperski/minecraftControl | 7cd4a8d2cb5092b7197708975f9588be82ad2d44 | 3077f8b643742780f008c6694aa3a3814bc004f5 | refs/heads/master | 2020-06-28T02:20:44.235329 | 2019-09-06T18:54:36 | 2019-09-06T18:54:36 | 200,117,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,804 | py | import numpy as np
import scipy.linalg as la
class moveSphereTo:
"""
controller = moveSphereTo(target_x,target_y,Kp,Kd,tolerance)
target_x - desired x value
target_y - desired y value
Kp - optional proportional gain
Kd - optional derivative gain
tolerance - optional error tolerance t... | [
"alampers@umn.edu"
] | alampers@umn.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.