blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9125f8f467849d131f1bfdadf4a8445a6dc59a2b | 70f824582fe5ce873808abee4de27cb918cebdf9 | /venv/bin/moggsplit | 738ac9da815271fd0fd92ecfd9f205b21d3ada55 | [] | no_license | CharlyLaba/Playable | 00c2032bdb02a3bb13ca44d9972499c1b630abcc | ae990dae4bf5b98a50d7f037105a6a33ab458331 | refs/heads/master | 2021-10-08T22:24:59.264726 | 2018-12-18T11:48:11 | 2018-12-18T11:48:11 | 162,280,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | #!/Users/therodrigocamarena/PycharmProjects/Playable/venv/bin/python
# -*- coding: utf-8 -*-
# Copyright 2016 Christoph Reiter
#
# 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 Software Foundation; either version 2 ... | [
"charly.chedrawi@hotmail.com"
] | charly.chedrawi@hotmail.com | |
4581704ab70f7c42adcb8a959a629c322af63420 | fd2eab9850866ff9ff641310ff79a1a9d42fde79 | /mysite/main/views.py | 213af86038bddacca09c9d85e3547bbfb855b2ed | [] | no_license | jodhernandezbe/django-specialization-coursera | 7cfddeec6aa311486508af697f7231a4720d5e53 | 45e281dbedfddd872bd5d6134eaa36314ccd9b01 | refs/heads/master | 2023-07-01T18:16:40.769291 | 2021-08-07T20:40:23 | 2021-08-07T20:40:23 | 392,756,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from django.shortcuts import render
from django.views import View
from django.conf import settings
# Create your views here.
# This is a little complex because we need to detect when we are
# running in various configurations
class MainView(View):
def get(self, request):
print(request.get_host())
... | [
"jodhernandezbemj@gmail.com"
] | jodhernandezbemj@gmail.com |
6ff1497c503be08c386828ec59da8a6dcd17b03b | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GLX/_glgets.py | 76bcbaca63d3763cb619e8e125e243064e9565cc | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 279 | py | """glGet* auto-generation of output arrays (DO NOT EDIT, AUTOGENERATED)"""
try:
from OpenGL.raw.GL._lookupint import LookupInt as _L
except ImportError:
def _L(*args):
raise RuntimeError( "Need to define a lookupint for this api" )
_glget_size_mapping = _m = {}
| [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
cb1291270be8156f6a9a3b5c1dd358a92c5fcf95 | a83a06d6c41a546e89ac6b0f1471b7f4f670716c | /blockchain/block.py | cf8be4a6e6b04ea9ec31e76f326fcdfbdcf63fb5 | [
"MIT"
] | permissive | migpalg/basic-blockchain | 127600a4b866731d097fd04b35f837b0c6235bdb | 18d013f3fceba94b66a8b9b7aa604d596f5b2802 | refs/heads/main | 2023-09-04T03:56:26.943260 | 2021-10-25T00:51:40 | 2021-10-25T00:51:40 | 420,818,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from datetime import datetime
import hashlib
import json
class Block:
def __init__(self, index: int, proof: int, previous_block: str) -> None:
self.index = index
self.proof = proof
self.previous_block = previous_block
self.timestamp = str(datetime.now())
def hash_self(self):
... | [
"migpalg@gmail.com"
] | migpalg@gmail.com |
4688679c471f75d3e18c5195a347c20f101eaabc | eafcf964919d8a3b27924fa6bf7d36049ccd0bab | /accounts/doctype/payment_entry/payment_entry.py | a2e1a4a161296f534e00532c1ba6d1136606917e | [] | no_license | Amjdhassan/entagi | a7281c284cb57e754b1d70e16da5dd52e79d4f17 | ad4509803818314da8ecc2210188671d3fbb0fda | refs/heads/main | 2023-03-26T03:25:04.361689 | 2021-04-01T11:50:50 | 2021-04-01T11:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,720 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, erpnext, json
from frappe import _, scrub, ValidationError
from frappe.utils import flt, comma_or, nowdate, getdate
from ... | [
"68795525+masdardev@users.noreply.github.com"
] | 68795525+masdardev@users.noreply.github.com |
d2c87f58a3dfa8d945feb0b8602a26dad38dbe0c | d58acfbb2c6d11c10d4de73285f65fdd88099ce8 | /cric/lib/python3.6/abc.py | cbe31ffcf5e1f4e79673bbf090534881e9a5105a | [] | no_license | gurpreet0610/CricQuetz | fc2fdbe8963047d49f97b4e693417f376f356a3c | ec5cef881b81954ce6d2e67fda708658570ee106 | refs/heads/master | 2020-04-03T16:28:13.385137 | 2018-10-30T15:33:49 | 2018-10-30T15:33:49 | 155,405,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /home/gurpreet/anaconda3/lib/python3.6/abc.py | [
"“gurpreets0610@gmail.com”"
] | “gurpreets0610@gmail.com” |
6fb77634169142e51bb524249594013b7a5fce3a | 35db90ea8c1574346763ae8dc1e7259a045b53da | /Constants/Position.py | b5c27bcbb2b5a17920820af2af161f993e33e623 | [] | no_license | sophiapeng0426/MAPF | ef284eb745ed17d86c61dc93aa1e3f52f69db78e | 37751e5b893f7dc6bb70553ea4a75462718205d6 | refs/heads/master | 2021-01-18T17:33:30.082607 | 2017-01-13T07:17:37 | 2017-01-13T07:17:37 | 71,927,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
UPRIGHT = 0
DOWNRIGHT = 1
DOWNLEFT = 2
UPLEFT = 3
STAY = 4
| [
"sophiapeng0426@hotmail.com"
] | sophiapeng0426@hotmail.com |
513be6728e0f7f29ce5daec281aa3c1fb6fdcf1c | 517f7ac6cbae1cd468f1a04e374a486a5c4cba04 | /main.py | 290b845d3be6a6245d83bc310b3331dac388fcf6 | [] | no_license | srf000001/GenshinTest | 448e1136d7f49db1b676af50f65186aaf04184c2 | 97461a966c52d7b946271995e7be19d50a8a865d | refs/heads/master | 2023-07-18T03:28:26.455620 | 2021-09-04T04:45:46 | 2021-09-04T04:45:46 | 402,965,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | import os
import re
import sys
import xlrd
import xlwt
from xlutils.copy import copy
# pip install PyInstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Judgeline = [r'^\S{1,4}$', r'^[1-9]\d{0,4}$', r'^\d{0,3}[.]\d{0,2}|\d{0,3}$', r'^[1-9]\d{0,2}[.]\d{0,2}|\d{0,3}$',
r'^[1-9]\d{0,... | [
"1299353948@qq.com"
] | 1299353948@qq.com |
352a6ab13a46f60b3c252a783695116888c68f92 | 4a2cbde3d24d923091d1f641acb0ede902cfaca3 | /models/trainer.py | b071676f350ec33b2b9288360e8fee9cfddf97b9 | [] | no_license | likebear1968/DL | 2a1670e142127d198f8f1cb11957a9aee4883614 | 0f5dbe52ca69596218bb885ca11481a36e5ebd57 | refs/heads/master | 2020-11-26T08:18:30.865368 | 2020-01-09T03:56:28 | 2020-01-09T03:56:28 | 229,013,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import numpy as np
class Trainer:
def __init__(self, model, optimizer, loss, metrics=[]):
self.model, self.optimizer, self.loss, self.metrics = model, optimizer, loss, metrics
def fit(self, x, t, epoch_size, batch_size):
size = len(x)
iters = size // batch_size
for _ in range(e... | [
"likebear1968@gmail.com"
] | likebear1968@gmail.com |
f8f4f0e501c1ac22e16c6f0dbd2e5a9a7f8c4d9f | aeab8d4d2827efb22a19b21f0af9b1e6d4b65a18 | /pair_programming/PP11/PP11.py | 08dae8fca51de449ff4d4be72340d18c31545fd2 | [] | no_license | nicolearaya/cs107_nicole_araya | ba6a014644571070818a60dc5e94d09b31757e49 | b41be5b06d0521596b58c9f08413d34a8729e792 | refs/heads/master | 2023-01-22T22:18:57.973890 | 2020-12-02T20:13:31 | 2020-12-02T20:13:31 | 293,205,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Ben Manning
# Nicole Araya
# Qinyi Chen
import sqlite3
db = sqlite3.connect('candidates.sqlite')
cursor = db.cursor() # https://www.python.org/dev/peps/pep-0249/#cursor-objects
cursor.execute("DROP TABLE IF EXISTS candidates") # Convenient in case you want to start over
cursor.execute('''CREATE TABLE candidates (... | [
"nicolearaya0924@gmail.com"
] | nicolearaya0924@gmail.com |
fbfecf8c06db58329dba3aaeb80ec0c84252ded3 | f55c5e0d6eeed80b7c0fa1a07a39cd4b2cb63dc6 | /blog/topic/migrations/0001_initial.py | b990a75f76b916c7ea0ecb96fe9a0ba107ab1786 | [] | no_license | MapleFoxWyl/project_boke | 012f96401a9d34ca6734012cc26451ca00e7d5d1 | 0c463f45fbd1122eaf79394f15af25f424cff93d | refs/heads/master | 2020-07-06T09:19:21.076077 | 2019-08-18T06:33:32 | 2019-08-18T06:33:32 | 202,968,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-07-31 03:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0001_initial'),
]
oper... | [
"522068055@qq.com"
] | 522068055@qq.com |
60959c7f1b459187d163ecd6a4c5136dc573e9ca | 38664d844d9fad34e88160f6ebf86c043db9f1c5 | /tags/square/list2tree.py | 3453449e80f2da08c921b1c3170cd7d0f067060c | [] | no_license | cnsuhao/jezzitest | 84074b938b3e06ae820842dac62dae116d5fdaba | 9b5f6cf40750511350e5456349ead8346cabb56e | refs/heads/master | 2021-05-28T23:08:59.663581 | 2010-11-25T13:44:57 | 2010-11-25T13:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/python
#coding:utf-8
def BuildTree(arr):
""" 很特殊的转换树的函数, TODO: 'p' 参数化
>>> t=BuildTree([{}, {'p':0}, {'p':0}, {'p':1}, {}, {'p':0}])
>>> DumpTree(t)
0
1
3
2
5
4
>>> t=BuildTree([{}])
>>> DumpTree(t)
0
>>> t=BuildTree([{}, {}])
>>> DumpTree(t)
0
1
>>... | [
"ken.shao@ba8f1dc9-3c1c-0410-9eed-0f8a660c14bd"
] | ken.shao@ba8f1dc9-3c1c-0410-9eed-0f8a660c14bd |
bb752b40fd3109cac255f43d435ce69c4fda3f28 | 37373c7d123f922a131be7e1b6f0f425913ebcdf | /project2/app2/urls.py | 78cfbf97de15a3cdbe5d0e6bde30bca195da40a5 | [] | no_license | Eason-ji/Eason-database-Training | a3261c8abed39e8133127d22e7f4a771d2a8883c | 65ce004e893e19a86efc1a39dc749fd2713ea6b2 | refs/heads/master | 2023-02-05T20:07:26.911189 | 2020-12-30T14:21:00 | 2020-12-30T14:21:00 | 323,283,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from app2 import views
from django.urls import path
urlpatterns = [
path('app2_index',views.app2_index)
] | [
"w2434924662@gmail.com"
] | w2434924662@gmail.com |
737c607a9b90010b036069af46bbe704292213af | 0e84280d7fd545a0002a093a56202d5bce59fe88 | /users/views.py | e43bf3ec7680a2c6431fd01c38da462a2e2b8d6e | [] | no_license | ajay020/django_blog | ec7920d4c844b6ff50289958a45fa6f29cd2d589 | d625bdd75c2d0545fce949d293d5bb1526a349f9 | refs/heads/master | 2021-01-03T22:18:02.300702 | 2020-02-17T10:54:08 | 2020-02-17T10:54:08 | 240,254,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | from django.shortcuts import render,redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from .forms import UserRegisterForm,UserUpdateForm,ProfileUpdateForm
def register(request):
if request.method == 'POST':
... | [
"ajayjarwal@gmail.com"
] | ajayjarwal@gmail.com |
0a74297e53d8958b7bec9ce8db18fb73adc6abcf | d52fe6b4d13c181833762d16a65120773b287e39 | /virtual/bin/pyreverse | 010fff52c2c3c746b1e3753393f45d7441b59f06 | [
"MIT"
] | permissive | legionpunisher/stitch-in-time | a1c687315519089678de74c8e0b35a20987276fa | 5d50a5edb41ce9413b496a31ddc396d7c90b2704 | refs/heads/master | 2022-12-22T03:52:02.274623 | 2020-09-24T17:04:46 | 2020-09-24T17:04:46 | 296,542,607 | 0 | 0 | null | 2020-09-24T16:18:30 | 2020-09-18T07:10:54 | Python | UTF-8 | Python | false | false | 255 | #!/home/falcon/Desktop/pitch/virtual/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"mbuguamoses656@gmail.com"
] | mbuguamoses656@gmail.com | |
00e6f8564d0f27c434dd7d0b0b8510575d94f2f9 | cda3bfeceef1b8d0d9018285a9778c7f1ec95d2d | /OlD_LCD_calculator.py | 4f3e5fa160d0ad630d4b97aaad0a8617d753af40 | [] | no_license | Ledka17/Python_Stepik | 480597b9039c2c4ba91402876c13813839db7871 | 9f1219d2d63f928ba5ba76f54c286c11062d3f13 | refs/heads/master | 2020-04-28T18:12:20.190876 | 2020-03-17T11:33:04 | 2020-03-17T11:33:04 | 175,471,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | a1 = ' -- '
a2 = '| |'
a3 = ' '
a4 = ' |'
a5 = '| '
d = {'0': [a1, a2, a2, a3, a2, a2, a1],
'1': [a3, a4, a4, a3, a4, a4, a3],
'2': [a1, a4, a4, a1, a5, a5, a1],
'3': [a1, a4, a4, a1, a4, a4, a1],
'4': [a3, a2, a2, a1, a4, a4, a3],
'5': [a1, a5, a5, a1, a4, a4, a1],
'6': [a1, a5, ... | [
"noreply@github.com"
] | Ledka17.noreply@github.com |
9d4f6b46b76abf9e03e6d7a26d0803ab8abd4dda | 8c93f80e63dac3d7219409797470bf5de15fb562 | /source/server/server_rover/raspberry_server/test_client.py | b39986a317c76b0b8b239ad45669657a60bc6945 | [] | no_license | luci-e/cv-project | 35d75d26b43a02672d8011178e592f0a6f0ccdb6 | 39c999a9f57a0900c51bd33e22dc2ee48422598d | refs/heads/master | 2021-06-10T02:04:23.895587 | 2019-07-08T20:48:58 | 2019-07-08T20:48:58 | 163,296,622 | 0 | 0 | null | 2021-05-29T11:17:22 | 2018-12-27T13:16:01 | JavaScript | UTF-8 | Python | false | false | 5,981 | py | import asyncio
import websockets
import json
import sys
import uuid
import atexit
rover_list = None
server_address = '192.168.0.14'
e_ctrl_port = 8888
stream_port = 7778
client_id = uuid.uuid1()
async def send_and_recv(socket, message_dict):
request = json.dumps(message_dict)
print(f"< {request}")
await... | [
"luciemiliano@gmail.com"
] | luciemiliano@gmail.com |
10c51f8225f08ab0e35b3f35d5b523174e24d081 | 97a166983a805ced8a1fbf71350cd8a34ffcdd64 | /chat_bot_2/bin/tfidfModel.py | 67d13375d95df29abd17e05d201ffd297d0963f0 | [] | no_license | bilha-analytics/es_services | c9f6ac83214fd11070bfc9530f7eb60517aa3490 | e9ed5a3cf643157c0a7521baf5e44cb005db7950 | refs/heads/master | 2022-11-26T06:12:51.806765 | 2020-07-31T13:13:30 | 2020-07-31T13:13:30 | 248,797,784 | 0 | 0 | null | 2022-11-22T04:42:16 | 2020-03-20T16:07:02 | Jupyter Notebook | UTF-8 | Python | false | false | 4,554 | py | '''
author: bg
goal: TF-IDF based classifier
type: ZModel
refactor:
'''
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import nltk
import pickle
import zlogger
import modelz
from dataSet import lemmatizeTokens
'''
Use TF-IDF to represent docum... | [
"32512727+bilha-analytics@users.noreply.github.com"
] | 32512727+bilha-analytics@users.noreply.github.com |
83c3813e61a60ee6c0d0a32caef4867cfe332da8 | 31080a61f371291e3fc5c500540c34a1b2f7c0f4 | /Cat-Mouse.py | c6a5c6aee7c774a7535b45a99250ed59b2668f3a | [] | no_license | smilegupta/OS-Project | b56060db02b307b947245b97536ccbdbb25818ee | 50701327e14b702812b90a94d2741ef792074c48 | refs/heads/master | 2020-05-01T12:21:26.279984 | 2019-04-09T17:27:59 | 2019-04-09T17:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | from threading import Lock, Thread, Event
import random
from time import sleep
lock = Lock()
NumBowls = 5
NumCats = 4
NumMice = 6
Bowls = []
NumBites = 5
for i in range(NumBowls):
Bowls.append(random.randrange(1, 20))
def Cat(lock):
global Bowls
for _ in range(NumBites):
print("Cat sleeping\n")
Event... | [
"noreply@github.com"
] | smilegupta.noreply@github.com |
c40d0a7d72035daa88d35fd970a6ad3a6ebfb645 | 09daac9b79f24f67b6df306a210679b4b4607734 | /Backend/docker_pressure/web/componentapp/skirt/utils/skirtCalc.py | 22e67a442e26784245b98d579a1424ae7b6ee923 | [] | no_license | sanjaysy/components_threejs | ebd575ae2e2038b606a5d420d1545d3bc3020f93 | 0230a5eb3004743dbf856447a2c0e4fe6238b4ad | refs/heads/master | 2020-07-04T03:13:12.422015 | 2019-05-05T07:10:35 | 2019-05-05T07:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,287 | py | import math as m
def skirtCalculation(diameter,thickness,corossionAllowance,stress,reportId):
diameterInside = diameter + 2 * corossionAllowance
radiusInside = 0.5 * diameterInside
thicknessCorroded = thickness - corossionAllowance
diameterOutside = diameter + 2 * thicknessCorroded
radiusOutside ... | [
"070bex432@ioe.edu.np"
] | 070bex432@ioe.edu.np |
5123cbb3e967f205b9a8fe82e3a467da31dd9ff5 | 1508b3e3f56e750e38db4334343beedcbb2f9c95 | /519/client.py | 20c724b5ee583cac67e228e1cc2fa1481b071e6d | [] | no_license | kellyseeme/pythonexample | 3bb325e31c677160c1abd6c3f314f7ef3af55daa | 3eab43cdfa5c59a0f4553de84c9de21e5ded44bb | refs/heads/master | 2021-01-21T13:52:43.076697 | 2016-05-30T06:32:37 | 2016-05-30T06:32:37 | 51,348,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/env python
import socket
import time
import processbar
import time
HOST = '192.168.1.60'
PORT = 9999
def recv_all(socketobj,file_name,file_size):
f = open(file_name,'w')
while file_size > 0:
if file_size <= 1024:
processbar.progressbar(10,10)
data = socketobj.recv(10... | [
"root@python.(none)"
] | root@python.(none) |
64f0c875c6f1cc5cab7fe49fd5b6cd9c71ed9a21 | be36963a026c491f06124a6c204b913d4c58d3d0 | /helpers/fields/__init__.py | 6fdf8ef5e9134b959f7810361e15f147825b2d05 | [] | no_license | xealot/Ti3 | 61ce8938544691d1220131d285027779e1149907 | 8d89190bce9f8e4354e118bf8b9939ce05fc602b | refs/heads/master | 2020-05-30T21:48:46.047629 | 2010-01-30T03:41:31 | 2010-01-30T03:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | class BinaryField(Field):
description = _("Binary content field")
def db_type(self, connection):
return 'longblob'
def to_python(self, value):
if isinstance(value, basestring) or value is None:
return value
return smart_unicode(value)
def get_prep_value(self, value... | [
"George Vilches"
] | George Vilches |
e646e2c648178e5d437100ce70af5b46d5c08a2d | edde0e1ba0120a7a8f18e512b85fa03d755d5d13 | /dbPart/MSSql_SqlHelp11.py | 214e9f30b6cf7bd96375a04e5faa9a51dab6bdbf | [] | no_license | aoguangjin/NEW_alarm | 27d9af2f5b1e5963d6fdb1f98dfb8af77e59e7b5 | 8704ec1284fee1a4191d9b6207d11c723ac8513b | refs/heads/master | 2023-04-30T07:17:45.087845 | 2021-05-15T07:02:41 | 2021-05-15T07:02:41 | 367,563,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,124 | py | # -*- coding: utf-8 -*-
# @Time : 2020/8/4 0004 下午 1:39
# @Author : WuHuiMin
# @File : MSSql_SqlHelp11.py
# @Software: PyCharm
# -*- coding:utf-8 -*-
import pymssql
import time
# # 单例模式
# def singleton(cls):
# _instance = {}
# def wapper(*args, **kwargs):
# if cls not in _instance:
# ... | [
"“826534141@qq.com”"
] | “826534141@qq.com” |
112ad3bd4677bd7fb4660c834fa9c71056782861 | cf6fce13caa6fd16afe15e819317fe70eaf41c16 | /protocol_config_for_fault_event.py | d6aa265b83f6d751c73dd7d7ceb48cbf6d6959cf | [] | no_license | VicWang233/tools_for_S31 | 6e3e233faa1423f8df7db4fca2e08d8a3e75bbab | 5c337d37a9fe71425075c4f779beacfec2c1fb74 | refs/heads/master | 2020-03-21T17:49:31.853877 | 2018-07-16T05:55:38 | 2018-07-16T05:55:38 | 138,856,251 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 15 14:08:16 2018
@author: VicWang
"""
def protocol_analyse(data):
year = int(data[15:19],16)
month = int(data[19:23],16)
day = int(data[23:27],16)
hour = int(data[27:31],16)
minute = int(data[31:35],16)
second = int(data[35:39],16)
... | [
"noreply@github.com"
] | VicWang233.noreply@github.com |
3f6e5f46a10ff09bfb26e2b967e612ac3ac2208f | 81e63bb3a1462b085afd2c363a91fdb6e7b0dcd3 | /d11/p1.py | 6b9a10a3b22e32de1ec2e5d0d1110f6aa19ee519 | [] | no_license | ocarl/aoc2020 | 991dbce1bbd6cda4aaee76c0a6ea9dd8056f726e | 078a6c43b03ca177a1cfcc4df0a53c015cb2163f | refs/heads/master | 2023-01-31T00:50:16.389733 | 2020-12-15T12:27:00 | 2020-12-15T12:27:00 | 318,839,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | test_data = """L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL"""
class Solver:
def __init__(self):
self.old_map = {}
self.new_map = {}
self.occupied_seats = 0
self.max_col = 0
self.max_row = 0
def resolve_s... | [
"carl.onsjo@cantemo.com"
] | carl.onsjo@cantemo.com |
c0e41edc8413d6d8941c5085133ae65cea9f76a3 | 1354d5513062d34d05abcb2ad79e0ec5053c8c1e | /ECOC_TLK/test_2.py | 143925466fac109bb1c498085493838a333c2093 | [] | no_license | lsqlhl5862/ECOC_lsqlhl5862 | d9aa0358cb413b5be6f0978729f26dd429e859fa | fd7719ed89c4144e2cdd1846b89afd50a3a6aedc | refs/heads/master | 2020-03-21T19:28:02.778253 | 2019-06-28T00:44:51 | 2019-06-28T00:44:51 | 138,951,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,147 | py | import numpy as numpy
import CodeMatrix.CodeMatrix
from DataComplexity.datacomplexity import get_data_complexity
from FeatureSelection.FeatureSelector import BSSWSS
import DataLoader as dl
from Classifiers.ECOCClassifier import SimpleECOCClassifier
from Classifiers.BaseClassifier import get_base_clf
import sklearn.metr... | [
"lsqlhl5862@foxmail.com"
] | lsqlhl5862@foxmail.com |
5a8684e4aee28c9d8a04f66bf08b0763bd885b1b | d04f2c6d22ec189cd725cf2e7c882e841cbada67 | /nonlineer-3.py | 5098029431ddac53df11179b3f63fffc6f3d2471 | [
"Unlicense"
] | permissive | nyucel/numerical-methods | e2d0c13b7ae752da4d765bc76a04499ad998da6f | 14824fa3b85b4337b9c95c0b79b2b91a644ac18d | refs/heads/master | 2021-12-15T11:55:12.250619 | 2018-04-17T18:58:21 | 2018-04-17T18:58:21 | 82,589,234 | 52 | 83 | Unlicense | 2023-08-15T22:28:25 | 2017-02-20T18:28:56 | Python | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
def f(x,y):
return(x**2+x*y-10)
def g(x,y):
return(y+3*x*y**2-57)
xi = float(input("x için başlangıç değerini girin: "))
yi = float(input("y için başlangıç değerini girin: "))
print(xi,yi)
| [
"necdetyucel@gmail.com"
] | necdetyucel@gmail.com |
4b14bf5a84641bf378747bc1dbbe42f8c67f44cb | 3a6f6c2919b12d7ec2fac846f8995e77b3c4e982 | /orami_scrapper/items.py | f69ccdd811d77a57838545db8412bf6b8fa37343 | [] | no_license | mragungsetiaji/orami-spider | d598de51454c68b75fb96e71eab5e85e95baba50 | ae86f6a54bacc8339ef9603faee56701c7031c92 | refs/heads/master | 2022-11-28T17:55:43.109281 | 2020-08-07T11:30:09 | 2020-08-07T11:30:09 | 285,809,605 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class OramiScrapperItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"mragungsetiaji@gmail.com"
] | mragungsetiaji@gmail.com |
d2ff87ca2618b834c04db43db8a2e5ee7c3a347a | 8dc16073a62b5ff4f7a9a325efb4491f1608b253 | /blogproject/blogapp/templatetags/blogapp_tags.py | 2ba0a2bc6339c743a721d8a1fc41c4c73f96bf9c | [] | no_license | SushilKumar1994/remote_repository | 5d4d86d11a840eebd7e36ddde19ecc53898e7224 | 8225ee5d200d1c8db6b940600c0e42185a91b178 | refs/heads/master | 2020-05-30T02:22:38.254050 | 2019-05-30T23:00:08 | 2019-05-30T23:00:08 | 189,492,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py |
from blogapp.models import Post
from django.db.models import Count
from django import template
register=template.Library()
@register.simple_tag(name='my_tag')
def total_posts():
return Post.objects.count()
@register.inclusion_tag('latest_posts1234.html')
def show_latest_posts(count):
latest_posts=Post.objec... | [
"sushilkumarshinde888@gmail.com"
] | sushilkumarshinde888@gmail.com |
cc24ef45f8e284ab19923f6d259f261727fc983f | bd3ae78537fbba7eaa25d231df3916fd900a1bdb | /engs/utils/mixin.py | 7901df4c5b5849bcb9fb04b06e4c0cf1c9dcfb97 | [] | no_license | hjchyp/english_study | 909e86669cc1fbd04f93c038087704ded49ba7fd | 3fa347ba074c22134279333b43b9f29f8ab1cb02 | refs/heads/master | 2022-12-30T00:04:42.465182 | 2020-10-09T09:04:21 | 2020-10-09T09:04:21 | 299,316,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.contrib.auth.decorators import login_required
import xlrd
class LoginRequiredMixin:
@classmethod
def as_view(cls,**initkwargs):
# 调用继承的类的login的后面一个类的as_view()
view = super(LoginRequiredMixin, cls).as_view(**initkwargs)
return login_required(view)
def trans_excel_t... | [
"506909950@qq.com"
] | 506909950@qq.com |
ba99b7af317f34d3bcd5cc2184971709d35854ff | 57e4e8ff1db386b0f94152f210abae8fbe3b4ad8 | /ex3/lrCostFunction.py | ebfe01545c49bf15b92b8cca2bcf61325427b279 | [] | no_license | jo1jun/Machine-Learning-Python | 4938a88e4a1d50ecd684c475b7082baf6e04b1df | 391361da6d0e31166c869432f9084463af968d4d | refs/heads/main | 2023-03-04T22:06:12.414124 | 2021-02-19T10:26:47 | 2021-02-19T10:26:47 | 332,097,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | import numpy as np
from sigmoid import sigmoid
def lrCostFunction(theta, X, y, _lambda):
#LRCOSTFUNCTION Compute cost and gradient for logistic regression with
#regularization
# J = LRCOSTFUNCTION(theta, X, y, lambda) computes the cost of using
# theta as the parameter for regularized logistic reg... | [
"andrew6072@naver.com"
] | andrew6072@naver.com |
1356e86996b557a0fb21231df0e57fbd65351d5c | f99cca94f74c69bc518e298c14140534e18eabd3 | /OrcApi/Run/Test/TestServiceRun.py | 9c2a51fb2de8a7362bf3f8d3d40beca6dcf424bc | [] | no_license | pubselenium/OrcTestToolsKit | d6d838d9937d2c4d86941e317cb3ff096b58e52d | f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb | refs/heads/master | 2021-04-29T05:15:53.240714 | 2016-12-30T09:42:53 | 2016-12-30T09:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import unittest
from OrcLib.LibTest import OrcTest
from OrcApi.Run.RunDefMod import RunCore
class TestService(unittest.TestCase):
def test_get_case_list(self):
"""
Get page usl
:return:
"""
OrcTest.test_print_begin()
_service = RunCore()
_service.search_l... | [
"orange21cn@126.com"
] | orange21cn@126.com |
36bd2f0b48f2dfaa592918a2a90501ea78071085 | e96e4cc4dc26fb454326ca961639d387b611864f | /hw_5/features/steps/hw_5_1.py | 1a3f1cc11e533b71aa206b973af1accd62749706 | [] | no_license | arinablake/python-selenium-automation | 8be156a41234d6645a014e5566ab09972eb6062c | f53134d4f4baf948788fd089041c9f58ee64a433 | refs/heads/master | 2020-12-14T04:31:00.094680 | 2020-03-05T18:01:30 | 2020-03-05T18:01:30 | 234,640,824 | 0 | 0 | null | 2020-01-17T21:36:34 | 2020-01-17T21:36:34 | null | UTF-8 | Python | false | false | 2,947 | py | from selenium.webdriver.common.by import By
from behave import given, when, then
from time import sleep
COLOR_BUTTON_LOCATOR = (By.CSS_SELECTOR, '#variation_color_name ul[role="radiogroup"] li')
COLOR_TITLE_LOCATOR = (By.CSS_SELECTOR, '#variation_color_name .selection')
ADD_TO_CART_BUTTON = (By.CSS_SELECTOR, '#add-to-... | [
"arinafilippova@gmail.com"
] | arinafilippova@gmail.com |
5686282c8518d81b83ce07de6bebb468595989bf | 9c9a953a424f0e0f654d348bd7005a053ca91494 | /cibin_folder/__init__.py | 1eb2e19f4cb9cf041c29beecdeec79bbd1971756 | [
"BSD-3-Clause"
] | permissive | UCB-stat-159-s21/homework-8-group-7-1 | 067f552dc89861796d21eb3197b024ae73f452d2 | 30be891097d576056483c6e43cc0ba15d4f765ca | refs/heads/main | 2023-04-20T11:24:17.865670 | 2021-05-15T04:03:42 | 2021-05-15T04:03:42 | 364,024,543 | 0 | 0 | BSD-3-Clause | 2021-05-15T03:41:36 | 2021-05-03T18:30:35 | Jupyter Notebook | UTF-8 | Python | false | false | 71 | py | """
The cibin package.
"""
__version__ = "0.0.1"
from .cibin import * | [
"jacquelinekyu@berkeley.edu"
] | jacquelinekyu@berkeley.edu |
484b113b70a46875ac2ef97e1ad7ca32899f291d | 4b763dd09dbfe6e91bfae798e1d2461d2bda14e1 | /4.py | 46bcb796aec6ae94aebbd51199491cd4882e652e | [] | no_license | yuliiadurytska/YuliiaDurytska_lab_1 | 83bf338f3d1acb03026a509b61288819502c28ad | 918335a7e0f45188aabe3f41cc4aff50275d68eb | refs/heads/master | 2020-08-30T03:12:04.338464 | 2019-10-29T09:04:36 | 2019-10-29T09:04:36 | 218,245,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | n = int(input())
afp = 0
bfn = 1
i = 1
fib = 1
while i < n:
fib = afp + bfn
afp = bfn
bfn = fib
i += 1
print(fib)
| [
"noreply@github.com"
] | yuliiadurytska.noreply@github.com |
81f1a8f519adb6496f79b7269612e4c667991667 | 0d10f17375b5c3dbcc074f52d585934e60b47ba3 | /practice/urls.py | d2373f4da97284b6d8a4a58c32b12252f639547c | [] | no_license | uk960214/drf-tutorial | 181293809f7b5953298709ccb37d253febaf960e | a62a0b9b9174ed8bd8a0323cf5bc769d66b9ef4a | refs/heads/master | 2023-07-15T04:43:36.996789 | 2021-09-01T09:35:55 | 2021-09-01T09:35:55 | 401,336,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """practice URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-base... | [
"uk960214@gmail.com"
] | uk960214@gmail.com |
3313864acba61b42751b05e32ea6f94bb50c4c20 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Default/FPythonCode/ColumnDefinitionUtils.py | d2f8e37da770a652927cd264b31a059f22ee2a8e | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py |
def GetPairOffParentReference(settlement):
pairOffReference = None
if settlement.PairOffParent():
pairOffReference = settlement.PairOffParent()
if not pairOffReference:
for child in settlement.Children():
pairOffReference = GetPairOffParentReference(child)
if pairOff... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
34e4a99b14ae48e26d104164113de545d25b6506 | 286bbf17db63fe00aa9b2190e905eef7f07d9ef2 | /room-broker/modules/accommodations/views.py | c673d59dfbd779e463d4b3346e8ea62b7dd962a6 | [] | no_license | muggin/agh-coursework | 7a4766ca7c966c724a540354f31f94c43e2d005b | 7a452d4bf73bbc0daa4404fde64f9dc734899f31 | refs/heads/master | 2021-07-20T19:31:20.340059 | 2017-10-25T21:55:25 | 2017-10-25T21:55:25 | 106,218,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | from modules.accommodations.models import Listing, Accommodation
from modules.accommodations.forms import ListingForm
from django.views import generic
from django.core.urlresolvers import reverse_lazy
# Create your views here.
class ListingListView(generic.ListView):
template_name = 'accommodations/listing/listi... | [
"wkryscinski@gmail.com"
] | wkryscinski@gmail.com |
3c178f37329ef5c7f34398c8b5eeb12600ec0d07 | 650ea4db9fd12d027fda55d6709d99b3c6cee34c | /src/profiles/views.py | 4842dbbaf4e57fdcf8861047822dc82993e91cbe | [
"MIT"
] | permissive | hellojerry/pizzatime | 62b6532cb7e8750f979dd1c476a6d4df24ec3415 | 1ddb4667c30b97d1ca832420ba53723c1aa787f1 | refs/heads/master | 2016-09-06T17:20:57.454619 | 2015-09-03T03:35:01 | 2015-09-03T03:35:01 | 32,660,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,765 | py | from django.shortcuts import render, HttpResponseRedirect, render_to_response, Http404
from .forms import LoginForm, RegisterForm, ZipInput
from django.core.urlresolvers import reverse
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import get_user_model, authenticate, login, logout
fr... | [
"mjperrigue@gmail.com"
] | mjperrigue@gmail.com |
7b07591706d38cb627db7c6a5305f050aa10f470 | c1b4665ea7a829a235f40487d4d006b217add036 | /Scraping/mlbmlscraping.py | f3585ff4913f7e70df7d1db1c8264857b3651311 | [] | no_license | wjbasham/DataScraping | 66f2cc252ccb5d2ecee01d4a9a14e0d057805536 | 4e1f438ecd34a000225a20dd8f596515b01bde76 | refs/heads/master | 2020-03-30T20:42:01.438971 | 2018-10-04T16:13:36 | 2018-10-04T16:13:36 | 151,600,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,979 | py | from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
import requests
import time
import decimal
#page = requests.get("http://sportsmodelanalytics.com/member/index.php?page=cbbbacktest",auth = ("sigepalbeta... | [
"noreply@github.com"
] | wjbasham.noreply@github.com |
b91db21598cd101dca5cdde6a52cc37e18e298f6 | 278f3ea30037a10bf536d004d08e82d7892f665e | /games/migrations/0004_auto_20200211_1849.py | 77fe8520ab45247cbb7d4f33e7db901c3c9cd09b | [] | no_license | PKaija/WebSoftwareDevelopment-project | 63505f145b46e600636fccec901df16311961b77 | 05fb35f659516af3783d7cd22182f1fdf05d9a2d | refs/heads/master | 2021-09-27T18:19:25.147236 | 2020-08-11T23:25:20 | 2020-08-11T23:25:20 | 243,916,310 | 0 | 0 | null | 2021-09-22T19:33:36 | 2020-02-29T06:21:31 | Python | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.0.3 on 2020-02-11 18:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0003_auto_20200207_1534'),
]
operations = [
migrations.AlterField(
model_name='game',
name='price',
... | [
"aleksi.hamalainen5@gmail.com"
] | aleksi.hamalainen5@gmail.com |
1ad0170d04bbb39c701cdfaf7bd3851389d77a8f | 149a3d107891201582653d00cce23678bea91c59 | /tipagem.py | 619b4d71a6997a7fd87f130c2b30cb39bd03b529 | [] | no_license | LondonComputadores/dio_es6_essentials_recap_jul19 | 8dfd25c8e2bcf1efed4f1f7f8b26481e82eefdde | c440161cae8c2e919f5bd9912110bbd8e1d920c5 | refs/heads/master | 2020-06-19T16:22:34.391088 | 2019-07-16T00:38:06 | 2019-07-16T00:38:06 | 196,781,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | meuNumero = 20
meuTexto = "String"
# Error is on purpose just for comparison
print(meuNumero + " " + meuTexto) | [
"london.computadores@gmail.com"
] | london.computadores@gmail.com |
9f50cf850b73731356cc28a8107e68eac7871f7b | 859fd236efeca79aa2fca13b28343fd20f805cdc | /bot_builder/clicker.py | 886e7ba827056973e005f1b15b4fed44cd0706bf | [] | no_license | BradBostos/bot_builder | b2eccc0fcdb730922e8a58d2cd486d7d85fa40bf | 640496fd7721d7477b1336c14294b6c636445462 | refs/heads/master | 2023-03-02T16:42:56.440921 | 2021-02-07T06:52:30 | 2021-02-07T06:52:30 | 336,465,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import pyautogui
import random
import time
class clicker:
move_time = 0;
hover_time = 0;
delay = None;
def __init__(self, move_time=.15, hover_time=.05):
self.move_time = move_time;
self.hover_time = hover_time;
def left_click(self, position):
pyautogui.moveTo(position[0], position[1], duration=self.move_... | [
"aakerley@tamu.edu"
] | aakerley@tamu.edu |
f5b2f41977280c6920d18c3736071647b38f0786 | 59478c1c4146a49efbf3af2e86e0c6c76a7b6f47 | /section5_Functions/FunctionsProblems.py | 8ed97b6c3db9d041075cab27ea4474e34ad43788 | [] | no_license | CRUZEAAKASH/PyCharmProjects | ac7c0cc49a0be07d25723401609dc09692908e68 | 4037ce9022d1fa76f4e6b906c34718942b3bc01c | refs/heads/master | 2020-06-06T15:22:13.442484 | 2019-07-19T04:09:23 | 2019-07-19T04:09:23 | 192,776,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | """
Single parameter and zero parameter functions:
1.define a function that takes no parameters and prints a string
2.create a variable and assign it the value 5
3.create a function that takes a single parameter and prints it
4.call the function you created in step 1
5.call the function you created in step 3 with the v... | [
"aakash.shinghal@gmail.com"
] | aakash.shinghal@gmail.com |
1b9122c81b67e0214fad9d1f5631aa5dd78b47df | 1111e7d62d2da7fd854a74d17baa1039e9ad5b02 | /test_log.py | 61da820dce61dba8e2f4c24418a58531783b9fe6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | forqlift/logstash-forwarder | 74874f699b85190e7f47a1499b82df7373448a59 | 52ac8f94f26d6fcfcc8d33a9963bfa9092e03214 | refs/heads/master | 2020-12-02T21:17:33.336982 | 2015-12-22T15:54:56 | 2015-12-22T15:54:56 | 48,438,766 | 0 | 0 | null | 2015-12-22T15:16:31 | 2015-12-22T15:16:31 | null | UTF-8 | Python | false | false | 285 | py | #!/usr/bin/env python
import random, time, string, logging
logging.basicConfig(filename='example.log',level=logging.DEBUG)
while True:
logging.debug(''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(20)))
print "logged a thing"
time.sleep(30)
| [
"erik@erik-j.de"
] | erik@erik-j.de |
97bb42e8d78adde4a79a1104ce4e271dac613382 | 58208fbf707f8810eb1e06e709a66e11a4abf2f5 | /testSuite/scripts/test_blobfs_download_oauth.py | 02890508cb0931925fda929606fde739e6b9dd28 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | seguler/azure-storage-azcopy | 26791ece0416ba026cfffb29a10574b190e3d086 | e8e477af3166b47d1a69d5cea5ac5d78031dd5f3 | refs/heads/master | 2020-03-26T09:37:04.347786 | 2018-08-24T17:41:05 | 2018-08-24T17:41:05 | 144,755,304 | 0 | 0 | MIT | 2018-08-14T18:04:14 | 2018-08-14T18:04:14 | null | UTF-8 | Python | false | false | 7,766 | py | import os
import shutil
import sys
import unittest
import utility as util
class BlobFs_Download_OAuth_User_Scenarios(unittest.TestCase):
def util_test_blobfs_download_1Kb_file(
self,
explictFromTo=False,
forceOAuthLogin=False,
tenantID="",
aadEndpoint=""):
# create ... | [
"noreply@github.com"
] | seguler.noreply@github.com |
be066d8f372931859a7afd4e953e9592c6ea86b0 | efcd7e1733edb46f6f1c18e407278442df220a86 | /src/lib/log.py | 84b71801e79e7bbd5a2148486a9587fa4b7fdb86 | [] | no_license | ghostFaceKillah/mini-self-driving-car | 65ea1a1a8f271ad21c07c2009e8564dd86ac605c | 036756c3d624dee618abff7314c16010c9abf576 | refs/heads/master | 2023-06-07T23:07:48.077143 | 2023-06-02T05:03:51 | 2023-06-02T05:03:51 | 93,997,736 | 3 | 2 | null | 2017-12-11T22:52:32 | 2017-06-11T10:40:02 | Python | UTF-8 | Python | false | false | 249 | py | import logging
class FakeLogger():
def __init__(self, name):
self.name = name
def info(self, msg):
print("[{}] {}".format(self.name, msg))
def get(name):
# return logging.getLogger(name)
return FakeLogger(name)
| [
"garmulewicz@gmail.com"
] | garmulewicz@gmail.com |
4b3988d350c06b607d099ffa0003866fd9cc807d | 152fe8cfd16ac52679a3e9d4ab3dc143675d00e0 | /入门训练/cricle_area.py | f29c33ea663d2d3b2206f0cfc091f3b3031fb07d | [] | no_license | YunlongGuo-number1/blue_brige_python | 2b974bd12d531cd464786d3b6d5362caa45d0818 | bebb2509df272b2d990633d0f19bdc247739d579 | refs/heads/master | 2020-12-03T16:16:10.536021 | 2020-01-04T13:46:09 | 2020-01-04T13:46:09 | 231,386,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import math
r = input()
rr = float(r)
if rr >=1 and rr <= 10000:
area = math.pi * float(r) ** 2
print("%.7f" % (area)) | [
"noreply@github.com"
] | YunlongGuo-number1.noreply@github.com |
5ba8f08939059715674ca539378922c83f489707 | 1ebc239545e1e67fc54ee0deb100074317dce95a | /python/qa_doa_music_vcvf.py | 295806140f5a7d336f27ab96fef686b9ef89bc0e | [] | no_license | WiLab/gr-wifius | 106bda336eed055e0424c5434bc27c072db4cce4 | 2655c66b184d5b287579a4f74f972767aa0c8539 | refs/heads/master | 2021-01-18T21:18:01.216059 | 2016-06-09T01:02:48 | 2016-06-09T01:02:48 | 48,137,063 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#... | [
"travisfcollins@gmail.com"
] | travisfcollins@gmail.com |
9e7fc605ff37e03c5546c6768585c9d4449dc36e | bc1316b2db10099fa7ec701a33e3697188d2c509 | /stylussupremacy.py | 546e8eadbb19fec59561b404d7949b17683e851b | [
"MIT"
] | permissive | aktanoff/sublime-stylus-supremacy | 24c955f97a735d3393e2b4c95310b6125d071ed4 | ad9ffaedec64ceb2763207865d7eca20f18b1519 | refs/heads/master | 2023-03-17T23:03:39.009824 | 2020-02-03T13:01:28 | 2020-02-03T13:01:28 | 199,328,104 | 2 | 0 | MIT | 2023-03-03T05:46:32 | 2019-07-28T19:22:23 | Python | UTF-8 | Python | false | false | 3,759 | py | import sublime
import sublime_plugin
import json
from os.path import dirname, realpath, join, splitext, basename
try:
# Python 2
from node_bridge import node_bridge
except:
from .node_bridge import node_bridge
def get_setting(view, key):
settings = view.settings().get('Stylus Supremacy')
if settings is None:
s... | [
"aktanoff@gmail.com"
] | aktanoff@gmail.com |
0da214ab4195098228be3d27bdd5023c72c5940a | b9de33c6fb310ef69cba728b9de1a31165c3a031 | /chapter_32/class-gotchas-super-multiple-inheritance.py | e2a2df1637b44a0d8209f30663b0da3f7c77b3d2 | [] | no_license | bimri/learning-python | 2fc8c0be304d360b35020a0dfc16779f78fb6848 | 5f2fcc9a08f14e1d848530f84ce3b523d1f72aad | refs/heads/master | 2023-08-12T20:30:09.754468 | 2021-10-15T20:53:49 | 2021-10-15T20:53:49 | 377,515,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | "Multiple Inheritance: Order Matters"
# Python always searches superclasses from left to right, according to their order in the header line.
# class ListTree:
# def __str__(self): ...
# class Super:
# def __str__(self): ...
# class Sub(ListTree, Super): # Get List... | [
"bimri@outlook.com"
] | bimri@outlook.com |
32be467cb4bd0d2e894f5ae2213c4dd86c96ea9a | 1b35a8f66c4a8a5095bddb4df6aed813e320e83a | /exercises/ex01/relational_operators.py | 8cc4aedd1e10e43bce1916836536d2658bc5c254 | [] | no_license | oliviamthomas/comp110-21f-workspace | 8689f15a50a3195bd9dae44c9151096646860524 | 8d597ce7bf9ba816672917011cfbf76984764e4b | refs/heads/main | 2023-08-24T21:00:41.944723 | 2021-10-28T00:11:39 | 2021-10-28T00:11:39 | 409,053,287 | 0 | 0 | null | 2021-09-22T03:34:17 | 2021-09-22T03:34:17 | null | UTF-8 | Python | false | false | 568 | py | """A program about True and False!"""
__author__ = "730225468"
left: int = int(input("Left-hand side: "))
right: int = int(input("Right-hand side: "))
first_answer: bool = left < right
second_answer: bool = left >= right
third_answer: bool = left == right
fourth_answer: bool = left != right
print(str(left) + " < " ... | [
"othomas1@live.unc.edu"
] | othomas1@live.unc.edu |
9bcf4a26f4895a7e5cfdc5bd80609d2399771c32 | 5a07eb27de47f21caa786d87be57ae522ae8fdf2 | /src/constants.py | 91029f03fd22489d393ff194714fcd20c792864c | [
"MIT"
] | permissive | jonathanlimsc/arxiv-scout | 08780d317089105a06b370c0e7c82124862ab43c | e1191cded13289829ee543ff08df85e5e4b07677 | refs/heads/master | 2023-04-11T04:02:04.396817 | 2023-02-01T18:07:47 | 2023-02-01T18:07:47 | 595,349,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # Arxiv categories: refer to https://arxiv.org/category_taxonomy
ARXIV_CATEGORIES = ["cat:cs.AI", "cat:cs.CV", "cat:cs.LG", "cat:cs.MA", "cat:cs.NE", "cat:cs.RO", "cat:cs.SD"]
| [
"jonathan.lim@u.nus.edu"
] | jonathan.lim@u.nus.edu |
b6dd3374d6097d4218abaa06822e25399398f429 | df1374c905bb6d856a663d5a4fe4717cb32f56e7 | /roundrobin1.py | 2a81c5dcc868fea29cc79ecf350c6f1ef56119b5 | [] | no_license | sumeetsachdev/Round-Robin-Python | 46d435937e34097483af1624c6d32f32e2c92fec | 4457df3923c84e3a8743e3721f6c59b1ccc12f9d | refs/heads/master | 2020-05-09T13:30:37.585350 | 2019-04-13T10:29:06 | 2019-04-13T10:29:06 | 181,154,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | import queue
class rr: #Using Class as a C-like structure
def __init__(self,pid,at,bt):
self.pid = pid
self.at = at
self.bt = bt
self.av = bt
self.ct, self.wt, self.tat,self.st = int(), int(), int(), False
def __str__(self):
... | [
"noreply@github.com"
] | sumeetsachdev.noreply@github.com |
7d90d71d2ab78c221dda5c7e62caf0c83fcccb3c | 97c6cb9191376a22c03409a945308ce6690bf9ee | /DPL_1_B_numpy.py | 286fb53fc17830136d3b3b0649c7c5bfacbcaee9 | [] | no_license | konamilk/aoj-problems | 00b510efee5c196a755fb4f85ffb5b66f06de800 | bd5de3174b905817ce461173650ff0a31cde7e2a | refs/heads/main | 2023-02-20T01:58:51.690224 | 2021-01-18T06:58:01 | 2021-01-18T06:58:01 | 330,557,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import numpy as np
N, W = map(int, input().split())
v = []
w = []
W_max = 12000
dp = np.zeros((N+1, W_max), dtype=int)
for i in range(N):
vi, wi = map(int, input().split())
v.append(vi)
w.append(wi)
for i in range(N+1):
if i == 0:
continue
for j in range(W_max):
if j < w[i-1]:... | [
"pinana@PinanaMacBook-Air.local"
] | pinana@PinanaMacBook-Air.local |
60ccaeb4bfe5d2f5eae263bf007f49f96f6d1391 | e4997519b00b180fedd935950c7bf2c27947f38e | /lutrivia/node_modules/chokidar/node_modules/fsevents/build/config.gypi | 735372265cbf7b9a36b5c6c259e9c8ebea79ab18 | [
"MIT"
] | permissive | DannyBrito/lutrivia-react-nyc-clarke-web-100719 | fefc85f71ba1985a27bc9d651171968f13a9afd5 | bb95e5f6b166e3eed2afd517f426a6570cb869b2 | refs/heads/master | 2020-11-24T17:01:04.801252 | 2019-12-15T23:27:56 | 2019-12-15T23:27:56 | 228,260,400 | 0 | 0 | null | 2019-12-15T22:11:21 | 2019-12-15T22:11:20 | null | UTF-8 | Python | false | false | 6,205 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"britodanny1997@gmail.com"
] | britodanny1997@gmail.com |
4f7d9e2c17b601aaa0a2a0c3417e9963182cc6cf | 9b1e97850f55d839c1c6f7d93187af90bf9120a5 | /0x0F-python-object_relational_mapping/model_state.py | ee5227fff95d5feb70eb50c3b7eeefad7a80192e | [] | no_license | PilarPinto/holbertonschool-higher_level_programming | 543271fb7f85a23745f54ac44e2fd1ef0ff452ce | 8be531a14a280235c2a9cee7f072d88cea8b9921 | refs/heads/master | 2020-09-29T00:19:01.460334 | 2020-05-15T01:58:51 | 2020-05-15T01:58:51 | 226,900,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/python3
'''Using sqlalchemy for State definition'''
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class State(Base):
__tablename__ = 'states'
id = Column(Integer, unique=True, nullable=False, primary_key=True)
n... | [
"piapintoch@unal.edu.co"
] | piapintoch@unal.edu.co |
d5d2fe9309c9b2a0e0d6934bda26f9cbf2f8d339 | cb2d63655bcf6fe5f1e7f7c42b820e20ded94b24 | /AlgorithmAnalyzer/Backend/scripts/populate_tags.py | 0aac090a7f02faac31bb3d4f73344521b39a64fa | [
"MIT"
] | permissive | MikolajBalcerek/GlosBio | 48e983520025d06507445c806e2a053f9aebfc36 | af0877e8c2544fb89a6988ef88a187c029bbc786 | refs/heads/master | 2023-01-10T20:02:59.591974 | 2019-01-23T10:23:19 | 2019-01-23T10:23:19 | 129,874,648 | 5 | 3 | MIT | 2023-01-03T15:54:37 | 2018-04-17T08:48:50 | Python | UTF-8 | Python | false | false | 350 | py | import os
os.sys.path.append('..')
from main import app
app.config.from_object('config.DevelopmentConfig')
sm = app.config['SAMPLE_MANAGER']
tags = {
"age": ["< 20", "20 - 40", "40 - 60", "> 60"],
"gender": ["male", "female"]
}
print("populate logs...")
for tag_name in tags:
sm.add_tag(tag_name, ta... | [
"noreply@github.com"
] | MikolajBalcerek.noreply@github.com |
db5b78150bfe23477d3e869464c6e37c5a96b014 | bf1ee7e79e62c7e749cd49ac34bf3d947e12ed56 | /dynetlsm/lpcm.py | ca6b8a0fd8ebdd14375c8839d85b412accc8120d | [
"MIT"
] | permissive | joshloyal/dynetlsm | 20725dbe3f801c9cd7cb64122b55fce9d51593db | 85c58b8fe576bcd257e59c08a91b75a02a107cb9 | refs/heads/master | 2023-04-09T08:20:24.833702 | 2022-11-17T17:08:23 | 2022-11-17T17:08:23 | 254,146,758 | 15 | 3 | MIT | 2022-02-05T21:15:57 | 2020-04-08T16:48:33 | Python | UTF-8 | Python | false | false | 35,030 | py | import numpy as np
import scipy.stats as stats
import itertools
from math import ceil
from scipy.optimize import minimize
from scipy.special import expit
from sklearn.utils import check_random_state, check_array
from tqdm import tqdm
from .array_utils import (
triu_indices_from_3d, diag_indices_from_3d, nondiag_... | [
"jloyal25@gmail.com"
] | jloyal25@gmail.com |
f659384c2299bf395d75768c4a07808ecfe8de91 | 616734aa17b0743b5500074b3e31de153a6f4eee | /webdb/wsgi.py | d416a06facf37b6db1732157f17356aee0179201 | [] | no_license | spetangle/webdbHome | acdc42a47a89652bb1be2236d9efb427481a691b | 70c8363f6fd28d91914938cd12362cd887b63589 | refs/heads/master | 2021-01-01T18:24:25.643181 | 2017-07-26T04:15:28 | 2017-07-26T04:15:28 | 98,328,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for webdb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"24887554+spetangle@users.noreply.github.com"
] | 24887554+spetangle@users.noreply.github.com |
755d12594abd8d952555e10f4fc5719f9d910738 | 8178121c2342b0baf60e2b0b17fc0303d14f1aa0 | /docs/docs/tic-tac-toe.py | 7b398dd2f0bd205a85e03efc1cc61835ee19f04b | [] | no_license | LEMSantos/LEMSantos.github.io | ba441fc9a3c5fc378a04b7f889c73ba33c430b84 | e89438dd55812d19d68309c9d2986508a38ff7a2 | refs/heads/master | 2023-08-07T17:02:56.811200 | 2023-06-19T01:19:12 | 2023-06-19T01:19:12 | 175,956,463 | 0 | 0 | null | 2023-07-20T11:38:41 | 2019-03-16T10:15:20 | JavaScript | UTF-8 | Python | false | false | 2,523 | py | from random import randint
def is_win(board, player):
# Verificando as Linhas do Tabuleiro
if board[0][0] == player and board[0][1] == player and board[0][2] == player:
return True
if board[1][0] == player and board[1][1] == player and board[1][2] == player:
return True
if board[2][0] ... | [
"lu.casmou.ra177833@gmail.com"
] | lu.casmou.ra177833@gmail.com |
1a7e8fc0d4c54d2afcb5cebbc52d6fda2888386d | f5ffd566166948c4202eb1e66bef44cf55a70033 | /openapi_client/model/user_acl_no_id.py | 12e3eb161421688aa7f70cd8bf579034b5b627b9 | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,227 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
a767d0c2efde2f2a3d20faaafaa71788db2e799b | 8246084af154c76130bbac97af67869448ede9ca | /Day15/Sources/Day15_6.py | 5f404960c009b0dfbf9c1f82cf3302ba6a0db74d | [] | no_license | Hamsik2rang/Python_Study | db1f905bde44ca707aa0c6a61f1889394162c552 | 431993d5d92741798e8fd3e69a347ff1c7b445d1 | refs/heads/main | 2023-03-18T23:45:19.235108 | 2021-03-04T14:39:32 | 2021-03-04T14:39:32 | 328,138,999 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # pack(), grid(), place() in Tkinter
from tkinter import *
from typing import Collection
def calculate():
miles = float(entry_miles.get())
km = str(miles * 1.609).split(".")[0]
label_calculated.config(text=km)
window = Tk()
window.title("Miles to Kilometer Converter")
window.config(padx=20, pady=20)
en... | [
"lvhi7121@gmail.com"
] | lvhi7121@gmail.com |
313570f597eb15ae6444830bf79aed976b250e96 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_video/mmaction2/mmaction/models/localizers/ssn.py | 3136d651f6d76f4be04410605d7dcf7a2d0a34a4 | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 5,160 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from .. import builder
from ..builder import LOCALIZERS
from .base import BaseTAGClassifier
@LOCALIZERS.register_module()
class SSN(BaseTAGClassifier):
"""Temporal Action Detection with Structured Segment Networks.
Args:
... | [
"caixiaochen@4ParadigmdeMacBook-Pro.local"
] | caixiaochen@4ParadigmdeMacBook-Pro.local |
32088030c8e368fb392ed3eae6d617887fb6451c | e6adb99b67e15cd05963200ef461ad97f1815ca0 | /django-polls/mysite/polls/admin.py | d80639e5f0b7f2a207b4dac9715513eabc91a11a | [] | no_license | hsuna/code-test | 71ce7b3017304419f0e2268cd29d7a94c45a107a | 016744dfd5e6f168ea89ae88723fb930127fd05e | refs/heads/master | 2023-01-22T09:33:20.145601 | 2021-12-26T05:04:42 | 2021-12-26T05:04:42 | 153,776,567 | 0 | 0 | null | 2023-01-07T17:05:41 | 2018-10-19T12:04:23 | Vue | UTF-8 | Python | false | false | 575 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin. ModelAdmin):
fieldsets = [
( None, { 'fields': ['question_text'] } ),
('Date information', { 'fie... | [
"me@hsuna.com"
] | me@hsuna.com |
e4ffe97206d57c9b36fc53a94bc42645206d1a38 | ecbe1c980c9fe9ff3590eaa94d2867d9a657d2f8 | /tests/test_user.py | fa8154598c68a3ea508c7db228b54cc89ae197e7 | [
"MIT"
] | permissive | dicks6n/blog | 7eaf6f45aae0c5662f966e387964b1c41d672370 | 90070f6a2671399b0923621134d69da1da52267c | refs/heads/master | 2022-10-10T02:55:41.519208 | 2019-08-13T05:46:28 | 2019-08-13T05:46:28 | 201,629,817 | 1 | 1 | MIT | 2022-09-16T18:07:36 | 2019-08-10T12:51:27 | Python | UTF-8 | Python | false | false | 490 | py | import unittest
from app.models import User
class UserModelTest(unittest.TestCase):
def setUp(self):
self.new_user = User(password = 'banana')
def test_password_setter(self):
self.assertTrue(self.new_user.password_hash is not None)
def test_no_access_password(self):
with self.asse... | [
"dikkymccria@gmail.com"
] | dikkymccria@gmail.com |
3bd2abdaa826263d893d3959e57a33e4f8a5e34c | d412f484fb64d59d458fed85d3ff14a7bd893267 | /WISDEM/openmdao-0.13.0/bin/easy_install | 66454922881e6c18b207f13532d7084945b5fbdb | [] | no_license | SenneDeproost/MICO_Bachelor-version | 5fd7199598771a1c551c2b2e6359d97fb2642ab1 | 0440a720d08c9c9d94fbd982cb15948283485cfb | refs/heads/master | 2021-03-19T18:59:45.443034 | 2018-05-23T01:45:03 | 2018-05-23T01:45:03 | 118,465,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | #!/home/senne/Projects/MICO/WISDEM/openmdao-0.13.0/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.9.5','console_scripts','easy_install'
__requires__ = 'setuptools==0.9.5'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==0.9.5',... | [
"sennedeproost@hotmail.com"
] | sennedeproost@hotmail.com | |
22dd5a587fa25c8c7c9f82e61bd904ff81c84664 | b82be6beb83145cdb5a5d677a8fd4b4be51b5199 | /prototype/tt.py | 2ea91a6b3d42a03f4b1100bad79e1ae0a3bd1ac8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cole-brown/tgrep | 56811c7e95b9a7f659c7e1e9a63ba0cb5d3e650f | df891168b032b0e0fee6c4073649bb6c2fb4ed95 | refs/heads/master | 2021-05-27T03:57:42.974892 | 2011-05-05T03:05:22 | 2011-05-05T03:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/env python2.6
#
from datetime import datetime
if __name__ == '__main__':
d = datetime.strptime("Feb 9 14:34:43" + str(datetime.now().year), "%b %d %H:%M:%S%Y")
print d.tzname()
print d.isoformat()
| [
"git@spydez.com"
] | git@spydez.com |
221e454ca00a6b9196846707dfb393cf2e49f8cc | a145c4deb56d3e68a8aa0d455baea05c381cb892 | /src/parser.py | 982f7a5ebfa14cd5a972d8c37249ec129b554612 | [] | no_license | henrysdev/RobustWebCrawler | b6cd91d6c5294345af90cad80c8539e6fd4a3e29 | c4e2b6b7f0f74a756a03ff6e5c7dec9bd55288d2 | refs/heads/master | 2021-03-31T00:04:39.224221 | 2018-08-07T03:42:09 | 2018-08-07T03:42:09 | 124,583,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | # Henry Warren 2018
# hwarren@smu.edu
from bs4 import BeautifulSoup
import indexer
from tokenizer import Tokenizer
class Parser():
def __init__(self, master, urlfilter, pagearchive, indexer, stopWords):
self.master = master
self.urlfilter = urlfilter
self.pagearchive = pagearchive
... | [
"henrysdev@gmail.com"
] | henrysdev@gmail.com |
0e0326112f2a5f730d9e71ca2ad3353add97c1d3 | 66aff2c5332570da2b2cdf473ff746d96ac0beb0 | /ia_mri_tools/logging.py | 5be6b60e01c0dd4233455e7c987111f8c2d98bd2 | [
"BSD-3-Clause"
] | permissive | snydek1/ia_mri_tools | 5bc6057841edcf2107e38570d66b86dee64d7f50 | 525bdcc7f4c03e26d3114abf7da4932685b1e2e0 | refs/heads/master | 2021-04-06T14:18:04.535381 | 2018-12-19T18:07:53 | 2018-12-19T18:10:23 | 123,355,239 | 0 | 0 | BSD-3-Clause | 2018-02-28T23:49:06 | 2018-02-28T23:31:22 | Jupyter Notebook | UTF-8 | Python | false | false | 398 | py | import logging
logger = logging.getLogger(__name__)
# To show debug messages, uncomment this
# from outside the module, import the logger object and use something like this
# logger.setLevel(logging.DEBUG)
# add a console handler
ch = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %... | [
"noreply@github.com"
] | snydek1.noreply@github.com |
0db3d24e06b3e0f968896aabc2217e8392b289b4 | 1081372e9a704f39c6252e01c655aa91a611a6b6 | /build_protoci.py | 29df28646724ffa9c66719d76d32a9da8e37f48f | [
"BSD-3-Clause"
] | permissive | ContinuumIO/ProtoCI | c26af48deea15253e635bbb219c2185c0ebec63d | 59159bc2c9f991fbfa5e398b6bb066d7417583ec | refs/heads/master | 2023-08-24T17:10:47.198635 | 2016-04-07T16:12:02 | 2016-04-07T16:12:02 | 47,582,737 | 8 | 7 | null | 2016-04-07T16:12:03 | 2015-12-07T22:17:30 | Python | UTF-8 | Python | false | false | 3,332 | py | from __future__ import print_function
"""
build_protoci.py creates conda packages of
protoci for all operating systems and python versions.
Usage:
anaconda login
python build_protoci.py path anaconda_user
where:
conda build . is run at path
and
anaconda_user is the upload user
"""
import os
import shuti... | [
"psteinberg@continuum.io"
] | psteinberg@continuum.io |
9bdbfd694063d649a9d68bcf3c93e6558ed8e81b | 89aced396640fed8960a05ad528c55ec6733da25 | /util/encrypt/md5.py | 3f6228cd9132362383097eb4c5b1e3cdb0a1535a | [] | no_license | jubileus/tornado | 33c439775ab12fb42235667f3027d98319a14325 | 94a8d65908a23ab6c4c653c7c54473a5ec7e081a | refs/heads/master | 2021-01-10T09:28:40.084949 | 2015-11-02T08:05:24 | 2015-11-02T08:05:24 | 45,165,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # coding=UTF-8
import hashlib
__author__ = 'jubileus'
# 获取字符串的md5值
def md5(s):
if isinstance(s, str):
m = hashlib.md5()
m.update(s.encode('utf8'))
return m.hexdigest()
else:
return ''
| [
"1509483682@qq.com"
] | 1509483682@qq.com |
237f5c9434aa81b5dc82ca5b556e349347c56299 | 3ae73fa03a2e99bb108a923606c293674b3db304 | /Django/beltreview bck_up/apps/login_reg/migrations/0001_initial.py | aeabc3aa8caef9da17f0c79b92cb6f91ada3f336 | [] | no_license | asdfkerub/DojoAssignments | 51bef584783d799469db85ff66983bac4f404e7f | 1eb0b5fa8ac881ce6d0b6765b104f806bdb71f5c | refs/heads/master | 2021-01-11T16:47:51.207662 | 2017-03-06T01:11:28 | 2017-03-06T01:11:28 | 79,671,651 | 0 | 0 | null | 2017-03-06T01:11:29 | 2017-01-21T20:43:04 | Python | UTF-8 | Python | false | false | 875 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-22 20:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"q.kerubkim@gmail.com"
] | q.kerubkim@gmail.com |
8ec2fb53dc07004d77a1ec97066dcbe63aa762c7 | 165e706d485e90f4e4f63cfb9f2c35acda14cfc0 | /safemrl/algorithm/agents.py | c13f34a7a21b223bf7f2ffd034e82299bd8873fd | [
"Apache-2.0"
] | permissive | Tarkiyah/googleResearch | 65581f3bbbe2ffe248c9e613c0ea7eac336d5372 | dea327aa9e7ef7f7bca5a6c225dbdca1077a06e9 | refs/heads/master | 2022-12-07T12:04:44.153221 | 2019-11-21T16:03:48 | 2019-11-21T16:18:28 | 223,229,888 | 11 | 2 | Apache-2.0 | 2022-11-21T21:39:10 | 2019-11-21T17:38:31 | Jupyter Notebook | UTF-8 | Python | false | false | 9,870 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9e37493ad9570d9edc1c1506e0d6deaebea48cfd | df9e551d292c477599f2fa6483695155b7cb382b | /FortniteAPIAsync/enums.py | 389f0c4036e8b8406cf52bc8be88999fd775897a | [] | no_license | xMistt/FortniteAPIAsync | d4250e861b37cf18d4776bebf39283d43678e596 | 40f9722305d6a5c71e2161ffdc27434ed6e1ce2f | refs/heads/master | 2022-11-22T14:31:07.536732 | 2020-07-27T08:23:12 | 2020-07-27T08:23:12 | 278,424,360 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from enum import Enum
class AccountType(Enum):
EPIC = 'epic'
PLAYSTATION = 'psn'
XBOX = 'xbl'
class StatsTimeWindow(Enum):
SEASON = 'season'
LIFETIME = 'lifetime'
class StatsImage(Enum):
ALL = 'all'
KEYBOARD_AND_MOUSE = 'keyboardMouse'
CONTROLLER = 'gamepad'
TOUCH = 'touch'
| [
"55298769+xMistt@users.noreply.github.com"
] | 55298769+xMistt@users.noreply.github.com |
f95b1920130a76dde3a6dd04535d418a37ca9afd | 7c1cf985513c38b01b610fb1e6747292a651c357 | /tools/tcs_statemashina/charging/__init__.py | 1ab49740068d3381d4722e7f2108533eaa37e256 | [] | no_license | mohana-martin/CCODemo_ControlSystem | 82f2da0f911b0ea0d7f106852e9dd066c030c15f | 29ea92830101fa30eeebfcb46922f4b6e1db2e7d | refs/heads/main | 2023-05-28T13:03:05.259495 | 2021-06-11T13:33:53 | 2021-06-11T13:33:53 | 369,156,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import tools.tcs_statemashina.charging.ad
import tools.tcs_statemashina.charging.ec
| [
"61052549+mohana-martin@users.noreply.github.com"
] | 61052549+mohana-martin@users.noreply.github.com |
d21741515b51c9b3f25b2293bec7070258246c98 | a829617f9ad158df80a569dd02a99c53639fa2c6 | /test/hep/table/exception1.py | 826950668cd50b0628b9344a6d73d01ea3f9fb31 | [] | no_license | alexhsamuel/pyhep | 6db5edd03522553c54c8745a0e7fe98d96d2b7ae | c685756e9065a230e2e84c311a1c89239c5d94de | refs/heads/master | 2021-01-10T14:24:08.648081 | 2015-10-22T13:18:50 | 2015-10-22T13:18:50 | 44,745,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #-----------------------------------------------------------------------
# imports
#-----------------------------------------------------------------------
from __future__ import division
import hep.table
from hep.test import compare, assert_
#-----------------------------------------------------------------------... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
7a60f811ce110d93d9225be2d9c05e3968adf9c4 | d43f4b28cefbccf084b4a082f66590d5204dc516 | /redFeedForwardej6SoftMax.py | aee070d175debf7d5671074f5a92c557e19aa571 | [] | no_license | 25ramy/IA2Tp3-Grupo4 | 27e41c5c08a3aa21d7ad1c7c42cca819c49dec12 | 375011340e687b02b15015a0783dec3a6aae95f6 | refs/heads/main | 2023-06-16T10:25:35.187357 | 2021-07-17T19:05:13 | 2021-07-17T19:05:13 | 387,016,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,403 | py | import numpy as np
import matplotlib.pyplot as plt
# Generador basado en ejemplo del curso CS231 de Stanford:
# CS231n Convolutional Neural Networks for Visual Recognition
# (https://cs231n.github.io/neural-networks-case-study/)
def generar_datos_clasificacion(cantidad_ejemplos, cantidad_clases):
FACTOR_ANGULO = ... | [
"noreply@github.com"
] | 25ramy.noreply@github.com |
757c54fa2676a762ec4b813f907122cf69960cef | 138267d39810f7c7fb34bbe7329d1d0ee118d5fa | /OneDirClient/address.py | f280532e9e26bdcce6f6510d31c9c808efeefa8b | [] | no_license | kah-odonnell/OneDir | 5d9c29577c27bdde89c52a9f7a308ddb66662259 | 8cdaf873a15664a481ad7aaff00c77025a243555 | refs/heads/master | 2021-01-02T08:47:27.363257 | 2013-12-02T21:24:54 | 2013-12-02T21:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | """
try:
http://172.27.98.242:8080/
"""
ROOT_ADDRESS = "http://127.0.0.1:8000/"
LOCAL_FOLDER = "/vagrant/file_checker/" | [
"kah.odonnell@gmail.com"
] | kah.odonnell@gmail.com |
8fcd207518f6e21ca31c7fd97fcd9501bd8134c8 | 43815f636821f7ac0e8e45e2ce4b0408ce15cdcc | /quark/status.py | cbadd981a851a9d5fdbe41341b61714a4dc89f1d | [
"MIT"
] | permissive | naufraghi/quark | 55c3e9460098eeb6ae4f1dfe9077432b76c4ee16 | 60d2e2dd2f0c80172ee304da374bf93fc8a01693 | refs/heads/master | 2020-03-25T03:04:19.522368 | 2018-08-02T17:03:15 | 2018-08-02T17:03:15 | 143,321,542 | 0 | 0 | MIT | 2018-08-02T16:47:07 | 2018-08-02T16:47:06 | null | UTF-8 | Python | false | false | 699 | py | import json
from argparse import ArgumentParser
from .utils import freeze_file
from .subproject import Subproject
from os.path import join
from os import getcwd
def run():
parser = ArgumentParser(description='Check a project status')
parser.add_argument("source_directory", metavar="SOURCE_DIR", nargs='?',
... | [
"mbeniamino@comelz.com"
] | mbeniamino@comelz.com |
956b4ed7ccaa1e3eef8618b3bebff88d1fd2e57d | 19bf3030d14e205bce57e0ad7e6df4266300054e | /python_repo/IQCALIBRATION/version.py | afb83ea811ef0688cbc4e89b739661f606c3cc7e | [] | no_license | phani061989/RF | 739b891386bbeac9df339cd13055a39a5565f117 | 7c41b75d8375def56b30d3e9d0a6c8ae6acb6999 | refs/heads/main | 2023-04-12T03:50:08.351768 | 2021-05-06T07:26:15 | 2021-05-06T07:26:15 | 364,825,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | # -*- coding: utf-8 -*-
__version__ = '2.5.3'
"""
Created on Sat Sep 2 16:28:12 2017
@author: Oscar,Moritz
v2.5.3 - OSC:
- inserted the option to change the BW of the spectrum analyzer,
defaulted to 100 kHz
v2.5.2 - OSC:
- inserted a load_calibration() method in IQCal_base
- added some utility sub... | [
"muppalla.phaniraja@gmail.com"
] | muppalla.phaniraja@gmail.com |
554fb914629e5e2cba22ade77f00e4a6143b04ab | bdce502dce36a5f53ed7e376c5783c8bcbe6a98e | /migrations/versions/55bd2e159b91_added_type_to_coach.py | 0b8c796002c87ae489801a7c293d32952ecaf4fb | [
"MIT"
] | permissive | jeffthemaximum/jeffPD | b05b02300653b34c235adb2de46c91e18604bcf4 | 4ac2584117c45c70b77bebe64676b0138577e14f | refs/heads/master | 2021-01-01T19:38:30.041034 | 2015-11-17T14:35:57 | 2015-11-17T14:35:57 | 41,260,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | """added type to coach
Revision ID: 55bd2e159b91
Revises: 1abfb1cdc0ea
Create Date: 2015-10-10 11:52:37.381983
"""
# revision identifiers, used by Alembic.
revision = '55bd2e159b91'
down_revision = '1abfb1cdc0ea'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alem... | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
6e8d79cffc91c230f205d764ffc9efcfd85087e5 | 42bb4016f0a77393535b3b0be33ee79ea0c184c5 | /project/urls.py | d21031247961d04b777a470e32265a0da20e22ba | [] | no_license | abdulalkout/django-job-board | 70aa7a5c738afb23c5187ab34c88779962da6425 | 020e2b1fcde69a8d50e7e1bc7fffde7aaea77007 | refs/heads/master | 2023-05-30T10:37:20.041411 | 2021-06-08T17:43:38 | 2021-06-08T17:43:38 | 369,871,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-based... | [
"Abdul.Alkout@gmail.com"
] | Abdul.Alkout@gmail.com |
f1e6f5a87e19739455e73460fd30bc28964055a3 | 9158beffd23e75ff78ab678cb7a3ba11ccd5b49e | /gunicorn/prod.py | 929d433de0a50db4f20a378287c5193b828113e4 | [] | no_license | kiyoungp/kiyoungp-backend | ce22fdd8f8766962fb88f5e8acadca1e906da2c0 | a9664ffc923b7d1439421ec54c36334fb5b79113 | refs/heads/master | 2022-05-05T22:18:35.069188 | 2020-03-22T09:07:01 | 2020-03-22T09:07:01 | 248,979,729 | 0 | 0 | null | 2022-04-22T23:08:58 | 2020-03-21T13:17:41 | Python | UTF-8 | Python | false | false | 88 | py | import multiprocessing
bind = '0.0.0.0:8000'
workers = multiprocessing.cpu_count() * 2
| [
"lordmyshepherd29@gmail.com"
] | lordmyshepherd29@gmail.com |
54e239592280383f005aee0b8c80612e8cc24ee2 | e05e2d26e38ce80530e3458ce3c8e02f16e5cbe6 | /CoinAnalysis/vs_non.py | 9d16ac66cce5ad8d5800e2c994c9734be85bd377 | [] | no_license | jegutman/hearthstone_decks | 96acca7e040cb9b89253a867217655ce8cdf2756 | 95d4563c46618a9efccc10dbb34094258ec5bce7 | refs/heads/master | 2020-12-25T08:16:29.892068 | 2019-09-12T05:28:16 | 2019-09-12T05:28:16 | 102,289,609 | 3 | 0 | null | 2018-07-06T22:35:17 | 2017-09-03T19:40:44 | Python | UTF-8 | Python | false | false | 2,182 | py | from archetypes import aggro
archetypes = []
data = {}
line_data = []
decks = []
with open('CoinData.csv') as f:
for line in f:
if line[0] == "#":
continue
tmp = line.strip().split(',')
deck_a, deck_b, first, pct, games = tmp
if deck_a not in aggro or deck_b in aggro: c... | [
"jegutman@gmail.com"
] | jegutman@gmail.com |
cd196e1a6ebf261c6476eb9d0342b4cdf24b6dcf | 8851fddd79bea04328ef750a1c541bb67c409d71 | /private_app.py | 3562bb02819dad1e85756fe6f8aaf83d399c9529 | [
"MIT"
] | permissive | davidvartanian/xero_api_test | 5f77a4e7c84f6ff30262343402b65e0729cf2221 | 1864c79576aae7f492c01011723e7794eaf8bf8d | refs/heads/master | 2022-12-10T11:17:29.096293 | 2019-06-06T12:01:24 | 2019-06-06T12:01:24 | 190,216,276 | 0 | 1 | MIT | 2022-12-08T05:12:57 | 2019-06-04T14:18:46 | Python | UTF-8 | Python | false | false | 2,617 | py | from xero import Xero
from xero.auth import PrivateCredentials
from xero.exceptions import XeroNotFound, XeroBadRequest
class PrivateApp:
class LenGenerator:
"""
Helper class to provide len() to generator
Xero SDK returns always a list. However, we can control the data stream using generat... | [
"davidvartanian@posteo.de"
] | davidvartanian@posteo.de |
78bd0576dac45fccb58937743d185967fc91f883 | adaeeedce0f1986c23677498f6c93b9394915f32 | /make_df.py | 0246cecdbdeacf4023729b6a59faffe0c7060ed2 | [] | no_license | brendangadd/ml-name-gender | 64fdfce77cf8abf02606fde72b377424163e229e | 9c4cfa465d5d1af7768a8a0964aa55d09989a8ba | refs/heads/master | 2021-07-08T04:35:45.610066 | 2017-09-26T16:46:46 | 2017-09-26T16:46:46 | 104,910,761 | 0 | 1 | null | 2017-10-04T00:49:10 | 2017-09-26T16:31:49 | Python | UTF-8 | Python | false | false | 603 | py | import os
import pandas
from os.path import join as pjoin
directory = pjoin('/', 'home', 'brendan', 'Downloads', 'names')
names = []
targets = []
def process_names(lines):
for line in lines:
parts = line.split(',')
names.append(parts[0].lower())
targets.append(parts[1] == 'M' and 1 or 0)
for entry in ... | [
"brendan.gadd@canada.ca"
] | brendan.gadd@canada.ca |
979ad3afa724f60333fec8a0444de42bd250d08f | 9a46784244d544445c01c6f0d564f4da65efcfaf | /CodeUltimateFlaskCourse/06. Member API/authentication/app.py | a94fe21a10ee8b8a8bc2c9372c5c21fd4617e606 | [] | no_license | ammbyrne/Flask | f55a606ec234c6a00b4d264a48e11b2f487d4ef7 | 7922ab46b8a4c388346043d2393173e7e49e43bb | refs/heads/main | 2023-04-19T16:07:08.224824 | 2021-05-07T03:21:44 | 2021-05-07T03:21:44 | 365,101,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | from flask import Flask, g, request, jsonify
from database import get_db
app = Flask(__name__)
api_username = 'admin'
api_password = 'password'
@app.teardown_appcontext
def close_db(error):
if hasattr(g, 'sqlite_db'):
g.sqlite_db.close()
@app.route('/member', methods=['GET'])
def get_membe... | [
"andy_m_byrne@yahoo.co.uk"
] | andy_m_byrne@yahoo.co.uk |
ad66f1ba7f5cb96a459db8234d1f19682dcf63c9 | 58b7c0a5f7a2f6518602ce74b7badb33f971e763 | /src/server/__init__.py | 46dac05e607ff5e151df27c0b53676d6e55202a9 | [] | no_license | takenoco82/using-pipenv | a59cbdeb7caac064c8ce983db4b79766feb52893 | 11e8ab25fbbd15aaa17ade9614b4f663b4500edc | refs/heads/master | 2020-04-08T02:59:06.422672 | 2018-12-16T06:03:58 | 2018-12-16T06:03:58 | 158,956,861 | 0 | 0 | null | 2019-01-24T13:15:49 | 2018-11-24T17:03:21 | Python | UTF-8 | Python | false | false | 196 | py | from flask import Flask
from server import fizzbuzz
apis = [
fizzbuzz.app,
]
app = Flask(__name__)
# Blueprint の登録
for api in apis:
app.register_blueprint(api, url_prefix="/v1")
| [
"takenoco82@gmail.com"
] | takenoco82@gmail.com |
a73a38b14f75db265638719c75c40daf8d256d2d | 0104d2144b18e804b1d0cf971294798a92b2f63f | /Pre-processing/Rabi.py | a39bec7a239be676b114bf8055fbed518e65ddf2 | [] | no_license | SIH-NITK/Fsociety | 9db45997387ed4c1b9069cb35cd3e17782e0ba96 | 9b9f5b718d5634ead5eec4d0d9524a9424037dd1 | refs/heads/master | 2020-12-15T09:42:33.593268 | 2020-01-22T07:20:02 | 2020-01-22T07:20:02 | 235,063,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import cv2
import numpy as np
import glob
files = glob.glob("/home/pranav/Downloads/SIH/Clipped_NDVI/*.tif")
k = 0
for file in files:
img = cv2.imread(file)
m,n,_ = img.shape
img_copy = np.copy(img)
img_copy = img_copy[:,:,0]
img_copy = img_copy*2/255 - 1
m,n,_ = img.shape
for i in r... | [
"hsr.pranav@gmail.com"
] | hsr.pranav@gmail.com |
c5b396d9181a0659ca34c4c7b6d8fc7ca8eb6fda | bc8efbd19f6dd41cd9c47eef54c87c2c0a2643db | /catkin_ws/build/catkin_generated/order_packages.py | 1d5dcbbd743bc38208f63fde699fa91fa210e992 | [] | no_license | mohammeddib10/ROBOTIC | f880f76e128068d84462ff5a1b5a6ed4577f327d | 2b885a2fdf03940f00895b81aa501192247665f9 | refs/heads/master | 2022-06-29T22:58:31.474816 | 2020-05-07T11:10:48 | 2020-05-07T11:10:48 | 260,503,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/mohammeddib/catkin_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/mohammeddib/catkin_ws/devel;/opt/ros/melodic".split(';') ... | [
"mohammeddib85@gmail.com"
] | mohammeddib85@gmail.com |
68f8e258c16249959c00d1549c5c8aee3a1c681e | c6c6abd217b9ae9317c4f98296318ca7137a96f4 | /event/migrations/0012_event_event_image.py | 29949cc718258655aa132f7341d58494a30d3baa | [] | no_license | WilmDev/ngo | f26cef56bca787af05e44941b41585e5b4fe0f40 | b8ca18267acdea6bfc2cb947b137710e92f0ca76 | refs/heads/master | 2020-04-08T17:06:14.991881 | 2018-12-03T08:16:18 | 2018-12-03T08:16:18 | 159,550,641 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 2.1.3 on 2018-12-02 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('event', '0011_auto_20181130_1405'),
]
operations = [
migrations.AddField(
model_name='event',
name='event_image',
... | [
"kobiljon.yusupov@gmail.com"
] | kobiljon.yusupov@gmail.com |
4a2644d0efa12888ba19ea4a4262ff1bf3a7c1c7 | 4ee7a4b875bd6f58be1164e8946f4633438ff28a | /.history/application_20190816153211.py | db6c5d98a70d7dbe0a0ce2ef1813c1e39a615e70 | [
"MIT"
] | permissive | phuctu1901/iot-watson-python | 1bffc1255bf682ccfbe6b52d635c82ebd279678d | 66ac65148f5b057b77d2d90675ee900d628f0e04 | refs/heads/master | 2020-07-06T03:59:08.969211 | 2019-12-31T06:33:43 | 2019-12-31T06:33:43 | 202,883,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | # *****************************************************************************
# Copyright (c) 2014, 2019 IBM Corporation and other Contributors.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distrib... | [
"phuctu1901@gmail.com"
] | phuctu1901@gmail.com |
0d0ac26be244545bffc40f96d83ae0078c1a7825 | d3eb714ab988681ac9d88956cd4e6e54ffec255a | /create_requirements.py | c9cbec787beb2137f7957294d2f88d06fd85b811 | [
"Apache-2.0"
] | permissive | BeenzSyed/designate | 248ac439332a91dc0d41d92f8d77e6a385cfef27 | 219f36915b03643cf10fbdda18649c5938518717 | refs/heads/master | 2021-01-23T20:43:42.760786 | 2015-11-11T23:17:31 | 2015-11-11T23:17:31 | 46,069,088 | 0 | 0 | null | 2015-11-12T17:32:14 | 2015-11-12T17:32:14 | null | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/python
from __future__ import print_function
import os
def file_requirement(root, req):
_, _, path = req.partition(':')
return os.path.normpath(os.path.join(root, path))
def main():
here = os.getcwd()
os.rename('requirements.txt', 'requirements-py2.txt')
requirements = []
with op... | [
"dnsaas@rackspace.com"
] | dnsaas@rackspace.com |
1e3807db28c7349317eeba39285686bc12b95757 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/immutability_policy_properties_py3.py | feb15f507cfde35317d9e13017493cd6dc5c0c5a | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,478 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
b8830ee9a2275eae167cf660353d0f991769fe44 | 19f1612a24a343198302fe1b88d15a2d94a5d91f | /Mod_Divmod.py | 67fedd76cd0160039410121cd5b1209d8232ae5e | [] | no_license | TheShubham-K/HackerRank | 0a8f15051e5466292d880ba3d334bc19733c4ab7 | a51bcfa4dee85258787cc5bc96976045b05a963f | refs/heads/master | 2022-11-09T16:24:35.595762 | 2020-06-29T15:56:39 | 2020-06-29T15:56:39 | 266,571,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from __future__ import division
n = int(input())
m = int(input())
ans = divmod(n,m)
print(str(ans[0])+"\n"+str(ans[1])+"\n"+str(ans))
| [
"subham.kumar032@gmail.com"
] | subham.kumar032@gmail.com |
207350502779c72a46b4e9df43e35399e35f1c5d | c79d490bf1d1fac79aa923ce57a5157478ab72be | /examples/hesaffnet/LAF.py | d2bf064f5f3f24cfd644a9bf9a84c1cacf054d7d | [
"MIT"
] | permissive | rdguez-mariano/affnet | 89b6a1be06db6650ba556afed67b740c2de55d37 | a3f0bb32d9001d1daf024f38d29867f37816ea78 | refs/heads/master | 2020-04-25T09:52:29.116291 | 2019-08-01T20:07:19 | 2019-08-01T20:07:19 | 172,689,112 | 0 | 0 | MIT | 2019-02-26T10:24:42 | 2019-02-26T10:24:42 | null | UTF-8 | Python | false | false | 17,576 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from copy import deepcopy
from scipy.spatial.distance import cdist
from numpy.linalg import inv
from scipy.linalg import schur, sqrtm
import torch
from torch.autograd import Variable
import torch.nn.functional as F
##########n... | [
"rdguez.mariano@gmail.com"
] | rdguez.mariano@gmail.com |
5b22188159510783109706d9d6aee73b30184cd5 | 7ac1f3e38dab2899d6dc0d02cc1ace3934fb0805 | /pygame/tank_game/code.py | 250360ff8a4e559005ce17747cd5bdc67f609b6e | [] | no_license | amanbhal/pythonCodes | 3fd9357211fe7d06c6972e7a4f469df1ff3cf60a | 49d17ce395d15e7c8497af8455790ecb876a0d49 | refs/heads/master | 2016-08-12T06:12:19.108863 | 2015-11-16T20:42:11 | 2015-11-16T20:42:11 | 46,301,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | num = int(raw_input())
bnum = bin(num)
convert = []
for x in bnum[2:]:
if x=='0':
convert.append('1')
else:
convert.append('0')
print convert
convert = "".join(convert)
result = int(convert,2)
print result | [
"amandeep.bhal92@gmail.com"
] | amandeep.bhal92@gmail.com |
8a8f9dcdc65dc4a7ac0c5563656ea7a7299671f1 | deca9b9bd48e3c6c0d07576019e058845d143d79 | /10-Classification-Performance-Measures/07-ROC-Curve/playML/PCA.py | 7bcca005ecd4ab5232445dbba55e947cdb0ea60f | [] | no_license | yangqinjiang/Play-with-Machine-Learning-Algorithms | dd8526fd2de2cfe635231184efdf107c4f74038d | 3d41be72fcd48b23adefe5a1bd60169f1bf65086 | refs/heads/master | 2020-10-01T16:07:25.799189 | 2019-12-27T03:53:12 | 2019-12-27T03:53:12 | 227,573,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | import numpy as np
class PCA:
def __init__(self,n_components):
"""初始化PCA"""
assert n_components >= 1, "n_components must be valid"
self.n_components = n_components
self.components_ = None
def fit(self,X,eta=0.01,n_iters = 1e4):
"""获得数据集X的前n个主成分"""
# 主成分的个数 ... | [
"yangqinjiang@qq.com"
] | yangqinjiang@qq.com |
7d0922575649733aaa704e9e6ce3ca46755cfa0b | 0142a8d3873bb54d85b12f7a2b64ce353c562d35 | /PyPokerGUI/game_customization.py | 4699574e595696179596f5240e97b45c2225b371 | [] | no_license | zhengfuli/DeepStack-Poker | 6de95e9669174e35048f5739ae0d73f6d6c1ce2c | 2806ab10761c1b1d9107d8cc72cce2749ada4fc5 | refs/heads/master | 2020-03-11T08:47:14.254364 | 2018-04-23T11:44:40 | 2018-04-23T11:44:40 | 129,892,688 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | class GameCustomization:
# pypokerengine/engine/round_manager/__deal_holecard
# ../engine/player/add_holecard
hole_card_count = 1
# pypokerengine/engine/round_manager/__deal_holecard
public_card_count = 1
# __turn and __river in the directory
has_turn = False
has_river = False
| [
"zhengfuli@bupt.edu.cn"
] | zhengfuli@bupt.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.