blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b29cd8cd90efb7cd3c3dcc4d135b53ae21c536a5 | f8104b29a8d0dbeb407060e494a206ca69335aeb | /tools/datasets/buildchange/json2coco_city_trainval.py | dabe0ff848ca135aa66f2af774888c1dc40685b2 | [] | no_license | Sebastixian/wwtool | c19f665f96e8b942e94af47db590f5bb28072f06 | 2f462a3d028b766234d62a3ef706a0f08f10680a | refs/heads/master | 2023-06-01T04:21:22.066639 | 2021-06-25T07:40:13 | 2021-06-25T07:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,213 | py | import argparse
import os
import cv2
import json
import csv
import shutil
import numpy as np
import wwtool
import os
import cv2
import mmcv
class SIMPLETXT2COCO():
def __init__(self,
imgpath=None,
annopath=None,
imageset_file=None,
image_format='.... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
921643a8d9159a227ee264036f1b48ce70509743 | c295b7f65e424822c3909634e34ce97c64932a8e | /bab 2/server_udp.py | d691a69a64fc39f45922d460bc1b0e99c11eb95e | [] | no_license | imamsantosa/Jaringan_Komputer | e67345c0d6ce012694296ba74cf49ab5fccbccd8 | 8b60176710aafaacca93a0defde8c7c03d71b233 | refs/heads/master | 2021-01-10T09:42:41.244174 | 2016-03-14T17:46:56 | 2016-03-14T17:46:56 | 53,878,301 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from socket import *
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_DGRAM)
serverSocket.bind(('', serverPort))
print "The server is ready to receive"
while 1:
message, clientAddress = serverSocket.recvfrom(2048)
modifiedMessage = message.upper()
serverSocket.sendto(modifiedMessage, clientAddress) | [
"imamsantosa123@gmail.com"
] | imamsantosa123@gmail.com |
869d7648d5fa41c0f2565d64f68aac7d9ec636dc | 8221b7f8740ebff0ae44f3fee48fd06c79483617 | /Physics/Electron.py | 2f1f3d9a93ffc7d82886123d8a89a7d9c94c4938 | [] | no_license | austinh2001/CyclotronHonorsProject | 16b5e31540a85b2c01a87f6efbf4f1a663195e25 | 7544513dbc442c59a67a3aafced5aeea7f55360e | refs/heads/main | 2023-04-02T05:06:26.652334 | 2021-03-25T00:31:56 | 2021-03-25T00:31:56 | 351,251,192 | 1 | 0 | null | 2021-03-25T00:18:21 | 2021-03-24T23:26:36 | Python | UTF-8 | Python | false | false | 1,279 | py | import pygame
from Physics.Particle import Particle
from Physics.Vector import Vector
from Physics.CoordinateSystem import CoordinateSystem
from Physics.Force import Force, CREATEFORCE, NONE, CONSTANTFORCE, EARTHGRAVITY, SQUARELAW, CUBELAW, GRAVITATIONALFORCE, ELECTRICFORCE
class Electron(Particle):
def __init__(s... | [
"austinh2001@gmail.com"
] | austinh2001@gmail.com |
1cca891eba9b94cc67116cdbe896d24da3809e90 | d67a5cc21cd8a22a707a46621a1f5bcaa89baff1 | /imports.py | 31c9bb3e888db5c254bf7a846aad80e5637cc11c | [] | no_license | Evotushon/Evotushon-s-Guardian-Bot | c9891ce32538d6bab3013d37902d1ccc3a1844a7 | 9973690fee777c44fbcedc62def619fc2309e9d3 | refs/heads/master | 2023-08-19T14:55:00.874019 | 2021-10-20T14:45:17 | 2021-10-20T14:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import discord
import os
import dotenv
from dotenv import load_dotenv
from discord import embeds
from discord.ext import commands
import random
from discord.player import FFmpegPCMAudio
import asyncio
import time
import traceback
import sys
import discord
from discord.ext.commands import Bot
from discord.enums import S... | [
"danielspa2019@gmail.com"
] | danielspa2019@gmail.com |
f2462d67b16186954cf4e1db3efde0ad37bf674f | 4f0ecde0978d1b65ae229c855c9488fb067f4ea9 | /kakao/kakao_2020/kakao_1/__init__.py | 2b51456dc8302910c9386534cbde9aa2e2eca95d | [] | no_license | LazyRichard/coding-test | 6d84a8a5287d987c23537162b4276a71d06de216 | c2fa6c6b307db6e0b3049a12e585c3cb7d1b8e24 | refs/heads/master | 2021-05-19T23:41:02.648174 | 2021-04-29T07:51:35 | 2021-04-29T07:51:35 | 252,088,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from typing import List
def solution(test_input: str) -> int:
if len(test_input) == 1:
return 1
answer: List[int] = []
for i in range(1, (len(test_input) // 2) + 1):
temp: List[str] = []
for j in range(0, len(test_input), i):
temp.append(test_input[j:(j + i)])
... | [
"sof.midnight@live.co.kr"
] | sof.midnight@live.co.kr |
2ebebca7e2e70361c06ad04d94f701dab5a3c6d3 | a753d3bd70c4686da5bb886d6652b889ae9d2d0d | /test14.py | 8a8f97c9fa4cd21075dd4b1194269ea8192c643b | [] | no_license | sxttxkxnm/python | 319ac8b11470976aaa14c03916ad8e3194d375e2 | 673dfc94e5c88307b179b9f35b93441fef305be6 | refs/heads/master | 2023-06-19T10:57:37.420321 | 2021-07-19T13:38:10 | 2021-07-19T13:38:10 | 336,190,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import os
choice = 0
filename = ''
def menu():
global choice
print('Menu\n1.Open Calculator\n2.Open Notepad\n3.Exit')
choice = input('Select Menu : ')
def opennotepad():
filename= 'C:\\Windows\\SysWOW64\\notepad.exe'
print('Memoradum writing %s'%filename)
os.system(filename)
def opencalculato... | [
"poom_1004@outlook.co.th"
] | poom_1004@outlook.co.th |
c599481b7904761d4e4518acc651183692d4f2d5 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/xml/etree/cElementTree.py | cf14d28fc01a58d8e8845641181b34f25ec71840 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #Embedded file name: xml/etree/cElementTree.py
from _elementtree import *
| [
"bizonix@me.com"
] | bizonix@me.com |
3ed16fe01640223215e8ecb9dd68102306c1c59b | 592498a0e22897dcc460c165b4c330b94808b714 | /1000번/1406_에디터.py | a89e92eec4a01dc869414b5d997fc614f0d9d6f9 | [] | no_license | atom015/py_boj | abb3850469b39d0004f996e04aa7aa449b71b1d6 | 42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d | refs/heads/master | 2022-12-18T08:14:51.277802 | 2020-09-24T15:44:52 | 2020-09-24T15:44:52 | 179,933,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from collections import deque
import sys
ip = sys.stdin.readline
lst = deque(list(ip().strip()))
rst = deque([])
for i in range(int(ip())):
cmd = ip().strip()
if cmd[0] == 'L':
if len(lst):
rst.appendleft(lst.pop())
elif cmd[0] == 'D':
if len(rst):
lst.append(rst.popl... | [
"zeezlelove@gmail.com"
] | zeezlelove@gmail.com |
9006babf1473dae988d40f9aa1ea76ff377e10e2 | 76c81dd2a7e65f292fc7fa46f23eebaa5a40e799 | /luckysheet_obj/luckysheet_obj/wsgi.py | 1670bfc804a91201a6b2a8c77b3fead8bdb2aa90 | [] | no_license | billlaw6/luckysheet_django | 2631374d20d4cf1d7ac78213cdb339fec6158abc | bc9ebd89bcfb5cfbf7bcdcb7e168210b183df172 | refs/heads/main | 2023-05-01T14:39:34.723875 | 2021-05-15T08:20:08 | 2021-05-15T08:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for luckysheet_obj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"lq65535@163.com"
] | lq65535@163.com |
e1b448acf3b730cb600a2828622a2b86bc3e47d9 | c9f4de7bf63df23325b477d3375a1bfb99865059 | /main_a3.py | 2a0057fd589f5aa522859a2167872c1f9d5d7b8e | [] | no_license | EliHill/TextAnalysis | 440a15dca3f467ab5d79a234582a9ca3b4c7ab10 | 44b05bd1995290bbbd7972a1f8953aa5e75be37e | refs/heads/master | 2020-09-30T16:24:18.911419 | 2019-12-06T19:52:17 | 2019-12-06T19:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,750 | py | """main_a3.py
"""
import re
import os
import math
import nltk
from nltk.corpus import brown
from nltk.corpus import wordnet as wn
from nltk.corpus import PlaintextCorpusReader
from fsa import FSA
# NLTK stoplist with 3136 words (multilingual)
STOPLIST = set(nltk.corpus.stopwords.words())
# Vocabulary with 234,3... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
e0cca15b4698cfcef55c59c32ad1ec019b327f0b | b576ed1ff65700d505f687961cbed86fe94b1c3f | /objectModel/Python/cdm/utilities/copy_data_utils.py | 52fd4d1ee5390f942bbde1ef66b2b5cca9e4104f | [
"MIT",
"CC-BY-4.0"
] | permissive | AzureMentor/CDM | c80761737c92cf6561d4b982b4882b1b1c5265d3 | 84d3928995e7ab3bba0a283771e5e26639408643 | refs/heads/master | 2021-11-30T17:52:42.274900 | 2021-11-27T18:38:19 | 2021-11-27T18:38:19 | 217,569,642 | 1 | 0 | NOASSERTION | 2021-11-27T18:38:20 | 2019-10-25T16:04:16 | Java | UTF-8 | Python | false | false | 870 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information
from typing import Union, List, Optional, TYPE_CHECKING
if TYPE_CHECKING:
from cdm.objectmodel import CdmCollection, CdmObject
from cdm.utilities import Res... | [
"nebanfic@microsoft.com"
] | nebanfic@microsoft.com |
eccf91200ca22006ec27e2a110af49ed35f9e3e8 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/kernel_tests/linalg/linear_operator_zeros_test.py | 8ca4e0f796ff15070fe471e1bafd0e2de2eef998 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 8,721 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e85fdd0b379d44e47a1ca606ee20c8893cb096dc | be4373a6ecda4f8b5a911c661ea618f6d1f48b8d | /venv-win-py/Scripts/futurize-script.py | 9c91538bb267339876a19e7009611a40fe362940 | [] | no_license | zzm88/weirdinstrument_mezzanine | a46175c875d4e25a54e923b9845d7b7c413b6ec9 | 954b4faa717ba9dc1aa874b66ad0cbf7c60b094a | refs/heads/main | 2023-07-06T21:08:01.392907 | 2021-08-11T08:34:06 | 2021-08-11T08:34:06 | 390,909,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | #!c:\users\35352\documents\localprojects\weirdinstrument_deploy\venv-win-py\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata impo... | [
"sea3@qq.com"
] | sea3@qq.com |
2fac5ac1386dcc3835fa66a4a1a7bf2e0b51315d | 1bb50dc75cd1de2f68de7947f08965538e9b5f7b | /app/core/models.py | bb5009a28104125c3b02483dad835d6cbbcd1b50 | [
"MIT"
] | permissive | victorstevan/recipe-app-api | 73a7e77adcc608aa873a36686f73b7e19553c781 | be56d255e7e065478c542c57c59987105709fd0d | refs/heads/main | 2023-03-04T11:58:53.377068 | 2021-02-15T01:04:51 | 2021-02-15T01:04:51 | 338,922,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
"""Creates and saves a new User"""
if not email:
raise ValueEr... | [
"victorstevan@discente.ufg.br"
] | victorstevan@discente.ufg.br |
7ff960b1f5fe2ab8db39e70e382084c495881cb8 | 1b12e6096c47312b67fa6ff223216945d2efb70c | /sandbox/vtk/selection/myinteractor.py | 139202e49f1fe0d1418bde34dcae5a42beb929c2 | [
"Apache-2.0"
] | permissive | rboman/progs | 6e3535bc40f78d692f1f63b1a43193deb60d8d24 | 03eea35771e37d4b3111502c002e74014ec65dc3 | refs/heads/master | 2023-09-02T17:12:18.272518 | 2023-08-31T15:40:04 | 2023-08-31T15:40:04 | 32,989,349 | 5 | 2 | Apache-2.0 | 2022-06-22T10:58:38 | 2015-03-27T14:04:01 | MATLAB | UTF-8 | Python | false | false | 4,329 | py | # -*- coding: utf-8 -*-
import vtk
colors = vtk.vtkNamedColors()
class MyInteractorStyle(vtk.vtkInteractorStyleTrackballCamera):
def __init__(self, parent=None):
"""register to event listening
"""
self.AddObserver("LeftButtonPressEvent", self.leftButtonPressEvent)
self.selection... | [
"romain.boman@gmail.com"
] | romain.boman@gmail.com |
154e62c1adac4bc07d2eb032a2e5be42fb548b37 | 397498fe98dd87abcd79df77fc6cec1c65ff16d7 | /scripts/fix-focus | e55c6f921fcdf382be4351670e9fd4b09d1674ba | [] | no_license | CADBOT/.pentadactyl | a52db9e2f3f2e1717f1763275ae4ea9298e355ad | 7bb165604b361cd401b99a4fc719c5fe9afdd887 | refs/heads/master | 2020-02-26T16:28:54.514793 | 2015-04-19T14:01:37 | 2015-04-19T14:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | #!/usr/bin/python
# Automator -> Serive -> Run Shell Script -> Service receives: no input -> in: Firefox ->
# Shell: /bin/bash -> content: path-to-this-script -> Saveas: fix-focus
# System Preferences -> Keyboard -> Keyboard Shortcuts -> Services -> fix-focus -> bind a key
from Quartz.CoreGraphics import *
def mous... | [
"azuwis@gmail.com"
] | azuwis@gmail.com | |
cbaae3b29f320b1ca247854342e356e573cae8b5 | 75a56d75b6ad05444988371bd61ffdc7844ee740 | /TopL.py | cf8a382c472264e3985afaa35f9a5d29d84c2157 | [
"MIT"
] | permissive | bflorentino/Contact-Book-App | aadfcf375a3790595280898b856bdb3b8553307e | 1d0601a3646fde2267e2489063f54321816f7ce8 | refs/heads/main | 2023-07-11T04:00:27.909803 | 2021-08-14T20:51:42 | 2021-08-14T20:51:42 | 396,089,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | from GraphicInterface import GraphicInteface
from WorkInterface import WorkInterface
import tkinter as tk
class TopL(GraphicInteface):
"""[summary]
Args:
GraphicInteface ([type]): [description]
"""
def __init__(self, title, geometry, resize, bg, window):
super().__init__(title, geome... | [
"bryanmontero81@gmail.com"
] | bryanmontero81@gmail.com |
677f06178ebfb81cb956127b976b669823dee70f | e4d33e7ca8a78cd63eda5df0fa8b705d8074954f | /strategy.py | 3afa3ae97b8ed11be66431f85503ef4f9743cc19 | [] | no_license | henriquekfmaia/option-strategy-python | 2b550118e610c09f3f319e11cacee095f8522f15 | b27a0ada3c431552d9f9633b5859cbe6415f2a3c | refs/heads/master | 2020-06-30T21:32:06.581209 | 2019-08-07T03:15:19 | 2019-08-07T03:15:19 | 200,957,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | import numpy as np
from option import Option
class Strategy:
def __init__(self, points = 100, ext_borders=0.05):
self.options = []
self.minimum = 0
self.maximum = 0
self.points = points
self.ext_borders = ext_borders
def add_option(self, side, option_type, strike, price):
option = Option(s... | [
"henrique.maia@poli.ufrj.br"
] | henrique.maia@poli.ufrj.br |
9bbe6d6fdb9a744918ebab1c2d430323a7d02271 | 7c94bd20b7ee069dfb557f41279416aba7d8447a | /exchangelib/folders/roots.py | 7b4ec7acd98342333d43a75de5373ee33c2603cf | [
"BSD-2-Clause"
] | permissive | AnkushGupta02/exchangelib | 63a42d70fe8254ca2edb6075ac05822a8ccaae01 | 5430e603a1b42248c6a154ae24270b63e94cc49d | refs/heads/master | 2022-08-19T08:34:49.634728 | 2020-05-28T10:25:33 | 2020-05-28T10:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,465 | py | import logging
from ..errors import ErrorAccessDenied, ErrorFolderNotFound, ErrorNoPublicFolderReplicaAvailable, ErrorItemNotFound, \
ErrorInvalidOperation
from ..fields import EffectiveRightsField
from ..properties import Fields
from ..version import EXCHANGE_2007_SP1, EXCHANGE_2010_SP1
from .collections import F... | [
"erik@cederstrand.dk"
] | erik@cederstrand.dk |
bde76c61c73ab8a6bf67b2eced51bcaa2646bef5 | 6bb36612a6121b0dfb32e2ec83fdff353fc0b349 | /plot_kmeans_digits.py | 182d6d54f94e012babe3df34cd725c898b6a970f | [] | no_license | mandosoft/Python-Finance | 526356ae2c5f3cee7e4552bdf8df1c80daefe3ad | 912845d08298cadc1289593df9fbce4d342afdca | refs/heads/master | 2020-04-19T06:40:36.431995 | 2019-01-28T22:56:04 | 2019-01-28T22:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | """
===========================================================
A demo of K-Means clustering on the handwritten digits data
===========================================================
In this example we compare the various initialization strategies for
K-means in terms of runtime and quality of the results.
As the gr... | [
"thomasdtownsley@gmail.com"
] | thomasdtownsley@gmail.com |
fa73fda921895cf608f6d767d3b04fd7afe93fc9 | bccb2a4c707415133f7f0bb2459c1f7e60f0b6a4 | /ResNet_Queue/grad-cam.py | b7447fe4cb03f7d380014080f44a136eb02ead85 | [] | no_license | High-East/Fight_Detection | 99a5f257f4ebda62e8c347a9d7db73fba8d80b88 | 67668f73bc8cd717c2a903c1f006cd20d7d33390 | refs/heads/master | 2020-12-20T06:07:04.808486 | 2020-01-25T10:33:18 | 2020-01-25T10:33:18 | 235,983,794 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | # https://subinium.github.io/Keras-5-2/
import os
import numpy as np
import keras
from keras import models
from keras import layers
from keras import optimizers
from keras import backend as K
import matplotlib.pyplot as plt
# 코드 5-40 사전 훈련된 가중치로 VGG16 네트워크 로드하기
from keras.applications.vgg16 import VGG16
K.clear_ses... | [
"rhehd127@gmail.com"
] | rhehd127@gmail.com |
6a546b976d9ed158aa20c642650b31081a6b898c | 84ba1585d3ca5600ae9d927e25f4bad6d57eccd1 | /venv/bin/easy_install | 703bb8d58d8979807529523f494192020d0d024a | [] | no_license | dbernstein1/interpreter | 3ca5c07eadee18bc4785daa11476d5b462eb8c07 | 7adfe33598360161d886ae17ab79acf280e18efd | refs/heads/master | 2021-07-09T20:03:24.360504 | 2021-04-03T08:52:11 | 2021-04-03T08:52:11 | 239,248,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | #!/Users/danielbernstein/Desktop/python/eval/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"drbernst@ucsc.edu"
] | drbernst@ucsc.edu | |
191bcb34fb1ee3e16cc9866069b360e9209d9614 | ee64a643bddd95ad9dfcffbe18ed7a3aa0cd3879 | /haverifier/benchmark/scenarios/availability/attacker/baseattacker.py | d5fb2c358fd95727a44bf772458688896c95aea5 | [] | no_license | L-kay/HAverifier | 75e04a4851a00da09df82b4624b0d7301ea18199 | 72e0099ee1798701a5f9e3a7d17bf5100e9aecb4 | refs/heads/master | 2021-01-13T11:40:12.050000 | 2016-10-24T03:46:11 | 2016-10-24T03:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | ##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd. and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribut... | [
"iheyu22@gmail.com"
] | iheyu22@gmail.com |
e81b437caf42cb4d1816c04793e4a923ab50b9ed | 3aa891f77e14989bf4034cff2eb55ced5876f8c8 | /PythonProject/apps/Book/apps.py | 93f038b480bc135ea4bdfee6e803fe65ac332e9d | [] | no_license | shuangyulin/python_django_book | ca7a8ee587539f5ac4c4bc2d6bd3ef2b7b8868cd | 644e1a602fd840149a6c4c6cdea7ef5196f19b59 | refs/heads/master | 2023-05-10T19:43:02.631043 | 2023-05-10T05:51:00 | 2023-05-10T05:51:00 | 217,252,803 | 28 | 12 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class BookConfig(AppConfig):
name = 'apps.Book'
| [
"254540457@qq.com"
] | 254540457@qq.com |
75ddbccfa5f20c7a20b3ec8f5f32b5782c159153 | 2e188b60c1c7c8ab8c2bad43a7e04b257f1e4235 | /pixels/utils/bilinear_sampler.py | ab7bb670e1d74be2b01421957d10839724da38f4 | [] | no_license | zhangpf/pixels | 12410da19fc4eaee4c0c4e37783b76b0af794bc1 | 6f840218b42fe3d178259f00f8e9e45040a2c459 | refs/heads/master | 2021-05-06T14:49:37.726185 | 2017-12-07T12:16:59 | 2017-12-07T12:16:59 | 113,446,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,389 | py | import tensorflow as tf
import numpy as np
def bilinear_sampler_1d_h(input_images, x_offset, wrap_mode='border', name='bilinear_sampler', **kwargs):
def _repeat(x, n_repeats):
with tf.variable_scope('_repeat'):
rep = tf.tile(tf.expand_dims(x, 1), [1, n_repeats])
return tf.res... | [
"zpfalpc23@gmail.com"
] | zpfalpc23@gmail.com |
5e7458e42777618ee8bed3956b956c1cfa2981cd | 31bcb70257fa8611a493e03d2c65b5c5c680a8c3 | /Interpolation.py | fe1343e1afdde82187de89c3b33fe03396f4b6fa | [] | no_license | Matthijs-utf8/Numerical_mathematics | 51ad073e01cdc6fb7c395f7478caf98a90f2a464 | 1326dd9eaa1ea6797db6e7fe5fe765df0de1e68a | refs/heads/main | 2023-02-27T02:03:38.100595 | 2021-01-26T11:14:34 | 2021-01-26T11:14:34 | 333,059,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 16 16:29:45 2020
@author: Matthijs Schrage
"""
import numpy as np
import sympy as sym
x = sym.Symbol("x")
#Some function to help us with syntax
def sin(x):
return sym.sin(x)
def cos(x):
return sym.cos(x)
def sqrt(x):
return sym.sqrt(x)
def l... | [
"noreply@github.com"
] | Matthijs-utf8.noreply@github.com |
9adbe52821ece3b44f5dca11058f29fcf7f0c162 | 4c5de0652ef4a88dbdba8a4c338aa78a341d2938 | /ixia52xx/src/driver.py | efa8989c776b9e0376631ae9c7bc4e97a928a7c5 | [] | no_license | QualiSystemsLab/Ixia52xx-Shell | 9788aad8ae676a7cc66d5289c2e69ceeccfcd587 | ee9226ed3ac38cb792702b91a00be7b3ed9ea27f | refs/heads/master | 2021-01-20T22:31:13.741873 | 2016-08-08T19:58:30 | 2016-08-08T19:58:30 | 64,963,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
from cloudshell.shell.core.driver_context import InitCommandContext, ResourceCommandContext, AutoLoadResource, AutoLoadAttribute, AutoLoadDetails
from cloudshell.api.cloudshell_api import CloudShellAPISession
import requests
from reque... | [
"chris@grabosky.net"
] | chris@grabosky.net |
d3bc53e5e49699888068463a7e4ba09b13a33a91 | 4f7bb51296e7c19b10c8d5f3616f48aa3510c455 | /src/scseirx/analysis_functions.py | 44793661d1768c33cb7de2e60fb3c0ce4113d5ed | [
"MIT"
] | permissive | Jaoeya/agent_based_COVID_SEIRX | 3bf04b337ad749ad740906c278280a82fdd8ec6b | 596a036fd3b95282ec3b6d4b27d47ecca568e750 | refs/heads/master | 2023-06-11T07:48:41.836646 | 2021-07-07T18:16:49 | 2021-07-07T18:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,323 | py | import numpy as np
import pandas as pd
import networkx as nx
import os
import json
import pickle
import bz2
import _pickle as cPickle
from os.path import join
from random import shuffle
import time
from scseirx import construct_school_network as csn
def get_agent(model, ID):
for a in model.schedule.agents:
... | [
"jana.lasser@ds.mpg.de"
] | jana.lasser@ds.mpg.de |
ecb448a0548acc782921c78e0ddea60c1de6b703 | b62ab5b2e27a116ca03c8f7fd0291bf9d48310e6 | /gui_v3/GUI_publisher_ver3_2.py | 9cfa9026720aaf9bb5b2ec10848d4e55947ef680 | [] | no_license | ycpiglet/AutonomousDrivingRobot | d6b5e0165b26ead6859dc8daf8ad22ff73319450 | 7e84329228a94f0609e9fb0cdb48e473bcc9fd54 | refs/heads/main | 2023-07-13T09:34:48.444305 | 2021-08-19T05:44:43 | 2021-08-19T05:44:43 | 370,374,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,863 | py | #! /usr/bin/env python3
# -*- coding:utf-8 -*-
from std_msgs.msg import Int32
from std_msgs.msg import String
import rospy
import time
import random
import tkinter
from tkinter import messagebox
from tkinter.constants import S
import tkinter.font
from PIL import ImageTk, Image
#---------------------------------------... | [
"noreply@github.com"
] | ycpiglet.noreply@github.com |
68fd4f165b8a871de48d2cae68b89f179705ff30 | 8e10094a3cbfaaa0a491acb6ca7a0d7b6a6a4295 | /Assignment-18 Binary Matrix.py | 6e14d476868011376b8c36e1f83d1ddad82fb4e8 | [] | no_license | pkenaudekar/NPTEL_python_course_work | c81bc1b71ca9a9de3139a03c77115f6075fd1241 | 43c0034e35f15556f5f183401305c14ddc90a3c4 | refs/heads/master | 2020-05-03T07:57:59.513281 | 2019-04-16T20:34:29 | 2019-04-16T20:34:29 | 178,513,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """
Given a matrix with N rows and M columns, the task is to check if the matrix is a Binary Matrix. A binary matrix is a matrix in which all the elements are either 0 or 1.
Input Format:
The first line of the input contains two integer number N and M which represents the number of rows and the number of columns res... | [
"noreply@github.com"
] | pkenaudekar.noreply@github.com |
d440f68b24a3ef7d4b340593ae6df74196eef663 | 85af513539b7921dd74077cc564ed850a2ca0d32 | /sstb_backup.py | d098cef41ab2108b2f7b9316404058a14f562bab | [] | no_license | yihnanc/cloud_infra_hw3 | f79315c1438c7d20cf8e2740b2f0f6fbfff6aa2f | cfa68e872a71f9133bb31cc65c228f28a4d2e79e | refs/heads/master | 2021-08-19T23:43:47.344873 | 2017-11-27T17:56:36 | 2017-11-27T17:56:36 | 112,129,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | from memtb import Memtable
from bloom_filter import BloomFilter
import csv
import os
table_size = 10;
class SSTable:
def __init__(self, memtable, level, id):
if not isinstance(memtable, Memtable):
print("Should use memtable to initialize the sstable")
self.mem = None
else:
... | [
"MAGICMCGRADY87@gmail.com"
] | MAGICMCGRADY87@gmail.com |
bf2df9013b94ee7ca80c35660b101bf47f905569 | bd4f8320118c4fb25b95d29193c1adb2f5b55ec6 | /contrib/userproperty_lint.py | 7d99b16806929b36131ad944ccb545cac48d4c45 | [
"Apache-2.0"
] | permissive | Khan/khan-linter | 30229d57ec82466af54b539eb3a57770335e0d65 | 9222e8f8c9aa6dead5c434d1eb7bb326207ed989 | refs/heads/master | 2023-07-21T05:06:19.757797 | 2022-07-11T16:54:42 | 2022-07-11T16:54:42 | 4,628,579 | 26 | 8 | Apache-2.0 | 2023-09-06T21:29:52 | 2012-06-11T18:29:03 | Python | UTF-8 | Python | false | false | 1,639 | py | """Linter that warns about using the dangerous UserProperty.
UserProperty's user_id value can change depending on whether or not Google
currently has a Google account registered w/ an email address that matches
UserProperty's email property. That means when a user changes email settings
in their Google account it can ... | [
"csilvers@khanacademy.org"
] | csilvers@khanacademy.org |
181579357a019a7c8a1beb3274dc914dc0713917 | 55b4fe0a6616b30c128b51a9918605050ce49f6d | /perturb_prem.py | d0db2ad1166cc3a898818c9bce26e01034aa4140 | [] | no_license | samhaug/ScS_reverb_setup | 783a4fb7c942a598f18dc6c9e3544aa5e2bbcafe | 05e96b9f871d25a1e7b5e9284083167993f56cec | refs/heads/master | 2021-01-12T03:35:45.657459 | 2017-06-24T17:24:07 | 2017-06-24T17:24:07 | 78,234,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #!/home/samhaug/anaconda2/bin/python
import numpy as np
def write_output(prem_array,title):
with open(title+'.tvel','a') as f:
f.write('prem_5km.tvel P\n')
f.write('prem_5km.tvel S\n')
np.savetxt(f,prem_array,fmt='%.3f')
perturb = np.round(np.linspace(-0.3,0.3,num=20),3)
print len(pertur... | [
"samhaug@apsalus"
] | samhaug@apsalus |
b1a7480c58922ee6eaf4efd5d692c12e94936bcc | 15114b8f23681403d052063ba6d9362ed628ce57 | /HexToDecimal.py | 937d4e031dbd26dbe71803f41ab94ee01dbabb77 | [] | no_license | BenMiller3/HexToDecimal | 37aac3317ee3ab2c8dd28b4a3bb5bb4cd0a8402d | ccf73957da5fe240397cec11f396734893f3713e | refs/heads/master | 2016-09-01T07:42:35.191098 | 2016-03-31T20:23:31 | 2016-03-31T20:23:31 | 48,472,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | def hexToDecimal(num): #Converts a hex number (base 16) inputted as a string to it's decimal (base 10) counter part
result = 0 #Declaring the result variable
num = str(num) #Parses the user input to a string
ans = [0]*len(num)
for i in range(len(num)): #Checks all the ca... | [
"benjaminmiller229@gmail.com"
] | benjaminmiller229@gmail.com |
782b8a5b2c62d3e62a1de698230c293dddde6246 | e54554c3bf4a1e066a092748c12e2cf4969743e2 | /StudentsRegister/Tests/ControllerTest.py | 5d9b119ddd3d373684598cc4a51d7cde55a6e53b | [] | no_license | dianahas/facultate | 89269234dc7824c5078e56ae23d413f5983de30d | 54218c414904841d16005222e1ee4043d1ba2f1c | refs/heads/master | 2019-07-02T06:11:17.054228 | 2017-02-20T11:57:18 | 2017-02-20T11:57:18 | 80,839,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,318 | py | import unittest
from Domain.Discipline import Discipline
from Domain.Exceptions import DisciplineException
from Repository.DisciplineRepository import DisciplineRepository
from Controller.DisciplineController import DisciplineController
from Domain.Student import Student
from Domain.Exceptions import StudentException
f... | [
"Diana Hatmanu"
] | Diana Hatmanu |
2c322c9fd589e186cb7cc803214a1a15220fc0af | 3598371233813189cdc39cbb515a72b4f01c01a3 | /www/pymonitor.py | e35cb2c1b2a8949c8848d7949448a29c5398bf57 | [] | no_license | jsqwe5656/awesome-py3-webapp | dbbd49cf13046dd1e26276cad1097e9e05c61b31 | 53a6ab2e5245f1da63844e6985883c2cedcfe954 | refs/heads/master | 2021-01-18T02:01:23.585714 | 2017-04-01T09:52:11 | 2017-04-01T09:52:11 | 84,265,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os,sys,time,subprocess
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
def log(s):
print('[Monitor] %s' %s)
class MyFileSystemEventHander(FileSystemEventHandler):
def __init__(self, fn):
super(MyFileSy... | [
"516845590@qq.com"
] | 516845590@qq.com |
424491dd7fa29498ae77a918b8624d70331175eb | 7aefdb54f5d1c76984a7e4b8e112c72a29cb1d0e | /webcam_demo.py | fbe18048f2093c824aa922b42fee21b5a0d04d3b | [
"MIT"
] | permissive | AksultanMukhanbet/proctoring_intellectual_part | fe181d697f2d44b108304d523c3336f7873d2ac3 | f85db9d31025cb57a732f64ab22358651bc93c69 | refs/heads/master | 2023-07-17T07:23:55.490868 | 2021-09-01T04:54:35 | 2021-09-01T04:54:35 | 401,934,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,320 | py | import torch
import cv2
import time
import argparse
import posenet
import requests
import datetime as dt
import mysql.connector as msql
mydb = msql.connect(host="192.168.12.3", user="netuser", passwd='987', database='proctoring')
mycursor = mydb.cursor()
parser = argparse.ArgumentParser()
parser.add_argument('--pa... | [
"mukhanbetaksultan0414@gmail.com"
] | mukhanbetaksultan0414@gmail.com |
00756a3bf6a511b4023a4efd81b34a9b4b9899fc | 833f645605c2a0e40418a2f4392c8c64c1d93da2 | /tests_api/adminSide/test_edit_gender.py | bd42ad5c20c5b38e46b8ad94160ca5dad0cb09d9 | [] | no_license | mehalyna/CH_096_TAQC | beefb1f2c937c66720c93239df70d3827242df98 | 14e7d28cb692e30df945b88841dfd0b3d24ed450 | refs/heads/master | 2022-12-12T13:42:29.276689 | 2020-02-04T15:57:00 | 2020-02-04T15:57:00 | 224,458,058 | 1 | 2 | null | 2022-12-08T03:26:02 | 2019-11-27T15:14:08 | Python | UTF-8 | Python | false | false | 1,198 | py | import unittest
import allure
from tests_api.testHelper import User
class TestEditGender(unittest.TestCase):
def setUp(self):
self.id = "e02dfd94-a8a9-4b1a-6cfc-08d7a28d1878"
self.name = "Jesus"
self.gender = 2
self.birthday = "2001-06-04"
self.User = User(self.id, self.na... | [
"57140993+OlexandrToloshnyak@users.noreply.github.com"
] | 57140993+OlexandrToloshnyak@users.noreply.github.com |
95b5c45037161cace8ce3128cfd2bf49dc2bb7b6 | fc6eefb980b53baae393980c46ac40d256687014 | /Udacity-Intro-To-Computer-Science/Lesson 1/Lesson 1 - Quizzes/Final Quiz.py | 8aa9f447ce3f3fde860303b34c61711a69cb1cb7 | [] | no_license | Brian-Mascitello/UCB-Third-Party-Classes | 7bc151d348f753f93850f5e286c263639f782b05 | e2d26e3d207d364462024759ad2342a8e172f657 | refs/heads/master | 2021-01-02T09:10:01.146169 | 2018-10-08T00:19:58 | 2018-10-08T00:19:58 | 99,150,324 | 0 | 0 | null | 2018-02-01T06:33:25 | 2017-08-02T18:47:29 | Python | UTF-8 | Python | false | false | 780 | py | # Write Python code that assigns to the
# variable url a string that is the value
# of the first URL that appears in a link
# tag in the string page.
# Your code should print http://udacity.com
# Make sure that if page were changed to
# page = '<a href="http://udacity.com">Hello world</a>'
# that your code still assi... | [
"bmascitello@gmail.com"
] | bmascitello@gmail.com |
cd1ff5ac52c4656720ecfe2af85fd0194ec960b6 | 84bf3fa39f10d428a9129e083c492695deaa5e96 | /doubanmovieSpider/doubanmovieSpider/spiders/doubanbooks.py | 920ae4819ff0503f71b71f4a351d6f572bc51fab | [] | no_license | zhushengl/spider | 7baf9df71b77a1a03315cd447ea5ca501e22c5cd | afc79f1f5d80eb284b8884fb7b29e5be0c762d44 | refs/heads/master | 2020-04-12T11:12:37.754215 | 2018-12-20T01:26:04 | 2018-12-20T01:26:04 | 162,452,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
import scrapy
from doubanmovieSpider.items import DoubanmoviespiderItem
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
class DoubanbooksSpider(scrapy.Spider):
name = 'doubanbooks'
allowed_domains = ['douban.com']
start_urls = ['http://douban.com/']
start = 0
url ... | [
"2231636899@qq.com"
] | 2231636899@qq.com |
d9ec3c57d4895a1487cc0f6a5b0ffb8782c7de4c | 08c7e823a01da52aba46fe6332a9b96102261f44 | /daos/tools/dao_tools.py | d6c3c98b20c5d59bcc54ef0cf351e37ccbb7aea1 | [] | no_license | benharvey1213/csaia_python_p | e9488e758a1f6ac88159d4dc92f447f6d4af8e4f | 2024769646e4bf96dcb087f7d08a29fc0a8055fa | refs/heads/master | 2023-04-12T17:33:58.066276 | 2021-05-07T17:52:37 | 2021-05-07T17:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | from mysql.connector import connect, Error
def execute(query, *args):
"""
General method for executing queries on the database. Queries can be passed with a list of tuples for multiple
INSERT statements. All non-INSERT queries should be passed preconfigured and
ready to execute.
Paramete... | [
"scoutscott13@gmail.com"
] | scoutscott13@gmail.com |
346eeb92d6c058c58b47563e2e81d250d4fbcf8d | 3d1dab8556b0e5e95875d174c7fa08cea24a1ca1 | /src/utils.py | fe868e32bc20540a9cb16218ea7a2fbdb543ee41 | [] | no_license | ryota-ohno/interlayer_interaction3 | 8bc2151b9ede4c970e0b0964679e28aa49ef847d | 499e6375b8a921fc6aa6e2633ea24bc3ba1e9719 | refs/heads/main | 2023-08-25T16:41:37.521617 | 2021-10-28T09:49:10 | 2021-10-28T09:49:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,382 | py | import numpy as np
from sklearn.decomposition import PCA
def get_E(path_file):
with open(path_file,'r') as f:
lines=f.readlines()
lines_E=[]
for line in lines:
if line.find('E(RB3LYP)')>-1 and len(line.split())>5:
lines_E.append(float(line.split()[4])*627.510)
E_li... | [
"noreply@github.com"
] | ryota-ohno.noreply@github.com |
516da90e9ca482dbc6eff6c95b85d82b59370415 | 3079cc4b6d6c48c92e547a33a00d1bbca314ce17 | /BipedalWalker/PiRL/ProgramGen/ParseTreeGenerator.py | a93f0a35be7e20907b4e5b2fa1a7bee849142ffd | [
"MIT"
] | permissive | VAIBHAV-2303/PiRL | 71f9a6b5b540475ed9c8e2128870bcbd6631a726 | 063aae20cce2bfc2911e7aff59f4a688740c44da | refs/heads/main | 2023-05-09T11:25:34.571635 | 2021-05-20T14:28:03 | 2021-05-20T14:28:03 | 369,163,062 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from PiRL.Utils.TreeUtils import newTree
from PiRL.DataStructures.Token import NonTerminal, Terminal, Token
from PiRL.DataStructures.RuleTable import Rule
from PiRL import rule_table
from treelib import Tree, Node
import random
__isValidDepth = {}
def checkRuleDepth(rule : Rule, depth : int):
if (rule, depth) i... | [
"gargvaibav@gmail.com"
] | gargvaibav@gmail.com |
f76b2c88d9c798d959e946a73f076dcbfec551e3 | 9d2ef665fb42762279a3d82acd1ed5cfae831c65 | /venv/bin/easy_install | 000ab1efcc9488fbff3b240657f1f4833ca899df | [] | no_license | thanhtung29497/tts_frontend | 63c52c30afcb416167618d48db35d72965524518 | 72fe8e08d3dd28eed3d140b4a2f698e60c1939b9 | refs/heads/master | 2020-07-19T23:37:07.068984 | 2019-09-05T10:36:45 | 2019-09-05T10:36:45 | 206,532,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | #!/home/tungtt-ai-u/PycharmProjects/tts_frontend/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"thanhtung29497@gmail.com"
] | thanhtung29497@gmail.com | |
65c8c7afd51337f9030ae030d6fd82b48e1fa74f | f14bbd0133937b8b433685f971f569ad4ca160c0 | /Code/Peirce.py | 2c63005601f166d088b7a6f8ebd68c9ba2cdac8b | [] | no_license | bchenghi/peirce-alpha-system | 2e43fc32d9db0c2c35e50f0b6ec480213ca3d107 | 5f7969e3dde47412455dda2931d4f429aa96c499 | refs/heads/main | 2023-08-18T16:16:05.466642 | 2021-09-19T16:56:06 | 2021-09-19T16:56:06 | 367,814,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,476 | py | import tkinter as tk
import math
from itertools import permutations
from pyswip.prolog import Prolog
# values for horizontal and vertical padding
xpadding = 20
ypadding = 20
# default values for height and width if no children
xdefault = 50
ydefault = 50
# Graph that was copied or cut
copyorcutGraphs... | [
"bohchenghin@gmail.com"
] | bohchenghin@gmail.com |
ad57f4527445a4f8ee853506abb8efae93d2a7ba | 49a1b328cf3735d05364150940eb5f57e045edb9 | /plot_vodV5_C.py | 13f8959c2ac8648460e137d1b0781dabd3664bc6 | [] | no_license | amucia2/LDAS-Monde | 465556c78982df4e4916671c475728f724d8d6d0 | cbf596075fc2ce0b8fe77c04f77be4eacceb8994 | refs/heads/main | 2023-04-13T09:17:17.688228 | 2021-04-21T09:59:29 | 2021-04-21T09:59:29 | 360,107,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,502 | py | import os
import sys
import numpy as np
from netCDF4 import Dataset
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from mpl_toolkits.basemap import Basemap
import pandas as pd
from mpl_toolkits.basemap import Basemap, addcyclic, shiftgrid
from math import radians, cos, sin, asin, sqrt
from scipy.stats.s... | [
"noreply@github.com"
] | amucia2.noreply@github.com |
2c6de1d98469164b77e496a0c33bfd4a67f22e17 | 1f5420fda4359bfc21b53de3a5f6e6a93b47b996 | /ch02/ch02_menu.py | 5abfa489c2386f900a6c3f914341bd20f4c6a22b | [] | no_license | fl0wjacky/wxPython | 600f5bfccad3ef5589e11573b30cffd1e2708b83 | 50b3cd5a63750d36065684b73aab0da70ff650a7 | refs/heads/master | 2022-09-02T04:24:47.540157 | 2022-08-10T04:13:17 | 2022-08-10T04:13:17 | 13,976,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #! /usr/bin/env python
import wx
import wx.py.images as images
class ToolbarFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Toolbars', size=(300,200))
panel = wx.Panel(self)
panel.SetBackgroundColour('White')
statusBar = self.CreateStatusBar()#... | [
"flowjacky@gmail.com"
] | flowjacky@gmail.com |
843dc84990ac79c37f5be80ed069ee89cccc662f | 387b4a53485b175d2c8c7bca7f3429ad2abbb4f0 | /pvdet/model/bbox_head/pv_head_base.py | b80b845da9a2588a914b8f8e2020ba1e80618782 | [] | no_license | liangzhao123/IOU-SSD | 50cf3a52e8b306b024d0396b76bd3931c8a15434 | b53a1659ffe197da8eeca0f4a35a4a4571db22f4 | refs/heads/main | 2023-06-25T08:15:03.553378 | 2021-07-31T17:40:49 | 2021-07-31T17:40:49 | 321,982,002 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,318 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from pvdet.model.model_utils.proposal_target_layer import ProposalTargetLayer,class_agnostic_nms
from pvdet.dataset.utils import common_utils
from pvdet.tools.utils import loss_utils,box_coder_utils
class RoIHeadTemplate(nn.Module... | [
"1094036832@qq.com"
] | 1094036832@qq.com |
9ec064b2a787ac1c0338a8c2f410c4c3d54df4ef | 164d8556c96b220b1502066e1ad9688836c117f0 | /misc/counting_cells_load.py | e66320a66cc1ea0d306724415a3f94343e7709d0 | [] | no_license | pwang724/PHD_experiment | df7c23281b763159fe2ee61e229689d1fd01d7d0 | 9e290308353e55aa818477d3d183415d633624c9 | refs/heads/master | 2023-02-20T13:53:24.472923 | 2023-02-16T03:20:05 | 2023-02-16T03:20:05 | 162,485,012 | 0 | 0 | null | 2019-01-15T02:48:32 | 2018-12-19T20:03:33 | Python | UTF-8 | Python | false | false | 957 | py | import numpy as np
import _CONSTANTS.conditions as conditions
import _CONSTANTS.config as config
import os
import glob
from tools import file_io
import matlab.engine
import time
mouse = 2
condition = conditions.OFC_COMPOSITE
d = os.path.join(condition.paths[mouse], 'data')
mat_files = glob.glob(os.path.join(d,'*.mat'... | [
"peterwang724@gmail.com"
] | peterwang724@gmail.com |
9e28e0cd12e58048913b3c3764cd180e05af5636 | 9e41adf86b2c166a219f0b6d9371089c5f2d7d93 | /Exerciciospython2/Função/e100.py | 0b47e1bb8952e250e0f02facf33b98bfe7653f2f | [] | no_license | Nadirlene/Exercicios-python | 1aaead61dd0efcb5303f6294e765e9e1d54506cc | 3fe82e166003922ef749756a249840ed1fe940b0 | refs/heads/main | 2022-12-25T21:35:06.172839 | 2020-09-28T15:08:37 | 2020-09-28T15:08:37 | 299,343,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from random import randint
from time import sleep
númerosSorteados = []
def sorteio(lista):
print(f'Sorteando {len(lista)} valores da lista:', end=' ')
for c in range(0, 5):
lista.append(randint(1, 10))
print(lista[c], end=' ')
sleep(0.3)
print('PRONTO!')
def somaPar(lista):
so... | [
"nadirleneoliveira@yahoo.com"
] | nadirleneoliveira@yahoo.com |
484d210d3a4c30263b422bd7dad0dc68da1bd706 | 4639c9f39213c0641ef693489e84e10d0c05deca | /sqlqueries.py | 4398e8156991b7deaf741a97bf1a76ebda3ade95 | [] | no_license | utkranti/samdemo | 6db60d52aceed668204f06d2acc13bbfc9f74558 | 87965fc68259f33f39387aa2b891afa11878c8ac | refs/heads/master | 2020-09-06T17:13:48.938300 | 2019-11-08T15:07:18 | 2019-11-08T15:07:18 | 220,490,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py |
CREATE_TABLE = ''' CREATE TABLE empinfo(
e_id integer,
e_nm varchar(50),
e_age integer,
primary key (e_id)
)
'''
INSERT_QUERY = '''insert into empinfo values({},'{}',{})'''
FETCH_SINGLE_QUERY = '''SELECT * FROM empinfo where e_id = {}'''
FETCH_ALL_QUERY = '''SELECT * FROM empinfo'''
UPDATE_QUERY = '''u... | [
"utkrantijadhav@gmail.com"
] | utkrantijadhav@gmail.com |
b21ef021ca3d6afdf535882ef61eb49b75bf895c | 8b7db851e13737d5c44cc00d38a46a2817c7707b | /tests/train.py | 788e79cd09e75082a8dc8cf4d75b3dd063b824b5 | [
"MIT"
] | permissive | goelshivam1210/gym-novel-gridworlds | b6f24b38cfceb2b44461da9bb7607c56d27f4a9e | c8f419da02e4fd716b9e293fcf0b99ee2eb96367 | refs/heads/master | 2023-01-15T13:46:23.438199 | 2020-11-23T14:42:13 | 2020-11-23T14:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | import os
import time
import gym
import gym_novel_gridworlds
import numpy as np
from stable_baselines.common.env_checker import check_env
from stable_baselines import PPO2
from stable_baselines import DQN
from stable_baselines.gail import ExpertDataset
from stable_baselines.common.policies import MlpPolicy
from st... | [
"gtatiya@live.com"
] | gtatiya@live.com |
3b50f9669e427ccf2598af20c57cc0bbf58daad0 | 11700a4b8207850ffc4a5c7ea46db03f0c3ab7e4 | /.venv/bin/eralchemy | b6a0ff3bb3ea945183414cc783385b2bce87776a | [] | no_license | nicolas703/exercise-instagram-data-modeling | 1aea698098c00694732a6b1106319a5a004f78d1 | 40d3c52db05b7e1668beeff76b5582e9ebb00c40 | refs/heads/master | 2022-11-23T15:21:30.967254 | 2020-07-09T09:48:20 | 2020-07-09T09:48:20 | 278,325,266 | 1 | 0 | null | 2020-07-09T09:46:48 | 2020-07-09T09:46:47 | null | UTF-8 | Python | false | false | 258 | #!/workspace/exercise-instagram-data-modeling/.venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from eralchemy.main import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"nicolas8859.nd@gmail.com"
] | nicolas8859.nd@gmail.com | |
e8a1e8a89b2676c6cd1974df7292669106c5eb73 | 0d17a12333319ba830e3359d07a17dc96a79ec5b | /app/asgi.py | 17d84a01f8a7a30554b58bc417955ebb6a0eecd8 | [] | no_license | dimasickx/restAPI | 6758bff307f2be96cdba294365e91d27519daad5 | e68a13573c3cb1c5996ca77b842ee96967724c66 | refs/heads/master | 2023-05-22T18:28:57.197906 | 2021-06-11T13:07:54 | 2021-06-11T13:07:54 | 375,749,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
ASGI config for main 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"dmitry.sorokin.mail@gmail.com"
] | dmitry.sorokin.mail@gmail.com |
d263c302856e1bd84f621399164fb1e25c9f2f64 | b9b9c880653eb9cc1d6a31d06da58b7a8ead126a | /app/slash.py | e65924b67afd229b39552b46590337a8019d612b | [] | no_license | oddball/gae-flask-skeleton | 707f6d199a8fc184e8ad6632f31aa36b23e06ee0 | c04c803fc184820aa06e8f49aae2ba03eb5f0a46 | refs/heads/master | 2021-01-23T12:04:48.102155 | 2018-02-20T19:32:29 | 2018-02-20T19:32:29 | 102,644,208 | 1 | 0 | null | 2018-02-20T19:32:29 | 2017-09-06T18:31:36 | Python | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
import httplib
from flask import Blueprint, make_response
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
import flask
from flask_login import login_required
from flask_login import current_user
slash_bp = Blueprint("slash", "slash")
route = slash_bp.route
@r... | [
"andreas.lindh@hiced.com"
] | andreas.lindh@hiced.com |
a5c5687e8a3c7d3414ac8648489be15adf1125dd | b0f18601edfa82a8f75ff2937b87c04318619cd8 | /python/make_ik_from_vmd.py | be8efbf669e7c9ad2e8c075150b70f729eec705f | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | khanghugo/PMX-VMD-Scripting-Tools | 5065906e25bd0d25b55249d6ada5af096f97d350 | bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b | refs/heads/master | 2022-12-22T22:28:41.127976 | 2020-09-07T04:16:00 | 2020-09-07T04:16:00 | 293,138,167 | 0 | 0 | MIT | 2020-09-05T19:06:27 | 2020-09-05T19:06:26 | null | UTF-8 | Python | false | false | 20,094 | py | # Nuthouse01 - 08/24/2020 - v5.00
# This code is free to use and re-distribute, but I cannot be held responsible for damages that it may or may not cause.
#####################
# NOTES:
# assumes bones are using semistandard names for feet, toes, footIK, toeIK
# assumes toeIK is a child of footIK, and footIK is a chi... | [
"brian.henson1@yahoo.com"
] | brian.henson1@yahoo.com |
9a0f789ccd72673d0b66e55dc2e6bb2452bf9406 | 3f03334c1d1f1a1fd05d0950f8af08260e0d5432 | /HW1/hw1.py | 47750934110a7cd1fb7fa9237244635b0ae07414 | [] | no_license | mina-jafari/EECS545-machineLearningCourse | 697a341e6259845beb09bcd25e8308efdf48f07a | 3014618b70499465fb4718afe9b4c5e815c8b2a4 | refs/heads/master | 2020-04-02T20:13:39.528778 | 2016-06-13T19:55:55 | 2016-06-13T19:55:55 | 61,060,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | import numpy as np
# This matrix A contains 183 8x8 images of the handwritten digit 3.
# Each image has been reshaped into a length 64 row vector.
A = np.loadtxt("A.csv",delimiter=",")
U, s, V = np.linalg.svd(A, full_matrices=True,compute_uv=True)
print s
#print np.dot(U,U.transpose())
#print V
#print s[:3]
s[3:] ... | [
"mjafari@paulzim-imac5.chem.lsa.umich.edu"
] | mjafari@paulzim-imac5.chem.lsa.umich.edu |
e9969c27708523aa763276b502fa9419d9cf3558 | 8de8185760c9d3696d7244bb04b0c48d60b73e9b | /crawler/tech/gizmodo.py | b43d2c9a2466e702dfdeaefc63f48a1c08736273 | [] | no_license | text-master/textmaster | 8e9a36003efff020ac44016c7313df4ad0030cc3 | ba3b9dc09f36bd42a441ed812f8ec66ec853494f | refs/heads/master | 2021-01-24T04:43:11.534736 | 2018-05-12T03:06:21 | 2018-05-12T03:06:21 | 122,946,499 | 0 | 0 | null | 2018-02-26T12:25:02 | 2018-02-26T09:33:40 | null | UTF-8 | Python | false | false | 805 | py | from bs4 import BeautifulSoup
import requests
URL = "http://gizmodo.com/tag/science?startIndex=%d"
file = open('gizmodo.txt', 'a')
# r = requests.get("https://techcrunch.com/page/2")
for i in xrange(6, 10):
index = i*20
r = requests.get(URL % index)
print URL % index
soup = BeautifulSoup(r.text, 'l... | [
"namhoang.td09@gmail.com"
] | namhoang.td09@gmail.com |
e0bd0c8393e10d70cd1d7736fc15a898d1f059dc | 2e858717fbc3b74cc809dc5d60d337a844ae7fed | /codegolf/planets.py | a4f5b0a908013fcda517843121fbb9b541e6773d | [] | no_license | maxbergmark/misc-scripts | 95a1b5416c34e65b7e8ef26f5c941f9ba0ae0986 | a1b3b889f8f6d28a452969a62af637a6866b69d3 | refs/heads/master | 2020-03-28T10:32:38.362737 | 2019-09-20T12:23:14 | 2019-09-20T12:23:14 | 148,118,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py |
def get_score(l, s):
c = 0
for i, e in enumerate(l):
c += int(e == s[i])
return c
def check_modulo(l, n):
mod = [i%n for i in l]
s = list(set(mod))
if len(s) == len(l):
return 1, get_score(sorted(s), s)
return 0, 0
def check_modulo_sq(l, n):
mod = [(i*i)%n for i in l]
s = list(set(mod))
if len(s) == le... | [
"max.bergmark@gmail.com"
] | max.bergmark@gmail.com |
0318e0aaf209f5b5619b4a826bfaf8af77341a0c | 57bab37cb279cc6c59262a711ccf228867e8ddc6 | /Guia2/3.py | f9a346b91d48cacb58c02e6a5b659e70ee5d5dd8 | [] | no_license | gabymy/Guias-de-Estudios-PYTHON | d56a94b7bd7b04a25c8af2c368c976e47f3e2b51 | 6ff0eeee6ee5ab8a4057ca12a61202214d0e9065 | refs/heads/main | 2023-08-01T22:45:02.101972 | 2021-10-08T19:08:23 | 2021-10-08T19:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # Crear una función que pida un año y que escriba si es bisiesto o no. Se recuerda que
# los años bisiestos son múltiplos de 4, pero los múltiplos de 100 no lo son, aunque los
# múltiplos de 400 sí. Estos son algunos ejemplos de posibles respuestas: 2012 es
# bisiesto, 2010 no es bisiesto, 2000 es bisiesto, 1... | [
"noreply@github.com"
] | gabymy.noreply@github.com |
d86b86de0883e30ddc235898d94df5c11ee4e183 | 92bf965fb0125da24f4503ed685c114cfb8523c0 | /sandbox/testPlot.py | 90e205a962cdca4a8c51308eac423f81dd27fbf4 | [] | no_license | fsbr/unh-startracker | c9f2f1420d3ef7f051d71e32bd7328fbe8dd4aa2 | f023aa51733633e4ef1fd7f4c09e117f95eb721b | refs/heads/master | 2021-07-16T09:27:01.757223 | 2021-06-29T22:21:50 | 2021-06-29T22:21:50 | 43,343,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import time
import numpy as np
import matplotlib.pyplot as plt
plt.axis([0, 1000, 0, 1])
# does interactive plotting
plt.ion()
plt.show()
for i in range(1000):
y = np.random.random()
plt.scatter(i, y)
plt.draw()
time.sleep(0.05)
| [
"thomasckfuller@gmail.com"
] | thomasckfuller@gmail.com |
0c8c1261d797d256dc1620389e22afee4a0ae92c | 7c2cebd157e19714962f6e2ca930f148a08ff333 | /instructors/urls.py | 208f4945a13b67f6f986c444d3c29b1b9099e621 | [] | no_license | Code-Institute-Submissions/black-panther-fitness | 1f380f9b338e0126d01ac6fa8f30025424265b60 | ceafccad54f6eaab3deb4144d4a930f057db4fec | refs/heads/master | 2023-01-22T14:28:39.399311 | 2020-12-04T15:55:33 | 2020-12-04T15:55:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.all_instructors, name='instructors'),
path('<instructor_id>', views.instructor_detail, name='instructor_detail'),
]
| [
"darylhyde_13@hotmail.com"
] | darylhyde_13@hotmail.com |
38c1fd8760bcce05b238e280801a028e7fa6b28f | 7abea7671cfc3037b920b7883e592c1aab82e236 | /blog/migrations/0005_alter_post_timestamp.py | 947b852666cae5b39968672274f7db3a44d16b24 | [] | no_license | RRM00/blog-assignment | ae0810e05179c9f7dac6329129af96cdc7ba665a | 0031500e016c5d19513f27c70f2f96222b693a32 | refs/heads/main | 2023-04-14T16:38:49.667508 | 2021-05-03T05:22:12 | 2021-05-03T05:22:12 | 363,724,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.2 on 2021-05-02 12:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_post_summary'),
]
operations = [
migrations.AlterField(
model_name='post',
name='timeStamp'... | [
"noreply@github.com"
] | RRM00.noreply@github.com |
b749430cbf1df74689cf5fbf55ba4631e9e2b98b | 0fd50b12ed2d79e31fed5ecd91efe9ae63ede429 | /src/analysis/test_udgm_mrm_plots.py | 16af63bb46a920a467c315cee341d87fea168b5e | [] | no_license | riccardoscilla/scheduled-collect-LPIoT | f611726132d35b1f7693120ee4e065c5f17dfaca | 84cd24d9adb154d51a3b67f382429444d2164b78 | refs/heads/main | 2023-05-13T06:42:41.758222 | 2021-06-07T14:26:20 | 2021-06-07T14:26:20 | 374,693,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | import matplotlib.pyplot as plt
import pandas as pd
from collections import defaultdict
import numpy as np
import math
plt.rcParams.update({'font.size': 15})
def getValues(x, p):
dc_values = []
pdr_values = []
dc_std = []
pdr_std = []
for i in x:
folder = "results/mrm/test_mrm_"+p+"_... | [
"66726419+riccardoscilla@users.noreply.github.com"
] | 66726419+riccardoscilla@users.noreply.github.com |
6f9449c2b377200aaaafa218f8cf2583cedbf482 | b0703ac3217134e4afceb84ab07335c97ec677ba | /6:Wagtail_Content_Prototype/cypmh_prototype/nhs_components/migrations/0004_auto_20210514_1117.py | dfc57e61fe424e62fb6197c9bcefc3f39c561983 | [] | no_license | madetech/G1-Spikes | 390622eec7a91ea986e1debbb9a270cd9e9091aa | fc542216a3102d516e6c005aad0b66755c725544 | refs/heads/main | 2023-07-03T08:40:05.080265 | 2021-08-03T10:37:36 | 2021-08-03T10:37:36 | 360,846,858 | 0 | 0 | null | 2021-08-03T10:37:37 | 2021-04-23T10:27:48 | Python | UTF-8 | Python | false | false | 10,863 | py | # Generated by Django 3.1.8 on 2021-05-14 11:17
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
import wagtailnhsukfrontend.blocks
class Migration(migrations.Migration):
dependencies = [
('nhs_components', '0003_auto_20210514_1112'),
... | [
"liam.miller@madetech.com"
] | liam.miller@madetech.com |
0c7cb64d07da4a007ef4afbd7c24b3fad8653680 | bebe6e9195dce6f47fe2f52a06ac85519ab969ac | /binary_search_2d_array_slices.py | 11f04a487ed47d95561a858cd78cd8aea22e8a26 | [] | no_license | jbobo/leetcode | f038ee934c4435a2f5a3e987b3d5b70b860a25e2 | 3894425256f8504f7c8f1903e47f670c6fa32a92 | refs/heads/master | 2022-11-05T07:19:48.897066 | 2020-06-24T01:20:25 | 2020-06-24T01:20:25 | 274,544,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #!/usr/bin/env python3
"""
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted in ascending from left to right.
Integers in each column are sorted in ascending from top to bottom.
Example:
Consider the following matrix:
... | [
"nedbobo@Neds-MacBook-Pro.local"
] | nedbobo@Neds-MacBook-Pro.local |
b6506ca0c4ad00b48fefffd880f27f6b56a0c962 | ac14df0df265cedd09a13ef049434d00f7f4260b | /recoxplainer/config.py | 96983f417577df3aedbeb673d4788069df087510 | [] | no_license | amorsun/recoxplainer | 0e33986a1d98b0050238434467479fd27eafabd8 | f9afc318e2c29c7519e9880fdd0ced09605cd197 | refs/heads/master | 2023-03-14T02:26:49.434910 | 2021-01-31T20:45:17 | 2021-01-31T20:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import yaml
from box import Box
import os
with open("configs/config.yml", "r") as yml_file:
full_cfg = yaml.safe_load(yml_file)
cfg = Box({**full_cfg["base"]},
default_box=True,
default_box_attr=None)
| [
"CobaLu01@de-ber-m45dml85.fritz.box"
] | CobaLu01@de-ber-m45dml85.fritz.box |
c927be2460b22f079fb23a09cae7ad7bf3fa7aea | 0e6802ed46b3be0e58396b0e0a089d9da8727be6 | /PyPlayground/knapSack/2.py | 68c99edfa6ccad248b4c27f8ca09989db8dcbd15 | [] | no_license | wbglaeser/cplayground | 328825d6d37f23f7acc2d373b02f72b8afbc68cc | e3dc84e8198535fcd5d5dafa126d4ea345c59c2c | refs/heads/main | 2023-03-25T21:43:54.998971 | 2021-02-23T09:16:11 | 2021-02-23T09:16:11 | 308,050,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | W = 30
wt = [1,2,4,6]
v = [5,3,5,6]
v = [a-b for a,b in zip(v, wt)]
K = [[0 for i in range(W + 1)] for j in range(len(wt)+1)]
for w in range(1, W+1):
for k in range(len(wt)):
if wt[k] > w: K[k+1][w] = K[k][w]
else:
K[k+1][w] = max(v[k]+K[k][w-wt[k]], K[k][w])
for line in K: print(line)... | [
"ben.glaeser@tuta.io"
] | ben.glaeser@tuta.io |
5e28917d27023f41c32f425858b3b22fab756156 | 29feab13704dc487aba41fc3bc3478c768311991 | /FigureS2.py | f4fed26d4cb6b276a72db05e7fef0bcc119eb4bb | [] | no_license | vhartwick/Mars-Wind-Energy | f382781e8c09b89a6ea0caa02f18989367a665ec | 9b0a1ba4cec8b8d5cd3f3f5e4b90240f6ecf5a97 | refs/heads/main | 2023-04-14T01:58:35.095050 | 2022-10-25T20:56:16 | 2022-10-25T20:56:16 | 441,526,116 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,232 | py | # Figure S2 : Python script for base analysis and figures for Hartwick+2022
# Author: Victoria Hartwick
# Last Modified : 6/29/22
# Import Scientific Modules
import os
import matplotlib
import matplotlib.pyplot as py
import numpy as np
from matplotlib.ticker import MultipleLocator, FuncFormatter #format ticks
from num... | [
"noreply@github.com"
] | vhartwick.noreply@github.com |
88563445332a6acdcd4a280669e4ef1ca4812a12 | 6c6cf74998bd03586c23e8881336d9d3cb279582 | /pypecast/models/model.py | da368611e2b4eafb24ab7d3e210e71258b10713d | [
"MIT"
] | permissive | guilhermecano/PypeCast | 7583d9f54a71e25a94e70fb76671a8db3e729b45 | 0282fb9e8fa8ca88e74cbab79e92f82fa3300799 | refs/heads/master | 2020-04-09T09:37:52.990972 | 2018-12-14T21:01:18 | 2018-12-14T21:01:18 | 160,240,449 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,907 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from keras.layers import Dense, Dropout, LSTM, Input
from keras.models import Sequential
import seaborn as sns
import matplotlib.pyplot as plt
import warnings
from pypecast.metrics.metrics import *
class Mode... | [
"gui.c.lopes@gmail.com"
] | gui.c.lopes@gmail.com |
b1938ef4ef5cf10644ae8f49ecca8a80c622c2e5 | a1dcff1dc2789c271941f08b8069bfa7936a16a5 | /prime number between 1-100.py | de59701db381a6239a5eeb572c6f16fe42ee618a | [] | no_license | Gulnaaznasrin21/Loop | 004e2de2aeb2a09725e0f28752b5d44318ada678 | 3510276fc391b3ee1e21208c058cef474ef7dc7e | refs/heads/main | 2023-07-22T18:31:36.146417 | 2021-09-05T09:18:12 | 2021-09-05T09:18:12 | 403,263,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | i=1
while i<=100:
factor=0
x=1
while x<=i:
if i%x==0:
factor+=1
x+=1
if factor==2:
print(i,"is a prime number")
else:
print(i,"is not a prime number")
i+=1 | [
"noreply@github.com"
] | Gulnaaznasrin21.noreply@github.com |
76e0da4b707763b772483b78ae0ee2af7b3bf9e8 | f4d38a475a03d26d0a8cd7994ab9c6669a0d36f5 | /targetDirectory/lib/python3.6/ntpath.py | af2cf083df9f1a2cfb1d64f0bbfb9d404ada284c | [] | no_license | karsheng/language-translation | 353a7b10d9d1fae9c4464f3fae301a409b947c2b | 6eb5c162d029b7c3959b0d5fcabe8e19c1323d47 | refs/heads/master | 2021-01-19T22:10:15.704917 | 2017-04-19T16:04:05 | 2017-04-19T16:04:05 | 88,764,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/karshenglee/anaconda3/lib/python3.6/ntpath.py | [
"karshenglee@Kars-MacBook-Air.local"
] | karshenglee@Kars-MacBook-Air.local |
403ab9bd83a5ce8b42777539060c2a980fd1402c | 320e25d46855acbf3a84107c03addca0595a8676 | /preshoneypot.py | 6e229a9b06dbac5089c42f6aeb4c40f7337f2a39 | [] | no_license | itd/cuddle-fuzz | f212914fb4e597834761d14874d67761897c1c23 | c33f3f179b88cc2cb67851d78d5666fa460faac4 | refs/heads/master | 2021-01-10T19:25:03.225598 | 2012-09-13T05:36:20 | 2012-09-13T05:36:20 | 35,767,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py | #!/usr/bin/python
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# ..__...__.........._____.
# _/ |_|__|._______/ ___\
#... | [
"YuvalN210@gmail.com@8cf99bae-c7dc-ee7b-a7b4-1828fa5c92ce"
] | YuvalN210@gmail.com@8cf99bae-c7dc-ee7b-a7b4-1828fa5c92ce |
b20eb31e621b6af9cf0b1d9291f57832e0b170b2 | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/without_rest_models/testapp/models.py | 6cac7e2e06e3e0b26b958a2b5e56c8110c3d2e6b | [] | 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 | 240 | py | from django.db import models
# Create your models here
class Employee(models.Model):
eno = models.IntegerField()
ename = models.CharField(max_length=64)
esal = models.FloatField()
eadd = models.CharField(max_length=64)
| [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
cd208c33f5326cb09eeb129fcc87d2573236666d | c5f7963d1b664c5bcb60559b62c4ed39cbf5bc0a | /digifoot/api/apps/league/migrations/0006_auto_20160312_1044.py | cbc524e06328513e24213de5c74b77b075afb89c | [] | no_license | Hernas/digifoot | 611dd8afb7fa0187f855eda158cddd91adb55d95 | 6c26e61ea85577f6779f8e74156b0568e0218bcf | refs/heads/master | 2016-08-12T21:34:51.773495 | 2016-03-12T16:11:18 | 2016-03-12T16:11:18 | 47,719,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-12 10:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('league', '0005_matchmodel_tweeted'),
]
operations = [
migrations.AlterModelOpt... | [
"bartosz@hernas.pl"
] | bartosz@hernas.pl |
5eae11d7adebce62256c9c269420987377a3cc26 | 98b2fa349ec2d78bd5826f29dbee0fb95fd10c75 | /uploads/urls.py | 3f940b18b16bea99e92aec70a2a8d646f5da9658 | [] | no_license | aymony80/myproject | 7df5634ea90752ef1d5a1a75d88c181baa056ab9 | 8b58cabdde6b0d02671da45d14daecbace39f19a | refs/heads/master | 2020-04-23T21:08:41.555707 | 2019-02-19T11:19:21 | 2019-02-19T11:19:21 | 171,108,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.conf import settings
from django.conf.urls.static import static
from uploads import views
from django.urls import path
urlpatterns = [
path('', views.model_form_upload, name='model_form_upload'),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| [
"aymony80@yahoo.com"
] | aymony80@yahoo.com |
3a32e88f924763cebc773b157f5ade3bbf566316 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9BJzrtpdMP8JFQg74_5.py | 54241e25ddb6e70ccec2ec15821dcacf5ef26e29 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | """
Create a function that given a list, it returns the index where if split in
two-subarrays (last element of the first array has index of (foundIndex-1)),
the sum of them are equal.
### Examples
twins([10, 20, 30, 5, 40, 50, 40, 15]) ➞ 5
# foundIndex 5 : [10+20+30+5+40]=[50+40+15]
twins([1, 2, 3... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a9de852a3c55159c7403edb62378d53119e84ca0 | dee8056064f6150d15f3180d3b3466834e291bc6 | /plotLDOSAndDelta.py | 518f098f80cecc155d434f346e9647e90e901109 | [] | no_license | glaurung24/SingleMagImp | 338dde7eaa3d266ba6add3c465087a2d5c718780 | 3baa6c39eb6d5e3d63ee5761ced48b1df765d622 | refs/heads/master | 2023-02-13T21:45:06.456833 | 2023-01-27T15:37:22 | 2023-01-27T15:37:22 | 248,021,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | # -*- encoding: utf-8 -*-
## @package TBTKview
# @file plotLDOS.py
# @brief Plot local density of states
#
# @author Kristofer Björnson
import h5py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.axes
import matplotlib.cm
import scipy.ndimage.filters
import mpl_toolkits.mplot3d
import sys
from... | [
"andreas.theiler@physics.uu.se"
] | andreas.theiler@physics.uu.se |
78441b96c0ce2e71662750c075ba367d4d5cdaa5 | 7ec4e5bc5c7edbe3bf107c64d803bcbe0e66f093 | /Lec12/lec12_sorting.py | 3243a0869035c2220b9d27c12db85b31f716ea27 | [] | no_license | griever255/CompSci_Python_6.0001 | 8cb8e21d33aec16d8acd649754af02fd92f0fd04 | d3145c6880f59299f8d8cce24398526a9c819fff | refs/heads/master | 2023-03-09T04:57:42.733165 | 2021-03-05T02:11:16 | 2021-03-05T02:11:16 | 340,723,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 19 09:21:39 2016
@author: ericgrimson
"""
# def bubble_sort(L):
# swap = False
# while not swap:
# print('bubble sort: ' + str(L))
# swap = True
# for j in range(1, len(L)):
# if L[j-1] > L[j]:
# swap = False
# ... | [
"jgargiulo95@gmail.com"
] | jgargiulo95@gmail.com |
b9c2ab2a145c713904bc1750e4837b1d3b4cc7d7 | bbfa3b7ee2008617d33a7c5c7770d22e1aa8836b | /Neural_Network/_base.py | 4297021e909f92cc59ba0f6ba4d9070986e15fba | [
"MIT"
] | permissive | luoshao23/ML_algorithm | 1a0046ce9c3abed029cceffa35defe57fffa82b2 | 6e94fdd0718cd892118fd036c7c5851cf3e6d796 | refs/heads/master | 2021-08-07T08:38:16.102455 | 2020-03-18T06:49:43 | 2020-03-18T06:49:43 | 92,467,636 | 4 | 1 | MIT | 2018-01-16T05:01:29 | 2017-05-26T03:20:08 | Jupyter Notebook | UTF-8 | Python | false | false | 1,611 | py | from scipy.special import expit as logistic_sigmoid
import numpy as np
def identity(X):
return X
def logistic(X):
return logistic_sigmoid(X, out=X)
def tanh(X):
return np.tanh(X, out=X)
def relu(X):
return np.clip(X, 0, np.finfo(X.dtype).max, out=X)
def softmax(X):
tmp = X - X.max(axis=1)[... | [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
5e64b839b47066df063c62dea1b7f5782aef0f90 | 8e4c82edcb114bd08071e744703e03f6e6cab98a | /docs/conf.py | 4032135f1e58cc88a0dba4bd3ec5f47c61447b45 | [
"Apache-2.0"
] | permissive | cupid4/slippin-jimmy | 915c5d50570ae1e533bc5a33fcbd79304ebd9b7d | d0e52277daff523eda63f5d3137b5a990413923d | refs/heads/master | 2020-06-19T00:56:26.124669 | 2018-05-30T20:59:31 | 2018-05-30T20:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,462 | py | # -*- coding: utf-8 -*-
#
# Slippin Jimmy documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 31 13:10:29 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.... | [
"webmasterhhp@gmail.com"
] | webmasterhhp@gmail.com |
20496097f5f7d9d5460ac3bc6b6e4f2aff62bfac | fe85b4811c93510006b666858d6029156f167f89 | /bin/hooks/notify.py | 6e5dda8635f63227a7b9e6e4d72ce489645fd7c9 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | 9001/copyparty | 39207421ccdc501566105da562a168996e0f9b4c | 48a3898aa692770735a926b0c18300d7da8b021f | refs/heads/hovudstraum | 2023-08-18T15:19:36.934124 | 2023-08-16T19:57:19 | 2023-08-16T19:57:19 | 188,700,274 | 273 | 21 | MIT | 2023-08-09T20:50:27 | 2019-05-26T15:28:33 | Python | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python3
import os
import sys
import subprocess as sp
from plyer import notification
_ = r"""
show os notification on upload; works on windows, linux, macos, android
depdencies:
windows: python3 -m pip install --user -U plyer
linux: python3 -m pip install --user -U plyer
macos: python3... | [
"s@ocv.me"
] | s@ocv.me |
56c9ec760a7ff4fbc286a000c492d5c732524c16 | f7fdcbc3052559708500e1655dc1feeac2060a22 | /List.py | 5ef1924d32d5b977c9ea3be623ba156e8b842d73 | [] | no_license | VidocqRR/List.py | fdd7a77a10d89047817545c7d53e8adda73b76ed | ebf5575f8e45f0e94b2828ae5484f86bc19f8b71 | refs/heads/master | 2020-04-13T22:52:38.726634 | 2018-12-29T08:11:02 | 2018-12-29T08:11:02 | 163,491,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
myUniqueList = []
myLeftovers = []
def AddTest(args):
if args not in myUniqueList:
myUniqueList.append(args)
return True
else:
myLeftovers.append(args)
return False
AddTest(1)
AddTest(2)
AddTest(3)
AddTest(4)
AddTest(5... | [
"noreply@github.com"
] | VidocqRR.noreply@github.com |
a4d873fd7b37a571596b17597053adbafbb8d18a | 1108b133bba685bee7d3b5046ad59a8bb52148b3 | /build_layouts_main.py | 6a07e9ec0242b7b904fbeb66ae8c0e20e8816c72 | [
"Apache-2.0"
] | permissive | tiagodavi70/build_layouts | aec6ae07bfbde17e8687a4a42d2776f5d39e5427 | 9860cd1c4f87c1cecfa1bbd18b2e4c5bdc94398f | refs/heads/master | 2021-02-09T03:01:54.531800 | 2020-04-28T13:44:17 | 2020-04-28T13:44:17 | 244,231,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | import streamlit as st
import pandas as pd
import numpy as np
import time
from PIL import Image
import altair as alt
import seaborn as sns
from matplotlib import pyplot as plt
import learning as lrn
from preprocess import get_normalized_datasets, transform_continuous
@st.cache
def data(cat):
return get_normalize... | [
"tiagodavi70@gmail.com"
] | tiagodavi70@gmail.com |
beb48d37a60a78689bd1746ead88875852e1c2e5 | 74fa733260f66c7dd1e9b7ddf2eb3a9bdd624aff | /train_evaluate_sesemi_tinyimages.py | a64641cca8aaa94cb4e60df467a84dfacec289bd | [
"MIT"
] | permissive | ml-lab/sesemi | 29d6bb3fec0920ed1d6d6f95ea40679c18573c59 | b325936fb5ae425b5ee298ee7011129051cfc69e | refs/heads/master | 2020-06-11T14:51:37.654989 | 2019-06-26T23:42:09 | 2019-06-26T23:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,376 | py | """
Train and evaluate SESEMI architecture for semi-supevised learning
with self-supervised task of recognizing geometric transformations
defined as 90-degree rotations with horizontal and vertical flips.
"""
# Python package imports
import os
import argparse
import numpy as np
import pickle
# Keras package imports
fr... | [
"vuptran@gmail.com"
] | vuptran@gmail.com |
7ecb0fc45ab508097e8473572d1a53221cac4a05 | 81937f0eec3b78947ab498b118d81e2ec8652c67 | /python_code_basic/wgrywanie_dzwieku.py | fea9ee3c1d9a166d1cbca6d7dc8c2c5560b611e6 | [] | no_license | dzakub77/python_basics | a0dec25ee30a7ca41256f38295520de0dc1497f2 | 10f7fe05ed3becb8095412e4811b779d9c7946d8 | refs/heads/master | 2020-08-26T13:18:20.049654 | 2020-01-15T15:18:52 | 2020-01-15T15:18:52 | 217,023,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py |
from livewires import games
games.init(screen_width=640, screen_height=480, fps=50)
pocisk_sound = games.load_sound('pocisk.wav') # za pomocą funkcji load_sound - można ładować tylko pliki WAV
games.music.load('temat.mid')
choice = None
while choice != '0':
print(
"""
Dźwięk i muzyka
... | [
"jak.inglot@gmail.com"
] | jak.inglot@gmail.com |
6e7c3ec5e74550ca5f1d604f5f6a2950d3b44151 | 943b2da5e84aa1d61021a85b4f0cdbfe01dd2d74 | /oaspec/schema/funcs.py | 11b87886f7d4eade3a538c0c9ddfef777e2c3e26 | [
"MIT"
] | permissive | platformsh/oaspec | cd32a3304b14272501d317e6d5aa40f20cfbc18c | 8816bec4ce277d3505d65ccd77485e1a0ce095f2 | refs/heads/master | 2021-07-13T20:18:03.194655 | 2019-06-18T00:22:44 | 2019-06-18T00:22:44 | 206,879,484 | 0 | 3 | MIT | 2021-06-23T13:51:02 | 2019-09-06T21:54:15 | Python | UTF-8 | Python | false | false | 2,728 | py | # -*- coding: utf-8 -*-
import re
from copy import deepcopy
def def_key(key):
"""Compute a definition ref from a key.
Returns:
str: The computed relative reference
"""
return f"#/definitions/{key}"
def get_all_refs(schema):
"""Get all ref links in a schema.
Traverses a schema and e... | [
"nick.anderegg@platform.sh"
] | nick.anderegg@platform.sh |
02d7db5785df04c2f897243258873da5b4b0ab58 | 012efe58d791dbc906a4485aad7d097ea336a69b | /pixels.py | c2431788142f24bbc5809f83b2e0ee5ccad10f43 | [] | no_license | jorjuato/pythonic | f3cb7c75e530170b75eee1903b633855debafa98 | d5ccc603c0748026da18a89a3c3ade218a139cf6 | refs/heads/master | 2021-01-15T14:29:01.823584 | 2012-02-27T13:10:16 | 2012-02-27T13:10:16 | 3,560,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | #!/usr/bin/env python
import VisionEgg
VisionEgg.start_default_logging(); VisionEgg.watch_exceptions()
from VisionEgg.Core import *
import pygame
from pygame.locals import *
screen = get_default_screen()
screen.set( bgcolor = (0.0,0.0,0.0) ) # black (RGB)
white_data = (Numeric.ones((100,200,3))*255).astype(Numeric.U... | [
"yosoymicerinos@yahoo.com"
] | yosoymicerinos@yahoo.com |
a7314831bd03dc41915aa1ae0b07c843c21756a3 | f79673770ab37c86804cd46b83b82b72a99e1ec8 | /python-project/test_isPalindrome.py | 69ea43b98990852cf7df3aad25796506ac516d3f | [] | no_license | madooei/playground-h2n7ay2w | ddfde03d8cf6260efdc9f61874b95363ec496e87 | a86461b4640ae1f1e2c662d715b2f7062f5c68e3 | refs/heads/master | 2022-08-11T11:28:19.720013 | 2022-07-21T14:21:24 | 2022-07-21T14:21:24 | 174,290,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | from isPalindrome import isPalindrome
def send_msg(channel, msg):
print("TECHIO> message --channel \"{}\" \"{}\"".format(channel, msg))
def success():
print("TECHIO> success true")
send_msg("My personal Yoda, you are. 🙏", "* ● ¸ . ¸. :° ☾ ° ¸. ● ¸ . ¸. :. • ")
send_msg("My personal Yoda, you are. �... | [
"noreply@github.com"
] | madooei.noreply@github.com |
6701a5d0ba5e5b012fd5e73566122aec45fe9bd2 | b47ae1d46a3abfbf9dd0192e1f09b15a3c0be570 | /getting_started.py | 8dbd82b18adafc5f5b9e99d14b86f4e66d67716f | [] | no_license | tanishka1411/YoutubeAPI-Analysis | 71aaf217a97ed2d0fc8bb4dea3b098e5066a1793 | b7f984a2af925c6451b6252e81e8b1056adfa02e | refs/heads/main | 2023-06-09T04:08:41.802770 | 2021-06-29T06:49:57 | 2021-06-29T06:49:57 | 381,096,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from googleapiclient.discovery import build
api_key = '#someAPI key'
youtube = build('youtube', 'v3', developerKey=api_key)
# servuce name and version
request = youtube.channels().list(
part='statistics',
forUsername='schafer5'
)
response = request.execute()
print(response)
| [
"noreply@github.com"
] | tanishka1411.noreply@github.com |
4226e098d5435a55371697a55303a229897544cd | 0f9eb5d747369906c855cf7738f8be6056f6c46d | /travels_management/reports/report.py | 6755900c58f3b0395729bec944b9f04d60f6756b | [] | no_license | Rinshi-Cybro/Odoo-Project | 38e0ae540c12fb39c13df5a0a68bd6e4625e1424 | 30ce607db352b19d746dd3d72aaa4e6260e536b4 | refs/heads/master | 2023-03-06T20:30:40.506008 | 2021-02-24T11:57:47 | 2021-02-24T11:57:47 | 328,082,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | from odoo import models, fields, api
class TravelsReportPrint(models.AbstractModel):
_name = 'report.travels_management.print_travels_report'
_description = 'Booking Report'
@api.model
def _get_report_values(self, docids, data=None):
"""in this function can access the data returned from the b... | [
"rinshi96@gmail.com"
] | rinshi96@gmail.com |
b7f90b7cf746aca123b7602fbd4d17e1ee97ac65 | 6b533b5ef49306b0e8db2d147d837659b1a7126b | /homework-3/ad_engine.py | 63b9903d99a118275784e95460fdae92733b98ad | [
"MIT"
] | permissive | sofiaruiz/AI_class_assignments | 35bff0d4e2fa5cdb61307e20b5af332f96e557a8 | 16fb74da92e7328163049699b74a4dd897233bcf | refs/heads/master | 2022-04-14T10:46:34.487783 | 2020-04-11T23:37:57 | 2020-04-11T23:37:57 | 148,580,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | '''
ad_engine.py
CMSI 485 HW 3: Advertisement engine that selects from two
ad traits to maximize expected utility of converting a sale
for the Forney Industries Protectron 3001
'''
import itertools
import unittest
import math
import numpy as np
from pomegranate import *
class AdEngine:
def __init__(self, data_f... | [
"sruiz13@lion.lmu.edu"
] | sruiz13@lion.lmu.edu |
1d11db0aa1ed010ab524edc4b7847c5ce929f009 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch78_2020_04_13_14_24_17_375788.py | f3ffd533ba171b545632219f377a3046205a82d8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | jogo = True
import math
while jogo:
a = input("Qual o nome?")
if a == "sair":
jogo = False
else:
b = float(input("Aceleracao?"))
dic = {a:b}
dic2 = {}
soma = 0
for e in dic:
if e not int dic2:
dic2[e] = math.sqrt(200/dic[e])
if dic2[e] > soma:
... | [
"you@example.com"
] | you@example.com |
e8dd4b99dda3f80a715b9b095438124cf900d209 | b1b43bb18fb06ca2c549382622ef7fd041baa7a8 | /test/rename.py | 619f249df2769199b1e29277fbd5a2362fe28ed1 | [] | no_license | easyz/tools_3 | 3de001b1db30e8a924797142088bcd8af50c3e49 | 754b8a7be8afd95dee0a79bbe2b947a7cad434a2 | refs/heads/master | 2021-04-25T19:25:03.268839 | 2018-05-03T07:25:05 | 2018-05-03T07:25:05 | 108,647,106 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 3,878 | py | #coding:gbk
from PIL import Image
import json
import os
import shutil
import time
import math
import re
def RenameRule01(rule):
return lambda name : rule.replace("*", name)
def RenameRule02(name):
return "_" + name
def ReDir(dirName, ruleFunc):
dirName = dirName.decode("utf8").encode("gbk")
for f in os.l... | [
"yinzhi523@163.com"
] | yinzhi523@163.com |
f2016ead70d10ced68bab597dac0c22bfd28423e | d7641647d67d110e08997767e85bbea081c2537b | /bitmovin_api_sdk/encoding/inputs/udp_multicast/udp_multicast_api.py | 59839e170880781ece7571d5ff6cbc19d6ee3393 | [
"MIT"
] | permissive | aachenmax/bitmovin-api-sdk-python | d3ded77c459852cbea4927ff28c2a4ad39e6026a | 931bcd8c4695a7eb224a7f4aa5a189ba2430e639 | refs/heads/master | 2022-11-16T08:59:06.830567 | 2020-07-06T07:16:51 | 2020-07-06T07:16:51 | 267,538,689 | 0 | 1 | MIT | 2020-07-06T07:16:52 | 2020-05-28T08:44:44 | Python | UTF-8 | Python | false | false | 3,377 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope
from bitmovin_api_sdk.models.response_error import ResponseError... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
22455a3f150ef0f3385bd909b0f90762cfa6b38e | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/registration/views_20210920162648.py | fb7e3c1e36051e6495947c6a53f7162f739cf2d1 | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from django.shortcuts import render
from django.contrib.auth import models
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render,redirect
from django.contrib.auth.models import User
from .models import money
# Create your views here.
def register(request,response):
if response.m... | [
""
] | |
2bf767c9edf48de2f3c6ab38f546b0cc1b20212a | d12fb60ff73288f101e84e59943b04e2e23e0d3f | /anidbsync/kodi/kodi.py | 7af17b7c78559530f565b207591ce253baf9fbc1 | [
"MIT"
] | permissive | Tyderion/kodi-anidb-sync | bb5190e9a97da7f5bf8e78da7221c145f5bbeef8 | 7912184c3fc744d330ae3581f8144fe3a9a1a823 | refs/heads/master | 2020-09-02T23:47:39.208469 | 2019-11-15T19:51:54 | 2019-11-15T19:51:54 | 219,334,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | from kodipydent import Kodi
from anidbsync.auto import AutoRepr
import operator
import re
# TODO: Solve multiple entries problem
from anidbsync.config import KodiConfig
class KodiTVShow(AutoRepr):
def __init__(self, data):
self.id = data['tvshowid']
self.title = data['originaltitle'] if len(data['o... | [
"gabriel.nadler@gmail.com"
] | gabriel.nadler@gmail.com |
adbdecf911aa42a3a549d55874bba69c09b8a299 | 2ffdfe188859d5be1a427ce1c4457d41331b541c | /message/GREEDYMOTIFSEARCH(Dna,k,t)-profile.py | 4141b3dd1d68935dd12951302f7307f9a4edb569 | [] | no_license | Hydebutterfy/learn-python | 18504b0c7281c2b0f94dbc73e77da87c8ac3ff38 | 883614deaf0a3cdf46d8305197fe5659fd609d60 | refs/heads/master | 2021-01-24T11:59:44.883949 | 2016-12-02T07:48:40 | 2016-12-02T07:48:40 | 59,213,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | #GREEDYMOTIFSEARCH(Dna, k, t)
#BestMotifs ← motif matrix formed by first k-mers in each string from Dna
#for each k-mer Motif in the first string from Dna
#Motif1 ← Motif
#for i = 2 to t
#form Profile from motifs Motif1, …, Motifi - 1
#Motifi ← Profile-most probable k... | [
"chenhyde628@gmail.com"
] | chenhyde628@gmail.com |
a7b89574bda58f867c4e82e4edbbf25d5299eca5 | b89fb35aed1e3c4d2d7e1240433fe19de0d22238 | /lab7/moleCOOLa_git.py | 14a2642a05702d1fc8b43a2d4ef559de7086fa16 | [] | no_license | ilyapanov1202/infa_2019_ivanov | 0a2c7e56c3383d4da8b86ebeed93538fb96e2fdb | f90a12ab37bd0d6cbc8beb1dfd9b536c73f4cd5e | refs/heads/master | 2020-07-28T21:14:06.976069 | 2019-10-31T12:47:54 | 2019-10-31T12:47:54 | 209,539,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,515 | py |
from tkinter import *
from random import randrange as rnd
import time
root = Tk()
root.geometry('185x170')
entry_text1 = StringVar()
entry1 = Entry(root, textvariable = entry_text1, font = "Arial 36", bd = 12, width = 6)
entry1.insert(0, "")
entry1.place(relx = 0, rely = 0)
def entry1_g... | [
"panov.ia@phystech.edu"
] | panov.ia@phystech.edu |
04f197160e35435fcf10385457b3c47a54990aec | 0ba0e1f45275358d134a33c25fa0d881cb73706a | /scrapers/scrape_player_stats.py | 9303b60ba9215dd8737fec3cd3193a905205432e | [] | no_license | C-Roensholt/ScrapeDanishSuperligaData | c8a888209e0221f7a392a77e7b15218a7e888ba1 | d80c029e06b1ec26df5d6989884ff6a220f1bd53 | refs/heads/main | 2023-07-03T10:32:19.793708 | 2021-08-03T09:02:02 | 2021-08-03T09:02:02 | 391,692,055 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,798 | py | #%%
import pickle
import time
import pandas as pd
from selenium import webdriver
from functools import reduce
def get_player_overall_stats(driver, url, get_all=False):
driver.get(url)
time.sleep(3)
# change to player stats
player_button = driver.find_element_by_xpath('//*[@id="__layout"]/div... | [
"ronsholt32@gmail.com"
] | ronsholt32@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.