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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5be3582b173c7125710ef92297f6d65604214c6d | cd26139f73a1810e1ea19614cce09835a299d0ca | /kmeans_clustering/lemonade_code.py | 519a319c193b70451684c1c18e493ec16d5081ed | [] | no_license | eubr-bigsea/Lemonade_apps | de8df4e764ba3c796296158b1bb679cc923e579c | 193f0c6248c4cc74b1c53f6d05697c26b5617051 | refs/heads/master | 2021-01-12T06:14:48.372820 | 2017-06-25T21:40:14 | 2017-06-25T21:40:14 | 77,331,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,490 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Auto-generated Spark code from Lemonade Workflow
# (c) Speed Labs - Departamento de Ciência da Computação
# Universidade Federal de Minas Gerais
# More information about Lemonade to be provided
#
import os
import json
import string
import sys
import time
import uni... | [
"noreply@github.com"
] | noreply@github.com |
814f03eadcaab69f52eefd4a56dbfdb84e3b45c7 | 298d6d0d1ccf5e376fb001a3f00a30a5e2dd82cf | /run.py | 3aba6a757d44e46e7d4d1dc06d063b2c2c1dbf8e | [
"Apache-2.0"
] | permissive | srivastavaanuj11/Feedback-using-Pose-Estimation | 4650b0ba1e7387e7bef5870c65285f646f4d3171 | b6e019b6d2e1bd6aea72de6fa4bea649d6d8aef3 | refs/heads/master | 2022-09-13T07:28:26.939174 | 2020-05-28T19:04:07 | 2020-05-28T19:04:07 | 267,564,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | import argparse
import logging
import sys
import time
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Sessio... | [
"noreply@github.com"
] | noreply@github.com |
28256be21b3e08c5125a0dc883ce7faab4d88b3e | 0731fefd8d3fec0a3ba76dcb69ebecf8c378a3a6 | /GenerateArchimedesSpiralPoints.py | 4848c6b3ef417cb0bf8b426d5807c6d95ec5fcfc | [
"MIT"
] | permissive | MrHuman22/Fusion360-Scripts | 38ad46ad49dfdd419e53a8e18ec7932f30c87c6a | 42dd8bd96fee5e395eba95dc27ca66ea3b374e46 | refs/heads/master | 2022-11-07T18:14:59.917355 | 2020-07-01T05:49:07 | 2020-07-01T05:49:07 | 276,012,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | #Author-Peter Newman
#Description-Generates an archemedes spiral
import adsk.core, adsk.fusion, adsk.cam, traceback
from math import cos, sin, pi
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
des = adsk.fusion.Design.cast(app.activeProduct)
... | [
"pwn394@newcastle.edu.au"
] | pwn394@newcastle.edu.au |
8d0af377fef87addec5a8ec9aa2e107cf6ad9be6 | af1c44a718c589ce40efd488adff9466f8d840f8 | /Todos.py | 28f9b5d4348ae828116504fc6f6b218e84f56333 | [] | no_license | ErickdeMauleon/Mineria-en-Python | f5bef0720fc9039febca2df24e65f3755f916aee | e242a545f9a08463bee0817ea5517ede97700a98 | refs/heads/master | 2020-03-30T21:55:03.837349 | 2018-10-04T23:13:29 | 2018-10-04T23:13:29 | 151,646,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 17:37:24 2018
@author: Santillan
"""
import pandas as pd
import numpy as np
from sklearn.datasets import load_iris
from sklearn.model_selection import GridSearchCV, train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble imp... | [
"noreply@github.com"
] | noreply@github.com |
88a9307b7a34109f21a0c235a7127e3fb3b294b4 | ddd190a024211ffaa42094ffa6ead4cfec6637c8 | /spiders/some/test.py | f3610ebac21b227015bad71c309c4d7b1285f04a | [
"MIT"
] | permissive | goodking-bq/scrapy_workstation | 82d0bb2996ddf23d915b5f58283be52fc63c0c3f | 76a0897cbde417a7d07bbac9f42958f56109d0d1 | refs/heads/master | 2021-01-23T22:30:04.400939 | 2017-09-09T07:33:36 | 2017-09-09T07:33:36 | 102,935,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import requests
print 'start'
res = requests.post('http://www2.j32048downhostup9s.info/freeone/down.php',
data={'type': 'torrent',
'id': 'OK18BZy',
'name': 'OK18BZy'
}, headers={
"Content-Disposition": 'attachment... | [
"120225883@qq.com"
] | 120225883@qq.com |
bb75ababe070a106b7be22792dee5606e5db1fff | 129b47345fc9d0036cf0a3fd6bf9ed0d579d864b | /DataScience/Analytics/sandbox/addressLinkingML.py | 32010a1f5382f23f07eee2f42caae4d9e272f437 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | ONSdigital/address-index-data | 75055c1bbb9427308bfda7506e1e5986e52d55e0 | f14f8a22ed93e23436f43d47a897b895d81f82b0 | refs/heads/develop | 2023-08-17T23:24:40.017213 | 2023-08-15T09:49:00 | 2023-08-15T09:49:00 | 71,133,628 | 15 | 8 | MIT | 2023-08-15T09:49:02 | 2016-10-17T12:00:25 | Python | UTF-8 | Python | false | false | 8,537 | py | #!/usr/bin/env python
"""
ONS Address Index - Address Linking
===================================
This script can be used to test which string distance metrics are more important for
solving identifying correct matches.
Running
-------
After all requirements are satisfied, the script can be invoked using CPython in... | [
"Sami.Niemi@valtech.co.uk"
] | Sami.Niemi@valtech.co.uk |
a2b54ee2f3628be86e3954e5c93eea54b2a128c6 | 4f66c3ee8707e8c85c8bf8ba15bb7ceb3fe00608 | /literature/PlanckSZ2015.py | 4e8cf69a704e36beff7220224e431d8f89bf1db1 | [] | no_license | edoaltamura/xl-zooms | bed433b5c272ffc90261be3d65ab109861c056de | fa4634cb999c5867d0349567412f0df2e3926dbb | refs/heads/master | 2023-06-24T23:41:27.419153 | 2021-07-27T18:12:08 | 2021-07-27T18:12:08 | 281,772,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,428 | py | import re
import os
import unyt
import numpy as np
from typing import List
from matplotlib import pyplot as plt
import itertools
from .cosmology import Article, repository_dir
comment = (
"Planck 2015 results. XXVII. The second Planck catalogue of Sunyaev-Zeldovich sources"
)
class PlanckSZ2015(Article):
f... | [
"38359901+edoaltamura@users.noreply.github.com"
] | 38359901+edoaltamura@users.noreply.github.com |
e8a9cbc0dc675c291596b8da02d4e99220ff8c24 | 70745034a4e117b643ee65db59f827ad1174cf53 | /TensorFlow/convolutional_NN.py | c47d4eab5fe27915c522846b4a32a3557edec441 | [] | no_license | mhichen/HandsOnML | 45a33b7bffc2460006f3e1ff0a22df3663402fe4 | bbdd242a546f1409a98737fc1150858963a73052 | refs/heads/master | 2020-03-15T14:51:43.966731 | 2018-05-24T00:43:35 | 2018-05-24T00:43:35 | 132,198,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | #!/usr/bin/python3
import time
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import tensorflow as tf
from sklearn.datasets import load_sample_images, load_sample_image
if __name__ == "__main__":
china = load_sample_image("china.jpg")
flower = load_sample_image("flower.jpg")
datase... | [
"mhichen@umich.edu"
] | mhichen@umich.edu |
c4c6e0af2a87a16415a3f0575945f66d748ea0f4 | 2ed1cccb49ee1549f09747061a2513fb053c707d | /20181004/DProposed_gpu3.py | 91281bf826beb09c8480f4a1812fba4e8869a002 | [] | no_license | hhjung1202/Prob_network | 1c766ef5191727a63a38654622e21f0d986b923e | dedd4e525c9393f15452709dda377ceee9849c15 | refs/heads/master | 2020-03-22T11:42:27.705442 | 2018-11-11T14:29:39 | 2018-11-11T14:29:39 | 139,990,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,940 | py | import torch
from torch.autograd import Variable
import torch.optim as optim
from torchvision import datasets, transforms
from DPmodel import *
import os
import torch.backends.cudnn as cudnn
import time
import utils
os.environ["CUDA_VISIBLE_DEVICES"] = '3'
def main(model_dir, model, dataset, batch_size=128):
util... | [
"hhjung1202@naver.com"
] | hhjung1202@naver.com |
6f91a39f20fe34c6fdf4363fd8d49ff102161a40 | 7b6da2978e072a6658687eb7a1ac89fb9b87a83b | /ProjetoFinal _Jogo_Gafanhoto_Vermelho/main.py | 741164b60eb4d9f9caa688b705f558b846384399 | [] | no_license | ribeirolivia/Projetos | 52fc6cb44a2a0e1e794acb84caccecb52c346a34 | 08b8c260374036b22305a23586d14d88e7a0ffb3 | refs/heads/main | 2023-06-23T08:07:38.431082 | 2021-07-20T22:28:39 | 2021-07-20T22:28:39 | 386,445,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | # coding: utf-8
import Introducao
Introducao.introducao()
Introducao.menu_intro()
| [
"noreply@github.com"
] | noreply@github.com |
43c082f25a6e6e30257d8c14911f7426fd6de2e1 | 89144239f73e73cde5da4537b13df699d680382d | /themes/pidginicons/pidgin_control.py | aaaf6252399b0c9437256fe570216f22b2a814be | [] | no_license | pspeter3/elementary-pidgin | 60c5b9e929defb72815b320a71c5f239a056c966 | 099eba81034726a916642d7d788aafc5e93846aa | refs/heads/master | 2020-05-18T16:22:20.121439 | 2012-04-09T19:46:48 | 2012-04-09T19:46:48 | 3,856,756 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,763 | py | #!/usr/bin/env python
#
# Copyright (C) 2009-2010 Jason Smith, Rico Tzschichholz
# 2010 Lukasz Piepiora, Robert Dyer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | [
"pspeter333@gmail.com"
] | pspeter333@gmail.com |
69cd60edbe6f2e2089ecca8b242444c3acff3313 | cb935e728ae61c7e8cf367886e99ab568211d580 | /pong.py | 7a19eec8c0554e72fbbce3ac4c8597ad00812fa1 | [] | no_license | andrewhuyha/Pong | 65856f415310c69ce9cf0443faffd71b6a7cce78 | f7ef82c4666956d7b3de30bc657ee47c9a7854ca | refs/heads/master | 2021-06-24T13:53:20.276847 | 2021-04-27T05:12:05 | 2021-04-27T05:12:05 | 223,002,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | #First Python Game!
#By: Andrew Ha
#Date Started: 10/3/19
import turtle
gameScreen = turtle.Screen()
gameScreen.title("Pong")
gameScreen.bgcolor("black")
gameScreen.setup(width = 800, height = 600)
#Score
playerOneScore = 0
playerTwoScore = 0
#Stops window from updating
gameScreen.tracer(0)
#Paddle 1(Left Side)
pa... | [
"noreply@github.com"
] | noreply@github.com |
7ba35e17eca92a7be3abb0ee3e77b2ce98eda3bd | c4165e3e4da2c9981a9483fd8bda0721fd4f2b84 | /src/main/google/LRU.py | 164df7594bf5c62bafd8dc5c459d523b77f1ebbd | [] | no_license | tczhaodachuan/LeetCode | 6cd1704651d6d25306a50c583a93202f27e487d2 | df178fa4f97f163aa5890ec28094e6d655bfbc9a | refs/heads/master | 2021-05-24T03:29:48.555117 | 2020-07-22T03:40:50 | 2020-07-22T03:40:50 | 73,576,097 | 1 | 0 | null | 2020-07-22T03:40:51 | 2016-11-12T20:16:58 | Python | UTF-8 | Python | false | false | 1,392 | py | class LRU(object):
def __init__(self, capacity):
self.capacity = capacity
self.cache = dict()
self.head = None
self.end = None
def get(self, key):
if self.cache.has_key(key):
node = self.cache.get(key)
self.remove(node)
self.setHead(no... | [
"tczhaodachuan@gmail.com"
] | tczhaodachuan@gmail.com |
8ef9af340d5e228e081e4752208ca6f0fc86e61c | 45284836ae85685226b1f1e3b83e207e184aee0e | /05_ProbabilityAndStatistics/01_ProbAndStatsInPython_Beginner/01_IntroductionToStatistics/11_MeasuresOfCentralTendency.py | f822187cd0dd31bf9867f58f1fd34ff63b9187d8 | [] | no_license | gaurab123/DataQuest | 5060efc3d3449e6e098cb77d7fed913516aabdbd | a9da9a90fab639d239340edfc7d0b2010edf2b35 | refs/heads/master | 2021-09-14T15:10:13.047034 | 2018-05-02T19:11:23 | 2018-05-02T19:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | print("this mission cannot be run locally as the data used is loaded \"behind the scenes\" and I really don't have access to it")
import matplotlib.pyplot as plt
# Let's put a line over our plot that shows the mean.
# This is the same histogram we plotted for skew a few screens ago.
plt.hist(test_scores_nor... | [
"kenneth.kite@gmail.com"
] | kenneth.kite@gmail.com |
9c7efaaa782f42236b3ee163464ef9d613bc033c | 0a5c103662e2ccea7698480bca28fb5c285aeafb | /info/dicom.py | 033a6a5fb0ed810ef20d7d4d98a1b7d9b7f8d109 | [] | no_license | joanshen0508/image_preprocessing | a8b9dc90e92552ca11af8b220a2ce235a558aef1 | 478e63593884d572a049590588df158c59447bab | refs/heads/master | 2022-04-02T17:08:56.559871 | 2019-10-29T15:24:48 | 2019-10-29T15:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | from __future__ import division, print_function
import os
from os.path import join
from pandas import DataFrame
import re
import dicom
from inout.io_common import get_dicom_files_in_folder
class DicomDataSummary():
"""
This function allows the generation of information stored on nrrd files.
"""
def ... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
e69f0f7583c1022af9442415e61c2769e37c4122 | dbf770eef8233f7da1850309cc4b7145bd8d67f1 | /PYTHON-ADVANCED-SEPT-2020/PYTHON ADVANCED/03_MULTYDIMENSINAL LISTS/EXERCISE/06_chess.py | 654a9eb872ce75844a3566d42fa88934b8ec214a | [] | no_license | vasil-panoff/PYTHON-ADVANCED-SEPT-2020_repo | 610a37d1681ce9d0aa86628523620e1571b438dd | c63434f91de42d2f1241b6d76a96c7c63711c1d0 | refs/heads/master | 2023-03-22T07:44:53.620221 | 2021-03-15T20:42:14 | 2021-03-15T20:42:14 | 309,829,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | possible_moves = (
(-1, -2),
(-1, 2),
(1, -2),
(1, 2),
(2, -1),
(2, 1),
(-2, 1),
(-2, -1),
)
board_size = int(input())
matrix = [['0'] * board_size for i in range(board_size)]
def is_valid(i, j):
if i < 0 or j < 0 or i >= board_size or j >= board_size:
return False
r... | [
"vasil.panov@gmail.com"
] | vasil.panov@gmail.com |
f6462e692332d8b61c7908f67535fbd65c5926db | 1fb230e5382ccbf79898fad3a025f8ffeb957f70 | /raster_development/ee-density-upload-iso3.py | 2f44c821321c11ce0668be27e6661cb8e16c791b | [
"Apache-2.0"
] | permissive | GlobalFishingWatch/psychic-guide-squirrel | fcae6999248357280cc747455468b3fc54f8199c | 7d503abeddce80df7d42cdea5e982131e466305c | refs/heads/master | 2021-01-17T06:12:20.876972 | 2017-02-07T17:16:02 | 2017-02-07T17:16:02 | 55,070,984 | 1 | 1 | null | 2016-12-05T19:44:20 | 2016-03-30T14:42:18 | Jupyter Notebook | UTF-8 | Python | false | false | 12,328 | py | #!/usr/bin/env python
from __future__ import division
import copy
import datetime
import itertools as it
import json
import math
import multiprocessing as mp
import multiprocessing.dummy
import posixpath as pp
import random
import threading
import time
try:
from urlparse import urlsplit
except ImportError:
fr... | [
"davidkroodsma@gmail.com"
] | davidkroodsma@gmail.com |
c0ab8764c55a83565f75e6d16b589701ec260dab | 2aa4feaa6eb3adf74d5e570be27a6ccf0d37d43b | /hello-worldj91.py | f6c4b7b0ad5c0afbbd688dc52588085087a3b541 | [] | no_license | applepie405/Marcel-s-Python-GUI-Window | 483f06c7703144e57c85c2d7058becedd8021c99 | 5386d5a03ad21d2cbbbd26615362c3c8e3cbc225 | refs/heads/main | 2023-03-23T23:25:21.744354 | 2021-03-24T02:02:09 | 2021-03-24T02:02:09 | 337,589,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | from tkinter import *
root = Tk()
root.title("Goal Tracker")
# Create and set the message text variable
message_text = StringVar()
message_text.set("Welcome! You can deposit or withdraw money and see your progress towards your goals.")
# Create and pack the message label
message_label = Label(root, textvar... | [
"noreply@github.com"
] | noreply@github.com |
9804f8564de4716be8abab8b427521211de74d90 | 50f938fe67c3c65c5a95fc8454e1a1817f8ef3d0 | /search insert position.py | f2531843935e0d7c7f0e89580b584ad07c903e25 | [] | no_license | guoziqingbupt/Lintcode-Answer | 44e4d5bab46fd1d3400c2de0b810269eb5606f20 | 4b92bf4ad6f170160550a052011e63c07a068106 | refs/heads/master | 2021-04-06T13:55:35.080919 | 2018-07-02T03:24:27 | 2018-07-02T03:24:27 | 125,335,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | class Solution:
"""
@param A: an integer sorted array
@param target: an integer to be inserted
@return: An integer
"""
def searchInsert(self, A, target):
left, right = 0, len(A) - 1
while left <= right:
mid = (left + right) // 2
if A[mid] == target:
... | [
"guoziqing@bupt.edu.cn"
] | guoziqing@bupt.edu.cn |
e3d855b27a0237708ac51b2eaa0fc2658ab2ed91 | 21616c71bae82cbda2727788e049d163d1586884 | /vfb_rest/vfb_rest/wsgi.py | d7dd5ee2d00e1fb9eb37f26d38b1d1804a4d025d | [] | no_license | VirtualFlyBrain/vfb_rest | 25d263099596dd7281e8edfacd8b1eb6075c6e41 | 06959ca042c357bfe0082e4701cf024a8ac4b9f3 | refs/heads/master | 2023-07-06T14:29:23.381265 | 2021-03-24T15:56:59 | 2021-03-24T15:56:59 | 146,908,474 | 0 | 0 | null | 2023-09-06T02:23:00 | 2018-08-31T15:16:07 | HTML | UTF-8 | Python | false | false | 393 | py | """
WSGI config for vfb_rest 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"nicolas.matentzoglu@gmail.com"
] | nicolas.matentzoglu@gmail.com |
7331e23f58cbfdb1cc393fe29479040421c5b479 | f87c2674bad47cf76d3c05c12ad2f9c307702668 | /psupr_ca2_JT_7496.py | f6ec3afbdfaf4dae6988359d4bd40d5b5d5605d9 | [] | no_license | gengliangyu2008/PRMLS-CA2-project | 5d401a56f230011a03d6d1a4306978b675b77939 | 3706fa7c3b7d53e186e71f78e799938e5064c796 | refs/heads/master | 2022-02-21T18:24:13.220553 | 2019-09-29T15:59:59 | 2019-09-29T15:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,842 | py | # -*- coding: utf-8 -*-
"""PSUPR_CA2.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1KOPmeiyA7s63G7nArAYTy7XikXryYSGj
"""
import numpy as np
import sklearn.metrics as metrics
import matplotlib.pyplot as plt
import h5py
from tensorflow.keras.cal... | [
"noreply@github.com"
] | noreply@github.com |
049ab8dd8552a31c314ba77c550026c4ad2f3698 | f7820f347356ec97d54b4dc81fd4b133371fe364 | /tests/test_events.py | ce6c5fc097e73c13a43ad5d94887f207a1c9853e | [] | no_license | geospatial-jeff/cognition-pipeline | a029c8009dbceb5605bad5cf0dd418b7091c2235 | 7343e7d18e01a3ac2a1646012e4e67f9d1698bec | refs/heads/master | 2022-12-14T15:46:38.086800 | 2019-01-06T22:36:31 | 2019-01-06T22:36:31 | 161,524,087 | 4 | 0 | null | 2022-12-08T01:31:18 | 2018-12-12T17:43:08 | Python | UTF-8 | Python | false | false | 4,010 | py | import unittest
import boto3
import os
import json
from handler import PipelineUnittests
lambda_client = boto3.client("lambda")
class MyPipelineTestCases(unittest.TestCase):
def setUp(self):
self.pipeline = PipelineUnittests()
def test_invoke(self):
message = {"hello": "world"}
resp... | [
"jeff.albrecht@slingshotaerospace.com"
] | jeff.albrecht@slingshotaerospace.com |
d68fceb4204ad57c994d5118e3cce37187d0db18 | 15828ab5229fa53505abdb53e853ea40c6af3083 | /main/urls.py | f467920aad2405a64cb23fe6f5f1503394d97438 | [] | no_license | kudep/conventusdemo | 33cce9d87b379bd46dd6caccb42880d0b8b1d889 | f65563b355ae41a8f0a961ee5a2ae7f6dbd80486 | refs/heads/master | 2021-01-22T23:16:32.562699 | 2017-03-21T21:19:33 | 2017-03-21T21:19:33 | 85,621,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-based... | [
"kuznetsov.den.p@gmail.com"
] | kuznetsov.den.p@gmail.com |
00784a17b99b4077db9e72d37bf5cb26749d3043 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_data/sanity/code-smell/changelog.py | 710b10f6c08ec6f6580b2837b46f9a06e6302fd6 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 1,420 | py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import sys
import subprocess
def main():
paths = sys.argv[1:] or sys.stdin.read().splitlines()
allowed_extensions = ('.yml', '.yaml')
config_path = 'changelogs/config.yaml'
# conf... | [
"sifang@cisco.com"
] | sifang@cisco.com |
34d8d879fd1dc1d98ab6c49550b0c42bdac6e2f7 | f90022212ee26a5d5ecb08999a015439f2e01e48 | /ProTwo/AppTwo/forms.py | 0213efeb7eb4ac29e8c2d8b9b380f7afdcd1e505 | [] | no_license | miguelmatosduarte/django-deplyment-example | c389b0ffe348836395338bf5c0fa8152612c0f40 | 73aa51bd0d20ad1500028a0945f14086538c2842 | refs/heads/master | 2020-04-01T21:09:44.843492 | 2018-10-18T15:27:33 | 2018-10-18T15:27:33 | 153,640,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django import forms
from AppTwo.models import User
class Sign_Up_Form(forms.ModelForm):
class Meta:
model = User
fields = "__all__"
| [
"miguelmatosduarte@gmail.com"
] | miguelmatosduarte@gmail.com |
1aec4e2930ae7e12ace2baddd555e7260ec9e136 | 1eae467d92ed934a8aad94feff2abf1ba693dae0 | /1/codiceFiscale.py | 40fcad03e411aebd93a45e66a6f3a5596e3305a5 | [] | no_license | marcocolognese/Analysis-of-information-systems-LABHomeworks | 78267dae86bc900ea495395ad2dd3c0c97ec79f8 | effa8d432fda107eb0701d4818adb3198f783537 | refs/heads/master | 2022-06-30T07:40:30.461032 | 2022-06-16T06:52:11 | 2022-06-16T06:52:11 | 139,051,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | #Moduli
import sys
import string
#Strutture dati Globali
vocali = ('a','e','i','o','u')
mesi = ('a','b','c','d','e','h','l','m','p','r','s','t')
comuni = {'udine':'l483', 'verona':'l781', 'legnago': 'e512'}
#CODICI DI CONTROLLO
regole_pari = {}
alfabeto = string.ascii_lowercase
for i in xrange (0,10):
regole_pari... | [
"marco.colognese1995@gmail.com"
] | marco.colognese1995@gmail.com |
de2a869e4886495403457448183507387e5318e5 | f5713ebaee8445d5ce7d64f50a7fc2ece362a22c | /apps/principles/forms.py | bfb6988c7267b54a1b96e11e7c75707e84a984e3 | [
"CC-BY-3.0"
] | permissive | gerlad/greenline | bfacaa15e7481ee9b9d7171072724930396facda | 219082c2d10d815c9fb21ac339349a1cb8b9bd04 | refs/heads/master | 2020-05-19T17:55:22.510522 | 2011-03-21T15:06:44 | 2011-03-21T15:06:44 | 1,227,024 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from django import forms
from principles.models import Entry
from principles.models import Principle
class PrincipleForm(forms.Form):
choices = forms.MultipleChoiceField(choices=(('1', 'Choice One'), ('2', 'Choice Two'),), initial=['1'], required=False,)
'''
class PrincipleForm(forms.ModelForm):
... | [
"gmccollam@gmail.com"
] | gmccollam@gmail.com |
ed5de0c4b11242dea29bd7aa8862a1c803564de6 | d72547d817698b73949bf2ea79a0a1f1de180a33 | /horse_racing/views.py | 824607e4db80e1ee12329708967fc129c16280f1 | [] | no_license | iuvei/horse-racing | 383c19525069c0fb362026e91e12e7709ffc2da5 | 2cdfbdfe4608728f1efd0ab2d931ba41c6723d05 | refs/heads/main | 2023-06-16T08:33:40.685724 | 2021-07-09T13:06:21 | 2021-07-09T13:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,317 | py | import string
import datetime
import random
from django.conf import settings
from django.http import JsonResponse
from django.contrib import auth, messages
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_exempt
from django.contrib.a... | [
"elahifaiz00@gmail.com"
] | elahifaiz00@gmail.com |
a250c52c942542c5047617e59af057be46c29e3a | 36cae759a3d67da9b2787327b2a99c2c69525c56 | /B2BSWE/Patterns/Prog_Character_Desc.py | d141d88ca48ed7705e0a7c941df0f0847a6b11de | [] | no_license | solouniverse/Python | a64515695c359e3a6e30288742d0bc432adf20fd | c072c681ae29fce28676de1108d41ca9fc9cbb27 | refs/heads/master | 2022-11-30T20:17:43.715018 | 2022-11-25T13:54:49 | 2022-11-25T13:54:49 | 239,029,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | try:
import sys, os
sys.path.append(os.getcwd())
from Utils import Prog_Utils as u
except Exception as e:
print("Exception: ", e)
utils = u.Utils()
n = utils.getNoOfRuns()
while n > 0:
rows, columns = utils.getMatrixSize()
ucAlphaIdx = 65 # A
lcAlphaIdx = 97 # a
for row in range(rows ... | [
"solouniverse19@gmail.com"
] | solouniverse19@gmail.com |
9544265ec76e9e6bce081dee8ea03c2ea278a212 | c7e0c86a24521a13c3b06c73244e9f5854f47284 | /smarts/env/tests/test_metrics.py | a9d43943678df687bf3dc894e97b9aeab7c2cbb1 | [
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"BSD-3-Clause",
"MIT",
"LGPL-... | permissive | huawei-noah/SMARTS | 243d1f1fa4d3afe52a1dd8f7c6c500054d4a1a97 | 2ae8bd76a0b6e4da5699629cec0fefa5aa47ce67 | refs/heads/master | 2023-08-31T05:06:29.064270 | 2023-08-28T23:11:31 | 2023-08-28T23:11:31 | 301,903,883 | 824 | 212 | MIT | 2023-08-08T14:52:00 | 2020-10-07T02:11:23 | Python | UTF-8 | Python | false | false | 10,884 | py | # MIT License
#
# Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | [
"noreply@github.com"
] | noreply@github.com |
ffe86aff360fe66f589944e6f4e66d44eefc999a | ddfb17730fd7b9388bf6edc3b2414db6cdd2d6c9 | /zzz_old_stuff/GetVariables.py | e209e191db80a068022d4268b26072cef1bd48eb | [
"MIT"
] | permissive | JaakkoAhola/LES-scripting | eb09258a9acb7ab14b76f00073c8b6c921bdc300 | 1ebe99ce4292e58581bf50615cb8e0aa3d0c0af2 | refs/heads/master | 2020-09-03T14:24:26.332554 | 2020-04-02T12:15:19 | 2020-04-02T12:15:19 | 219,483,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | def get_ts_variable(fname,var_name,target_time):
# Function for extracting scalar data from NetCDF file based on the given time value.
#
#import numpy
import netCDF4 as netcdf
# Open the target NetCDF file
ncid = netcdf.Dataset(fname,'r+')
# Variable
var = ncid.variables[var_name]
# Time
times = nc... | [
"jaakko.ahola@fmi.fi"
] | jaakko.ahola@fmi.fi |
1d272705faf2bbdc1fdbd6b49ad2bb71b1a70d85 | 810a8ed334a29b81ddd5a4364c06d0272c3aae39 | /clash-of-code/shortest/hexagon.py | 4fd47cf99b5eb0c26472bb476aeafcc46280b64a | [
"MIT"
] | permissive | charlesfranciscodev/codingame | d7bdfc244cb58fa356dec73fb2f2ec5470755dbc | 37b8e269e40f1b4e9807c305874f3b97f7c03a03 | refs/heads/master | 2023-08-16T23:26:20.818882 | 2023-08-16T17:12:06 | 2023-08-16T17:12:06 | 179,561,845 | 53 | 26 | MIT | 2021-05-19T19:36:46 | 2019-04-04T19:16:12 | Python | UTF-8 | Python | false | false | 24 | py | print(6*int(input())**2) | [
"charlesfranciscodev@gmail.com"
] | charlesfranciscodev@gmail.com |
5cff6f6902a20d16ffe5d07ddf2fbc4b5f81a60c | 96c1852886840edfa4aa61a2d9c4f80d4d868015 | /mainCode.py | 10afbd0c42deb2889ebec03721014c1a927f4870 | [] | no_license | rishitaggarwal/Teacher-Helper | 305c9b687320dfe1a95310eed02080c5ef9df47e | bc8213760f27bcfeea7f2f1b24cc8961a605e895 | refs/heads/main | 2022-12-30T06:05:43.768814 | 2020-10-22T11:07:38 | 2020-10-22T11:07:38 | 306,310,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import pandas as pd
import csv
import plotly.graph_objects as px
df = pd.read_csv("data.csv")
studentdf = df.loc[df["student_id"]=="TRL_rst"]
print(studentdf.groupby("level")["attempt"].mean())
fig = px.Figure(px.Bar(x = studentdf.groupby("level")["attempt"].mean(),
y = ["Level 1","Level 2","Level 3", "Lev... | [
"noreply@github.com"
] | noreply@github.com |
9d1e8ffeefbf7cee1e32d4c38a282759cf4dd220 | 577ba42cbf0a3230966ac66ef60fd401486e4c06 | /website/apps/core/migrations/0021_transfer_year.py | 96778623b064dec78ae6724511bdcd803f81ac46 | [
"Apache-2.0"
] | permissive | shh-dlce/pulotu | 984ca86de3ffe03e83bbb15b0d497f1ebf190ecd | 82acbb8a3b7f3ec3acc76baffd4047265a77f7d3 | refs/heads/master | 2021-01-10T03:51:13.337840 | 2015-12-09T09:46:55 | 2015-12-09T09:46:55 | 46,917,922 | 2 | 0 | Apache-2.0 | 2021-11-16T11:51:48 | 2015-11-26T09:48:42 | Python | UTF-8 | Python | false | false | 8,072 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
3a648159b1c2aea371c11614bfded14f7873bb3a | 136512dbc6a4352fbdf60b9324ea1a21aed87569 | /ex31.py | a4dbaaca4c02de91d83da15ae8d07ab51838d61c | [] | no_license | wxlsally1980/For-PY104 | f6c5c3e37db3ac2891cbf5b3e33a7677afffaadb | 15992692733207e054f3947332964b9e5e49d13b | refs/heads/master | 2021-01-02T08:31:06.219634 | 2017-08-02T07:40:36 | 2017-08-02T07:40:36 | 99,016,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input(">")
if door == "1":
print "There's a giant hear here eating a cheese cake. What do you do?"
print "1. Take the cake."
print "2. Scream at the bear."
bear = raw_input(" > ")
if bear == "1":
... | [
"noreply@github.com"
] | noreply@github.com |
11e59e419b0c3729fbdc1c49c14476a7cdcae54a | 2feb2bdda21fb6a077fc19459484599390884ea3 | /t_laplace.py | 4e07761f9117cbe556c32e85dfc0c81f5a373fe9 | [] | no_license | mateussiil/analise-sistemas-lineares | f40082214d8ab3ba689b874beb332a293a17ad96 | 1c39945d07ff58bdbaa14aa40d9e9afb8f9fe0c4 | refs/heads/main | 2023-01-12T03:55:52.397907 | 2020-11-23T12:05:56 | 2020-11-23T12:05:56 | 314,095,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | import sympy as sym
from sympy.abc import s,t,x,y,z
import numpy as np
from sympy.integrals import inverse_laplace_transform
import matplotlib.pyplot as plt
from sympy import symbols, fraction, UnevaluatedExpr
import conta as ct
s, w = symbols('s w')
def mod(num , den):
return np.sqrt(num)/np.sqrt(den)
def fase(... | [
"mateus_silva97@hotmail.com"
] | mateus_silva97@hotmail.com |
13ffabca7f530817e54a8039cdf0711514574bef | 2f05e458d1516a4fa13a1f177a2eeacff4780248 | /django/AIST_survey/migrations/0008_auto_20190218_2100.py | 615cd12ffc7e8e7ad1a9d7c1e4259cb1fc8bd56b | [
"MIT"
] | permissive | aistairc/voteclustering_aist | ecaee45dd126acf7b66c333145bd51098ec119d4 | f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c | refs/heads/master | 2023-02-19T00:32:50.433211 | 2021-01-25T05:42:09 | 2021-01-25T05:42:09 | 281,014,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.1.3 on 2019-02-18 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AIST_survey', '0007_auto_20190214_1152'),
]
operations = [
migrations.AddField(
model_name='enquete',
name='has_pass... | [
"watashun@gmail.com"
] | watashun@gmail.com |
fdb64336cf73e67d472705398ef382a50c520887 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/kushaldas-retask/allPythonContent.py | d19c699f3ba9cd5827f25619f2fb80dfe0dc8340 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,401 | py | __FILENAME__ = conf
# -*- coding: utf-8 -*-
#
# retask documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 3 14:56:38 2012.
#
# 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
#... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
c94d59da1ef5d4f9417d826c016759856c5d32d8 | 1d26bc5d5c086fca8fa8bea30bd4b5779e23d25b | /h/services/mark.py | 74743ff47a80c1de8e94381e05b721a3d5952454 | [
"BSD-2-Clause",
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | maticanzic/h | 65b34e538261f6682efb8b5bc4539b8cc370c6b1 | dc4890e8a29d187315d4f3de5964c9917f2c47c6 | refs/heads/master | 2020-07-10T18:37:44.845423 | 2020-03-01T21:41:24 | 2020-03-01T21:41:24 | 204,337,322 | 0 | 0 | null | 2019-08-25T18:59:30 | 2019-08-25T18:59:29 | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from h import models
class MarkService(object):
def __init__(self, session):
self.session = session
def marked(self, user, annotation):
"""
Check if a given user has marked a given annotation.
:param user: The ... | [
"matic.anzic@gmail.com"
] | matic.anzic@gmail.com |
a6cc55e7e446cdc95f81488f5cd85d5dbad8bb7b | 55290a5cb22a87b3affe480c1eaa4653af5394d1 | /apps/storage/migrations/0001_initial.py | 53cd60f40824f7dea0b6724c6500103362b45a1e | [] | no_license | NatanaelMorales/ActividadFinal | 97fd235de51166dde33f89891f1de32d3bf47aac | 3727236b382e5677023f48e4d592c7046cef3840 | refs/heads/master | 2023-08-03T16:07:58.934166 | 2021-09-17T07:50:46 | 2021-09-17T07:50:46 | 407,407,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # Generated by Django 2.0.6 on 2021-09-17 03:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cita',
fields=[
... | [
"rodnymorales739@gmail.com"
] | rodnymorales739@gmail.com |
0cb269eb77b00fc282b0b7a98450a744901f9bee | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/fase2/team08/Tytus_SQLPARSER_G8/optimizacion/Instrucciones/C3D/LlamadaC3D.py | dc3d1a8494a7f8ac134381a1aa4f9d6d7c4e705b | [
"MIT",
"BSD-3-Clause"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 594 | py | from optimizacion.Instrucciones.TablaSimbolos.InstruccionC3D import InstruccionC3D
class LlamadaC3D(InstruccionC3D):
def __init__(self, id,linea, columna):
InstruccionC3D.__init__(self,linea,columna)
self.id = id
print("ENTRO A expresiones")
def ejecutar(self, tabla, arbol):
... | [
"michikatrins@gmail.com"
] | michikatrins@gmail.com |
0c8781f6951eaa7ebc1a3b119337df5890b6014c | 2ff2f6634e3da26c4a69374d0ffb7fc4d9485baf | /player.py | c6ccfc153615e91fdc50f609a5a7cde96ed31ca6 | [] | no_license | nsaenzz/Rock-Paper-Scissors | db59edac3c3e25c3c154eb223f471ae4052177f3 | 49b7b84bc70ac0bb722deba049a1196959b166e5 | refs/heads/master | 2022-12-07T20:36:13.884606 | 2020-09-07T15:55:46 | 2020-09-07T15:55:46 | 293,344,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import random
"""The Player class is the parent class for all of the Players
in this game"""
class Player:
"""constructor clase, initial values of my_move,
opponent move, and all availables moves"""
def __init__(self):
self.my_move = ""
self.their_move = ""
self.moves = ['rock', '... | [
"neil_saenz@yahoo.com"
] | neil_saenz@yahoo.com |
16badd2fbe280d1152ca490718023aef3087552f | 78873050d2335f6d6df45813e2ac9d974d7dce47 | /dictionary_data_structure1.py | 275c7d2b216d2eb849cd246343c4fdca403b1bb7 | [] | no_license | harshu1470/dictionary | 07af495c7f4f2642ba86936de769d70c50cf43e9 | a041d37370a53eec1414d9e270baf42885cb8aec | refs/heads/master | 2022-11-16T19:27:29.076444 | 2020-07-17T08:57:27 | 2020-07-17T08:57:27 | 280,376,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #dictionary
dict = {"name": "harshit", "education": "B.Tech" ,"steam": "IT"}
#print dictionary
print(dict)
#print the keys of dictionary
print(dict.keys())
#print the key,values of dictionary
print(dict.items())
#print key for specified value
for key,value in dict.items():
if value=="B.Tech":
p... | [
"noreply@github.com"
] | noreply@github.com |
b93260df15ec3b7ec598572a2cee1d41b1db0c22 | 41a672c9505b5b53c58a01d5455acc410949aa24 | /tests/aoutgoing/negative/group/C_39.py | 2f601a227919b3259ac2e7c4da1ce6d2ad77009c | [] | no_license | Alexsorgo/mobile_iOS | b045a0ea058726841c88158be8407b7ae45e893e | 7e298f890b408cedad9db9d0aefeccd9c10d6002 | refs/heads/master | 2022-12-12T17:26:14.039876 | 2020-03-18T06:34:56 | 2020-03-18T06:34:56 | 248,154,882 | 0 | 0 | null | 2021-06-02T01:13:05 | 2020-03-18T06:25:17 | Python | UTF-8 | Python | false | false | 956 | py | from configs import config
from enums import error_enums
from screens.group.group_screen import GroupScreen
from controls.menu import Menu
from tests.aoutgoing.base_test import BaseTest
from utils.logs import log
from utils.verify import Verify
class TestC39(BaseTest):
"""
User has the ability to create group... | [
"oleksii_mishchenko@epam.com"
] | oleksii_mishchenko@epam.com |
255564aec5fbd2217b5838adab632433649e48fb | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /LSTM/lstm.py | fd4fa6f6352b46b189efd111d6f07ccf1a6d69d2 | [] | no_license | musyoku/NLP | 9a63dc882b07b017f7cfc72d863c4d9e5cbeff5e | 9b040bb960b65fb2a1c330adafa6c52e3284a0c1 | refs/heads/master | 2021-01-21T04:53:57.029200 | 2016-07-10T17:08:03 | 2016-07-10T17:08:03 | 55,848,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,963 | py | # -*- coding: utf-8 -*-
import os, time
import numpy as np
import chainer
from chainer import cuda, Variable, optimizers, serializers, function, link
from chainer.utils import type_check
from chainer import functions as F
from chainer import links as L
from bnlstm import BNLSTM
from embed_id import EmbedID
activations... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
f9ce80fc7c86f46273b2cd1af74496ed58daa089 | 2fb77cffd832f9d80824913acaba89be286c21de | /polls/urls.py | 9b8b1297de4fcd612de92ff4b9fb16aa5ecfb900 | [] | no_license | eolhc/first_tango_w_django | d353612606511f739ba09f635f407f65bf013508 | cafa1a2228f5ddacc506395edf61cfd073d6aa27 | refs/heads/master | 2021-01-13T12:36:03.286231 | 2017-01-09T12:40:10 | 2017-01-09T12:40:10 | 78,404,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from django.conf.urls import url
from . import views
# urlpatterns = [
# # ex: /polls/
# url(r'^$', views.index, name='index'),
# # ex: /polls/5/
# url(r'^(?P<question_id>[0-9]+)/$', views.detail, name='detail'),
# # # ex: /polls/5/results/
# url(r'^(?P<question_id>[0-9]+)/results/$', views.re... | [
"cqphua@gmail.com"
] | cqphua@gmail.com |
b339fef273a720af6207908c8f0f7f502bff6272 | 920fb0402ccff659f76a6ad8bf5ea9c9fa6e3b48 | /python-oq/openquake/settings.py | 5f3767bb7c7f7b6c9d9e21615473d0eed1bc0832 | [] | no_license | arbeit/openquake-packages | 347eaab58fc5446640bd852ffae1a47eae2fea06 | d253f09d7848e6cf32e8c7756551436da413176b | refs/heads/master | 2020-12-25T17:37:55.058808 | 2012-10-23T08:21:20 | 2012-10-23T08:21:20 | 4,167,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010-2012, GEM Foundation.
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Lice... | [
"mh@foldr3.com"
] | mh@foldr3.com |
0afb5da3c5bf377521020e90704fbd297b46c016 | e5b778a273e3888ad0575a9dada39d458158127a | /students/migrations/0009_lesson_icon.py | a4f54c33999a2c365ea2cd47c5cf66dca551542c | [] | no_license | SevenLines/django-tealeaf | 896784baead7b9514e83edad8c3c2defdcdd060b | 959dbcbdd37a4e8f45de400e71710c5e746a97da | refs/heads/master | 2021-01-23T00:01:43.793383 | 2015-05-15T15:58:52 | 2015-05-15T15:58:52 | 17,891,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import filer.fields.image
class Migration(migrations.Migration):
dependencies = [
('filer', '__first__'),
('students', '0008_auto_20141128_1807'),
]
operations = [
migrations... | [
"mmailm@mail.ru"
] | mmailm@mail.ru |
b2a23f1789cef25f1bf20ca22704a1b29e2ca619 | 607a1413172b9101165efea7eb8e6cdd7231ef21 | /BMI.py | 727c6c1d4ea0deed3f3b41ff86bc4000a9fe4293 | [] | no_license | zhangxiaofeng9971zxf/moocPython | 822479a83290f49e583260a41bcb7b633012ed95 | a35428842a17e051e8e6b2e8cf6cb8e945342276 | refs/heads/master | 2020-04-17T13:20:55.426988 | 2019-01-24T02:10:35 | 2019-01-24T02:10:35 | 166,611,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | height = eval(input('请输入身高m:'))
weight = eval(input('请输入体重kg:'))
def BMI(weight,height):
bmih = height*height
bmi = weight/bmih
if bmi <18.5:
print('国际标准偏瘦')
elif 18.5<bmi<25:
print('国际标准正常')
elif 25<bmi<30:
print('国际标准偏胖')
else:
print('国际肥胖')
print('{:.2f}'.f... | [
"zhangxiaofeng9971@126.com"
] | zhangxiaofeng9971@126.com |
d7ba5806812a2679ca922d44651cc1c3964fc84e | 7d6373ddb734eb8a8b14c694e2b68d391972d7e0 | /talipp/indicators/OBV.py | 5d25726edea04de42c85c5d6d0feb54b385fc650 | [
"MIT"
] | permissive | b1nhm1nh/talipp | eaeda7c35afda62a81cc19b8ea856d6ab7b06422 | 9300aa8b632bcfe7b48ed63c06fb06793a4a5674 | refs/heads/master | 2023-07-20T19:34:25.272972 | 2021-08-31T15:03:58 | 2021-08-31T15:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from typing import List, Any
from talipp.indicators.Indicator import Indicator
from talipp.ohlcv import OHLCV
class OBV(Indicator):
"""
On Balance Volume
Output: a list of floats
"""
def __init__(self, input_values: List[OHLCV] = None):
super().__init__()
self.initialize(input_... | [
"28791551+nardew@users.noreply.github.com"
] | 28791551+nardew@users.noreply.github.com |
366b8ceb78b71f9ddc9827b05f1fed1a6846ef14 | 6e723d5620c6320d3fae1ca7f5d6bbd3413f8953 | /chap13/demo6.py | c017aef0574fdbc001548aa9a8152d49545f486c | [] | no_license | ericprogram/python | 73d55375e931fb0b421d70e85e5dc7ecdf4ab6cd | e992153838a8b7d37e11b225027f394b4fae127f | refs/heads/main | 2023-04-02T21:37:20.350760 | 2021-04-07T13:10:55 | 2021-04-07T13:10:55 | 332,361,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # --*--coding:utf-8--*--
# author : hmchen
# email : hmchen@cenboomh.com
# date : 2021/1/26 16:49
"""
Object 类
"""
class Student():
def __init__(self ,name ,age):
self.name = name
self.age = age
def __str__(self):
return "我的名字是:{0},我今年{1}岁了".format(self.name, self.age)
stu = ... | [
"hmchen@cenboomh.com"
] | hmchen@cenboomh.com |
b4b91b5d66a9d54dce6d0b77cee372aaf37467af | 76effcf4ae0971e3ea0e69b743c21f98485d1d33 | /Python/spidey.py | cb76d83968ddd0982159b4a7bf1401591d94cf23 | [] | no_license | Vutov/SideProjects | 289684b58fef14d63f83954bb68baeb54f37e3fc | ba0e48825e3f90f9da0e7506c89354622198c4a5 | refs/heads/master | 2021-01-23T07:33:53.818539 | 2018-01-19T10:13:06 | 2018-01-19T10:13:06 | 26,778,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
url = 'http://bg04b.eu/'
urls = [url]
visited = [url]
# Gets page's HTML
while len(urls) > 0:
try:
htmlText = requests.get(urls[0]).text
except:
print(urls[0])
# print(htmlText)
soup = BeautifulSoup(htmlText... | [
"VutovSpas@gmail.com"
] | VutovSpas@gmail.com |
4b6f4ab0d4309902059bfe4311720cbd57cae1ae | 19b9bc401df28ede4b4a5f6fa00ee17042299719 | /archive/To09-14/09-10/seongbin_09-10.py | 6914e1c9bc761a600e9f8594b7b6879b289c387e | [] | no_license | kibitzing/FluentPython | fb0c21c164e0bf7a543e8c3c0d92c6f6c303ebb6 | 75c743ce4c5e65c2d891babd23f0e4b873924000 | refs/heads/master | 2021-07-10T23:42:58.224235 | 2019-02-12T14:24:06 | 2019-02-12T14:24:06 | 147,219,835 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | Contributors = [(1, 'kbitzing', 'Inha University', 'Electronic', 'Male'),
(3, 'kdhht2334', 'Inha University', 'Electronic', 'Male'),
(2, 'khahn0213', 'Seoul University', 'Mathematics', 'Male'),
(4, 'zelabean', 'Inha University', 'Electronic', 'Male'),
(5, ... | [
"noreply@github.com"
] | noreply@github.com |
20669507584ec8d470940c096ab228e4dc37fb86 | 1dbb1f10e2c63997478aa96cf0de252de3e7048a | /leetcode-medium-collection/python3/addTwoNumbers.py | 27a32ea0f436cd2faf565052dbb7f815e956d9a2 | [] | no_license | Zchappie/Garage | 1f2e5e39d5143bb2a37c46696873e52f35d990b9 | db739652737b98818a63a6f8e8b7326e1673ec96 | refs/heads/master | 2020-12-26T17:53:41.586483 | 2020-08-30T08:06:31 | 2020-08-30T08:06:31 | 237,585,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
# if not l1 or not l2:
# return l1 or l2
# power1 = 0
# num1 = [l1.val]
... | [
"zeek.uni@outlook.com"
] | zeek.uni@outlook.com |
95f0a6b1dea85668266643f4da2a8db0c7fd0953 | e6b4a7169daec3b0bef0b17698efd7e3d296aa01 | /primerproyecto/manage.py | f2ce52c8085440235e840bb9f173f223f0781571 | [] | no_license | Billgeorge/Django | 3b46a9132726e99efe14def2514987d9aea11f13 | 893497c226a1090e53fc67b0793d79d831b1520d | refs/heads/master | 2022-12-20T09:39:36.881601 | 2016-01-21T01:48:06 | 2016-01-21T01:48:06 | 50,071,448 | 0 | 1 | null | 2022-12-10T20:19:36 | 2016-01-21T00:52:37 | Python | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "primerproyecto.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jorjek4@hotmail.com"
] | jorjek4@hotmail.com |
97593d01e20dce08a5a4070ab12a31941668ffee | 2dc1e4e9ee004d55fb2ae77f912a826b5689fd39 | /src/domarIRCbot/db.py | 9ccb0b506fbed01a55329299e63866105a9391d8 | [] | no_license | lenzls/eRepCrawler | e8003ee2df23ba9f48be7c2c838b0b2fb7024f4c | e5d44201412ffa65848ef3fe6a3b8a1f1de40107 | refs/heads/master | 2021-05-28T15:34:51.358263 | 2011-04-10T22:55:14 | 2011-04-10T22:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,063 | py | #
# Copyright (C) 2010 by Filip Brcic <brcha@gna.org>
#
# Persistent object database support, based on shelve
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Licen... | [
"lenz.simon@googlemail.com"
] | lenz.simon@googlemail.com |
c42d708638a67507a6e3940aec6bc82380a39f72 | 95e792a30d152bcb31f2d19035416349a0bbe1e5 | /galaxyCodeBase/tools/exaremeTools/HEATMAP_HIGHCHART/HEATMAP_HIGHCHART.py | 59a032cfe4821a1b3c7c6135d281cce6a9bae489 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | madgik/galaxy | b965f5f3680213b21db811f9fafcddb131df312e | 15f9388666fb8f5faa1d3f0fccbb9bf1c4a178ba | refs/heads/master | 2023-04-19T03:30:58.407359 | 2023-04-11T16:05:11 | 2023-04-11T16:05:11 | 174,144,956 | 0 | 0 | NOASSERTION | 2020-11-12T13:13:34 | 2019-03-06T12:53:27 | Python | UTF-8 | Python | false | false | 3,983 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import sys
def getopts(argv):
opts = {}
while argv:
if argv[0][0] == '-':
opts[argv[0]] = argv[1]
argv = argv[2:]
else:
argv = argv[1:]
return opts
def heatmap(
inputJson,
... | [
"tkarabatsis@hotmail.com"
] | tkarabatsis@hotmail.com |
af2f6fbc88738658ff7601a7778fe71e41a634e5 | 8959b1441d205e1e875859358e435263e0b1c19f | /Python/debug/td.py | 921eb44824757efc5e7cacce06f443fdcd6b5f23 | [] | no_license | jamesregis/my-bomberman | 01b4a3f065d51f1ec738ffdd18234aa02935c60a | 981c73469c8df127aa1980ac0a683343a4dd58ea | refs/heads/main | 2023-04-18T12:36:20.977097 | 2021-04-22T20:47:05 | 2021-04-22T20:47:05 | 360,639,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import threading
def hello():
print "hello, world"
def hello2():
print "hello, world 2!"
t = threading.Timer(5, hello)
t1 = threading.Timer(2, hello2)
t.start()
t1.start()
| [
"james.regis@bara.ca"
] | james.regis@bara.ca |
b724034fa2c2040a7580228001de6c6eafbd8d43 | 10d33e1e6eb2280720937e239f8733d968b85eac | /myplot-new.py | dc880069f339021ab15860f00fd9eae9ab39e426 | [] | no_license | rdangovs/animation | 8259999dcf8af38eff4783fcc6c26c276e609489 | 390a984399541668e145ddc5f60bd8889d493a88 | refs/heads/master | 2021-01-25T10:56:56.258615 | 2018-03-01T03:38:24 | 2018-03-01T03:38:24 | 123,377,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
ITER = 20000
fig = plt.figure()
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-2.0, 2.0), ylim=(-2.0, 2.0))
ax.grid()
line_lstm, = ax.plot([], [], 'o-', lw=2, color = "blue")
line_eunn, = ax.plot([], [], 's-', lw=2, col... | [
"Darumen@dhcp-18-111-97-46.dyn.MIT.EDU"
] | Darumen@dhcp-18-111-97-46.dyn.MIT.EDU |
e7a9408e49112ddd9f5aafdb874c3377f4ad2d1c | 767745e9c6207db9f6a9cf4f0be1af4732e7a111 | /raiden/tests/integration/transfer/test_directransfer_invalid.py | d88e7c9f8a32e7f40677ba8b9fc4c75d7c1a3340 | [
"MIT"
] | permissive | gcarq/raiden | ecc91860b99447028baea7fd171c19996644a5ef | 82241c6da9188c4e029aef3bb42f0ab9f055c0e4 | refs/heads/master | 2020-03-10T03:31:55.174762 | 2018-04-11T19:18:21 | 2018-04-11T19:18:21 | 129,167,527 | 0 | 0 | MIT | 2018-04-11T23:52:12 | 2018-04-11T23:52:12 | null | UTF-8 | Python | false | false | 6,738 | py | # -*- coding: utf-8 -*-
import pytest
from raiden.api.python import RaidenAPI
from raiden.messages import DirectTransfer
from raiden.transfer import channel
from raiden.transfer.state import EMPTY_MERKLE_ROOT
from raiden.tests.utils.blockchain import wait_until_block
from raiden.tests.utils.factories import (
UNIT... | [
"hack.augusto@gmail.com"
] | hack.augusto@gmail.com |
c60b5a503cfaa9e6f2b04e43b863f1aa2380a421 | ef73a39feb698bf2b8c5d84ca0f05e7d88b3a646 | /Testcase/test_serviceManage.py | 223348b1ddab9a20babadfb3bd92656bfcff5e9f | [] | no_license | hedanhe/ApiTest | ac9d569bce769af76c56ef1b656dc7a5a5266d71 | 0b9aa2e7eff90bfa5f7c98270325fa9dc71bbeaa | refs/heads/master | 2022-11-29T18:35:50.205741 | 2020-08-07T03:58:58 | 2020-08-07T03:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: yanghong
@file: test_serviceManage.py
@time: 2020/5/25 11:19
@desc:增值服务管理-服务项管理
'''
import json
import warnings
import allure
import pytest
from Common.Assert import Assertions
from Common.DB import DB_config
from Common.Login import loginAdmin
from Common.logger i... | [
"hong.yang@qizhixinxi.com"
] | hong.yang@qizhixinxi.com |
89eea659b56e7e721f9943ae5b3106bc2d905972 | b8a373f6ef648da7eb50b193723a17e1cb793504 | /djangoapp/frecord.py | 3bfb8665c2edd53c1829a8dc70f3269cd0e5d869 | [] | no_license | strongqli/visualstock | 37627e7fe3c8ae21cf2fff646bebd764a97f02da | 18662a34db3734604f59a330babfed6cf7300787 | refs/heads/master | 2016-09-06T01:50:41.566194 | 2014-03-20T09:21:39 | 2014-03-20T09:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to ... | [
"strongqli@gmail.com"
] | strongqli@gmail.com |
cc48085dc7ade65b50e1a12660038561569afbf8 | 9032a759b29da1c5f6a3aeb710e06c2aa6080a54 | /03_zhihu/zhihu/items.py | 2f44ad005e7a4166258e10bfcb1b47949f0accef | [
"MIT"
] | permissive | GongkunJiang/MySpider | 5e5aa89348a8a94cb1b3b807dcbfe1662e534d14 | 8c088f696679b13568843af521279f9f25f40314 | refs/heads/master | 2020-03-27T10:32:14.768792 | 2018-12-07T11:35:18 | 2018-12-07T11:35:18 | 146,427,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class ZhihuItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = Field() #保存抓取问题的url... | [
"jgk19950903@gmail.com"
] | jgk19950903@gmail.com |
0d9da472ddc42d26ecd7df9af9a4c9d5fff890c6 | c638d7f179f12bd6fb8f62bb00467e5b5fd97e8e | /python/0015.py | 13e11a869843d9125ea5f619b86c0c7c77cbffb0 | [] | no_license | colblitz/projectEulerTeamCarrot | 32044477fcda892e338e628f4d44db2760029b12 | 23284f4defb8ddab33feefea8f5ee2fa162cfd67 | refs/heads/master | 2021-01-18T20:20:22.758054 | 2014-06-14T08:13:04 | 2014-06-14T08:13:04 | 8,715,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from math import *
from util import *
#######################
# Project Euler #0015 #
# Team Carrot: #
# Joseph Lee #
# Benjamin Lee #
# Stephanie Yu #
#######################
'''
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are ... | [
"z.joseph.lee.z@gmail.com"
] | z.joseph.lee.z@gmail.com |
737b5c13e51941c403388b2ef31e09078d6855db | f565655ca13bc13053f6809031bfaab88041a5fb | /analyzer/views.py | 3e59543bfdbeccae60bc408141a1d0e70c2796de | [
"Apache-2.0"
] | permissive | multipathtester/mptcpbench-apps | 7d34fa116295ee50a0d397d08e7a5858c1c37959 | 12a7ff1fbb95041e7e5adf551377c8cb97f62b7c | refs/heads/master | 2020-06-04T06:27:08.342550 | 2019-06-14T08:19:36 | 2019-06-14T08:19:36 | 191,904,136 | 0 | 0 | null | 2019-06-14T08:19:39 | 2019-06-14T08:17:36 | Python | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render
from django.http import Http404
from django.contrib.auth.decorators import login_required
from .mobility_helper import get_mobile_stats
from .benchmark_helper import get_benchmark_stats
from .multipath_helper import get_multipath_stats
from .mobility_detail import get_mobility_detail... | [
"quentin.deconinck@uclouvain.be"
] | quentin.deconinck@uclouvain.be |
764623587649698f98cff8508d79386a867a299d | 5b7f989b51e3fcc626f118c01aae6bc8d1c48144 | /finance/finance/yafinance 10.34.31 PM/migrations/0001_initial.py | d73aca49462fb6547c345c22cf4f4ee2912b4a0a | [] | no_license | Lucysaiheng/Yafinance | 3b2cbf10cfe9ce5d310cbe69aec3459ba3306ba6 | 88bc5c16458aa291580336eb36d7fc73d6926b91 | refs/heads/master | 2020-03-14T18:19:00.262241 | 2018-05-03T02:34:51 | 2018-05-03T02:34:51 | 131,666,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # Generated by Django 2.0 on 2018-04-30 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(au... | [
"asaiheng@gmail.com"
] | asaiheng@gmail.com |
3747c58466d61b4927db56413de77336dc18c23c | a29a73de4df917da642adec96286d7ed3b2a0a42 | /myDPPO30/utils.py | 517d56784cc6eb43201f5f64de6650e156de4859 | [
"MIT"
] | permissive | tankche1/Learn-To-Run | 9f0546f2d2c74cf18879579a3ccb2aeb3bea2765 | 27a48c8e1ec5864ab58caa9df4098a1089641cc0 | refs/heads/master | 2021-03-24T11:07:15.949621 | 2017-10-18T14:43:41 | 2017-10-18T14:43:41 | 101,266,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import math
import numpy as np
import torch
import torch.multiprocessing as mp
class TrafficLight:
"""used by chief to allow workers to run or not"""
def __init__(self, val=True):
self.val = mp.Value("b", False)
self.lock = mp.Lock()
def get(self):
with self.lock:
ret... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
776377c3da71f0b0d361f79fd983ddb6ef38ab0b | 5df19cecae55fd4852d2d89620b059a5d6d76ad0 | /Koo/Fields/Calendar/__terp__.py | 8bcfacca93c271a5be0bcca132ea10ceccebe719 | [] | no_license | gisce/openerp-client-kde | 5f8acbad46f83b9b493029b2f5518dc8576782f7 | b17aabb2e9c6cece0c855f665047d342701ca78f | refs/heads/master | 2023-03-03T01:03:59.272851 | 2023-02-15T11:02:44 | 2023-02-15T11:02:44 | 114,909,552 | 2 | 3 | null | 2023-02-15T11:00:38 | 2017-12-20T16:41:43 | Python | UTF-8 | Python | false | false | 2,057 | py | ##############################################################################
#
# Copyright (c) 2008 Albert Cervera i Areny <albert@nan-tic.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting f... | [
"albert@nan-tic.com"
] | albert@nan-tic.com |
9ef06f88374271a107c201be2ffdddafe32e9977 | 369f2d06856d70a6f68b8f81bca203ebce8e3a89 | /wholesale_data.py | 11925ef848f12aea4489e1a25360e244ecb966c3 | [] | no_license | Enantiodromis/Data_Mining_UCI_Machine_Learning | ffec3a22690dcbc2f30a7a08e1ddef1a12141c0e | 79b23b3eeae02befbbbc3a7ed03331122d5d911e | refs/heads/master | 2023-09-01T05:08:27.897012 | 2021-10-23T12:01:04 | 2021-10-23T12:01:04 | 337,441,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,576 | py | # AUTHOR: GEORGE BRADLEY
# LAST EDIT: 18/02/2021
# TITLE: CW_PART_2.PY
import numpy as np
import pandas as pd
from prettytable import PrettyTable
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics.pairwise import euclidean_distances
import warnings
import matplotlib.cbook
warnings.... | [
"georgerebradley@gmail.com"
] | georgerebradley@gmail.com |
a0f25305534ecd8df21add4bcac177aedf095136 | 57d370a3b4d1255b881787bd89c1ed0ace77714e | /MainApplication/Aggregator/CombineResults.py | 4f3bc09dd8bca1b612efddf816f144c517304e88 | [
"Apache-2.0"
] | permissive | kiliczsh/infinity-search | 908ba715440f262335f44480b77428a66caceb84 | 1c08cbf38157d46a3395127fa258a485e1f8123c | refs/heads/master | 2022-11-28T01:05:22.580663 | 2020-04-01T21:01:47 | 2020-04-01T21:01:47 | 285,981,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py | import SearchEngines.Bing.BingSearch as Bing
import SearchEngines.Mojeek.MojeekSearch as Mojeek
import SearchEngines.WikiMedia.WikiSearches as WikiMedia
formatted_query = ''
# Just making the query in the form of a query string by replacing the spaces with a '+'
def format_query(query):
global formatted_query
... | [
"N/A"
] | N/A |
250d64a708bded929b8db3d0633e5156cedaeb5c | 5c008dad5881eaefe36501628d8d3c16e122b9c0 | /Week_01/week_01_problems/w01_problem_01.py | d303b8e283b07f7443eaaf687b58a2a77d70d43a | [] | no_license | xeusteerapat/MIT-6.00.1x-EDX | 846787898b06cd5223fa825cf9757f2e92449b02 | cae706564efdc41e435b309493484ea9348c908d | refs/heads/master | 2020-07-18T22:30:43.502441 | 2019-11-04T16:16:51 | 2019-11-04T16:16:51 | 206,325,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | s = 'azcbobobegghakl'
num_vowels = 0
for vowel in s:
if vowel == 'a' or vowel == 'e' or vowel == 'i' or vowel == 'o' \
or vowel == 'u':
num_vowels += 1
print("Number of vowels: " + str(num_vowels))
| [
"xeus085@gmail.com"
] | xeus085@gmail.com |
7b193febd0816faa15a5993d96e7648bf84d756e | acbf7d7e61c90786c9535599d4ecb0f378ac44e8 | /Leetcode-100/first_last_in_sorted.py | b27460afdf171ccd0b14e993088c2f1e51bfc1f5 | [] | no_license | kumawat0008/Data-Structures-Algorithms | 61f02e4126de87b8c0a929acb00ea94dce48738b | 5bab125578b4a662c864fd9d5e929861fdbf33ec | refs/heads/master | 2022-06-26T19:45:26.193765 | 2022-06-09T10:50:32 | 2022-06-09T10:50:32 | 239,322,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | class Solution(object):
def first(self, arr, low, high, x, n):
if (high >= low):
mid = (low + high) // 2
if ((mid == 0 or x > arr[mid - 1]) and arr[mid] == x):
return mid
elif (x > arr[mid]):
return self.first(arr, (mid + 1), high, x, n)
... | [
"dkumawat@ciena.com"
] | dkumawat@ciena.com |
8ef1e4cdfe95348f881050bf452ff59aa6fd624a | 5e3816e1dd190a8e8b90c3a82409c6d910e8c699 | /test.py | 8e711cfe9419d301620ec137f02da35687e401a4 | [
"MIT"
] | permissive | Vignesh-Kumar-07/Twitter-tweets | 8ea90b11b77196e57f7af5a20511c7b09fa9f576 | 1d81ac3e4503d15f8bdf0e67c3559b14c0ecf1f6 | refs/heads/main | 2023-08-17T17:23:15.411209 | 2021-10-11T07:36:14 | 2021-10-11T07:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import re
# To Read Tweets directly from Program:
tweet = """Most employees fulfilled with used hardware based on device turns four years old.
Some job categories (hardware or software developer, technical sales, etc.) are eligible at three years.
Recognizing that employee job roles or device request qualities an... | [
"noreply@github.com"
] | noreply@github.com |
a2e56cf287af531ae6f21480a03d26a1ab96e9e5 | cb476c5fdf7e7da1abb4229635a79ea88f465399 | /lianxi/qqmusic.py | 22408b320c1ed8e8d9b7428bfa9ed5970774f9df | [] | no_license | ZHAISHENKING/spiderapp | cb66f68f3ec40f027d8cdbdd1ec357f25c668cda | 51b09dd98e64e6d0612a313ff6c90f6fbd0f63dc | refs/heads/master | 2022-12-15T00:30:44.168143 | 2018-07-17T13:42:57 | 2018-07-17T13:42:57 | 136,556,921 | 0 | 0 | null | 2022-07-06T19:49:39 | 2018-06-08T02:42:16 | Python | UTF-8 | Python | false | false | 2,852 | py | import requests
import json, time
class qqMusic(object):
def __init__(self):
self.date = time.strftime('%Y-%m-%d', time.localtime(time.time()))
def get_json(self):
header = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chr... | [
"18700790825@163.com"
] | 18700790825@163.com |
6d41fea80601f45b88584c7c63c5d46b02129c99 | e828768c2812f1248f5eac46e22482f1095b23f7 | /custom/paceToTotalTime.py | f6d237e9f983a385bdbe3716dd9c1f7f4b43f64c | [] | no_license | derek-watson14/HackerRank | 0ff33d19210350e400b3b8bdd2589e2957e0c4e5 | 957e9c0868d1b82e9f040bd7700c134b80abdf18 | refs/heads/master | 2023-07-16T15:47:24.147976 | 2021-09-03T00:52:33 | 2021-09-03T00:52:33 | 318,676,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | # Convert a pace + distance to total time or time + distance to pace
class UserInput:
def __init__(self, unit, mode, time, distance):
self.unit = unit
self.mode = mode
self.time = time
self.distance = distance
class Time:
def __init__(self, minutes, seconds):
self.minutes = minutes
self.sec... | [
"derek.watson92@gmail.com"
] | derek.watson92@gmail.com |
55eb160926cb77920b63568d4be18c54eeebdb2d | 41b59a9c8381fa3a92f5d2c37c91261afb9c82c4 | /QCDEventShape/2017/MC/test/crab_bin_py8_3200_inf.py | ad911d60a95de92ad286c8ea8f0a46bafbafeab1 | [] | no_license | Sumankkundu/ChargedParticle | c6d4f90b55df49321df2ecd758bb1f39db896f8c | eb5bada24b37a58ded186d6e5d2d7bd00898fefe | refs/heads/master | 2023-07-15T03:34:33.377203 | 2021-08-31T05:01:32 | 2021-08-31T05:01:32 | 231,091,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | #from CRABClient.UserUtilities import config, getUsernameFromSiteDB
from CRABClient.UserUtilities import config
config = config()
config.General.requestName ='ESVQCD_UL_Ptbinned_3200toinf_tuneCP5_bin'
#config.General.workArea = 'crab_projects_1'
config.General.workArea = 'crab_projects'
config.General.transferOutputs... | [
"skundu91phys@gmail.com"
] | skundu91phys@gmail.com |
b1bd4b4e18caf300b155f876311c7836c1d9b4d3 | dfca57356cfabc01b42fdbca21c9692eb552ceb0 | /core_algo.py | 006dd340abcd335d95a0174e31d49bc5e864b381 | [] | no_license | simonZhou86/image-denoising | 8b634c42bd9bb93372335da34f0d64bb192722f4 | 4a57f8a6308256acce329fd528ca9df1740986ef | refs/heads/main | 2023-06-24T16:14:55.519620 | 2021-08-05T07:40:18 | 2021-08-05T07:40:18 | 377,167,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | import sys, os, math
import numpy as np
from PIL import Image
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
def ft1D( signal ):
return np.fft.fft( signal )
# Input is a 2D numpy array of complex values.
# Output is the same.
def forwardFT( image ):
# YOUR C... | [
"noreply@github.com"
] | noreply@github.com |
4937c31eb53c8d0279fb30488f96365137beb3f6 | 136cb5450842633f86d1d806b1d7e93bc8672ea3 | /tests/test_utils.py | cc9036eb40a0f0b3cdd631ad635c085793b52e8e | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jimr/Showcase | 2f7c647cab31953f0beb08b35bbcac9fded9e2e2 | 1685680954e3df825c1b1102a2140e3395533376 | refs/heads/master | 2023-08-31T01:36:34.360692 | 2021-06-11T10:34:40 | 2021-06-11T10:34:40 | 84,255,929 | 0 | 0 | MIT | 2023-08-21T22:59:31 | 2017-03-07T23:17:53 | Python | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import unittest
from showcase import utils
class TestProbablyText(unittest.TestCase):
def path_to(self, fname):
return os.path.join(os.path.dirname(__file__), 'data', fname)
def check_file(self, fname, expected=True):
self.assertEqual(... | [
"jim@jimr.org"
] | jim@jimr.org |
5c4659b8640f73ab91097d2497532feefa68587b | 586927f7eb1e6f07bc169353b06dc51520bb11a1 | /src/valdomain.py | bec7e3eeda2c797605916c662226cc8bf6de7586 | [] | no_license | davidvictoria/xibalba | fa71477b6667017dd34e470083d5ddce7633fd4e | a7c21b343d3a78d60db8bf5019eb4b3dae901d22 | refs/heads/main | 2023-08-21T21:58:40.467668 | 2021-09-30T20:25:47 | 2021-09-30T20:25:47 | 410,717,457 | 0 | 0 | null | 2021-09-30T20:25:48 | 2021-09-27T02:30:04 | null | UTF-8 | Python | false | false | 11,303 | py | import socket
from ssl import PROTOCOL_TLSv1
from OpenSSL import SSL
import pendulum
import requests
import json
import time
def get_domains(cert):
san = ''
ext_count = cert.get_extension_count()
for i in range(0, ext_count):
ext = cert.get_extension(i)
if 'subjectAltNam... | [
"devteam@bpm.consulting"
] | devteam@bpm.consulting |
b272becc0f407ed87dd639981bfb2e547cf74bd2 | b0295fc59e46a71c3235f0f19c2631d92678275d | /1-50/016.py | 1383b1a10202a4cc83da8030163d3d04c66bf9e3 | [] | no_license | Marmot93/Project-Euler | 67db19e67d29d9291bdfb155961d11bf027d5635 | a23ba931a56443b92c74a5bb048bfdbe881ad303 | refs/heads/master | 2021-01-12T02:13:51.395321 | 2018-02-08T09:02:45 | 2018-02-08T09:02:45 | 82,549,491 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """2的1000次方各位数之和"""
# 送分题,一行代码解决问题
num = sum([int(i) for i in str(2 ** 1000)])
print('答案是: ' + str(num))
| [
"654332905@qq.com"
] | 654332905@qq.com |
835f35f32d97ac1b55d4dda8b712add353ad0796 | 66052f5ba08ddac0a56ee140af17cf78b1ff1174 | /PLURALSIGHT_BEGINNERS/lib/python3.9/site-packages/holoviews/tests/plotting/matplotlib/testpointplot.py | ad2dbfe315b9cd12e93a78996c55f6e2f0f001f8 | [] | no_license | enriquefariasrdz/Python | 34704ceed001bbe8a23471eebefbe536b00031a5 | b9191f7ad87b709a1b83c5cb3797a866b56aaa0d | refs/heads/master | 2022-12-26T03:06:26.481456 | 2022-04-20T14:09:57 | 2022-04-20T14:09:57 | 27,020,899 | 1 | 1 | null | 2022-12-18T21:02:43 | 2014-11-23T03:33:52 | Python | UTF-8 | Python | false | false | 14,958 | py | import numpy as np
from holoviews.core.overlay import NdOverlay
from holoviews.core.spaces import HoloMap
from holoviews.element import Points
from .testplot import TestMPLPlot, mpl_renderer
from ..utils import ParamLogStream
try:
from matplotlib import pyplot
except:
pass
class TestPointPlot(TestMPLPlot):... | [
"enriquefariasrdz@gmail.com"
] | enriquefariasrdz@gmail.com |
31af510cc88211d647550bb4b15a5f9689c61f99 | 0a6a908b2c098613bdcad4221fcb0e4e1c1f7d25 | /data Collection.py | 485179c4b6fd9e7ddc74fb4372fc212382195885 | [] | no_license | DanishKumar/Masters-Thesis | e9f1a14bdc28ad3adb4430e741fd50f44649b39b | c1d97dda56692391bb0b83f1b143738e068425ff | refs/heads/master | 2020-06-23T23:31:08.346458 | 2019-07-25T10:37:15 | 2019-07-25T10:37:15 | 198,785,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import tweepy
import csv
import os
ckey = "lTtJFQw7VcSmGuq2rXEPPtiRM"
csecret = "bbEpVT3VLptOw2k8SoVn4HgFP6B0REAxbXwQrxmuGacYb15I5K"
atoken = "2217386142-N9Zg6ySIWmLZm2mHFsBGIf9A32OsKp9jOQZ24gf"
asecret = "cqq2HCyJAzPkbGcWL0ySWqvHuwWYqF7TF4O4czI1Dqqoa"
OAUTH_KEYS = {'consumer_key':ckey, 'consumer_secret':csecret,
... | [
"danish.kumar93@gmail.com"
] | danish.kumar93@gmail.com |
31b6e3eaebde03b0a8cc8012f96bd4403011b0ee | e9aef5affd441b13a443dc2e0ae1613db28870e7 | /Test_sum_two_lowest_numbers.py | d2f714b1457d17ee5f7655d1e73cc3d2944827b1 | [] | no_license | glicodin21/Bundyusoft_Test | 06327b051ee7453bfd3bd3037c8e67a1dc86a6ec | 551cd640fc95f03f9b4c8682fc5f4bd28839da6c | refs/heads/master | 2020-07-10T13:38:11.268176 | 2019-08-30T14:29:31 | 2019-08-30T14:29:31 | 204,274,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import unittest
from Sum_two_lowest_numbers import sum_two_lowest_numbers
class Test(unittest.TestCase):
def test_sum_two_lowest_numbers(self):
self.assertEqual(sum_two_lowest_numbers(
[1, 2, 3]), 3, "Should be 3")
self.assertEqual(sum_two_lowest_numbers(
[1000, 20... | [
"noreply@github.com"
] | noreply@github.com |
a849badaacd47915c426af336330853080f870d0 | 19e9e246100603b507005dec0c82cfd3d0d08e75 | /settings.py | decd4426e821649c4f3b4c02a4ef00c8b42451bb | [
"MIT"
] | permissive | embrace-inpe/swds-api-downloader | e0ab31860c2d5870486ebaf99a71a26f7b954700 | f4a4f40fca6de713d6eb1d26dc29e36c094ecb32 | refs/heads/master | 2020-04-12T15:20:27.686621 | 2019-04-02T13:08:40 | 2019-04-02T13:08:40 | 162,577,734 | 5 | 4 | MIT | 2019-04-02T13:08:40 | 2018-12-20T12:38:00 | Python | UTF-8 | Python | false | false | 458 | py | # Search filters
# You must passing these values if aren't using the command line args
SEARCH = {
'application': 2,
'start_date': '2019-03-01',
'end_date': '2019-03-01',
'resolution': None,
'station': 2,
'swfilter': 7,
'swtype': None,
'network': None,
'equipment': None
}
# Path to s... | [
"silviolleite@gmail.com"
] | silviolleite@gmail.com |
b020ce1d7374b7195c3545ce178c7b9387f9ddd1 | 72b8e2d69cca8b5ecd28e61ef61fef85f9dd0489 | /q190.py | 3bf0f6319123cdb7f2dd25ae44e6f074a9eafef1 | [] | no_license | maples1993/LeetCode | f975bc8570729d998481b097ee04effe5a7c5977 | 032016724564d0bee85f9e1b9d9d6c769d0eb667 | refs/heads/master | 2020-03-27T22:05:07.397746 | 2018-11-07T06:13:56 | 2018-11-07T06:13:56 | 147,203,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Date: 2018/9/6
"""
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
n &= 0xFFFFFFFF
print(bin(n))
res = 0 & 0xFFFFFFFF
count = 0
while count < 32:
count += 1
res <<= 1
if n & 1 == 1:
... | [
"panchao1993@126.com"
] | panchao1993@126.com |
8e5759f7185b426930f438446f26ae2be4b62f17 | 87800bce1a4829402f1f37932e0f01b3feb87fa1 | /viminidb/videbugging.py | ca32c92bee1baf28ba396517ab65e8e468614e23 | [] | no_license | sixkey/py-scripts | f5ca51434bf45faa79692933d5c4824b8cfe59ae | 7166515ba1dd30b7a48bb82c5d39710774200366 | refs/heads/main | 2023-03-15T08:27:20.363569 | 2021-03-02T18:04:56 | 2021-03-02T18:04:56 | 333,176,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def create_loud_function(function):
def loud_function(*args, **kwargs):
res = function(*args, **kwargs)
print(f"{function.__name__}(" +
f"{', '.join([str(x) for x in args])}" +
(f"{', '.join([str(x) for x in kwargs])}" if kwargs else "") +
f") = {str(res)}")... | [
"filipku4a@gmail.com"
] | filipku4a@gmail.com |
e1fc43f35600eb1ab30bcb687acd093d5345c74f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_veritable.py | c4260f18bbed72556a78374e7679857fe6dc69a3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py |
#calss header
class _VERITABLE():
def __init__(self,):
self.name = "VERITABLE"
self.definitions = [u'used to describe something as another, more exciting, interesting, or unusual thing, as a way of emphasizing its character: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8917e8c28c35145f26b8c83dc4634b8657f48236 | 26317cbbf23c87a8596f490e15741c4a297ed176 | /constr.py | 81807d407aacb5cbd98127b57dab82bfee7db94f | [] | no_license | vishnuhs/mypython | 694a829298ccb28e5a2f5d1969ffee92f3c90c9d | 8069fa24b1cac76392a29881a868325ffede0c32 | refs/heads/master | 2020-04-21T00:15:44.713817 | 2020-04-02T08:02:08 | 2020-04-02T08:02:08 | 169,191,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | def convert(text):
words=text.split(";")
for word in words:
strwords=word.split("=")
words[words.index(word)]=(strwords[0],strwords[1])
return words
| [
"vishnu.hs1998@gmail.com"
] | vishnu.hs1998@gmail.com |
5208906c09939f76f644bef4f999ef65b8a1cfae | 37438771565238194ea997fa65619bd32c823706 | /catkin_ws/17-11-16/LPH/build/catkin_generated/order_packages.py | 24ce42469160b8cc3411cbaef6a5190b3592e0f2 | [] | no_license | Aaron9477/restore | b040b8be695c513946c0243c4acb735f427d8bba | 8dc13ed7cf0c4e5cde911169d11e330d826f40bd | refs/heads/master | 2021-09-15T10:50:59.969952 | 2018-05-31T03:11:55 | 2018-05-31T03:11:55 | 110,834,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/zq610/LPH/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/opt/ros/kinetic".split(';') if "/opt/ros/kinetic" != "" else []
| [
"869788668@qq.com"
] | 869788668@qq.com |
59e0938b9889a36090c117f11970b5d8d271260e | 24eb991aa1a5bad9d89e7c7fdafc0db0f65f820e | /Janken/JankenOutput.py | 9dd10476bbadfd3429305c27345446e4e81f2710 | [] | no_license | yemarn510/YM_Python | 1e4ba16775b920f9ab84991d6d61c98d437ccfde | 72181672d800ec59bac06978cab08a59e734933e | refs/heads/master | 2022-04-15T07:02:11.085185 | 2020-03-15T16:09:00 | 2020-03-15T16:09:00 | 247,501,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
This class is for printing message and showing who is
"""
from random import randrange
def show_winner(player_one_count, player_two_count):
"""
This is the function for outputting who is the winner
args : player_one_count : the number of games player 1 won
: player_two_count :... | [
"yemarn.510@gmail.com"
] | yemarn.510@gmail.com |
7bef991e0b0cc4a0ccbb6365b1ad0fae7bce83cf | 7ca46f6b2f115712600b052bab8da6e16f90aad1 | /PythonProjects/fibonacciCalc.py | ead0942aa916e6739346a5663abd717f51bffe96 | [] | no_license | KristinCovert/Bootcamp | 73f83e5e1ce0b03fa1242f355bfbc13a099e9b6c | e4af8a3999bc8e4b9708e35268c619151d77f581 | refs/heads/master | 2021-05-28T01:44:06.211008 | 2014-11-26T23:16:20 | 2014-11-26T23:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | __author__ = 'Kristin'
def range_top():
top_range = input('Up to what number would you like to calculate the Fibonacci: ')
return top_range
def fibonacci(rt):
i = 0
j = 1
fibonacci_list = []
for number in range(0, rt):
k = i + j
fibonacci_list.append(k)
i = j
... | [
"kristin.bratland@gmail.com"
] | kristin.bratland@gmail.com |
988e2af58befb5de29f610f0a755afa3463f72dd | 6d64861c997a710b95c3378a2a5283ec85d110d5 | /setup.py | 8d7f4e8b5a1e5b1fa6d67cfe991169be68cd3a4c | [
"Apache-2.0"
] | permissive | badmutex/openstack-client-shell | 1f761b9af161d5275e4e0dbce9b67bf9e7432014 | 10c1b4ad58a2562a0d23be4f6d34a36237cbc6f2 | refs/heads/master | 2021-05-29T01:54:49.849567 | 2015-06-12T19:06:53 | 2015-06-12T19:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from setuptools import setup, find_packages
import os.path
# IMPORTANT: use semantic versioning
# http://semver.org
VERSION = '0.4.4'
NAME = 'openstack-client-shell'
# #################################################################### version
module_dir = 'openstack'
version_file = os.path.join(module_dir, 'vers... | [
"abdulwahidc@gmail.com"
] | abdulwahidc@gmail.com |
9ab8c1cfef72c9b54df1a43e0a919da8d13a725c | 9c81c170f03ba925bf3d0682526245c202e384a7 | /superset/cli/test.py | f175acec470cd59f06f6d1ad8de07765a2520901 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | zcong1993/incubator-superset | 2a08177641eff178dee9db852887ad2d19d70d54 | 269c99293f42089958dc98b5d6e5899509fc3111 | refs/heads/master | 2023-08-17T12:24:59.438120 | 2023-08-17T10:50:24 | 2023-08-17T10:50:24 | 209,522,299 | 0 | 0 | Apache-2.0 | 2023-03-06T08:10:31 | 2019-09-19T10:09:21 | TypeScript | UTF-8 | Python | false | false | 2,860 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
64592d3ee4f2219d3ea1f98f687bdb1984f866da | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02780/s702903623.py | ef5c9f02ab956fe90728da489ecd4bc87f90841f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n,k = map(int,input().split())
P = list(map(int,input().split()))
P[0] = (P[0]+1.)/2
for i in range(1,len(P)):
P[i] = (P[i]+1.)/2
P[i] = P[i-1]+P[i]
ans = 0.
if n==1:
ans = P[0]
elif len(P)-k==0:
ans = P[k-1]
else:
for i in range(len(P)-k):
ans = max(ans,(P[i+k]-P[i]))
prin... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6b0539a2cd34a3318a634029493799c8d1029ff | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /ZQZ510/ZQZ510/spiders/zqz.py | 3a4ae2a8fc42615dd7eaaf1a56965897c452c5d3 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 5,422 | py | # -*- coding: utf-8 -*-
import scrapy
import time
import json
from ZQZ510.items import Zqz510Item
empty_word = 'null'
class ZqzSpider(scrapy.Spider):
name = 'zqz'
allowed_domains = ['zqz510.com']
start_urls = ['http://login.zqz510.com/judgmentDoc']
def parse(self, response):
url = 'http://a... | [
"34021500@qq.com"
] | 34021500@qq.com |
d72f0e6e1d8aaabc1a02b10a8fbc864b8f6d0b65 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/from_docs/test_totensorstreamop.py | 78c1de91112c783148b8652120fe7425e975fcf9 | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 553 | py | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestToTensorStreamOp(unittest.TestCase):
def test_totensorstreamop(self):
df = pd.DataFrame(["FLOAT#6#0.0 0.1 1.0 1.1 2.0 2.1 "])
source = StreamOperator.fromDataframe(df, schemaStr='vec string')
... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
f4771bd090478972d022ce9b450d530bb2408052 | 6c3ab38e350734f1bc4f0c746ea55a12838ce5ee | /pcserver/mainapp/handlers.py | 93a7d32aa090f9a76b8f6ab1bca16d7d2eda3868 | [] | no_license | joelsemar/Programming-Challenge | 1dd4fb487d02e05ed494e66da99a627970832988 | b8bf8e115dc3c242d62bf696d3268a4b31019592 | refs/heads/master | 2020-05-17T15:16:45.892328 | 2011-08-31T19:17:15 | 2011-08-31T19:17:15 | 2,298,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from webservice_tools.utils import BaseHandler, AutoListHandler
from webservice_tools.decorators import login_required
from mainapp.models import * #@UnusedWildImport
#Create your handlers here
class PhotosHandler(AutoListHandler):
model = Photo
allowed_methods = ('GET',)
extra_fields = ('image_url',)
... | [
"semarjt@gmail.com"
] | semarjt@gmail.com |
9243f350125d286dd52323819b4b4de309f7bcd2 | e09439c9dd7ff01caae74e08ea333a8a11eb8f57 | /src/spectrosegment/CNN_train/10_train.py | 50068b546710be323ad3afd786fc910d18a6b58c | [] | no_license | muachilin/Freesound-General-Purpose-Audio-Tagging-Challenge | f57f81e08bfc7b2d3ca4fe03dc0aa17d9ea812b0 | 18fdd2d9e5dacccce3eef60c0a454e52777bd453 | refs/heads/master | 2020-09-17T01:10:19.274061 | 2019-11-25T13:34:24 | 2019-11-25T13:34:24 | 223,942,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,930 | py | import numpy as np
import pickle
from sys import argv
import os
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.layers import PReLU
from keras.layers import Conv2D, MaxPooling2D, Flatten, AveragePooling2D, GlobalAveragePooling2D
from keras.layers.normalization imp... | [
"noreply@github.com"
] | noreply@github.com |
dc10e73e97008209d65dd1570fac21edd864e507 | ce7776a87f57454a70e1d2bde351fda20b43d7ef | /postgres-appliance/scripts/spilo_commons.py | 7742e8c2657ce5997bfff42fc04608f923549a45 | [
"Apache-2.0"
] | permissive | munjalpatel/spilo | 6387640dfe46b3b80076acd7dd3cf59fae2f57eb | f8179d9a5de5e9a78e5a447130f759f97811879b | refs/heads/master | 2023-09-04T19:06:47.323964 | 2021-11-11T16:04:17 | 2021-11-11T16:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | import logging
import os
import subprocess
import re
import yaml
logger = logging.getLogger('__name__')
RW_DIR = os.environ.get('RW_DIR', '/run')
PATRONI_CONFIG_FILE = os.path.join(RW_DIR, 'postgres.yml')
LIB_DIR = '/usr/lib/postgresql'
# (min_version, max_version, shared_preload_libraries, extwlist.extensions)
exte... | [
"noreply@github.com"
] | noreply@github.com |
f375b00087150e1f82d65a9e60ddf607f3a4fdbd | 3845fdd6010cfd86e0cc8dded06c964a81fdf6ac | /registration/views.py | b1b62c20f6649595bc5f6a5473c0b66a0df90ab9 | [
"MIT"
] | permissive | Yash1256/Django-Intern | 72511e9bc3f262cd6509a7353ec8fc64fe9ade0b | c1d42ff344324b56d462ae8c3d5b6682a2b255b6 | refs/heads/master | 2021-09-25T11:45:17.994744 | 2020-10-03T21:38:15 | 2020-10-03T21:38:15 | 249,540,783 | 1 | 1 | MIT | 2021-09-22T18:47:32 | 2020-03-23T20:48:25 | Python | UTF-8 | Python | false | false | 3,741 | py | import math
from django.core.exceptions import ValidationError
from django.shortcuts import render, redirect
from django.urls import reverse, reverse_lazy
from django.views import View
from .forms import AuthorForm
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_req... | [
"shuklayash1256@gmail.com"
] | shuklayash1256@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.