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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4dc5896c6a8f77eb77879a46ed38748ab3d18d6b | 089a6215e04433d95e4f8af78130f79b504e94b9 | /mysite/settings.py | 80a612f57948a154bb72284c7f67b90212ea1fa9 | [] | no_license | Bulalu/Blog | d32e3bdb162b023afeebe32e878a1d08c701098b | 80911e3523b8e6ae84f94c55b633d1e1405ed292 | refs/heads/master | 2023-06-18T01:13:42.088370 | 2021-07-13T18:52:12 | 2021-07-13T18:52:12 | 369,866,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,245 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"elishabulalu031@gmail.com"
] | elishabulalu031@gmail.com |
5094b9b691ae257e044c3742035823ecc3da2227 | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/crowdpose/res152_crowdpose_384x288.py | 44a5db23c7771256902673f3b8449cd9471b3de7 | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 4,087 | py | _base_ = ['../../../../_base_/datasets/crowdpose.py']
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config... | [
"noreply@github.com"
] | noreply@github.com |
3b551a4b42da17de908eb870edbeaae245b6dd19 | e69b3d212eafc9e740b55a436f04e8801ade47e7 | /trade/views.py | 20ae5ff695772637cc1e90cbef71d4d782ec25dc | [] | no_license | hebilidu/cardgame | 42eaa936f7cb38e2b1975641b304be86fd03d628 | a3f608327c602ba3148535c9725b8f73bb1064fa | refs/heads/main | 2023-05-27T18:51:27.388954 | 2021-06-16T11:45:08 | 2021-06-16T11:45:08 | 374,296,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from .models import Card
from django.views import generic
from django.shortcuts import render
# Create your views here.
class CardListView(generic.ListView):
model = Card
template_name = 'listcard.html'
context_object_name = 'cards'
class CardDetailView(generic.DetailView):
model = Card
template_... | [
"git@hebi.fr"
] | git@hebi.fr |
aca404ff0b8ff3cdfd2290add7bf06d8ab8b0b22 | 332be7d07cf66b9f8779c164aafb6efa6d731531 | /segment.py | fc319b1e489454586146e7085a041637d8ecf89b | [] | no_license | LengyHELL/ocr_ai | 420565c92697ef140328c7862cb79c6323c8abcc | 825c76921d823fb36c1f0bf6b297d127ad2b25b6 | refs/heads/master | 2022-06-22T11:24:15.138562 | 2020-05-06T21:08:07 | 2020-05-06T21:08:07 | 261,878,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,877 | py | #!/usr/bin/env python3
import numpy as np
from PIL import Image, ImageOps
def pad_to_height(img, ph):
w, h = img.size
delta_w = (ph // 2) - w
delta_h = ph - h
if delta_w < 0:
delta_w = 0
if delta_h < 0:
delta_h = 0
padding = (delta_w//2, delta_h//2, delta_w-(delta_w//2), 0)
... | [
"ubi19998@gmail.com"
] | ubi19998@gmail.com |
1126769601d5e7319ee39abc278621ac96e499fd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq357.py | 5a0f49a2276e3598ae1db658dd2b3b7f1d4f5362 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=64
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
400f6be9556fac62ba3aa272db6bb659e5bd2af6 | 8e877d994febf44a8ceb569c59a51b1f4b1bb67f | /dynamic_process/canPartition.py | 5af30d59935114a03d1746facc34b239aec06bb4 | [] | no_license | Adrian-Yan16/Algorithm | dc0c1f6cb193795cb064cc2a69ede0b726eb6f70 | 7aed70d29cd877e1f0fb9d0f2567e686f6f3cd4c | refs/heads/main | 2023-04-05T20:17:05.148507 | 2021-04-11T05:11:54 | 2021-04-11T05:11:54 | 356,765,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # 给定一个只包含正整数的非空数组。是否可以将这个数组分割成两个子集,使得两个子集的元素和相等。
class Solution:
def canPartition(self, nums) -> bool:
if len(nums) <= 1:
return False
if sum(nums) % 2 != 0:
return False
mid = sum(nums) // 2
dp = [0] * (mid + 1)
dp[0] = 1
if nums[0... | [
"Adrian-Yan2329@outlook.com"
] | Adrian-Yan2329@outlook.com |
4fcf7340a166ecd7f45005f51cbcdd4b566ed743 | ade88cd3f75e8b7c9470198f806fc7b1ac4aabf2 | /fooster/console/commands.py | 4d318d3e7ea961593774f8c22bcb612ff93cf54a | [
"MIT"
] | permissive | lilyinstarlight/python-fooster-console | d956fc4a57c167d4f0bd5eeee6ee76da9d8911cd | e2cd6a80298ba0c22334fdb0967b8c3f074fa49e | refs/heads/main | 2022-12-30T02:43:07.884233 | 2020-10-18T15:06:35 | 2020-10-18T15:06:35 | 247,068,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import inspect
from . import exception
__all__ = ['quit', 'ping', 'help']
def quit():
raise exception.ConsoleQuit()
def ping():
return
def help(cmd=None, *, name, handler):
if cmd is None:
cmd = name
cmd_func = handler.commands.get(cmd)
if cmd_func is None:
handler.channel... | [
"fkmclane@gmail.com"
] | fkmclane@gmail.com |
d5cd69477fb65659ccc9e6b7b521f450a70afb7f | 4ca47225b7b3f468eab9dc391aebc00485869a65 | /collector/migrations/0019_auto_20180105_0123.py | 0d9de3c879ab138c221841a6f16f99a8cab72608 | [] | no_license | HippyFizz/conduster | cec1f972610c827ed692c4e48b06b9215ffbfac3 | 9d90f838da6ff44402c550934d1c323a26f29036 | refs/heads/master | 2020-03-08T20:29:58.126183 | 2018-04-06T11:02:00 | 2018-04-06T11:02:00 | 128,383,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-05 01:23
from __future__ import unicode_literals
import os
from django.conf import settings
from django.db import migrations
from pyexcel_xlsx import get_data
def fill_refs(apps, schema_editor):
data = get_data("{0}/{1}.xlsx".format(os.path.join(settin... | [
"buptyozzz@gmail.com"
] | buptyozzz@gmail.com |
5ede7686f7d25d428704bb4cd43f226ffeaf9d36 | a0d140dd956187c1ae45bae22b0431392c8859d0 | /chapter09_class/9-2.dog_class.py | 57ede29dd8dc29ed19ac85d696ee4776c8bb422a | [] | no_license | vega2k/python_basic | 6fce4a049671adfb0fcfb84bcadb92431a3cad08 | fd244c50142e7d1f9129b9bcb4324fa68b7295c0 | refs/heads/master | 2023-02-16T08:02:31.214801 | 2021-01-15T08:38:29 | 2021-01-15T08:38:29 | 326,850,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | class Dog:
tricks = []
def __init__(self,name):
self.name = name
def add_trick(self,trick):
self.tricks.append(trick)
fido = Dog('Fido')
buddy = Dog('buddy')
fido.add_trick('구르기')
print(fido.tricks)
buddy.add_trick('두 발로 서기')
buddy.add_trick('죽은 척 하기')
print(buddy.tricks) | [
"vega2k@naver.com"
] | vega2k@naver.com |
e6c2e9de7f09f386a91774aa9868738ccbce1c1a | 502bb02d8cfb11fa8dd47ebd7d73d3450208d3e2 | /Greetings.py | c0623775c659cce88ba20a9690447c09bc023a93 | [] | no_license | sairamkarthik/Python | 95daddf897cbaed810223f7ec7b4f2c7d08aec66 | cbbfe100a3829d6ee97fbfc45ab6130c690ad4d9 | refs/heads/master | 2021-01-01T05:52:34.267439 | 2017-07-23T07:44:47 | 2017-07-23T07:44:47 | 97,294,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | print("Enter your name")
n=raw_input()# Greetings
print("Hello "+ n)
| [
"noreply@github.com"
] | noreply@github.com |
ad63d4633e500aaa6bffae2474fa518f40c6ba45 | 8eeace0a88efbfa5ff2d96d92c6f6b8587532ae3 | /game/src/data.py | 24ef242d8675b3abe8c835caf37821bd47cff3bf | [
"MIT"
] | permissive | mdinacci/rtw | 96e7ef504820f0a3d79f755e2811fdfdb04e7726 | 8429d17b002435fb27f403699a23af879f14d9a1 | refs/heads/master | 2016-09-06T14:55:17.251012 | 2014-02-07T10:55:08 | 2014-02-07T10:55:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # -*- coding: utf-8-*-
"""
Author: Marco Dinacci <dev@dinointeractive.com>
Copyright © 2008-2009
"""
class GameMode:
CHAMP_MODE = "champ"
TB_MODE = "tb"
NO_MODE = None
class TrackResult:
tid = -1
bestTime = ""
attempts = 0
bid = -1
def __repr__(self):
return "ID: %s\nBest... | [
"dev@dinointeractive.com"
] | dev@dinointeractive.com |
bd8494dd2ce5b375a957c4296137fcc68b85487a | 0035ebda58fdefbb3926b4cebd2a107c7e5c0eee | /myapp/pages/models.py | 6b47115f537f320cc76ec7acc447f5e6c972908d | [] | no_license | semillastan/phdevs-flask-mongodb | 6ad3990c3ed3c450153f208c0f6987e501c36ea5 | d8356b22eacd4d2cfee9195ece1bb171b4593292 | refs/heads/master | 2021-01-10T04:57:24.616700 | 2016-04-01T07:35:08 | 2016-04-01T07:35:08 | 55,212,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import datetime
from flask import url_for
from myapp import db
| [
"semillastan@gmail.com"
] | semillastan@gmail.com |
1c833f604a6faef84412a3d4cd09eab26216a2e6 | 79ded53076d0bd933df5682576ec2b6320d989c6 | /MainAPI.py | c602650f4779de23b7c7d50cd77e10ed0c62378f | [] | no_license | DonnaVakalis/Cool-finding-app | 75fde33e6e88a90b670a3175ce55827f91a9aa32 | 00e9d7ba1020221637498f92fb871781dc4e6586 | refs/heads/master | 2021-06-04T13:14:06.929560 | 2020-09-15T02:06:28 | 2020-09-15T02:06:28 | 146,217,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,310 | py | # -*- coding: utf-8 -*-
"""
This finds the friends of a Twitter user, and stores them in a list; then, this list is passed back to find the friends-of-friends;
The goal is to calculate overlaps and give an index of 'how much overlap' there is among your friends.
...Kind of like a quantification of how much you... | [
"noreply@github.com"
] | noreply@github.com |
aeddc1d7fbf8ea26f225c60088dd41b3447c6fbe | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/full_durga/without_restm2/without_restm2/asgi.py | 40491539a6ce4db3dc21ec67f0020d7ead8ce036 | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 405 | py | """
ASGI config for without_restm2 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
bf60664aa69ada355fc1596296b08ac4e39e32dc | bc4c1b3388b9bcc7fdab65699c5ae1f6dbc5531f | /jtVAE/prep_datasets.py | 1a1432e7813210f6a9642de475d22cf558abcf1f | [
"MIT"
] | permissive | JennyW5/ComparisonsDGM | fd7235fc5a5e49424a3bc39df483fbafa0582d3d | 0a26e9f9d9aba7df0525a22da6eeab376464d19d | refs/heads/master | 2023-01-07T05:00:27.958540 | 2020-09-16T16:14:35 | 2020-09-16T17:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import math, random, sys
from optparse import OptionParser
from collections import deque
import rdkit
import rdkit.Chem as Chem
import sys
import os
sys.path.append('%s/../' % os.path.dirname(os.path.realpath(__file__)))
from jtnn import *
sys.... | [
"davider1994@gmail.com"
] | davider1994@gmail.com |
8b15217045694fb83091a6e4f46af691e62f0917 | 4f629bf2319616202c9abe910dcc2ebe113c8416 | /arcade/python/2_slithering_in_strings/competitive_eating.py | a52be28084c0ae2a0c7ad9039d1176e0514a0807 | [
"MIT"
] | permissive | jjwong/codefights | 33758757b176baf966eea3ac29e32d9b8f7e3428 | 871f6ebf840cc36aca51da24e3f535a73e9c7567 | refs/heads/master | 2020-03-09T03:26:21.605456 | 2018-04-07T22:20:00 | 2018-04-07T22:20:00 | 128,565,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | def permutationCipher(password, key):
table = password.maketrans('abcdefghijklmnopqrstuvwxyz', key)
return password.translate(table)
| [
"jjwong05@gmail.com"
] | jjwong05@gmail.com |
23369607195994930268cc9f71fbe59da42be6fa | 7fd9dc3e0fe315349fd59d3b1b71fbb7f4bfad10 | /lsits_3.py | 4dc1d1a4748c96c2cdda1cedab0bbd918af4c3be | [] | no_license | 17BTCS023/Addition | 7834515a49547c2cf2ac6fef587411c54670574e | a48b62b4bc8d48b3f68650eaacaec1a5c776f979 | refs/heads/master | 2022-04-04T19:26:15.145478 | 2020-02-19T12:54:37 | 2020-02-19T12:54:37 | 118,342,960 | 0 | 1 | null | 2020-02-19T12:54:38 | 2018-01-21T14:39:05 | Python | UTF-8 | Python | false | false | 135 | py | #list- ordered collection of data
# addition of list
numbers= [1,2,3]
fruit= ['banana','melon','mango',list]
print(fruit+numbers)
| [
"noreply@github.com"
] | noreply@github.com |
f18a4f1f9257e84804660410903fd95de82ec7f1 | a9ef1de9718d2c25d258f3931948396fef2fa30c | /Ejercicios/repeticiones7.py | 10187242a434de915235f2b8bc3f82c9c6abf252 | [
"Apache-2.0"
] | permissive | juanfcosanz/Python | fbea1fb53603662c5539e850f68eb36051ef9bd5 | 3d10083a8757bc729f824e57ab320a4d5d6e51ff | refs/heads/master | 2021-01-17T06:33:49.189783 | 2014-04-01T03:51:17 | 2014-04-01T03:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | tabla = 1
while tabla <= 10:
n= 1
print("\nTabla del %d" %tabla)
while n <= 10:
print("%d x %d = %d" %(tabla,n,(tabla*n)))
n = n + 1
tabla = tabla + 1
| [
"slipkacho21metal@hotmail.com"
] | slipkacho21metal@hotmail.com |
8def5ea4fa1b536a7d27e5ee746a0d7eef26180f | 17a655d21d7ddaf8cf60e23055e107cb602bd9bc | /project/bookmarker/migrations/0001_initial.py | 7739e40db601749d17b8b704a596aa005e8e6a15 | [] | no_license | geofferyj/YouTubeVideoBookmarker | fedb6913a8c5118c0a51f011244233630cf6f58c | fbf10230c5184cd1479dddafbcfd3609d5ac98f1 | refs/heads/master | 2023-08-04T22:30:37.636957 | 2021-03-01T08:09:46 | 2021-03-01T08:09:46 | 278,203,783 | 0 | 0 | null | 2021-09-22T19:46:09 | 2020-07-08T22:05:00 | JavaScript | UTF-8 | Python | false | false | 4,185 | py | # Generated by Django 3.0.8 on 2020-08-09 19:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"geofferyjoseph1@gmail.com"
] | geofferyjoseph1@gmail.com |
5a098bfd5acd5c1f57aa09045ec71dddb521f41f | 14d1fa8ed5b0abbc4afd9196e24863c2fe5e0eb1 | /py99.py | 9f1a306c0fdb1a4733699544424ab1978f996280 | [
"Unlicense"
] | permissive | riccardobl/py99 | 70da47c348c33b0f7cfdde7a0422f273a60a3721 | 0e58701fb3763df6ac58ac6f8f03af4a1e3dbf03 | refs/heads/master | 2020-04-05T23:14:08.360887 | 2017-02-10T20:44:30 | 2017-02-10T20:44:30 | 63,715,811 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,725 | py | import sys,re,os
def _read_file(fin):
c=None
with open(fin,"r") as finf:
c=finf.read()
return c
def _write_file(fout,content):
with open(fout,"w") as foutf:
foutf.write(content)
fin=sys.argv[1]
fout=sys.argv[2]
content=_read_file(fin)
strings=[]
#Remove strings & comments
ns_conten... | [
"riccardo@forkforge.net"
] | riccardo@forkforge.net |
a2447a530790f7abc4102d878fa6f75cc977ca98 | 964e3dd6adb1c04b9b7b6de92dd31813d2f1f075 | /mysite/urls.py | 7e4bc4a76e3d4cf7c2694db71cafdb3dd0c08d63 | [] | no_license | Daniel-Domene/my-first-blog- | bdd669cd399ffb0452a4286db82a99278f929b0d | f1a5bf51198f52685a7fa7c6c70552a374859b82 | refs/heads/master | 2021-01-20T19:21:32.111102 | 2016-07-17T15:09:02 | 2016-07-17T15:09:02 | 63,526,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"daniel_domene@hotmail.com"
] | daniel_domene@hotmail.com |
6bc8cd61d8967b5a2a2913543f445ebafb4b8904 | 4237d975945a3e8fc427bc2aca6c4df80b668d62 | /Functions/calc/02-Calc.py | bd7491222cfc5a00386914d235508ca25ac8c16b | [] | no_license | ravi4all/Python_JuneMorningRegular | 36af0302af382b1a94cc9efc6af2fa1a099565fa | 5bd36a4be7579e65fbc862521c01042ca841e3cd | refs/heads/master | 2020-03-20T04:10:32.641007 | 2018-07-03T06:38:41 | 2018-07-03T06:38:41 | 137,173,202 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | def add(x,y):
result = x + y
print("Addition is",result)
def sub(x,y):
result = x - y
print("Subtraction is", result)
def mul(x,y):
result = x * y
print("Multiplication is", result)
def div(x,y):
result = x / y
print("Division is", result)
print("""
1. Add
2. Sub
3... | [
"noreply@github.com"
] | noreply@github.com |
f4937a200488f1a80a92b5d267bdd363eb26490d | 5aec9b30005a8a5cc39da3c46ce65aa3e6710cfe | /tools/delete_queues.py | d499f5f82945a5b4422e2f65b1c1c2283cca3a81 | [
"MIT"
] | permissive | cloudworkstation/cloudworkstation-api | 90d0726e712cd403fdbcd7c2b39ec9f1ee1890ad | 661500aaaa304db13e99d8365428520c2c77f5dd | refs/heads/main | 2023-04-13T07:54:47.717843 | 2021-04-09T20:09:57 | 2021-04-09T20:09:57 | 338,401,801 | 0 | 0 | null | 2021-04-06T09:05:39 | 2021-02-12T18:35:52 | Python | UTF-8 | Python | false | false | 393 | py | import boto3
sqs = boto3.client("sqs")
def find_and_remove():
response = sqs.list_queues(
QueueNamePrefix="ec2_",
MaxResults=100
)
if "QueueUrls" in response:
for qurl in response["QueueUrls"]:
print(f"Going to delete queue @ {qurl} ...")
sqs.delete_queue(
QueueUrl=qurl
)
... | [
"richard.kendall@gmail.com"
] | richard.kendall@gmail.com |
d4c82c623f809d07116f9bf570439012c953ffec | d83f053cd10603ef76566f0218b0f8b390d3faea | /extendedEuclideanAlgorithm.py | 88567ff61b80b55fcb8a69437838016a66b27019 | [] | no_license | derekwzheng/Cryptography | 9017d5fb6ff53d340c8f2920a36a9e6081e7a61c | d1bcc1f68aaaef1ff64edddf21b02790dc879526 | refs/heads/master | 2021-01-22T18:23:10.898654 | 2014-05-23T07:58:12 | 2014-05-23T07:58:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # An implementation of Extended Euclidean algorithm in Python
""" The function takes positive integers a and b, and return a triple
(g, x, y) such that ax + by = g = gcd(a, b).
An iterative implementation of Extended Euclidean Algorithm """
def rec_egcd(a, b):
if a == 0:
return (b, 0, 1)
else:
... | [
"derekwzheng@gmail.com"
] | derekwzheng@gmail.com |
8b1ee0cd24fa9f64ad3eaa20c5eb111638e2523a | c2c2ba546f478cbd3e8ce1ca39e7275b44ae3305 | /my_demo.py | 1fed968d13c1f71a26482c2a05caf3be88df6acc | [] | no_license | pinkequinox/tumor-faster | 931469a88d7322b24f21d4399b25da48e097d674 | 0771c897cfa06018b0c3d96bfde62c43fe27118a | refs/heads/master | 2021-01-23T15:28:01.908309 | 2017-10-24T09:15:54 | 2017-10-24T09:15:54 | 102,712,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import cv2
import numpy as np
from faster_rcnn import network
from faster_rcnn.faster_rcnn import FasterRCNN
from faster_rcnn.utils.timer import Timer
def test():
import os
im_name = '1015172_1015172-3'
im_file = '/home/xsn/py3_faster_rcnn_pytorch/data/VOCdevkit2007/VOC2007/JPEGImages/' + im_name + '.jpg'... | [
"equinox.xsn@gmail.com"
] | equinox.xsn@gmail.com |
f09937e2a6f27c882a55d618d69bc747f10d2e4c | 11bcf60200aaf63704191205d27b52442a08212b | /demo/test_brower.py | 9deee2f98d69b84e498458899d9c8ffe08a66867 | [] | no_license | Timothyea/uri_pycharm | bf893748cd32a045cbaec34dae3f8dfa3a2605ff | a1dbe860ba3bcce460da4dd87ec9aebc43cf3499 | refs/heads/master | 2020-09-09T08:47:31.943627 | 2019-11-14T10:04:07 | 2019-11-14T10:04:07 | 221,404,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!/user/bin/env python
# -*- conding:utf-8 -*-
from time import sleep
from selenium import webdriver
# 打开游览器
def test_brower(driver):
driver.get("http://www.baidu.com")
sleep(1)
driver.get("http://www.jd.com")
sleep(1)
driver.back()
sleep(1)
driver.forward()
sleep(1)
driver.refr... | [
"you@example.com"
] | you@example.com |
0fe7abaa38ffa1edfb5cd8a605cf326ea0d105ad | b07adcac0a50f9047c4e4148c8986122ff1bb871 | /spellbook/feats/apps.py | 2f715e9e306a8f72a5e9ae9efb316a356423b828 | [] | no_license | CharlieBliss/spellbook | f60bd93ea42c3218d8ce020b7a8cca772688d491 | 49938e7ea74b0317f43ec2c45fa7dd53b71b111b | refs/heads/master | 2020-04-20T22:36:01.882065 | 2019-02-07T17:23:10 | 2019-02-07T17:23:10 | 169,145,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class FeatsConfig(AppConfig):
name = 'feats'
| [
"charles.m.bliss@gmail.com"
] | charles.m.bliss@gmail.com |
36d30a7d9cbf16d1354ce5449ee5eb77ef434225 | 33a646a6e3591b28142f7424504b32525902e8ff | /tekeite/web.py | 8653088a35f520a0a1965b789eec85995f3482e7 | [] | no_license | dragon77777/ProjectDragon2017 | eb0abd1acce51e90868da7f4e7fc9532dcee76b2 | 4e0139b571a6a75ce79b6bdf298064046d86625c | refs/heads/master | 2021-01-22T02:34:26.885778 | 2017-02-06T06:40:27 | 2017-02-06T06:40:27 | 81,055,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | #-*- coding:utf-8 -*-
import BaseHTTPServer
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
# 页面模板
Page = '''\
<html>
<body>
<table>
<tr> <td>Header</td> <td>Value</td> </tr>
<tr> <td>Date and time</td> <td>{date_time}</td> </tr>
<t... | [
"714639106@qq.com"
] | 714639106@qq.com |
f56b35960f5577338750959c80f4b2e5b9334c3a | 2b3c657e06b395107433b5994368a704fb77c863 | /ChatApp/init_db.py | 579445395902eb11424bc5d37e0831244eb1b3e5 | [] | no_license | Jasminmo/chat | a9e96d5daaf50b8099dbbd925c512d1a8f2fe7da | 5a5c7d712856aba75ad663dda565d4b098210da1 | refs/heads/master | 2023-06-06T04:33:29.169459 | 2021-06-27T19:27:55 | 2021-06-27T19:27:55 | 367,983,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | import click
from flask.cli import with_appcontext
from .models import *
from . import get_db
db = get_db()
def setup_defaults():
subjects = ['Cinema', 'Viral Stories', 'Memes', 'Hobbies']
topics = ['Something...', 'What about...', 'Popular']
admin = Users(username='admin', password=generate_password_has... | [
"jasmingiire1@gmail.com"
] | jasmingiire1@gmail.com |
a50fb05db2a8a67f1728f348c2d2a9a59980bb05 | 516a19ca0d5185d2e69c7878dedec38b156ca598 | /courseschedule.py | bae6fe48f69446616d965117e6bfa8749abc34c6 | [] | no_license | zpyao1996/leetcode | d766d3dbaf41e4d36089499f0e616d0f5e84c0fc | fc5f0d70ca35789600a7e1d7ec356f648d09a7bf | refs/heads/master | 2020-03-07T15:35:49.972257 | 2018-10-27T04:57:51 | 2018-10-27T04:57:51 | 127,559,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | class Solution(object):
def canFinish(self, numCourses, prerequisites):
"""
:type numCourses: int
:type prerequisites: List[List[int]]
:rtype: bool
"""
graph=[[] for _ in range(numCourses)]
for x,y in prerequisites:
graph[x].append(y)
... | [
"zpyao1996@gmail.com"
] | zpyao1996@gmail.com |
a0bf6e814b457e88e091de90c86fc61a779dc2b4 | ff4ca069f16041fd49f7c87216b9fdb5c0a5f658 | /UITest/Android/DxYcUiTest/Scripts/Clue/ClueCommentJumpTest.py | f6c06ce66942e809729d9f6555dc04e9073ee951 | [] | no_license | ban666/UITestForDx | cbaf86cca957d40151ae28e2dc81a3016cf778d4 | 5a3ccdc68651e648e7c838fc58b5a9d052a19f6b | refs/heads/master | 2021-01-12T01:36:06.206477 | 2017-02-17T09:09:27 | 2017-02-17T09:09:36 | 78,408,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | # -*- coding: utf-8 -*-
__author__ = 'liaoben'
import sys
from appium import webdriver
from time import sleep
import unittest
from random import randint
sys.path.append('../../Lib')
import time
import os
from appium_lib import *
from dx_action import *
from ui_comment import *
from ChnlRequest import ChnlRequest
from ... | [
"ban666@qq.com"
] | ban666@qq.com |
d7e4dab46833f8593c369c91de80e49a98a0619e | 806aee515816ea8f526275e4e4af831f38787e69 | /App/urls.py | c58ba95c01112997a6c12858dc4c5e70dac788b8 | [] | no_license | Easonchar/Code | baaab2877243f87231b01dc339d0abd342a46470 | 8ce35aa5d0966f71467e2507e862fef1aed34bf5 | refs/heads/master | 2020-03-31T20:35:48.504803 | 2018-10-29T12:39:44 | 2018-10-29T12:39:44 | 152,546,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from django.conf.urls import url
from App import views
urlpatterns = [
url(r'^$',views.index,name='index'),
# url(r'^index/$',views.index,name='index'),
url(r'^detail(\d+)/$',views.detail,name='detail'),
url(r'^list/$',views.list,name='list'),
url(r'^login/$',views.login,name='login'),
url(r'^... | [
"1009560311@qq.com"
] | 1009560311@qq.com |
faa28a123bda6210385e481d7591818ffde29967 | 9f837a9d5fe59c05e90f6b283f23555d5298af8a | /Infomath_root/asgi.py | e1baf48d309d897e68b21bf76e32c924028a267a | [] | no_license | alcibiadesBustillo/Infomath | 8ef929b8d900e344c399e9bf9d64fd81bff19e9d | 99525dd59e7a3fea0a8a2325cfe0afce296b1852 | refs/heads/main | 2023-04-20T11:20:53.007012 | 2021-05-13T07:22:24 | 2021-05-13T07:22:24 | 366,967,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for Infomath_root project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"bustillo.alcibiades@gmail.com"
] | bustillo.alcibiades@gmail.com |
677a627128ff0a1f1a70ef8820e3a44a8fcb4eb8 | 0c8e4931426819fbd631fccca93b0159c55c8b9d | /backend/manage.py | e3f233fb08b1de2ea65130d9fba875f0ab26ace7 | [
"Apache-2.0"
] | permissive | franklingu/dota2_explorer | c750d144e19239b1aa0d8ad8c47e781312fcfc05 | d5c0cd03b77bb4158084f4f81cfc8073977e13a8 | refs/heads/master | 2020-03-22T09:08:40.338681 | 2018-07-12T03:53:34 | 2018-07-12T03:53:34 | 139,818,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dota2site.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
4706209a5fe6f3772ac5918d1a4929cfcd459288 | a7ee97c81deac19d94228920f9661cab91e527b9 | /python/LeetCodeEasy/searchBST.py | f51f9786cc3bbfd513aefe1e9601fc95f8fde026 | [] | no_license | Vinicoreia/AlgoRythm | 70af63202798b3e4baf95521a35755a8cad81ba1 | af225fb159dca551b190d6a3ec636a00f2fedc52 | refs/heads/master | 2020-04-22T08:08:13.893998 | 2019-07-26T09:32:11 | 2019-07-26T09:32:11 | 170,234,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Solution:
def searchBST(self, root, val):
if not root:
return None
elif(root.val = val):
return root
elif(root.val>val):
return self.searchBST(root.left, val)
else:
return self.searchBST(root.right, val) | [
"viniciusfilgf@gmail.com"
] | viniciusfilgf@gmail.com |
dd83510832592a5ebeb15a94b4406cbaa3c70847 | c047606b37bb1e98e0ee5ca4720cfa0b34369403 | /ensemble/check_distillation.py | e77e7c2350ba132e26c28f67f1c16017472d3c61 | [
"Apache-2.0"
] | permissive | shengchen-liu/yt8m | 64d85431896f36b337198ec0dd93235f8b1bbece | 286d7e12c58930ab9a2018ec72cf30a6cacaed75 | refs/heads/master | 2020-03-22T10:04:12.640307 | 2019-01-24T01:09:19 | 2019-01-24T01:09:19 | 139,878,882 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"lawson901225@gmail.com"
] | lawson901225@gmail.com |
88c21be4f213d6242825a9b5c5a762d9a07d7b2d | 599caedb27dbd4573a8f717f23cd652b30aa6574 | /source/events.py | 8fb3941d40fb3ad65d12e74117d461f30dcb15a9 | [] | no_license | Kaedenn/Kaye | d3b752409fccad96fd8c45ed105a4692d2d81a66 | d57a195088b2108be24c7a97cab9dc9b7c5d87b9 | refs/heads/master | 2020-05-18T05:12:31.502003 | 2016-02-14T01:04:38 | 2016-02-14T01:04:38 | 31,037,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #!/usr/bin/env python
class KyeKilledEvent(Exception):
def __init__(self):
super(KyeKilledEvent, self).__init__()
| [
"kaedenn@gmail.com"
] | kaedenn@gmail.com |
838b11c3e333becb37fd59b7a1c8ec5b7c84a86c | 48a6a8041ab0b97d182be35d7a49c5081c6b6868 | /lesson_4/HW_4_UltraPro_account.py | 1d9ec40d4f186895e51c70d10ab858e66c535b06 | [
"MIT"
] | permissive | ikonushok/My_studying_Python_developer | 204d29ee941701e947ab1473e1cb6e29200867a4 | 1d4d2a40ed15ce2676147fb0e967c6fcd08dd513 | refs/heads/main | 2023-02-28T20:40:03.890723 | 2021-01-29T05:24:09 | 2021-01-29T05:24:09 | 315,576,379 | 0 | 0 | MIT | 2021-01-21T14:02:48 | 2020-11-24T09:08:22 | Python | UTF-8 | Python | false | false | 1,932 | py | # Menu
def menu(num):
"""
:param num:
:return:
"""
print(f'Доступная сумма: {num} руб.', end='\n\n')
print('1. Пополнить счет')
print('2. Совершить покупку')
print('3. История покупок')
print('4. Выход')
ans = input('Введите номер пункта: ')
return ans
# Покупка
def add(num,... | [
"ikonushok@gmail.com"
] | ikonushok@gmail.com |
82505bfe5b19290835228b477cd4b7acea97dcd6 | c5046ff113dce225974a86601b7195d2ef7950a1 | /FourthGen/Bprime_B2G/step1/BprimeBprimeToBHBZinc/BprimeBprimeToBHBZinc_M_500_TuneZ2star_8TeV_madgraph_cff_py_GEN_SIM_time.py | 62ec3d2ee81342d9b12d94ea89acc984bf12f607 | [] | no_license | dmajumder/cms-UserCode | b8c340f889a119f33be0b169c61308536a0fae78 | f519a221dc0d4e8634f7eab7a1a8c802a2708210 | refs/heads/master | 2020-03-26T10:16:49.305776 | 2013-08-15T03:21:17 | 2013-08-15T03:21:17 | 13,921,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,765 | py | # Auto generated configuration file
# using:
# Revision: 1.372.2.3
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/EightTeV/Bprime_B2G/BprimeBprimeToBHBZinc_M_500_TuneZ2star_8TeV_madgraph_cff.py -s GEN... | [
""
] | |
3660e339d9fac7eea9aaeaef28f1b6a38d5383ab | c8690c73bfda247b26da0548d6cf6bfe03fc15eb | /P1_chat_server/src/protocol.py | f2f25c2d955ec67a42af6b31b7d7cc304c0298ab | [] | no_license | joaoreis16/CD_projects | 1fb6b600b6592aa20a38a6c3c9b65c06a6f2ac47 | fda543588fddffa4d85e9761fae234471402cf4c | refs/heads/main | 2023-06-16T14:21:15.606819 | 2021-07-17T14:05:33 | 2021-07-17T14:05:33 | 386,951,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | """Protocol for chat server - Computação Distribuida Assignment 1."""
import json
from datetime import datetime
from socket import socket
class Message:
"""Message Type."""
def __init__(self, command):
self.command = command
def __repr__(self):
return f'"command": "{self.command}"'
... | [
"joaoreis16@ua.pt"
] | joaoreis16@ua.pt |
aca85ae0f0ade02fa6312a6c4f8e8e7885adb341 | 2a9b3bf8758c1199305a01c524be78b7287335b8 | /plugins/ga/bidsaspx/riverdale.py | 2693f804d7cf9e493c147f0583e28a7f4e6ca6c5 | [] | no_license | thayton/bidmap | e222f34701c15d4694f1f51999ecc9d894abfe41 | de279cd64f66c79b253b38101c8ccdf748e540ac | refs/heads/master | 2021-01-21T17:03:14.317309 | 2014-09-26T18:27:45 | 2014-09-26T18:27:45 | 17,402,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from bidmap.bidscrapers.bidsaspx.bidsaspx import BidsAspxBidScraper
GOVINFO = {
'name': 'Riverdale Georgia',
'location': 'Riverdale, GA',
'home_page_url': 'http://ga-riverdale2.civicplus.com',
'bids_page_url': 'http://ga-riverdale2.civicplus.com/bids.aspx'
}
def get_scraper():
return BidsAspxBidS... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
45d4417c4b16c0c3cdeb03b67ce5ba64431f3167 | 308270f357a35dd4fd45679d0938e49d225fb299 | /SeaFence_Lars_Timo/antlr_files_2/QLParser.py | d61cd84834f956875355f4b6dc5e5324c6ce5807 | [] | no_license | njtromp/endless-ql | 47f0c98e802b398b0d220de9018c8df11a7c7f6f | 7ad1cd65b52488044f9cbfb64c9b494b899df3a7 | refs/heads/master | 2021-04-06T01:36:31.836117 | 2018-03-11T17:01:25 | 2018-03-11T17:01:25 | 124,737,498 | 0 | 0 | null | 2018-03-11T08:31:05 | 2018-03-11T08:31:05 | null | UTF-8 | Python | false | false | 32,452 | py | # Generated from QL.g4 by ANTLR 4.7
# encoding: utf-8
from __future__ import print_function
from antlr4 import *
from io import StringIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3")
buf.write(u"!|\4\2\t\2\4\3\t\3\4\4\t\4\... | [
"timo.dobber@student.uva.nl"
] | timo.dobber@student.uva.nl |
9970cc05ec8be0e31b8b1160023fceca6807f5b7 | a6a375accaa73af49829203e35f7334d2b008b84 | /src/coffee.py | 6e14e41825952a4dd8f03373cb2896c748cb97c1 | [
"Unlicense"
] | permissive | TillJohanndeiter/state-chatbot | 5173f62e4ec13cd2685449fe5d32ae6b79d2a179 | bd24aa6669f4d22c57883729b6d4e620b81ff602 | refs/heads/main | 2023-07-01T21:22:12.127686 | 2021-08-11T14:35:48 | 2021-08-11T14:35:48 | 395,020,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | '''
Example for use on_entry and on_exit callbacks.
'''
from src.graph import State
MILK = 'Milk'
SUGAR = 'Sugar'
TEA = 'Tea'
COFFEE = 'Coffee'
HOT_CHOCOLATE = 'Hot chocolate'
class CoffeeMachine:
def __init__(self):
self.order = []
def add_order(self, item):
self.order.append(item)
def... | [
"till.johanndeiter@web.de"
] | till.johanndeiter@web.de |
7664713022dd8e26a730a02e298ae9a32456900f | 4e74981f4d304817a309efe8001ef5c94bbcbcb2 | /dzz_v1.2/workspace/wuxia/app/configdata/mongoconfig.py | 828e90f81b40ea3d1c1090bb1784873b6b9503e5 | [] | no_license | ducgt/dazhuzai | 3c03992cde5b24920840149f077a3fe402c33f07 | 78507088582f08598bb039284c31528feeb2a5bd | refs/heads/master | 2021-06-14T09:52:05.945581 | 2015-01-19T06:16:12 | 2015-01-19T06:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #coding:utf-8
'''
Created on 2014-7-21
Copyright 2014 www.9miao.com
'''
import mongoengine
def init_Mongo_Conns():
import globalconfig
mongoengine.connect(globalconfig.MONGO_DB,host=globalconfig.MONGO_HOST)
| [
"463473243@qq.com"
] | 463473243@qq.com |
ab0316cae44ee7038db16c0bf8bc60b176e23100 | d5312794a641f45f02cc5de5f1704501a891ba7e | /helloWorld/redis_test/test_demo1.py | 87ffa6aea59114ef2eb5c33fa87f7c3a54620dee | [] | no_license | lizhou828/python_hello_world | 8769cda2ee7ef24893f010c4de6a2e07c037e351 | c2239bbb8866ebb4cdc2dbf1bb65ca55f913ddf2 | refs/heads/master | 2022-12-22T20:44:47.276113 | 2019-11-21T06:33:43 | 2019-11-21T06:33:43 | 79,169,724 | 3 | 0 | null | 2022-12-08T05:22:37 | 2017-01-16T23:43:32 | JavaScript | UTF-8 | Python | false | false | 278 | py | # -*- coding:utf-8 -*-
# pip install redis
import redis
pool = redis.ConnectionPool(host='192.168.2.122', port=6379)
r = redis.Redis(connection_pool=pool)
r.set('kw', 'hello world')
print(r.get('kw'))
r.hset("hash_test", "key1", '你好')
r.hset("hash_test", "key2", '啊!') | [
"lizhou828@126.com"
] | lizhou828@126.com |
79c95e6c318385baac15e1a339ea94e5901b6b4f | 53345f4899573196fac31ecc28e2682155c47cf3 | /currency_-converter/main.py | b7a0078c8c0c610593f067de6e6505d90f4d0e9b | [] | no_license | Johnmahama/python-projects | 80deba0cd75cb2e8da9b5803df081ae35c92cfd5 | db4076e5cbfb64c245ea24b53ad34031d3e69005 | refs/heads/master | 2022-11-22T23:52:36.455113 | 2020-07-20T15:11:32 | 2020-07-20T15:11:32 | 281,151,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from currency_converter import CurrencyConverter
class Currency_Converter(object):
def __init__(self,amount,c_from,c_to):
self.amount = amount
self.c_from = c_from
self.c_to = c_to
self.currency = CurrencyConverter()
def __repr__(self):
try:
c... | [
"mahamajohn526@gmail.com"
] | mahamajohn526@gmail.com |
33fa998b0134c61d8a91afe8f58eb57cf3ac5284 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class421.py | 0402b6f229c87df1eed51ed312ab0549e1260aab | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,399 | py | # qubit number=3
# total number=74
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
dd79604e064e324c9050e70571fb46da441ef806 | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_TTBAR_14TEV_1100_1700_Conf3_14.py | 975b02de9db2d2cd0ffe7c63cb30d2b858426578 | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,287 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
3d43bf8e2d3514c7ceb68e2e89ac98bd635fe78b | ef7265d85d4156ca8536814bc6d7b2f2af5f995f | /2. Naive Bayes and Online Learning/utils.py | ef64cbf47723e93edded8376338b172fdd01608c | [] | no_license | dianshan14/Machine-Learning-NCTU | 516a3d1dc1b894470900c7ad11da5d77dd7bc2af | 4946f8f66bc045a5a5accadf702ba697ef3ffe36 | refs/heads/master | 2021-01-09T16:31:48.650646 | 2020-04-10T16:23:21 | 2020-04-10T16:23:21 | 242,373,039 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | import struct
import os
import numpy as np
def get_data(filename):
with open(filename, 'r') as f:
data = f.read().strip()
return data.split('\n')
def parse_MNIST(filename, image=True):
print('Processing %s' % filename)
with open(filename, 'rb') as f:
f.seek(0)
magic = struct.unp... | [
"sam851214@gmail.com"
] | sam851214@gmail.com |
77e2eb665274fcfa7378c3ad4efa93bf8d2afcde | 4fc01fdac7566c557e85585afc4ee0b4bf6d6f2d | /function/10-1/main.py | 7a5abd833f241d1b40a45b0eef53b1b04bdd5cf9 | [] | no_license | Dualic/checkpoint10 | f06cc71d36537986274ecf8939d1795eaba6b696 | 74bbaf7fcaae7714394ad6ce85625ff2eee4df66 | refs/heads/master | 2023-08-16T19:09:50.597646 | 2021-09-03T07:14:22 | 2021-09-03T07:14:22 | 402,666,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | def yourgreatfunction(request):
return "This is your new and improved function" | [
"ilkka.o.pekkala@gmail.com"
] | ilkka.o.pekkala@gmail.com |
a29928caa5fa7e88658b10c951d04856ff9a6165 | 56296556639f18f1bee774179756b8bbdcf84ab6 | /main.py | 11977846710b25840f83c6af926ef7d6af6d4996 | [] | no_license | zengru001usst/Auto-encoder-with-deconvolution | 4516ceb36892b695476e05f537811c3582959ee0 | 635a82e7559f45ea4f2db485e4a0a8b8036b4f21 | refs/heads/master | 2023-06-16T21:37:32.021726 | 2021-07-16T07:37:19 | 2021-07-16T07:37:19 | 386,542,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,700 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.utils as utils
class Auto_encoder(nn.Module):
"""
A simple auto-encoder using deconvolution as decoder
This program is designed for MNIST
"""
def __init__(self):
super(Auto_encoder, self).__init__()
... | [
"49513015+zengru001usst@users.noreply.github.com"
] | 49513015+zengru001usst@users.noreply.github.com |
0b88441716587203d59c3ac7690ec6804eee990d | 957592589270bf2b352f8cd2f0b1d25ac3cc04d2 | /test/query_test.py | 168ca0c16ee1df7aa54a6e305e0fb53c7ba75c1c | [] | no_license | Huangdu-Mental-Health-Center/MockHospitalData | d1aa513fad77ebb9212c3d907ba9f02d639502cf | 0d2566069b79a4ff27acf1361b9c191c88c001ed | refs/heads/main | 2023-05-06T04:34:05.057747 | 2021-05-27T11:59:27 | 2021-05-27T11:59:27 | 316,734,869 | 0 | 1 | null | 2021-05-27T11:59:28 | 2020-11-28T13:00:46 | Python | UTF-8 | Python | false | false | 2,933 | py | import unittest
# from marshmallow.mock_hospital.mock_class import Doctor, Hospital
# from marshmallow.mock_hospital.mock_xlsx import query as xlsx_query
# from marshmallow.mock_hospital.mock_api import get_doctor_list as api_query
class TestQuery(unittest.TestCase):
def test_db_single_query_if_success(self):
... | [
"noreply@github.com"
] | noreply@github.com |
3a73322aa34e6b98bf0a7f659664996a4e5097c1 | f94a8e7e4ce54aaf640093c095a2fc3a7309d22a | /Stream/migrations/0001_initial.py | 241f00d8ba6ad61fd83bacf7327ef7df674a6427 | [] | no_license | Machalkas/Oggetto | 2d7688a4db30214266643a4c595ecd9ba71ee169 | 9892c088d3b9549313bcdbb9e5e6756d79fde744 | refs/heads/main | 2023-04-03T12:37:55.044138 | 2021-03-30T19:19:13 | 2021-03-30T19:19:13 | 349,800,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # Generated by Django 3.1.7 on 2021-03-19 22:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Stre... | [
"al1999dk@gmail.com"
] | al1999dk@gmail.com |
ce4f926c0d9fd607823601ec9b413db31759d133 | 456433ac78b70cb8ae076ae166a85e349f181d7f | /systems/KURSSKLAD/KURSTERM/WORKPALLET/templates/U3S/palletFPCreate.py | 41b8299e8eda2772fe58df1b34a69b642eaebc48 | [] | no_license | shybkoi/WMS-Demo | 854c1679b121c68323445b60f3992959f922be8d | 2525559c4f56654acfbc21b41b3f5e40387b89e0 | refs/heads/master | 2021-01-23T01:51:20.074825 | 2017-03-23T11:51:18 | 2017-03-23T11:51:18 | 85,937,726 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 12,048 | py | #!/usr/bin/env python
# -*- coding: cp1251 -*-
##################################################
## DEPENDENCIES
import sys
import os
import os.path
from os.path import getmtime, exists
import time
import types
import __builtin__
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheeta... | [
"s.shybkoi@gmail.com"
] | s.shybkoi@gmail.com |
8001b985f8965b283ee6356038f2c6f1b6497c22 | 8c45b2078b7a057e84c0411c4e5dea514bddd4c9 | /jobrani1.py | 4296b1ee7c5594423c7d42120a564ca3633c3aaa | [] | no_license | zmohammadi4852/solve-sudoku | 98a63af5f3c6996fbb1e70aa8c98209a0effcdd4 | aaa3954d550b528017c7e41ade189d5528e52b9e | refs/heads/master | 2020-04-11T12:27:02.303770 | 2018-12-15T15:56:10 | 2018-12-15T15:56:10 | 161,780,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import numpy as np
mat=np.matrix([[0,0,0,1],[1,0,1,1],[1,0,0,1],[0,0,1,0]])
n=int(input("number="))
def function(mat,i):
for j in range(1,i):
mat*=mat
return mat
result=np.matrix([[0,0,0,1],[1,0,1,1],[1,0,0,1],[0,0,1,0]])
for i in range(2,n+1):
multiply=function(mat,i)
result=result+multiply
pri... | [
"zmohammadi4852@chmail.ir"
] | zmohammadi4852@chmail.ir |
dfa36a8a1cc93a46d476322d69d89592f68a9383 | 89db268a81314a97d5033405a01a0ffe41749e07 | /beamline/upload-tag-refrun-diffuser8.py | 3b23eb2699dfdddf222b16e6b45f6f38ec7ff57c | [] | no_license | durgarajaram/db-pyutils | 6e3b567a12c04fb86f5f1b5737224736e03dbeff | 2b338aef8de7901cdf95463bb9603b8a68f4ace5 | refs/heads/master | 2020-03-24T18:12:34.630738 | 2018-07-30T23:52:09 | 2018-07-30T23:52:09 | 142,886,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import cdb
from cdb import BeamlineSuperMouse
########## MASTER CDB
_MASTER_CDB = "http://172.16.246.25:8080"
_BL = BeamlineSuperMouse(_MASTER_CDB)
########## PREPROD CDB
#_PREPROD_CDB = "http://preprodcdb.mice.rl.ac.uk"
#_BL = BeamlineSuperMouse(_PREPROD_CDB)
bl_list_tags = sorted(_BL.list_tags())
print "list of ... | [
"durga@fermice1.fnal.gov"
] | durga@fermice1.fnal.gov |
f54830fa4daddb3af4735e5c90a7dcacbfc02bdc | 02ee8eb91c13123402900609ec559007617176c8 | /rubik_solver/Solver/Kociemba/Search.py | 198d4a995f2ef9fcdf3783024c746ae72dcde42f | [
"MIT"
] | permissive | ani4aniket/one-api-rubik-solver | 990fcb855875e5faf6684fea3d45bb7afe08cf23 | 5a8948ef874ce6082f5ceec9898074d80b0048dc | refs/heads/master | 2023-03-05T03:28:09.482446 | 2021-02-21T12:17:37 | 2021-02-21T12:17:37 | 340,858,446 | 0 | 1 | MIT | 2021-02-21T09:54:38 | 2021-02-21T09:01:45 | Python | UTF-8 | Python | false | false | 14,418 | py | __author__ = 'Victor'
import time
from rubik_solver.Enums import Color
import rubik_solver.FaceCube as FaceCube
import rubik_solver.CoordCube as CoordCube
from rubik_solver.CubieCube import DupedEdge
class DupedFacelet(Exception):
pass
class NoSolution(Exception):
pass
class SolverTimeoutError(Exception... | [
"u62316@s001-n001.aidevcloud"
] | u62316@s001-n001.aidevcloud |
c38eebff02f12b1749be0fd139a0bc6ebc93b2c9 | 3a3a8b1ee8eb4a39d7ae1da53d8f815c9bb2ced8 | /packs/forensics/actions/hash-identify.py | 90876102f1d4ebc176351566238dfcbb2fd943d5 | [] | no_license | RandomsCTF/stackstorm-forensics | 727d52cedad829f088274c981d5affecce900dc0 | df16306a112a8a6ffb4744c963803389e8e1f1be | refs/heads/master | 2016-09-06T02:33:34.057287 | 2015-11-04T12:22:48 | 2015-11-04T12:22:48 | 42,409,399 | 8 | 2 | null | 2015-09-14T18:10:50 | 2015-09-13T19:20:58 | Python | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/python
from lib.hashtag import identify_hash
from st2actions.runners.pythonrunner import Action
__all__ = [
'HashIdentifyAction',
]
class HashIdentifyAction(Action):
def run(self, hash):
return ", ".join(identify_hash(hash)[:3])
| [
"edward.medvedev@gmail.com"
] | edward.medvedev@gmail.com |
1be68602f2c4a11597c9cdba1ed45d0553d2390c | 5c71b930bb07c172b485e40c555dff5651602cdc | /websocket.py | e5f57f12b36a9895551dc3226367cb2ccf48ee74 | [] | no_license | playsten4096/iqoption_api | e628efee5336cf9bec5db3f85e16ab4d346feaa4 | ff8002a358a815a7cc03a5c92b64eb861facfaf1 | refs/heads/master | 2021-01-22T14:49:23.208816 | 2016-08-01T03:05:12 | 2016-08-01T03:05:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | # -*- coding: utf-8 -*-
"""Module for IQ option websocket."""
import json
import logging
from ws4py.client.threadedclient import WebSocketClient
class Websocket(WebSocketClient):
"""Class for work with IQ option websocket."""
def __init__(self, url, protocols=None, extensions=None,
hear... | [
"Alexander Skiridomov"
] | Alexander Skiridomov |
7854334959bac1ebe9ac48c0d8040972147f2819 | 75d9f347e3e0277777c63bd3c9e020f2d9e51598 | /Implemantation/ticketsystem/ticketsystem/wsgi.py | 6e032451c0fd2ea39b8450cefb891f172ccba748 | [] | no_license | mertmisirlioglu/onlineticketsystem | 57c1b60698dffd6c4dc5a99978e501987a8ec899 | 991db0fa5733b71eff86cc9b0a97a20c6a6a817c | refs/heads/master | 2020-08-19T09:26:28.711707 | 2020-01-17T05:07:02 | 2020-01-17T05:07:02 | 215,904,512 | 0 | 1 | null | 2020-01-17T03:33:02 | 2019-10-17T23:41:53 | HTML | UTF-8 | Python | false | false | 401 | py | """
WSGI config for ticketsystem 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"mertmisirlioglu@gmail.com"
] | mertmisirlioglu@gmail.com |
91b6976f97719589bd507150f4b13a4685106b55 | 54bc647b3789dd8b5f63948f8cf60f656352e971 | /Unique_Paths.py | 710dcd1c53ef57c878033d6faeaae293137c9dbe | [] | no_license | cutewindy/Leetcode | 37911ce46a2ded90d9114dca80875b726c965d24 | 01ffb610692078637a91563e0974291337faa2c0 | refs/heads/master | 2021-01-22T12:12:27.449790 | 2015-06-10T12:17:56 | 2015-06-10T12:17:56 | 35,147,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
#
# The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
#
# How many possible unique paths are ther... | [
"wengwendi@gmail.com"
] | wengwendi@gmail.com |
929f9c62dc239284ea660a83c74694b12e148494 | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/crawler_python_dm1920/ch4/ch4_19.py | 5dc74250957efd13c6fc8b6557fdcafa5be35fb0 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # ch4_19.py
import pandas as pd
import matplotlib.pyplot as plt
cities = {'population':[10000000,8500000,8000000,15000000,6000000,8000000],
'area':[400, 500, 850, 300, 200, 320],
'town':['New York','Chicago','Bangkok','Tokyo',
'Singapore','HongKong']}
tw = pd.DataFrame(ci... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
b44921e00185d8adba5646cfedfbd7c1c4b4164a | 9520afa35bd0fde379d2de327b04e8d85d1130fb | /uiBasicWidget.py | c91253b8466ef49e16d497100ebb714d02b4efa4 | [] | no_license | heber/huice | 19d1013fc678eb1293635e4cbd37c14ab58d7c30 | 0a4d6af7e6ad527c662f67133299f4d52d10f0bd | refs/heads/master | 2020-09-17T03:52:46.431199 | 2019-07-20T02:28:12 | 2019-07-20T02:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,204 | py | # encoding: UTF-8
import json
import csv
import os
import platform
from collections import OrderedDict
from six import text_type
from event import *
from vtEvent import *
from vtFunction import *
from vtGateway import *
import vtText
from uiQt import QtGui, QtWidgets, QtCore, BASIC_FONT
from vtFunction import jsonPa... | [
"524266571@qq.com"
] | 524266571@qq.com |
f4f65a3d9ef04cdc455c3f1c5fe646ea8b5ff2fc | 9281c60554544f8d8cc21683cb828df987635c6f | /script.py | df620497a7a8e65953b738abfa938e4669c4cb04 | [] | no_license | mannb986/a_sorted_tale | 1ec9b2742bc510e29b8801f5b0a9dec4abb3a314 | d75debb4814252fcab4172f77b895c4c60040cc1 | refs/heads/main | 2023-04-02T03:00:46.961953 | 2021-04-08T18:30:47 | 2021-04-08T18:30:47 | 356,012,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import utils
import sorts
bookshelf = utils.load_books('books_small.csv')
long_bookshelf = utils.load_books('books_large.csv')
bookshelf_v1 = bookshelf.copy()
bookshelf_v2 = bookshelf.copy()
# Defining different comparison sort function
def by_title_ascending(book_a, book_b):
if book_a['title_lower'] > book_b['... | [
"mannb986@gmail.com"
] | mannb986@gmail.com |
e52f9b51e3d81ba789212afe78fcbdf6a9833225 | 5278942e917295a7ec6febfb45cd42273f193b05 | /code/old_file/entity_embedding/t.py | b8c5723b26358b81f5e4d1234c2a51509b7599ab | [] | no_license | luke-feng/advancedTM_Red | eab78c37983fe414e84aa91b7e3d7b8283e4648a | 84392dc692e1a5251eaaca8becafff501d0f08d7 | refs/heads/master | 2021-04-03T00:23:02.142868 | 2021-02-19T09:17:14 | 2021-02-19T09:17:14 | 248,340,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | # -*- coding: utf-8 -*-
'''import gensim
from gensim.models import KeyedVectors
from gensim.test.utils import datapath
from gensim import utils
wordvector_path = '/Users/chaofeng/Downloads/2014_tudarmstadt_german_5mincount.vocab'
with open()
def load_model(wordvector_path):
model = KeyedVectors.load_word2vec_for... | [
"luke-feng@outlook.com"
] | luke-feng@outlook.com |
24c5440afcb1d02d3cded6a8f447b90c7edc1335 | baa24e885d043c9d87874d8950c56dbaec7aaae3 | /testData/settingData.py | 616745a5a5378f2f22e43a8871abd9446a56c63c | [] | no_license | dreamsql/TransactionServerTestScript | 7ed08a9422725f79326490f897ed75a80b5a8394 | 58166e8fe5c23a87128b6010f63facb86f356922 | refs/heads/master | 2021-05-30T19:25:42.637873 | 2016-03-23T00:42:41 | 2016-03-23T00:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,533 | py | # -*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
from Test.util import singleton
import re
from Test import xmlHelper
import os
import abc
import settingAccount
import entity
from Test.common import dbDataParser
class TradePolicyDetail(entity.Entity):
def __init__(self, headerDict, cols):
super(TradePo... | [
"Robert@WS0210.Omnicare.com"
] | Robert@WS0210.Omnicare.com |
6656d4495d332a47f3155f8bf90f35477c40a17e | 980eb65535a6d685c1961e745a994fa4981c1809 | /Bot_Functions.py | 275c41be0fbe452ea35921699668fa6432dbb947 | [] | no_license | Yggdrasil1/TelegRPG | e82cfef328b94c22c4c926f06d26167aae5ac435 | 9cd079602ccc7f23ba5411c5712f3954750491e3 | refs/heads/main | 2023-03-26T10:34:53.318313 | 2021-03-29T12:56:23 | 2021-03-29T12:56:23 | 351,115,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,629 | py | import Character
import global_variables as gv
from Messages import *
from Keyboards import *
import Gear
import Create_Images as ci
import numpy as np
import random
import Monster_Spawn
import Useable
import telegram
import time
from telegram import ReplyKeyboardMarkup, ReplyKeyboardRemove
def start_new_game(update... | [
"k.a.i.winkler@gmx.de"
] | k.a.i.winkler@gmx.de |
d78ec5d375a61d39378e1c786f504671a0bcd4d4 | 954c493a9105a464bee744c6c78a6d06bf8d531c | /simfoni_task/urls.py | c513fe902a316543936fb9ae3266b67fefa3af6b | [] | no_license | sandeepsajan0/suppliers-api | d235bb1e1e632cbd12e4b39ffb73e6b4be9e22f1 | 5b911471a4e02954296cfd2151f96480052d4a70 | refs/heads/master | 2023-02-26T01:57:03.408628 | 2021-01-24T12:39:34 | 2021-01-24T12:39:34 | 332,411,678 | 0 | 0 | null | 2021-01-24T12:12:52 | 2021-01-24T09:38:56 | Python | UTF-8 | Python | false | false | 1,302 | py | """simfoni_task URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-... | [
"sandeepsajan0@gmail.com"
] | sandeepsajan0@gmail.com |
a16fd3bc38021a1cbd05f2155ca066692604dadd | fb82ff30fba273eb4a30b5b2e1aceef6bd44ef16 | /labs/lab1/test_something.py | d8df569aa211c392b5b3c346276505cba1175110 | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | jpchauvel/python-tdd-lab | f882e7684f2793e70064fd45b09928b56a81521f | 2a2e0ee4da15e36e809cdded56cffb6e2b97d90f | refs/heads/master | 2021-10-10T12:11:53.765289 | 2013-05-31T00:30:20 | 2013-05-31T00:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | #!/usr/bin/env python
import unittest
from mockito import *
from something import Something, Operand
class SomethingTestCase(unittest.TestCase):
def test_init_should_assign_what(self):
# setup
# action
something = Something("what")
# assert
self.assertTrue("what", somethin... | [
"jchauvel@gmail.com"
] | jchauvel@gmail.com |
b6ac1b30f2e2945d3614065769acc51d93c141e1 | 5417e1346bd280746c5b64501370af6b4f040fd3 | /data/make_hdf5.py | 9c27323c466bf9a5e71ea1a20d52659d1b23c552 | [
"Apache-2.0"
] | permissive | shirgur/ACDRNet | 3fa03620acd1b45a6fcef8c0ea18fa0fc600f999 | bf7e5a93149dd1e71a42669f2463212e7bb82bd3 | refs/heads/master | 2020-09-22T09:05:18.522704 | 2019-12-01T09:01:33 | 2019-12-01T09:01:33 | 225,132,296 | 80 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import h5py
import os
from glob import glob
import numpy as np
from imageio import imread
from tqdm import tqdm
import argparse
parser = argparse.ArgumentParser(description='Convert Cityscapes to HDF5')
parser.add_argument('--images-path', type=str,
default='/path/to/leftImg8bit',
... | [
"me@gurshir.com"
] | me@gurshir.com |
707fd5dd8d9b2dc50e94704045899f6ca054ae81 | 8c02ab9a04290ffd5402de443599492d1fa6c606 | /holbertonschool-higher_level_programming/0x03-python-data_structures/0-print_list_integer.py | 3eea513e5bbbdd98e4099924c288417c7e4d39d0 | [] | no_license | Syssos/Holberton_School | 87149d86f245e23f3efbe794b8cb60c4b5ce52ef | 734c6c25167983593accdeffd30c3d9831ffebd8 | refs/heads/main | 2023-04-10T05:46:02.418480 | 2021-05-03T07:26:40 | 2021-05-03T07:26:40 | 363,835,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/python3
def print_list_integer(my_list=[]):
for i in range(0, len(my_list)):
print('{:d}'.format(my_list[i]))
| [
"paral.cody98@gmail.com"
] | paral.cody98@gmail.com |
f25f2801e7e085cce4ae334f1f668228f407c6d9 | 803bfc6a5eaa5791b0fdf939a87811f3334d0458 | /tests/test_room_freeze.py | 3eb13df4d90aa80123d7628615d74b9a1f300fb9 | [
"Apache-2.0"
] | permissive | matrix-org/synapse-freeze-room | 09c845cfacf7ebb6426ebca1692984e0a401a46c | f5e614a68ea223263e1adf42c8b78dabaa379814 | refs/heads/main | 2023-08-11T17:01:19.715389 | 2021-09-21T13:50:08 | 2021-09-21T13:50:08 | 389,677,698 | 3 | 2 | Apache-2.0 | 2021-09-21T13:50:08 | 2021-07-26T15:17:32 | Python | UTF-8 | Python | false | false | 17,495 | py | # -*- coding: utf-8 -*-
# Copyright 2021 The Matrix.org Foundation C.I.C.
#
# 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 require... | [
"babolivier@matrix.org"
] | babolivier@matrix.org |
ec654eb8283a3e2a92081b84490302b0b09eda85 | 49f29b239e981d94bd08d3e2632a6cd4450dd75c | /recipes/migrations/0010_recipe_total_time.py | 522a182fc0b8435c9bb6803daa95d3a94872978b | [] | no_license | gabrielajohnson/Recipeas | 7c29eb0d297f7f24b3e51a44edff8dc4814d8ad3 | 5b6cfe73886368e4b13367adf25ca064d568483a | refs/heads/master | 2023-07-11T18:45:02.549926 | 2021-08-31T20:44:51 | 2021-08-31T20:44:51 | 261,852,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.0.3 on 2020-04-30 22:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0009_category_custom'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='total_time',
... | [
"gabrielagj23@gmail.com"
] | gabrielagj23@gmail.com |
a1198ac966cef0a943705adff33dfca92da2c9de | 30d5c4e7935675afeb206a61e55aad17971b3759 | /venv/bin/wheel | 76aa0ec357728ef29610c86f5f84871e087f4c0a | [] | no_license | ChrisGk89/recommendation | e959f4a0ddd59e46672598645f8220c4206e4104 | 147157fcce04dcd2acef300514d5a0da45bb3ab4 | refs/heads/master | 2020-04-05T14:17:46.731278 | 2019-01-30T21:19:53 | 2019-01-30T21:19:53 | 156,922,585 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/christosgkalfas/PycharmProjects/recommendation/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"info@chrisgkalfas.com"
] | info@chrisgkalfas.com | |
f7b044026539ece804e5bf8f53bc93fe058cc84d | 44ea306fd23a031b16fddb0de30bc8f6c0e37d3c | /backend/api/urls.py | 3d9aa829352a05a767f93d8e18f1375f8e02215b | [] | no_license | tushar34/flip-backup | e1cfc1374d7da044a29ba4b63d86970a10f6059b | 8cc24648101683ec9ab060f8548a6aaf4739390f | refs/heads/master | 2023-08-01T04:25:40.009413 | 2021-09-14T13:49:07 | 2021-09-14T13:49:07 | 406,385,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | from django.contrib import admin
from django.urls import path, include
from .views import *
urlpatterns = [
path('login/', LoginView.as_view(), name="login"),
path('register/', RegisterView.as_view(), name="register"),
path('getallproduct/', GetallproductView.as_view(), name="getallproduct"),
path('get... | [
"tushar.paradva@dignizant.com"
] | tushar.paradva@dignizant.com |
c3eb42d47d98220ce96e97caded22f4c220dc513 | f6fb2b14bddedadd39ae8a060cd11ff7fd1effe4 | /Web Tools/jinja_tools.py | ed1947adbc1a6098bc500c84a0cc1e80741aa842 | [] | no_license | naveenailawadi/2020 | f3c9794df3fcb179f8c3f602590ee54b8bca204c | b535f554bd382910174af844e24a5c7f0f16f727 | refs/heads/master | 2021-09-08T20:26:39.932025 | 2021-08-30T21:56:50 | 2021-08-30T21:56:50 | 250,462,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from pyperclip import copy
def format_static(file):
formatted_string = f"url_for('static', filename='{file}')"
formatted_string = '{{' + formatted_string + '}}'
return formatted_string
def format_on_input():
while True:
some_file = input('Filename: ')
formatted_string = format_stati... | [
"naveen.ailawadi91@gmail.com"
] | naveen.ailawadi91@gmail.com |
82ce214ec32bea3e95a8df26a76b709fbb336f96 | afa211d7161b59414149fbde4f55af95e9e0ba25 | /setup.py | 71fd02ebf1dc1508ae7fc5e0cee36d0584e27f95 | [] | no_license | aniqueazhar/GPcrawler | 79830af4da47f6be97d84ae6f8550341124a3d5f | 523ce6476cc0d68bc91d7c392fd4c591ea5a8226 | refs/heads/main | 2023-07-16T10:12:43.056872 | 2021-08-24T07:40:17 | 2021-08-24T07:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/python3
from setuptools import setup, find_packages
setup(
name='GPcrawler',
classifiers=['Programming Language :: Python :: 3.8']
)
| [
"dolphin222@daum.net"
] | dolphin222@daum.net |
516fe6d919ac4f281d58d62191e17b1d1b0915db | 45f7a9b44ea1c45448703707da793d51151c0527 | /ui_tests/examples/examples_03.py | 6cbe239e09666abb076794312777347c51028740 | [] | no_license | basdijkstra/python-for-testers | a40d30432c31712c6d0eadbca9de73056ff10535 | 50bfbabfb2b8426eed8d048b0448959c34f71b61 | refs/heads/master | 2023-05-24T18:48:58.557924 | 2023-05-23T05:44:11 | 2023-05-23T05:44:11 | 219,865,075 | 7 | 4 | null | 2023-05-23T05:44:13 | 2019-11-05T22:47:09 | Python | UTF-8 | Python | false | false | 1,047 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
import pytest
@pytest.fixture
def browser():
driver = webdriver.Chrome()
driver.maximize_window()
yield driver... | [
"bas@ontestautomation.com"
] | bas@ontestautomation.com |
350eea22b8d26438f7aa51844ec20b50f9fe940d | ddd03d701afdf89820ac58e28469460569951d8d | /wedding/pages/migrations/0004_auto__add_field_rsvp_email__add_field_rsvp_response.py | e76abaa52637a544bb16a755e3f20eb729e4cf59 | [] | no_license | sunnyar/wedding | c8bb8d0fc0d1f323eb5463682f310c5a21c34f9c | b15d58f06dfc51afe1e8bf40588d892b924aaeb6 | refs/heads/master | 2018-12-28T02:38:43.327951 | 2014-11-03T22:51:18 | 2014-11-03T22:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,443 | py | # -*- coding: 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 field 'Rsvp.email'
db.add_column(u'pages_rsvp', 'email',
self.gf('django.db.m... | [
"sunnyarora07@ip-10-120-219-139.ec2.internal"
] | sunnyarora07@ip-10-120-219-139.ec2.internal |
7273bb0df3bdc0d5af594a9b832e7630eb3129aa | 7081389c8e83a47221ca8e9af2914a2644471d5b | /test.py | cf38bcc2ad4561f4a4485195caba40fed2303458 | [] | no_license | allenfishkuo/DataScience_project | 253d9efe91c9058d117ca434d6df5610d5f310ca | d2c19c24c2eb12c5a92675a4c4c538328a8810ec | refs/heads/main | 2023-02-16T02:37:40.368945 | 2020-12-30T11:57:26 | 2020-12-30T11:57:26 | 324,945,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,165 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 16:23:13 2020
@author: allen
"""
import torch
import torch.nn as nn
import numpy as np
import new_dataloader
import trading_period_by_gate_mean_new
#import matrix_trading
import os
import pandas as pd
import torch
import torch.utils.data as Data
import matplotlib.p... | [
"allenlike20@gmail.com"
] | allenlike20@gmail.com |
bbce0488f3266680f4aa4368584031c16a2d255b | 020524d293e3dd2c4258bd56f055f4898ce6d922 | /DM550 - Introduction to Programming/Python_examples/MandelbrötColour.py | b142c9e7c4d3b460035324f9f318f29a22be2989 | [
"MIT"
] | permissive | andjo16/course-help | 8c7fc0c35bed3dfe3396e60a0f3b26f0f96ed60d | 440595ff1b0d8a6b3f7db78eb710ac7aacd51066 | refs/heads/master | 2020-08-27T10:34:28.429072 | 2019-10-31T12:17:08 | 2019-10-31T12:17:08 | 217,335,147 | 0 | 0 | MIT | 2019-10-24T15:43:09 | 2019-10-24T15:43:09 | null | UTF-8 | Python | false | false | 3,786 | py | """Messy, but fairly optimized code for drawing the mandelbrot set using
turtle graphics"""
import turtle
"""These values can be modyfied to change the rendering"""
width = 200 #Size in max distance from 0,0. Medium performance impact
#width = 500 fits a maximized window on a 1080p screen
height = ... | [
"bjoernak@gmail.com"
] | bjoernak@gmail.com |
7464469387a198c2e33482e9162c0f5e81330d11 | 5ead79f9fd922fbd5c9ca43d5fb1230644deb477 | /synthetic_data.py | aec5bd6e0ed304603cc32c0f81c6dab9afac0640 | [] | no_license | yang0110/Graph-Learning | 32791a33729946978b5338390d99b83eb9c0bf6e | a660c3ac9f5ad9a1828df49d8781c511be8371b3 | refs/heads/master | 2020-03-26T10:03:25.954895 | 2018-09-20T17:16:56 | 2018-09-20T17:16:56 | 144,778,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,477 | py | import numpy as np
import random
from random import choice
import networkx as nx
import os
os.chdir('C:/Kaige_Research/Graph Learning/graph_learning_code/')
import pandas as pd
from sklearn.metrics.pairwise import cosine_similarity, rbf_kernel
from sklearn.preprocessing import StandardScaler, Normalizer, Min... | [
"noreply@github.com"
] | noreply@github.com |
353064e8a7d7337af50b295e09ea72a8b875c2ad | d1055160c237c54e9d8988ab3f7950a8b6d4446f | /routes/routesApi.py | d036c0f21d0f64c4cec59894f2ad20bcb136e82c | [] | no_license | dclavijo45/api-cars | e31efc7c2c47138745890bd8aaa9d54ac4b4be68 | 42c95232c1cb64ef01d3a637129440aa1645e167 | refs/heads/main | 2023-05-09T09:56:40.413574 | 2021-06-08T06:00:20 | 2021-06-08T06:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from controllers.apiCarsController import ApiCars
from controllers.apiCarsGetByIdController import ApiCarsById
api_v1 = {
"api_GPPD": "/api/v1/cars/",
"api_cars_controller": ApiCars.as_view("api_cars_api"),
# ----------------------------------------------------------------
"api_GPPD_byId": "/api/v1/car... | [
"danielclavijo19380@gmail.com"
] | danielclavijo19380@gmail.com |
ba238c5a584e1bd752ac009997ffc5b7b851ed43 | 5e20392dc4487c75e1e3061c1416a895317ca7c2 | /examples/simple_menu.py | 37b7bd17c1ffc5b613306c1301a0a27d22a2540e | [
"MIT"
] | permissive | rashidsh/navmenu | 7072f3cee55469ccbe7f79eb5ce81c86a3aab4bb | ec67b820462cc102417e214cd74eb7b1b97ad1f1 | refs/heads/master | 2023-08-18T02:20:26.021801 | 2021-10-03T16:56:54 | 2021-10-03T16:56:54 | 366,816,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | from navmenu import MenuManager
from navmenu.actions import MessageAction, SubmenuAction, GoBackAction, ExecuteAction, FunctionAction
from navmenu.contents import Content
from navmenu.io import ConsoleIO
from navmenu.item_contents import TextItemContent
from navmenu.items import Item, LineBreakItem
from navmenu.menus i... | [
"42511322+rashidsh@users.noreply.github.com"
] | 42511322+rashidsh@users.noreply.github.com |
9ea6dc86463d7d983d2fae71124122e1543afcf9 | 9124cb80e0a9b84443e03d762542e046027fddc9 | /fiano/apps/project/migrations/0009_auto_20210216_0444.py | ca0ee82108184ba450aa2821339f1268a32355a4 | [] | no_license | adylanrff/fiano-monitoring-v2 | 5c4a3c74922087ad18535658257783c0ddfde82d | 0a0911b3f6446296c5a7f81713b2353ba126c7be | refs/heads/main | 2023-03-04T20:37:55.773536 | 2021-02-16T16:46:50 | 2021-02-16T16:46:50 | 339,174,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # Generated by Django 3.1.6 on 2021-02-16 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0008_auto_20210216_0415'),
]
operations = [
migrations.AddIndex(
model_name='project',
index=models.Index... | [
"adylan.dev@gmail.com"
] | adylan.dev@gmail.com |
d28793a13d94e66adb0a928107c6cc62c918c359 | f21d3ef9eedaeaa4c3b84a288ef799b19df6f669 | /FilmAudioProgram/images/plot.py | d98d3aa01a5e63d05b0e2da1b5f5b84da655f555 | [] | no_license | mitali/fmp | 84f57344def0787e32cd26806500b0bd4960e7a9 | 0c1c678da5609a9091c263eb9074a53e216d386f | refs/heads/master | 2020-04-14T14:20:19.749836 | 2015-06-22T02:04:38 | 2015-06-22T02:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | '''
Created on May 5, 2015
@author: Mitali
'''
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('/Users/Mitali/Desktop/IndividualProject/InterimReport/img1.jpg', 0)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # hide tick values on X and Y axis
plt.show() | [
"mitalidargani@gmail.com"
] | mitalidargani@gmail.com |
546d5f3d75b16204af7150c593a018202f289b72 | dc9b0ea6714c29651cfd8b494862f31f07d85f28 | /project13_Poem_application_v_1_1/venv/Scripts/easy_install-3.7-script.py | 3ffe0822b1c606782a31dc123f99a0e6002cc984 | [] | no_license | Papashanskiy/PythonProjects | c228269f0aef1677758cb6e2f1acdfa522da0a02 | cf999867befa7d8213b2b6675b723f2b9f392fd7 | refs/heads/master | 2022-12-12T15:23:56.234339 | 2019-02-10T09:14:56 | 2019-02-10T09:14:56 | 148,336,536 | 0 | 0 | null | 2022-12-08T03:01:04 | 2018-09-11T15:10:44 | Python | WINDOWS-1251 | Python | false | false | 505 | py | #!C:\Users\Игорь\Desktop\Python\PythonProjects\project13_Poem_application_v_1_1\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__'... | [
"apashanskiy@gmail.com"
] | apashanskiy@gmail.com |
ab9df98e59d1a7e7d0481a0ede26e8090d4cd311 | e3d6f803beece2ecc2cde8de795fdd20291213ff | /nova/api/openstack/compute/views/flavors.py | fcdd6fcf4ca4d94a039a3ee90651b0c5c0ac1266 | [
"Apache-2.0"
] | permissive | panguan737/nova | 437c1adb81f3e9ef82c28ad957144623db13ba52 | 0d177185a439baa228b42c948cab4e934d6ac7b8 | refs/heads/main | 2023-01-07T00:08:44.069599 | 2020-11-01T14:00:42 | 2020-11-01T14:00:42 | 309,332,719 | 0 | 0 | Apache-2.0 | 2020-11-02T10:17:13 | 2020-11-02T10:17:13 | null | UTF-8 | Python | false | false | 6,492 | py | # Copyright 2010-2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | [
"147360410@qq.com"
] | 147360410@qq.com |
ec2cadeb66e67d4e79bc5fd3c5442916d74ec88b | fa0eac5b96fc46ebf8e31a7ccd7fa39f2e200bfc | /backend/home/migrations/0002_load_initial_data.py | 95b530a428d8a00e98272abc6771579b60ad009f | [] | no_license | crowdbotics-apps/mobile-7-dec-dev-16399 | be33b8eb17957c9b8a75b3d089114631f27b9109 | ab2cbc3e11dfbf709883b3cf49f4be109d779028 | refs/heads/master | 2023-06-27T20:39:09.405282 | 2020-12-07T11:38:48 | 2020-12-07T11:38:48 | 319,207,493 | 0 | 0 | null | 2021-08-03T20:05:57 | 2020-12-07T04:51:46 | JavaScript | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mobile 7 dec"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
816b2e7d8f4f5f355216f735e9bac2bb4a2ffb46 | 6105907134507a8b93613ba632f81d157722de1a | /trident/napps/snlab/trident_server/trident/convertformat.py | c8e8006c4229873178eafc10bf00974a59e1bbf6 | [] | no_license | snlab/afm2018-demo-unified-control | 71ce6200debfa73d7e29e07f12dcc045a9acc641 | 8ec3e12265f53afb97dd76df9c4daa432018cf21 | refs/heads/master | 2020-03-28T07:27:54.912895 | 2018-09-11T14:44:17 | 2018-09-11T14:44:17 | 147,903,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py |
#[(2, {'sip': '10.0.0.2', 'dip': '10.0.0.1', 'sport': 4, 'dport': 80, 'proto': 22}, [('00:00:00:00:00:00:00:01', 1), ('00:00:00:00:00:00:00:02', 4)]), (2, {'sip': '10.0.0.1', 'dip': '10.0.0.2', 'sport': 80, 'dport': 4, 'proto': 22}, [('00:00:00:00:00:00:00:02', 1), ('00:00:00:00:00:00:00:01', 4)])]
def convert_forma... | [
"yuta_o@outlook.com"
] | yuta_o@outlook.com |
7641f3fd1a8545b6084529b6cf40803dd3d1f69f | c35ea5ba5796c5792f05ee3809f7f6f7cb1dedea | /src/convert_to_chart.py | dc47a105885f4f946e3bac6f0f1ec07037a0cfed | [] | no_license | ermasavior/Seleksi-2018-Tugas-2 | 805838d3bf8bab72c937af9ff386ee852d083c6a | 6278c895d47a7bd552f4a4a44ac9f642164b7c10 | refs/heads/master | 2021-09-21T02:12:25.227982 | 2018-08-19T13:55:54 | 2018-08-19T13:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,377 | py | import main
import random
import json
def getCategories():
path = main.baseFilePath + 'categories.json'
with open(path, 'r') as f:
categories = json.load(f)
return categories
def toChart1(summary):
categories = getCategories()
series = [{}]
drilldownseries = []
series[0]['name... | [
"erma.safira@gmail.com"
] | erma.safira@gmail.com |
e115f8c58f3ff28e31c03e8612eb5e185f42c21d | e71ef27385b364f5465717271dc6bc1baf6fd8ac | /Merge.py | 47bcdf770248a1b12362689d40472a43a4e0506c | [] | no_license | EspressoCake/Etc | 1e8d7955af5ae5a6b227d7ca02295df0a202f3ed | 6cfb8ad2ee76b868736a5601e615d098dfb8b06f | refs/heads/master | 2020-06-11T06:50:34.464719 | 2016-12-19T17:24:15 | 2016-12-19T17:24:15 | 75,742,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | import os
import ctypes
import webbrowser
from PyPDF2 import PdfFileReader, PdfFileMerger, PdfFileWriter
ctypes.windll.kernel32.SetConsoleTitleA(b"PDF Merger")
def PdfMerger():
files_Directory = input('\n' + 'What directory are the files in?:' + '\n').replace('\\', '/')
upside_User = str(input('\n' + 'Did your dumb... | [
"lucas.justin.k@gmail.com"
] | lucas.justin.k@gmail.com |
9e43aee2e811d9932c1cd2b48861db79f76806dc | fc32b3538bcb29b1ba4dcdfac2d453fd341117a2 | /5.文件和IO/2.dict2xml.py | 28e166aa132a97d6ef80bdbe989fe1171f2e5c57 | [
"Apache-2.0"
] | permissive | weicunheng/gulu | 17cfac759ae0a97cee699cf73f1e844ccd8b4d50 | c37bbe489a00fd2a6bddd8e662e350baf580aed9 | refs/heads/master | 2020-07-22T13:22:48.759870 | 2019-10-22T07:46:19 | 2019-10-22T07:46:19 | 207,215,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding:utf-8 _*-
def dict2xml(data):
xml_data = []
for key, value in data.items():
if isinstance(value, dict):
xml_str = dict2xml(value)
s = "<{key}>{value}</{key}>".format(key=key, value=xml_str)
elif isinstance(value, list):
s = ""
for dic ... | [
"weicunheng@gmail.com"
] | weicunheng@gmail.com |
1e383611800f2515fcceda57e892b933499034c2 | 36d980710f95506b71df4be76c6589ad094a1926 | /Package_example2/images.py | 952ca9047a9a53c02ea300b584e020c3f79938a5 | [] | no_license | GabrielBlancoM/Tarea3V2.0 | cf46449825945a3d7076bbe4bf1f63c24012c0c3 | 074ee4fb7849eb787c5925838c9d37fdf51bddc8 | refs/heads/master | 2022-12-28T01:17:36.947758 | 2020-10-16T03:44:35 | 2020-10-16T03:44:35 | 304,466,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # Se deben instalar las librería, ya que estas no la traen
# se pueden instalr con los comandos: "pip install opencv-python" en phyton 2
# o "pip3 install opencv-python" Phyton 3
# y "pip install matplotlib"
import cv2
import matplotlib.pyplot as plt
import argparse
import time
# digite 1 si quiere ver la imagen a es... | [
"gaboblanco25@icloud.com"
] | gaboblanco25@icloud.com |
7ef8f4ec72f930eb88693061e793ec74b5cc19a3 | 19666396c4d56f4dcd2790b6c8a6b18745767f90 | /task.py | cb5e139ed740c0339e517e50b0c4cff7b318fb27 | [] | no_license | himdhiman/taskpy | 5504b461f4ae161cfabc3f552752dd2641eabf6f | 2d343da545bb20b8c30c8d7d6bde83e241ca5493 | refs/heads/master | 2023-03-29T09:07:35.797755 | 2021-04-08T07:05:15 | 2021-04-08T07:05:15 | 355,798,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,680 | py | from celery import shared_task
from api import models, serializers
from rest_framework.response import Response
import os
from pathlib import Path
from api.models import Problem, Submission
from asgiref.sync import async_to_sync
from channels.layers import get_channel_layer
import json
from django.core import serialize... | [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
a502321e2690c313b4b7b13406aa5fcba1c2b341 | 369e0cbddf3cf698f6fc923aa05f74f7f45829d6 | /notice_of_appearence_into_db.py | 5718242b7b988e4d4c540f9690139058e4b073f3 | [] | no_license | iamkhush/boondoh | 70de9d2b9c50f8a46fc2bc663b641f3d068f061c | 2f07779ab94e723e6749cb37ff470046699443e6 | refs/heads/master | 2016-09-06T19:43:56.626932 | 2011-10-21T16:02:23 | 2011-10-21T16:02:23 | 2,360,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | import xlrd, sys
import MySQLdb
sh = xlrd.open_workbook(sys.argv[1])
sheet = sh.sheet_by_index(0)
db = MySQLdb.connect(user="root",passwd="12345",db="ITC")
c = db.cursor()
for rownum in range(25,sheet.nrows):
print rownum
c.execute(""" INSERT INTO `ITC`.`IP_cases_n` (`id`, `doc_id`, `invoice_numb... | [
"ankush.chadda@gmail.com"
] | ankush.chadda@gmail.com |
fa2f2d62c4bced5baccc042351fc881dfc5da08b | 6361a0807ee3970f59d1689aa4af922dcc40e262 | /ui/pages/extra_window.py | ea5e694d7f5156a7d9474777d21fe1295b80ceb2 | [] | no_license | laKostin951/BazePodatakaProjekat-G2-S1 | e38a404c22fd699372b29b2efd95205d398ee653 | b223ffdd07255de9506f677b790f181351ca5cd6 | refs/heads/main | 2023-03-28T01:41:29.946228 | 2021-03-27T14:00:23 | 2021-03-27T14:00:23 | 331,755,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,198 | py | from PySide2 import QtWidgets, QtGui
from PySide2.QtCore import QCoreApplication
from PySide2.QtWidgets import QLineEdit, QPushButton, QCheckBox, QLabel, QTableWidget, \
QTableWidgetItem, QFrame
class ExtraWindow(QtWidgets.QDialog):
def __init__(self, parent):
super().__init__(parent)
... | [
"kostiigi@gmail.com"
] | kostiigi@gmail.com |
6d0505bddaca68f2ca35c031d9afc346c7ee6be3 | 2d04af9d1fb27263a9c78afe265995d31696eb6f | /meter.py | fae6934ae055a56b8552751ff2865acf3894287a | [] | no_license | DVMix/mobilenet | b2122517324677b3549104de162e79efdc942ce0 | d8016056e63f517f7da9a1b0f30c0d8b925fbb9b | refs/heads/main | 2023-03-24T01:51:49.098153 | 2021-03-14T06:28:13 | 2021-03-14T06:28:13 | 347,560,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class AverageMeter:
def __init__(self):
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, num):
self.val = val
self.sum += val * num
self.count += num
self.avg = self.sum / self.... | [
"noreply@github.com"
] | noreply@github.com |
523ea788cae3900a804b02dacb17fc1fb8428fc7 | e19bb63df55d32f7cb699665e142d8c025a01ae3 | /rospy-builder/setup.py | 6effa870ba7b877801667f1a82d7053588154ef3 | [
"Apache-2.0"
] | permissive | otamachan/rospy-index | fb5486a1a4854983a120e4f21604d35d58a471a1 | 5e1023e938e191a241ff220a35a9e67001552bb8 | refs/heads/master | 2020-07-05T23:32:11.617360 | 2019-10-19T07:50:03 | 2019-10-19T07:50:03 | 202,817,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from setuptools import setup
setup(
name='rospy-builder',
version='1.0',
description='rospy package build tool',
author='Tamamki Nishino',
author_email='otamachan@gmail.com',
url='https://otamachan.github.io/rospy-index',
packages=['rospy_builder'],
install_requires=[
'catkin_pkg... | [
"otamachan@gmail.com"
] | otamachan@gmail.com |
ce44234617dd05ad5c3e05d20508e558a516f35a | 6ff46960fc88f3d64ce371d12c76144121346a14 | /venv/Lib/site-packages/nnfs/core.py | b7247eed4e3f538842d65ca67d1796ad93ed024c | [
"MIT"
] | permissive | BLTowsen/NeuralNetworkFromScratch | e84017c11af18d07fad2103f475add7ea67fbe9f | fe222a2142f66c9bab5a4ff8539e9c4b46d4e597 | refs/heads/master | 2022-11-24T05:00:46.892421 | 2020-07-30T08:56:59 | 2020-07-30T08:56:59 | 280,445,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | import numpy as np
import inspect
# Initializes NNFS
def init(dot_precision_workaround=True, default_dtype='float32', random_seed=0):
# Numpy methods to be replaced for a workaround
methods_to_enclose = [
[np, 'zeros', False],
[np.random, 'randn', True],
]
# https://github.com/numpy/... | [
"lawrancetowsen@gmail.com"
] | lawrancetowsen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.