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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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"
] | glicodin21.noreply@github.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 |
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 |
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 |
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 |
310ba0cb9368a175620ca3cbcbd62104bf3f9f8b | edc1f1369794a4a1c499c6e9d5fe49a712657611 | /algorithms/leetcode_all/560.subarray-sum-equals-k/subarray-sum-equals-k.py | 74c28e9996672f15fe435da46bf9edd7cf5ffdc2 | [] | no_license | williamsyb/mycookbook | 93d4aca1a539b506c8ed2797863de6da8a0ed70f | dd917b6eba48eef42f1086a54880bab6cd1fbf07 | refs/heads/master | 2023-03-07T04:16:18.384481 | 2020-11-11T14:36:54 | 2020-11-11T14:36:54 | 280,005,004 | 2 | 0 | null | 2023-03-07T02:07:46 | 2020-07-15T23:34:24 | Python | UTF-8 | Python | false | false | 379 | py | class Solution(object):
def subarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
preSum = ans = 0
visit = {0: 1}
for i, n in enumerate(nums):
preSum += n
ans += visit.get(preSum - k, 0)
... | [
"william_sun1990@hotmail.com"
] | william_sun1990@hotmail.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"
] | muachilin.noreply@github.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 |
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 |
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"
] | zcong1993.noreply@github.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 |
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 |
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 |
43e3f69a4d43e8fd97a6995fa95b1197d002dc0e | 0315255c749b12216a7c8ac26378d8921466284a | /tests/integration/client/standard.py | 969611b4d0a0800f10b1c10258875138538f5b08 | [
"Apache-2.0"
] | permissive | jhutchins/salt | a32de1362c6787ec96df7ce57bf9b98f20eaf30a | 22ec0cee6a8a842ec426b7a3e634723ea7ce7256 | refs/heads/master | 2021-01-21T00:05:05.782149 | 2012-04-06T22:03:19 | 2012-04-06T22:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # Import python libs
import subprocess
# Import salt libs
import integration
class StdTest(integration.ModuleCase):
'''
Test standard client calls
'''
def test_cli(self):
'''
Test cli function
'''
cmd_iter = self.client.cmd_cli(
'minion',
... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
2622b01ab6dbae6e902dd8647177dd9c4dd6092a | 64e899ae6199b7915585f7f903b2ec221aa0b8df | /common/modelanalysis.py | a0b3977391b8709375b3571f290d6da0707ec2f6 | [] | no_license | sharma0611/dsworkflows | 642f36dc0f7369c319eddbf27cd7bb734c9ab7a4 | 95dacb81581193d57fbc318ad1d9ef2c83b897cd | refs/heads/master | 2021-09-15T01:38:11.201611 | 2018-05-23T14:31:52 | 2018-05-23T14:31:52 | 118,946,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,940 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
****************************************
Shivam Sharma (CIH745)
Data Science Co-op
Summer 2017
****************************************
Module: Model Analysis
Purpose: Hosts the functions that interact with sklearn-interface models to provide analysis on s... | [
"sharma.shivam0611@gmail.com"
] | sharma.shivam0611@gmail.com |
0aa4fad95e735af119da27c643164c508715fe23 | 58c122786263edf8aec4a6b6b4986b2f3d4ff1d5 | /modules/s3/pyvttbl/qsturng.py | 49e432d4a21df43c96c06038b370da50df36ded8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andygimma/eden | c9d0819e87ef05ff607cac6120dbddc86e55bc31 | 716d5e11ec0030493b582fa67d6f1c35de0af50d | refs/heads/master | 2021-01-15T21:54:03.240072 | 2012-11-16T05:13:11 | 2012-11-16T05:13:11 | 6,726,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,225 | py | # Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
"""
Implementation of Gleason's (1999) non-iterative upper quantile
studentized range approximation.
According to Gleason this method should be more accurate than the
AS190 FORTRAN algorithm of Lund ... | [
"dominic@nursix.org"
] | dominic@nursix.org |
2b342274bc429eacca9e41da3bbf739877dd0db6 | a1ff3f4a3909b672a31338aa7a1e25d7953111fb | /twitter_app/ttc_debug.py | a9c691ffbfd6b244b1ba4828a633dfd53ce6f660 | [] | no_license | wayne927/RPi-stuff | 0301831576bbc0d3e9a480d57d04279452dd2d84 | cae95547e96e0b1e80f2dc3b6de9b7dfeef777b9 | refs/heads/master | 2020-05-21T04:36:02.799577 | 2018-12-11T11:00:02 | 2018-12-11T11:00:02 | 58,220,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | #!/usr/bin/python
import twitter
import datetime
from datetime import timedelta
import calendar
import os
import sys
from readkeys import *
from send_gmail import *
def getLocalTime(date_in) :
utc = datetime.datetime.strptime(date_in, '%a %b %d %H:%M:%S +0000 %Y')
# TODO: deal with daylight saving time...
... | [
"wayne.ngan@gmail.com"
] | wayne.ngan@gmail.com |
75ad2856c5ff6b4ca39329ba99881252b8c694e8 | 6140bcfbdfad6fef444acfd8d40a776f7f467598 | /sbmOpenMM/datasets/__init__.py | 1820e9b8e9b585d1513c82d6822d7f0a0098220f | [
"MIT"
] | permissive | CompBiochBiophLab/sbm-openmm | bfa799f305d32b3b9de147d99bf8f2354867ee06 | 113b04eb2c78664a48600a05ff6778898fbb2fd9 | refs/heads/master | 2022-08-10T00:49:30.874501 | 2022-07-24T11:12:31 | 2022-07-24T11:12:31 | 219,484,731 | 18 | 7 | MIT | 2019-11-26T12:59:44 | 2019-11-04T11:23:38 | Jupyter Notebook | UTF-8 | Python | false | false | 28 | py | from . import foxp1_folding
| [
"martin.floor@uvic.cat"
] | martin.floor@uvic.cat |
11b9bf5a469cbefb5d55ecbc166fdf0b95d5e6a5 | d2bb13cec7faf28e3d268312298f03c99806bd8b | /IPTS-16891-Dy2Ti2O7/norm_mesh_symm_All_rwp_100mK_7.py | d66eaa8f6dc140ec0ed3f53c2db9c0369b379c0f | [] | no_license | rosswhitfield/corelli | 06a91c26556ea788f20f973a1018a56e82a8c09a | d9e47107e3272c4457aa0d2e0732fc0446f54279 | refs/heads/master | 2021-08-07T14:04:24.426151 | 2021-08-03T19:19:05 | 2021-08-03T19:19:05 | 51,771,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | from mantid.simpleapi import *
from mantid.geometry import SymmetryOperationFactory
import numpy as np
# about information on where the data are and where to save
iptsfolder= "/SNS/CORELLI/IPTS-16891/"
outputdir="/SNS/users/rwp/corelli/IPTS-16891-Dy2Ti2O7/"
nxfiledir=iptsfolder + "nexus/"
ccfiledir = iptsfolder +"shar... | [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
5e070c29c4a7e73ae079e481606dc53c90ecce4e | 32a60828c347544bffad94bf9716078c5717d760 | /landing/apps/customuser/models.py | 13cfc581f89337a9e3ba60cff0cd353c1ef9af35 | [] | no_license | flikn/lazonaflikn | 6c0b9c6eee85a0f23d1443af358ec8077b07b4f4 | c8bfc2f50a03fc224f734ee2143280ea87a0964e | refs/heads/master | 2020-08-11T17:19:49.092468 | 2015-02-16T22:35:41 | 2015-02-16T22:35:41 | 29,598,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from django.db import models
from django.core import validators
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
from apps.subscribe.models import Subscriptor
class MyUserManager(BaseUserManager):
def create_user(self, email, password, username="",
first_name="", last_... | [
"oscar.gi.cast@gmail.com"
] | oscar.gi.cast@gmail.com |
d341c94a528f020251ed8186095bde571f3fc3e8 | e98d4ac448b838712616f8fe408a4073b799a478 | /currency_converter_api.py | e1a8943aeb23ec5613a3b4583276540f55642fdc | [] | no_license | KachusovStepan/CurrencyConverterApi | 2a15bbe0e5376480b4c752d4585611647d9f0f8d | 485460ee9a0c04c29f26c4ca6ac87406e8a39932 | refs/heads/master | 2023-04-12T10:10:25.928466 | 2021-05-10T17:55:12 | 2021-05-10T17:55:12 | 366,129,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import asyncio
from aiohttp import web
import json
import os
from services.exchange_rate_repository import ExchangeRateRepository
routes = web.RouteTableDef()
repo = ExchangeRateRepository(host="redis", port=6379)
loop = asyncio.get_event_loop()
@routes.get('/convert')
async def handle_converion(request: web.Reque... | [
"stepanurfu@gmail.com"
] | stepanurfu@gmail.com |
2da22543b0df8381720ed441872ed8dab2d2f559 | 4948250bd7ca92e47742bb40e89dfc74c3f50463 | /projectwork/testapp/migrations/0007_auto_20210201_1657.py | 60b45419969915a73692c4cfa10d98d26bb73a53 | [] | no_license | sumitnicmar/PetCover | e145c3b5dddb946aa05feb23f4ad8e0c17c54707 | a4d478d3e141b9c4e5c0050800aa37e90580fad9 | refs/heads/main | 2023-03-10T16:04:40.744012 | 2021-02-15T18:58:02 | 2021-02-15T18:58:02 | 339,175,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Generated by Django 3.1.3 on 2021-02-01 11:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('testapp', '0006_auto_20210201_1633'),
]
operations = [
migrations.AlterField(
model_name='appoi... | [
"sumitsoft1993@gmail.com"
] | sumitsoft1993@gmail.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"
] | munjalpatel.noreply@github.com |
3fc7db5e967c82b33be3e2e96772d7a1ad400835 | 2c3e61c057d00399e94985914556224fff6cc5be | /marketingFirm.py | 077936d4cf5899dbe6303192c805fd836d3831aa | [] | no_license | wrightzachary/sweepstakes | 7b09a7b41017cd870402bb639a6ad047ca314478 | b5cc71a533d270b8cc9b6b23059a45dc798a9f18 | refs/heads/main | 2023-06-25T20:37:58.659130 | 2021-07-08T19:31:14 | 2021-07-08T19:31:14 | 379,325,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | from sweepstakes import Sweepstakes
from userInterface import UserInterface
class MarketingFirm:
def __init__(self):
self.marketing_firm_name = ""
self.sweepstakes_storage = ["Boat", "Weekend getaway"]
# create sweepstakes
def create_sweepstakes(self):
chosen_name = UserInterface.... | [
"taylorzw96@gmail.com"
] | taylorzw96@gmail.com |
abd7adc1822c7a3ded2bfbb351e303bc38039614 | 99a310f6bb6c7a6c728f1b3ae78054487372042d | /aoc2019/intcode/state_machine.py | b68372737c28f105cbb818391176e19138743da5 | [] | no_license | jepebe/aoc2018 | 46ce6b46479a0faf2c2970413af14a071dcfdb79 | 4bf91b99bec4b59529533ef70f24bf6496bada99 | refs/heads/master | 2023-01-11T16:44:42.125394 | 2023-01-06T06:27:14 | 2023-01-06T06:27:14 | 159,912,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,926 | py | from collections import defaultdict
def get_address(state_machine, parameter, write_mode=False):
mode = state_machine['parameter_modes'][parameter]
pos = state_machine['pos']
if mode == 0:
addr = state_machine['instructions'][pos]
elif mode == 1:
if write_mode:
print('Writ... | [
"jepebe@users.noreply.github.com"
] | jepebe@users.noreply.github.com |
9ca0eebcc0fb73790d6d40f0aa355c00af6bea88 | 77f5208e62d4c222702184c920323029c15d37fe | /ml_project/work/features/nope_transformer.py | 6efb522acc035a8202f9f84e79f6d47d4e768f6c | [] | no_license | made-ml-in-prod-2021/korowood | 1f89a58b9126458d7f0d43068a0d28e6f230d11f | 591cfd3341aae10618075123757011cf9465b751 | refs/heads/main | 2023-06-06T15:07:20.537003 | 2021-06-17T08:16:09 | 2021-06-17T08:16:09 | 354,288,201 | 0 | 0 | null | 2021-06-17T08:16:10 | 2021-04-03T12:37:46 | Jupyter Notebook | UTF-8 | Python | false | false | 555 | py | import numpy as np
import pandas as pd
from typing import List
from sklearn.base import BaseEstimator, TransformerMixin
class NopeTransformer(BaseEstimator, TransformerMixin):
""" Dummy class to do pass-through dataset as is. """
def __init__(self, cols: List[str] = None, quantile: float = 0.05):
self... | [
"yakorovka@gmail.com"
] | yakorovka@gmail.com |
d96d507a3a852249066e493e07e09227d669afb0 | cd8ea41cd625440bfacbee84e7a7632e1243c407 | /code/recipe/tests/test_ingredients_api.py | e22fc54e3b2e1e1bab6a44b16230688e9876e504 | [] | no_license | DamianCzajkowski/recipe-app | 826c332f5b6699cb3f63c5005dda953928467e20 | a593acbfedc6b0142f3e51289cc4a4dbd19bf793 | refs/heads/main | 2023-07-18T06:16:28.872407 | 2021-08-15T19:12:49 | 2021-08-15T19:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,346 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Ingredient, Recipe
from recipe.serializers import IngredientSerializer
INGREDIENTS_URL = reverse('recipe... | [
"damianczajkowski@bluerider.software"
] | damianczajkowski@bluerider.software |
5959f52e07a61191622f22f7491aa2229167184c | ba104a6a6c3f84d2e96fb3c304af781d881bed8e | /bbs/dbproxy.py | 1d37004c38872fff079b3090d675d41028b73a59 | [] | no_license | jonny290/yos-x84 | 463a7f166ee59f2dd2a7a197352db1341dad8b66 | 7b03a35f12d2b7a10fa4709b09107935c6f14000 | refs/heads/master | 2021-01-20T06:59:22.869289 | 2015-01-17T06:13:32 | 2015-01-17T06:13:32 | 24,814,644 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | """
Database proxy helper for X/84.
"""
import time
class DBProxy(object):
"""
Provide dictionary-like object interface to a database. a database call,
such as __len__() or keys() is issued as a command to the main engine,
which spawns a thread to acquire a lock on the database and return the
resu... | [
"root@5c2973472a80.(none)"
] | root@5c2973472a80.(none) |
234c003b3b7516f29ad666cdb2a012b2e5e63f70 | a90ce0aaa95b712c6b1a7c4fa584254f93d80451 | /1-6-8.py | 491c4a751d6c8962c237e878bf408bad937b28d0 | [] | no_license | vvFell/stepic_course | a82743356144899d6e04ca51df67bbbaf501c91f | e8c662437b7ffb1abb7be4a8e08903184710b59f | refs/heads/master | 2020-09-17T00:04:55.346737 | 2019-11-25T11:04:48 | 2019-11-25T11:04:48 | 223,927,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from selenium import webdriver
import time
link = "http://suninjuly.github.io/find_xpath_form"
try:
browser = webdriver.Chrome()
browser.get(link)
input1 = browser.find_element_by_tag_name('input')
input1.send_keys("Ivan")
input2 = browser.find_element_by_name('last_name')
input2.send_keys("... | [
"VSerov@profix.com"
] | VSerov@profix.com |
355606e8e2db99254d740fee5aa6d2a68fae9623 | 08c4c7ed66ba9f2312b914b639c8e63d6a094552 | /shoppingX/asgi.py | 45071adf66eacba11b97fbf427fd7cbef0540f2e | [] | no_license | aman-ash/E---Commerce_Website_Project | c93ab4c314de1de87e98d693515999f5dc8fc969 | 4e5fd2e982b96d9bc111027a87b15381ecc7b687 | refs/heads/master | 2023-07-15T06:33:53.290197 | 2021-08-24T06:44:24 | 2021-08-24T06:44:24 | 382,203,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for shoppingX project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"amanmahore.ash@gmail.com"
] | amanmahore.ash@gmail.com |
2a4fbb6eebb89b4e2f3e140179c0dd9d6b1d9665 | b9ab57c699ab64c349098bba8ae3f954cd08b152 | /quora-question-pairs/Model.py | 0616eae7ed7f71ac72faf6cf5a75f06b53036b5d | [] | no_license | tyxr/my_tensorflow_code | c1e24eb3dc628b26ed7aeed92dcc3e0f8143fb0f | 860acaee74a8ca6edcaf0ad3121399a94b79643e | refs/heads/master | 2022-01-10T17:45:30.339149 | 2019-05-08T03:18:24 | 2019-05-08T03:18:24 | 106,514,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,393 | py | import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell, DropoutWrapper
from tensorflow.keras.layers import Embedding,TimeDistributed,Dense,Lambda
from Process_data import print_shape
import numpy as np
class SimpleNetwork():
def __init__(self,num_words,embedding_dim,sequence_length,n_classes,L2,hidden_... | [
"xingkai@icarbonx.com"
] | xingkai@icarbonx.com |
b02ec88d3c3a9fda595bfaded4054a2a7b2b905d | a1ff3c1e1f633f8c793c69214bf70ed6321891f2 | /frequencyAnalyzer.py | b163360268f399de2fb79d30583ca65f3292d0bb | [] | no_license | yanone/frequencyAnalyzer | 6f857a72a5e3a2b64b01a99816dd6ac33c3580be | 0312f21a0662db3524382f80b88dea28d437cd65 | refs/heads/master | 2021-09-23T03:26:46.349196 | 2018-09-20T08:39:43 | 2018-09-20T08:39:43 | 115,872,586 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,520 | py |
import plistlib
import threading
import pyaudio
import numpy as np
import wave
import audioop
import time, os
import math
import json
import wx
from ynlib.maths import Interpolate
#from pysine import sine
###############################################################
frequencies = []
interpolatedFrequencies = []... | [
"post@yanone.de"
] | post@yanone.de |
646357d0513992ba17b94e2a0ec1f976826b4817 | f16a17a6faa673007f69b9892c4558e11958c55d | /cmddocs/articles.py | 477cd909cf357279d062fd6df3261881a72a0240 | [
"MIT"
] | permissive | TaurusOlson/cmddocs | 6b707110774d9a7f7449e08c32846e8b263d4b48 | 7c84a7ba32b21c7a3d15304c4590f6eab56c572a | refs/heads/master | 2021-01-20T22:50:51.512550 | 2015-01-08T11:33:26 | 2015-01-08T11:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,952 | py | import os
import re
import tempfile
import subprocess
# Function definitions
def list_articles(dir):
"lists all articles in current dir and below"
subprocess.call(["tree", dir])
def list_directories(dir):
"lists all directories in current dir and below"
subprocess.call(["tree", "-d", dir])
def change... | [
"flo@noqqe.de"
] | flo@noqqe.de |
c8d1f101c814d254035989eb2539d01b9c470f46 | 5b7413d0de8f2dc34df372489d233f59b12a76c6 | /2.3.4.py | e4a37510affe30a6cde8198dd5b085c0fdf4c18e | [] | no_license | vekhnyk/stepik---auto-tests-course | cd1e9ce54f242a49b1b4a7b6fe9a25c99866dd07 | 3508794aa955c58c79fd31d1412faec5dbd2a2cc | refs/heads/master | 2022-08-21T20:39:31.324410 | 2020-05-11T07:46:17 | 2020-05-11T07:46:17 | 262,959,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from selenium import webdriver
from time import sleep
import math
link = 'http://suninjuly.github.io/alert_accept.html'
try:
browser = webdriver.Chrome()
browser.get(link)
browser.find_element_by_class_name('btn-primary').click()
confirm = browser.switch_to.alert
confirm.accept()
x = browser.... | [
"vekhnyk@gmail.com"
] | vekhnyk@gmail.com |
26f2e95b46c06356ab3fa1f80b77aab1536140f8 | 67e1ccd069d6194158d32961c6a1f0fa49a0681f | /01_intro/recombination.py | 6413cf48e0cd0ee4a97fad5584378a820d17259f | [
"Unlicense"
] | permissive | arantzardzm/software-art-text | a9a5e8e601876334049d484b2ef238ae233d47c5 | 2af98427892126ee00b1de12f7fd60b061386247 | refs/heads/master | 2021-07-21T16:17:12.191445 | 2017-10-31T09:20:59 | 2017-10-31T09:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import sys
import random
from time import sleep
actor_adjectives = ['imperceptible', 'defiant', 'howling', 'subtle', 'eerie', 'cute']
actor = ['feline', 'cat', 'purr', 'claws', 'friend', 'crawler']
act = ['jumps', 'caresses', 'envelops', 'touches', 'reaches into', 'pets']
victim_adjectives = ['frightened', 'foolish', ... | [
"pierre.depaz@gmail.com"
] | pierre.depaz@gmail.com |
c895843d8e49416fd67fe7412ef83108b18815d3 | 1e12dc07222de77f9344b8c260d7b848a76d8d5e | /word_cloud.py | 70771c0f40ffd11a3a814b39c076130f1220d916 | [] | no_license | ljyw17/douban_movie_analysis | 4dd61f3a090189ccd411844cae929f12e81b005c | 8d520f582b19f8d85add8ad72540a27db98bba60 | refs/heads/master | 2020-07-11T03:38:22.936473 | 2019-08-26T12:42:42 | 2019-08-26T12:42:42 | 204,436,858 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from wordcloud import WordCloud
import PIL .Image as image
import numpy as np
import jieba, pandas
def trans_CN(text):
word_list = jieba.cut(text)
# 分词后在单独个体之间加上空格
result = " ".join(word_list)
return result
if __name__=="__main__":
file_path = r"Pure Hearts Into Chinese Showbiz.xlsx"
... | [
"noreply@github.com"
] | ljyw17.noreply@github.com |
df931b896dc092c4cf234d2b30a65601baa984cb | 06d42cdf96dc12d3582ee2b107c481800eea95ae | /exercises/ex8_8.py | b57df9a6d5477ca300240ac35589a9f63c1a0c20 | [] | no_license | GiaDieu/Python-exercises | 236773137b1156dd9e5c2aef91b8e0ab4ecdb6fb | 81ae81fc91d27c64f4f70922fb4c09cf8d73902d | refs/heads/master | 2020-09-11T18:06:47.769509 | 2019-11-16T19:20:38 | 2019-11-16T19:20:38 | 222,147,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | #!/usr/bin/env python3
__doc__ = '''
Viết script get_version nhận vào ngày ở format <month>/<day>/<year>.
VD: 03/28/16 làm parameter và in ra một version được tính theo quy luật sau:
- Version ở dạng format: <MAJOR>.<MINOR>.<PATCH>, vd: "6.9.2"
- Từ ngày 09 tháng 02 năm 2016, phiên bản bắt đầu là "1.0.0"
- Mỗi 28 ngày... | [
"giadieuly@gmail.com"
] | giadieuly@gmail.com |
64cddf5250ac60f94ef5c62aedfa3eb120d3e5f8 | 8ca70628ca811e08fb77b8e251fc8e5049486a65 | /airbyte-integrations/bases/base-python/base_python/cdk/streams/exceptions.py | 6727216dd5dd50496241a0890070cb87439e8f82 | [
"MIT"
] | permissive | Tana8M/airbyte | a19544d2f7997ec7551793f7077d3e02bfe6ac84 | 49296ef657be272684c7259ed0d6be06e574dbe1 | refs/heads/master | 2023-04-15T15:04:22.849307 | 2021-04-23T23:12:55 | 2021-04-23T23:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | """
MIT License
Copyright (c) 2020 Airbyte
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 the rights
to use, copy, modify, merge, publish, distr... | [
"noreply@github.com"
] | Tana8M.noreply@github.com |
d600fb5bea2fd528892cf24f66259ab17cd92938 | 98dbbcd09777a3071c4decefff8b19d477f225a1 | /plot_functions.py | e532e7d0e6c7f802fb7e4a06c37470423110bd63 | [] | no_license | ChristianMorup/RL_Pong | bbcc54f20f44be68ffb80b8257af067755a87476 | 8304df69ef0cabbb4b12b65a1b547fc32eb49b8d | refs/heads/main | 2023-01-23T10:03:09.283135 | 2020-12-01T18:01:38 | 2020-12-01T18:01:38 | 313,404,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,335 | py | import numpy as np
import matplotlib.pyplot as plt
from file_util import FileUtil
from modes_and_types import *
apply_filters = True
#TODO:
## Proportional to the distance
## Font and width of figures is too small
## Put labels on top of the figure
## Number of missed balls
## Invert the scores
#reward_types = all_r... | [
"chrmorup@gmail.com"
] | chrmorup@gmail.com |
be9bfbbae588fe4bff415889569809c937fc371a | c6ac57175975de3353faee0c2f1f796e2cd16a16 | /bot1.py | 4ee830465388df215de35511828cc2758ed29857 | [] | no_license | 3rdmonth/env_pizzabot | 9c37062567dbdd010b40d1eb19de91f96cdd9b9a | ebe8bdad23206514a5f7ac3c6a3fca3b302bde78 | refs/heads/master | 2022-12-14T14:23:47.930610 | 2018-09-29T18:22:03 | 2018-09-29T18:22:03 | 150,890,812 | 0 | 0 | null | 2021-06-01T22:42:00 | 2018-09-29T18:12:21 | Python | UTF-8 | Python | false | false | 689 | py | import requests
url = "https://api.telegram.org/bot645781983:AAHslgjt-LRnVX57f-40hlQwQMBC-oYoQtc/"
def get_updates_json(request):
response = requests.get(request + 'getUpdates')
return response.json()
def last_update(data):
results = data['result']
total_updates = len(results) - 1
return result... | [
"vas.viktorov@ya.ru"
] | vas.viktorov@ya.ru |
f73086d0105b3dbd3762dcdd037934533567ee3a | 3f8ef6ce1c878e6aa358714ea3c85a988de8948f | /Evolution Software Engineer/tenth_year.py | c97bbc78b102ba361ad8c494668ff7c884f5cee6 | [] | no_license | gchacaltana/PythonToolkit | 1ae320bb091996a5214fc446345f115cdcb28202 | 05d683fb5170294e95f4d42ed5bbe96135e9538e | refs/heads/master | 2022-03-08T02:47:04.823608 | 2022-02-11T23:11:22 | 2022-02-11T23:11:22 | 24,420,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Programa que imprime en pantalla el mensaje Hola Mundo"""
__author__ = 'Gonzalo Chacaltana'
__email__ = "gchacaltanab@outlook.com"
class HelloWorld(object):
def __init__(self):
print ("Hola Mundo")
obj = HelloWorld() | [
"gchacaltanab@gmail.com"
] | gchacaltanab@gmail.com |
62be2d8d4dbc67fc085acf0750f18d8471c8142f | f008fe1057b00d19d7812e0373669763c9992f42 | /python/utils/hpatch.py | 1047e32c3a097bb0f224c9141aa398b918144cee | [
"BSD-2-Clause"
] | permissive | baiyancheng20/hpatches-benchmark | 68a265f5e23f7ceabce06635818b8c6a73c3e578 | 23c3a6dcf92bff7bda492363908cbc52b2533472 | refs/heads/master | 2021-01-20T00:52:08.069991 | 2017-04-22T19:02:21 | 2017-04-22T19:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | import cv2
import numpy as np
from glob import glob
from joblib import Parallel, delayed
import multiprocessing
import pandas as pd
import json
import os
import time
import scipy
import copy
# all types of patches
tps = ['ref','e1','e2','e3','e4','e5','h1','h2','h3','h4','h5',\
't1','t2','t3','t4','t5']
def ... | [
"v.balntas@imperial.ac.uk"
] | v.balntas@imperial.ac.uk |
072124f7bf3fc900a33e0ea67e58898b947b9d5c | 87998e751e753dd4d75848ee292631d96b71d608 | /aoc/year2020/day2.py | c37501a97f7ff8492b062238bfec7e3aaeb5d164 | [
"Unlicense"
] | permissive | ongyx/aoc.py | 7da09592985c6688fb766f6c4b80526f51d2c290 | 48d23b2611384cf87b2722d6fd65728bb950c3f9 | refs/heads/main | 2023-01-31T07:50:44.349391 | 2020-12-16T03:43:06 | 2020-12-16T03:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # coding: utf8
import re
from aoc import aoc
# We use a regex to parse each line, in the format:
# (min)-(max) (letter): (password)
# For part 2, we need to fidde with the Boolean logic abit.
RE_POLICY = re.compile(r"(\d+)-(\d+) (\w): (\w+)")
class Problem(aoc.Problem):
def solve(self, part):
vaild_cou... | [
"ongyongxin2020@gmail.com"
] | ongyongxin2020@gmail.com |
80d37d02b7af083195de59d9af45ee86907bdc6d | 06651ac98fd2e89fa9a6b48fe536e5b93172909d | /object_decorator.py | e6dbf69910053c38780b152039108f16845707d1 | [] | no_license | stephclleung/Worksheet-Generator | 3c8e5d8d4e022c30073ea2d67074732074c3afc2 | e3c5226db1ce949f1a2f22448b2bdadd493786f3 | refs/heads/master | 2020-04-12T10:14:38.948411 | 2019-02-25T07:34:43 | 2019-02-25T07:34:43 | 162,423,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | # Objects - Decorator Pattern
#
# Stephanie Leung (2019)
from random import randint
from numpy.random import choice
import nouns_gen as nouns_gen
import adjective_gen as adj_gen
DEBUG = False
class AbstractObject:
pass #Simplifying for now but may need to add in more later.
class Noun(AbstractObject):
def __init... | [
"iLoveSalmon!1"
] | iLoveSalmon!1 |
78e5bb79876dae249b0a9fd6b8d331c441ff4a64 | f00f97b6450a39ad148eec02609b059c244a2e9c | /meaning of life.py | 26a471413d33aac06d6f1109d17895d5bc102dcc | [] | no_license | BridgeFour4/pythonguiexamples | 0eaae8fe71268161995af8269f40eab39cc719ed | 79b7304ab2d207b215eb48064aa1b309ec169b6a | refs/heads/master | 2020-04-27T14:43:32.889899 | 2019-03-11T20:11:17 | 2019-03-11T20:11:17 | 174,418,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from tkinter import *
class Application(Frame):
def __init__(self,master):
super(Application,self).__init__(master)
self.grid()
self.create_widgets()
def create_widgets(self):
self.configure(bg="silver")
self.labelone = Label(self,text= "Enter password for the secret li... | [
"nathan.broadbent@tooeleschools.org"
] | nathan.broadbent@tooeleschools.org |
5b17fbdae955c7e13c8c9c2642f0d53af96add6b | 03f00d55672f0cd1edf2a5e5aacb4896aee624a9 | /company/models.py | d28c471e7823cccb51433b71f60d03287a7ee2c9 | [] | no_license | progiri/aiu_site | fe34cb884f01010e522855ade73c0a3be6476f02 | 17e81163c12d4861500d8d7d8e0207ded144f305 | refs/heads/main | 2023-06-11T15:04:50.658387 | 2021-06-29T04:17:17 | 2021-06-29T04:17:17 | 378,497,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from django.db import models
class Location(models.Model):
title = models.CharField(
max_length=255,
verbose_name='Название'
)
class Meta:
verbose_name = 'Местоположение (город)'
verbose_name_plural = 'Местоположения (город)'
def __str__(self) -> str:
retu... | [
"yerassyl.ak@mail.ru"
] | yerassyl.ak@mail.ru |
adfd6bfcac5e5eed8bffd7e1f79d115c31bb2607 | da04aa71c2802fa6f9c1fd463f31ad4e4e514df9 | /heartbeat plot.py | dba47c3bd4c508f9c1ad21e9e5c136d7508d4c77 | [] | no_license | JayDosunmu/shield | e698dde7de57277d361e212c41ea986c0c7f21ad | 89f9444f6f98f06db0c04858f1b2bee1ce01ca43 | refs/heads/master | 2021-01-17T09:46:29.085320 | 2017-03-05T18:52:47 | 2017-03-05T18:52:47 | 83,992,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import plotly.plotly as py
import plotly.graph_objs as go
import pyrebase
import time
config = {
"apiKey":"AlzaSyBcPkjp50hVFQj3jL7NdCMul0Cw9jP5gkc",
"authDomain":"hacktech-12dad.firebaseapp.com",
"databaseURL":"https://hacktech-12dad.firebaseio.com",
"storageBucket":"",
}
fb = pyre... | [
"tjdosunmu@gmail.com"
] | tjdosunmu@gmail.com |
f67485b6750b8322f509252eb0862cc7b39aa952 | 38c4f683d6fe10d671834549fe80406b1de75ced | /api/users/migrations/0001_initial.py | 830889b99ddfc74ce22d6d468ae8a4c0f8853664 | [
"BSD-2-Clause"
] | permissive | charles-vdulac/django-rest-skeleton | 1a3b05e349eaad82e0e99477aedc8dad4ff1698a | 2e621c030046f317b01359b716dae2120e1f7525 | refs/heads/master | 2020-12-24T10:53:55.305379 | 2014-06-12T13:09:12 | 2014-06-12T13:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,961 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
needed_by = (
("authtoken", "0001_initial"),
)
def forwards(self, orm):
# Adding model 'User'
db.create_table(u'user... | [
"sebastibe@gmail.com"
] | sebastibe@gmail.com |
7d718cf991da1edadb32ecc20b535482d1412c2f | 9c6e055fc8c15d5a2e1dbec40cf2ab6534b49793 | /nourisher/settings.py | 264a24d78a7ca4f660a040e60b4b486ec63c91ab | [] | no_license | hnykda/nourisher | 0d70bac6a19ed95656e7ef51a4bb18e8b4aae9d2 | 6049d5b47c9004b3badfee89bcf7c259c84c4442 | refs/heads/master | 2021-01-20T16:12:04.940861 | 2015-07-27T16:42:04 | 2015-07-27T16:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import logging
log = logging.getLogger(__name__)
"""
Created on Dec 22, 2014
@author: dan
"""
"""
Here is possible to set customizables - global variables
"""
### DATABASE ###
DB_IP = "localhost" # IP where is MongoDB running
DB_PORT = 5432 # port where is database running
DB_NAME = "testdb" # Name of default da... | [
"kotrfa@gmail.com"
] | kotrfa@gmail.com |
284cf89f5485e9276d982fb582c9377e25489e30 | 920a5a8df0a6afbdcc1363fb74292074dec3b516 | /tf2onnx/rewriter/random_uniform.py | 23c450964d2db499b4dcc134d45f931bca7fd276 | [
"MIT"
] | permissive | anttisaukko/tensorflow-onnx | a674a6ce0002912c42914a69e8333b379391af46 | 1341bdf476df6023b75bc6b3c6e4cda00cc58a29 | refs/heads/master | 2020-04-08T21:17:35.616038 | 2018-11-28T14:47:27 | 2018-11-28T14:47:27 | 159,737,860 | 0 | 0 | MIT | 2018-11-29T22:54:42 | 2018-11-29T22:54:41 | null | UTF-8 | Python | false | false | 3,044 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
"""
tf2onnx.rewrite - rewrite tensorflow subgraph to onnx random_uniform op
"""
from onnx import helper
from tf2onnx.graph import Node
from tf2onnx.graph_matcher import OpTypePattern, GraphMatcher
from tf2onnx import... | [
"pengwa@microsoft.com"
] | pengwa@microsoft.com |
ddc6ecb74c82d9731a0332ca8a4960eb0ace0285 | b78b3cb27b84b79246dd24b88108a50d7e52edb6 | /pprzrest/mSimProcMon.py | 8c89289003c555db1ba0caef5ff130560f99494f | [] | no_license | savass/paparazzi_box_frontend | 93012f2f0919785c41b5a14509c1a6103f1605ce | 1b91659b890d16f897b63dc224836af29d0d2f06 | refs/heads/master | 2021-01-25T07:34:31.278819 | 2015-04-22T13:43:44 | 2015-04-22T13:43:44 | 34,392,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | #Simple monitoring tool to watch agents
import time
from threading import Thread
import fcntl
import os
from mProcessHolder import ProcessHolder
class SimProcMon:
ProcessDemonThread = None
RunProcessDeamon = True
ProcessList = []
ProcessOutput = ""
def __init__(self, Logger, SocketIo=None):
... | [
"sen.savas@gmail.com"
] | sen.savas@gmail.com |
cdede1a5eecbcfedafb5177344e00ab2dc3e9821 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Yash/Python/april5/prog5.py | a9186b792a3f46d892bdf941b3d00acb7fecf2ff | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 281 | py | # To delete a file, you must import the OS module, and run its os.remove() function:
import os
if os.path.exists("demofile.txt"):
os.remove("demofile.txt")
else:
print("The file does not exist")
# To delete an entire folder, use the os.rmdir() method:
# os.rmdir("myfolder") | [
"malavade47@gmail.com"
] | malavade47@gmail.com |
1aaceb54e5b237cd1f0061a9184ee10f4afd7a63 | cba5017525d30f84f4555bc0e10f1f83126f1d4a | /PowerClient/bin/main.py | 2b7af5a8bdb8d84c2687ddb6d2eed2ca8d1375e7 | [
"Apache-2.0"
] | permissive | cycmay/SolarS | 66e97a0de6b459f8bb05b03c2690d9852d92209a | 284bcafa5da210e5c4200d19e46b3fa6bb5acb20 | refs/heads/master | 2020-05-23T18:09:09.760666 | 2019-05-24T15:42:25 | 2019-05-24T15:42:25 | 186,882,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
完全可以把信息收集客户端做成Windows和Linux两个不同版本。
"""
import os
import sys
BASE_DIR = os.path.dirname(os.getcwd())
# 设置工作目录,使得包和模块能够正常导入
sys.path.append(BASE_DIR)
from core import handler
if __name__ == '__main__':
handler.ArgvHandler(sys.argv)
| [
"1769614470@qq.com"
] | 1769614470@qq.com |
56255c3a178b2823db3fdb697e972ac01d1e2f03 | 3a5dab20e575c9d6d1f671faba7da8f6085d9ed8 | /RepositorioInfo/chacoferia/apps/inicio/views.py | eab1b18c67ddcafd6cb4c9da16ca566ff43dd7c6 | [] | no_license | Diego-Caza/ProyectoFinal | 77cb45310375e31c2924b10ecd2dfad9533f2982 | 47ce682027d4230a494e4b875367a65e386a0746 | refs/heads/master | 2022-12-19T12:35:49.020185 | 2020-10-01T16:37:31 | 2020-10-01T16:37:31 | 300,335,385 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django.shortcuts import render
from apps.publicaciones.models import Producto
from django.views.generic import ListView, DetailView, CreateView
# Create your views here.
class Populares(ListView):
model = Producto
template_name = 'inicio/inicio.html'
queryset = Producto.objects.order_by('-id')[:4]
class Popu... | [
"cazadiegoy@gmail.com"
] | cazadiegoy@gmail.com |
38840ebcb8cb679446cceb6b8beace276bf9b1a7 | 415e9349304a1fc2555a55ff0e3caff3fce26e68 | /hydrogen_atom.py | 214b1a0a8884d76d855e9fc4a7fc2faa8d7bf7eb | [] | no_license | einathauser/tau-dmc-2017 | 9a3ba554e5565628c227c8ba04167ef8790f6571 | 154a953b5905545739908f4216e33b2204c151ff | refs/heads/master | 2021-01-23T09:39:49.761259 | 2017-09-13T13:12:54 | 2017-09-13T13:12:54 | 102,589,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import matplotlib.mlab as mlab
MAX_X_SIZE = 1e6
def sample_bins(x_max, x, n_boxes):
r_max = np.sqrt(float(3*x_max**2))
radius = np.array(np.sqrt(x[:, 0]**2 + x[:, 1]**2 + x[:, 2]**2)).astype(float)
bins, _ = ... | [
"ehauzer11@gmail.com"
] | ehauzer11@gmail.com |
d3d12734a381e7185f0368cdd0b926088c0b7116 | 648f5819d70686852720d6b598b66ea37cc49b71 | /setup.py | 1a9e1c6cd8a870c6d9ed3796176d7514507caf98 | [
"MIT"
] | permissive | itoldman/chinese_province_city_area_mapper | 88981f1e74507ac3cdd8ff0b60a7b5716bb701f4 | 7d7537a412dc1c543f3481f5520b3c75cf49ebb0 | refs/heads/master | 2020-03-30T12:46:11.678976 | 2018-09-26T17:59:50 | 2018-09-26T17:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,033 | py | # -*- coding: utf-8 -*-
from setuptools import setup
LONGDOC = """
chinese_province_city_area_mapper
==================================
chinese_province_city_area_mapper:一个用于识别简体中文字符串中省,市和区并能够进行映射,检验和简单绘图的python模块
举个例子::
["徐汇区虹漕路461号58号楼5楼", "泉州市洛江区万安... | [
"932087612@qq.com"
] | 932087612@qq.com |
e9a4c0ee8774a16092863b3972e7e903593cac32 | 492cb86b533bc74962a0e25ad190dab131f7cb09 | /humanScape/urls.py | d66fdef307d8290976f7ee67668986092280f3c9 | [] | no_license | acdacd66/humanscape | 75f27815f6c1ac5975b3822e5abc5738aa9b3118 | 6fbeeca3346569c7f861bbffcbec731a6a9d6e51 | refs/heads/main | 2023-09-02T01:55:49.806746 | 2021-11-16T17:29:36 | 2021-11-16T17:29:36 | 428,570,173 | 0 | 1 | null | 2021-11-16T11:22:32 | 2021-11-16T08:10:30 | Python | UTF-8 | Python | false | false | 820 | py | """humanScape URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"you@example.com"
] | you@example.com |
868e5aecbeb632ef54b45e30b589b06ef555afab | 8a8dc992231e30f70e2eb645a2d869a730d3c052 | /backendvfinal4.py | c2f42ef346ee5a8a29839e1e19c4f4175b16f97a | [] | no_license | severlove/backend_project | 111c3f34fb9891f6a1e0f02cab6530e099215dca | 48c3f2c0d2c7ff6bd5d520303eda4deff229611e | refs/heads/master | 2020-04-27T07:53:17.313968 | 2019-03-07T16:37:09 | 2019-03-07T16:37:09 | 174,151,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/env python3
import psycopg2
def top_3_articles():
'''Print top 3 articles of all time'''
db = psycopg2.connect("dbname=news")
c = db.cursor()
query = """SELECT articles.title, count(articles.title) as num
FROM articles,log
WHERE articles.slug = SUBSTRING(log.pa... | [
"noreply@github.com"
] | severlove.noreply@github.com |
3daab6c956e8d126316ecdb6ef6e71d8af6a258d | 1c8a1b7cfb5c78fe94c4cc62a78dbfff96161924 | /day05/test04.py | 7715b05a49b005d9cad71dc19124fa6797945c72 | [] | no_license | WHUTyuen/PIL_opencv | d264858f0eaa4ecc555747efd5f277f48a432b91 | 3ae6e7d878215866c304e64eac05bf1011ecb428 | refs/heads/main | 2023-01-01T14:00:33.331676 | 2020-11-01T11:35:18 | 2020-11-01T11:35:18 | 309,072,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import cv2
import numpy as np
A = cv2.imread('3.jpg')
B = cv2.imread('4.jpg')
G = A.copy()
gpA = [G]
for i in range(6):
G = cv2.pyrDown(G)
gpA.append(G)
G = B.copy()
gpB = [G]
for i in range(6):
G = cv2.pyrDown(G)
gpB.append(G)
# generate Laplacian Pyramid for A
lpA = [gpA[5]]
fo... | [
"noreply@github.com"
] | WHUTyuen.noreply@github.com |
27c38c01ec059532373e8cd03289ccde4ded2e1d | f0f3f8731145e236e8e08dafb4201108d35af488 | /wish_list_items/migrations/0007_auto_20160414_1317.py | 8478f0d9cfbb5235617279dac1587637337832db | [] | no_license | AaronScruggs/wish_list_project | 49fdfc9c3a9e72470084bbf283085c15aa659a3e | a2a741823e0a570390ce344f3407f6f3b57f2590 | refs/heads/master | 2021-01-01T05:18:10.817456 | 2016-04-19T00:36:24 | 2016-04-19T00:36:24 | 56,259,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-14 20:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wish_list_items', '0006_auto_20160414_1312'),
]
operations = [
migrations.Al... | [
"aarondscruggs@gmail.com"
] | aarondscruggs@gmail.com |
98872d68f0a8214b87de5d704fb379cb99c72671 | 6f76052e2a1161b8a728dd6fff6dfafd107c6c57 | /Kuznechik.py | 58c46f3b1ea4e3f98d1464f74da175e13cfeeead | [] | no_license | mratnikov/Rain | e33ed9bf51a0eebd8a4cd1e8c6f039fc511658bf | a11c662a87647078141fb213379c544b258881fc | refs/heads/master | 2020-03-24T11:59:53.650407 | 2019-03-14T17:38:23 | 2019-03-14T17:38:23 | 142,700,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | F = [0] * (n + 1)
F[0] = 1
F[1] = 1
for i in range(2, n + 1):
F[i] = F[i - 2] + F[i — 1]
| [
"mratnikov@gmail.com"
] | mratnikov@gmail.com |
4cf93fc1cb9c2a0a2877f9616693f8488607baa0 | 10e8c5f2f917fd091b0bab7aed18f4130039fa86 | /day_7_2.py | 71299c297d0081f51e139cc688aec2245d0f6f76 | [] | no_license | DannyBarbaro/AOC_2019 | 9383a2f14c50cbed9c359fff5f62edd291e1da77 | e1b7948ebc76af9e5bab076c18a6140e54e54f64 | refs/heads/master | 2020-12-03T17:56:23.228622 | 2020-01-02T16:30:14 | 2020-01-02T16:30:14 | 231,418,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | datastream = []
def get_value(val, mode, data):
return data[val] if mode == 0 else val
def oppcode_1(val_1, mode_1, val_2, mode_2, result, data):
data[result] = get_value(val_1, mode_1, data) + get_value(val_2, mode_2, data)
return data
def oppcode_2(val_1, mode_1, val_2, mode_2, result, data):
data[result] =... | [
"dxb486@case.edu"
] | dxb486@case.edu |
276ee2323e5bd2b36459c096005c556b3732ee1f | 6832a7fa70fc98f62b777421fca13989b8e2e1e9 | /greeting_decorator.py | 6254f95fa5c91f95649dcbfae0570d84bbd5cc75 | [] | no_license | serdarayalp/my-python | f553df88b284528dddd245557935f349b34df963 | 1e23e6b9cccdeb96f3bfd9a0812638dd8c02c189 | refs/heads/main | 2023-02-28T00:39:24.691917 | 2021-02-06T08:53:30 | 2021-02-06T08:53:30 | 330,440,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from functools import wraps
def greeting(func):
@wraps(func)
def function_wrapper(x):
""" function_wrapper of greeting """
print("Hi, " + func.__name__ + " returns:")
return func(x)
return function_wrapper
| [
"serdarayalp@googlemail.com"
] | serdarayalp@googlemail.com |
3f17973dce3bd98e0003d899e9f727b81dc0574e | 27767ea4ec9cb4b3d8a3ba31c9e668957d3f900c | /tools/statistic.py | 4606f091b46a67087b07c966d225389bbf7ff6f9 | [] | no_license | 01ghost13/smartyPantsBot | 8609dd71bfaf0ace1d137cc7bbe4cf87e6b9f1b6 | bc8943b416e42be263cc617c17e702b978aeab8b | refs/heads/master | 2020-04-10T07:27:03.989421 | 2019-05-12T12:55:38 | 2019-05-12T13:04:55 | 160,880,698 | 0 | 0 | null | 2018-12-16T14:52:15 | 2018-12-07T22:12:11 | Python | UTF-8 | Python | false | false | 666 | py | from tools import Database
class Statistic:
smile_count_sql = """
select e.name, e.discord_id, count(e_m.id) as smile_count
from emojies as e
join emoji_messages as e_m
on e_m.emoji_id = e.id
join messages as m
on m.id = e_m.message_id
where m.channe... | [
"orkich@gmail.com"
] | orkich@gmail.com |
79feeaca9b02f648fa48495c3481b1b1940c3057 | 406abf223c6eaca3ec4741e7136cfc2fe819022b | /api/utils.py | d778f462a585c6d1f73e13507c6ed37c3e75ed4a | [] | no_license | WarrentLee/ImgChangeServer | e068132e2430863698870038d2627a79e2bb51b3 | 14e9658e75ab2eebe0cbafa119410ec2c6200321 | refs/heads/master | 2022-10-07T15:36:03.136973 | 2020-06-10T01:41:50 | 2020-06-10T01:41:50 | 269,850,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from flask import Flask
from database.model import db
import os, json
from config import Config
def create_app(name):
app = Flask(name, template_folder='../templates')
# app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', 'sqlite:///' + os.path.join(app.root_path, 'data.db'))
print("Database... | [
"1065791740@qq.com"
] | 1065791740@qq.com |
a19dea9f4e498c18ae262efb60f03b1b275e63ba | f43df719ae5cc238c450f01959e4cb3625ae1c82 | /config_make.py | d96d27bb8e73dd8fb5491ba43c7d0623f1a1fee9 | [] | no_license | kenshow8/eth_erc20_token_python_api | 8f10e5aaa503730b4abc66ebd8f1779b97e021f0 | 4390d47bcb574205230fefb8cb9b2e4b238ac27e | refs/heads/master | 2022-09-29T14:09:10.058167 | 2020-05-31T08:08:14 | 2020-05-31T08:08:14 | 268,100,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # coding:utf-8
import os
import configparser
from pathlib import Path
file_dir = Path(__file__).parent
file_name = 'config/setting.ini'
file_path = file_dir.joinpath(file_name)
config = configparser.ConfigParser()
# コントラクト設定
config_web3 = 'web3_config'
config.add_section(config_web3)
## web3 設定 ##
config.set(confi... | [
"wmapp.kj@gmail.com"
] | wmapp.kj@gmail.com |
2f4d530d9958802e44c5a71b92bc8a6bf4fd5a84 | 0149c07b7c1bdd2d56aecf9934e16ec9c5b163c7 | /oc_ocdm/test/storer/test_storer.py | 5be49fe468ed9e80b576ea191f16708cec2154aa | [
"ISC"
] | permissive | opencitations/oc_ocdm | fac6903403b4149cafd080a88d761ebb44fb91cf | 26298e81fd4903ad60edb1d824f2c7abbdc88656 | refs/heads/master | 2023-07-07T23:53:38.396919 | 2023-06-22T15:20:16 | 2023-06-22T15:20:16 | 322,327,342 | 2 | 6 | ISC | 2023-03-14T08:41:54 | 2020-12-17T14:56:50 | Python | UTF-8 | Python | false | false | 11,370 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
... | [
"arcangelomas@gmail.com"
] | arcangelomas@gmail.com |
8424d48df45764507a31d8a1ab65bd44b3544d9b | aa2210cbc53e2892f2d7192085433950879b3e93 | /file_summary_1.py | a2aa31b77215d790056587eed7df6145cb8b9d87 | [] | no_license | 6188506/LearnPythonHardWay | dddc9f076902e94ba1cbff24142237ea7cdeeb28 | bd071a6602a1cde297209fa2339ebe3d96da6441 | refs/heads/master | 2021-01-20T04:11:36.536522 | 2018-05-03T09:01:38 | 2018-05-03T09:01:38 | 89,654,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #from sys import argv
#script, destination_file = argv
#print script
#print "read file from ex1 to ex41,and write to a argv file"
x = 6
print open('e:/learnpythonhardway/ex'+str(x)+'.py','r').read()
| [
"6188506@qq.com"
] | 6188506@qq.com |
f25d084d56d88bcd33d43a1a0ea324541f6d799f | ae9ff58a96682e57da9b6a1376db7ece5d84baa2 | /contrib/bulk_operations/bulk_operations.py | 005659e1475c3241682c87ea583fa35188da1cdc | [
"MIT"
] | permissive | simozhan/product-definition-center | 0ca1fde76c9c80368e3116dd68465fe91a290c7f | 55c2de179cf4169213c8a8bd81977e0cdc8ee350 | refs/heads/master | 2021-01-22T16:05:30.731848 | 2015-07-24T04:46:16 | 2015-07-24T04:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,001 | py | #
# Copyright (c) 2015 Red Hat
# Licensed under The MIT License (MIT)
# http://opensource.org/licenses/MIT
#
"""
This module provides BulkRouter that extends the registered ViewSets with bulk
operations if they are not provided yet.
To display documentation in the browsable API, it is necessary to provide a
method `bu... | [
"lsedlar@redhat.com"
] | lsedlar@redhat.com |
3d4eeac4dc2bacb190a2ec396de0cfce8de00b15 | 902215df8f073b83b5815657d7b69fd6d67c8b5f | /kkd/views.py | 00c6807b8480442a788fd0a2ca628a9bf47f4ca8 | [] | no_license | k821209/KKD_GO_DB | e7643209da7d33cc1eee1395430046fd41199af7 | 9745dcb2c2a62db08b239716dfc4f3581200bb8c | refs/heads/master | 2020-04-07T05:48:01.054782 | 2018-05-02T05:48:47 | 2018-05-02T06:33:00 | 124,186,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.shortcuts import render
def show_go_list(request):
return render(request, 'kkd/go_index.html',{})
# Create your views here.
| [
"kangyangjae@gmail.com"
] | kangyangjae@gmail.com |
8104871522b317d80e9b8bcd58d1d04195096050 | 57385c8ae2b10d01c2dede1d69f1887d8a8a7ac0 | /manage.py | 001c29815eafae252644ec0a25538483b622b402 | [
"MIT"
] | permissive | bruno-dash/teste-5 | 151efb6558168c20d3320c510893a922e2d68ee1 | 484cc065673fe859cda571b208be79d82368eeae | refs/heads/main | 2023-08-19T01:37:10.334089 | 2021-10-16T23:27:45 | 2021-10-16T23:27:45 | 417,916,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'teste5.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"bonofre36@gmail.com"
] | bonofre36@gmail.com |
d874e4f137ec4de13520364ebc883e120ec966a1 | 7f19038537cfafb2c725973d36ae0d1ae767995f | /Labs/lab10/lab10.py | 378f26a0b28368e93b796d5f88913dbfcea81dc5 | [] | no_license | aaeissa/UMBC-CS-201 | f532684734543dd7a16698b61f1824443dfeb23e | c07a97469fc9c3a3b91e5228880abeb49918691f | refs/heads/master | 2021-01-13T12:49:50.373730 | 2016-10-29T18:30:52 | 2016-10-29T18:30:52 | 72,298,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py |
def convertToDict(info):
stateFile = info.readlines()
myDict = {}
states = ""
for line in stateFile:
states = line.strip()
key, value = states.split(",")
myDict[key] = value
return(myDict)
def main():
print("Welcomet to the State Abbreviator.")
info = open("states.txt", "r")
myDict ... | [
"ahmedeissa33@gmail.com"
] | ahmedeissa33@gmail.com |
587c0100e02d4abc95b9fb79c169f06d3ed8b47b | 891c267df1228d42153ff1a36d6b92b58a32f435 | /schemes.py | ad91237c7020256b802593dc48fb3b750e821042 | [] | no_license | ellawang44/numerical-advection-eq-MATH2306- | eaa6be239e1d27f1aed2cb29bba4fdfde305a081 | de410631ec9d2fcb68c7aa2405f2cd785cb1c604 | refs/heads/master | 2021-07-21T12:17:50.392999 | 2017-10-25T02:15:15 | 2017-10-25T02:15:15 | 106,899,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | def ftbs(jn1, j, C_r):
"""Forward Time Backwards Space Scheme"""
return j - C_r*(j - jn1)
def ftcs(jn1, j, j1, C_r):
"""Forward Time Centered Space Scheme"""
return j - C_r/2*(j1 - jn1)
def ftfs(j, j1, C_r):
"""Forwards Time Forwards Space Scheme"""
return j - C_r*(j1 - j)
def lax_wendroff... | [
"u6083620@anu.edu.au"
] | u6083620@anu.edu.au |
9872a4700e6e9c1bd2a6de233fa4c578321b2559 | ac6fdcfe85b72bcf1b719bdea3ce7f9954217fd3 | /zap_transformers.py | 99dcb9b97c33bf38a861744f3fe4f97081fc6b5d | [] | no_license | giuice/ds-zap-challenge | 084510963ee413b8d62aafcb600cfebd1b86d6e6 | 34eb56c1ee74d9af02a668522bb97fea1ac95c9e | refs/heads/master | 2020-06-25T23:08:32.085580 | 2019-08-16T21:07:48 | 2019-08-16T21:07:48 | 199,449,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,621 | py | # Reference
#
import numpy as np
import pandas as pd
import warnings
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_is_fitted
from base_transformers import BaseCategoricalEncoder,BaseCategoricalTransformer, _define_variables, BaseNumericalTransformer
from sklearn.... | [
"giuice@gmail.com"
] | giuice@gmail.com |
371f634ce0aaff313e172b3b8cd67e6b98119edc | cdcaf074da4a38c2d653705225e8578e5c8a1372 | /爬取天气.py | 03c682424390894b35734bd1d8e09a7017f5d30c | [] | no_license | 475271359/TST | f71b8632ae06f3963e9b440d8c26885fe6b9be58 | d9cbd24bab66f4f92718f424a40345ae3944695c | refs/heads/master | 2020-11-26T04:25:04.989105 | 2020-03-10T03:37:27 | 2020-03-10T03:37:27 | 228,964,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | """
目标网站: 2345天气网站
总目标:爬取北方大区所有城市的历史天气。
阶段性目标:爬取山东济南过去一年的天气数据。
输入内容:
分析网站:
待爬取页面:http://tianqi.2345.com/wea_history/54511.htm
待爬取数据:数据在js里面,http://tianqi.2345.com/t/wea_history/js/202001/54511_202001.js
构建循环,用request库,批量下载。
处理内容: 不是标准的json,
实现返回的javascript解析,得到目标数据。
对于javascript的json如何解析? 使用tqInfos = demjson... | [
"noreply@github.com"
] | 475271359.noreply@github.com |
4816b6ce56b6ba10760fc6ec50b511666a0ef942 | c0f5d309576f791f8cc062e2d0cad340eec41d7d | /3.py | 846552142673f67774ae9cc5803b41248ec09248 | [] | no_license | mjjin1214/algorithm | fa91455ab792c38d01fd210c12e53e50f516eb55 | 423119406061443939b4b966c7d9f1513544dd03 | refs/heads/master | 2020-04-22T19:31:23.981387 | 2019-04-05T07:58:10 | 2019-04-05T07:58:10 | 170,610,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import sys
sys.stdin = open('input2.txt')
def subset(n, su):
global visit, count
if n == len(score):
if not visit & (1<<su):
visit ^= (1<<su)
count += 1
return
subset(n+1, su+score[n])
subset(n+1, su)
T = int(input())
for t in range(T):
N = int(input())
... | [
"moc0etan@gmail.com"
] | moc0etan@gmail.com |
ae9c47cbad8ea97eded1a2947f4a8a01472b1951 | be2fe3d75f5d08d44d207de42309aefac90f8c64 | /O Big.py | 02c8fc7d2f7e6ff0e6cb59e6ce33be3bbad2de42 | [] | no_license | lucasilvabc/CS241 | be18016862b420da0a7d44d9d6ab49aa76111e81 | e94487a7d4b1e4b282de8df419fa2abad61f2087 | refs/heads/main | 2023-04-06T20:11:01.283402 | 2021-04-19T23:42:58 | 2021-04-19T23:42:58 | 344,626,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def contains(haystack, needle):
# Does the haystack contain the needle?
for item in haystack:
if item == needle:
return True
return False | [
"noreply@github.com"
] | lucasilvabc.noreply@github.com |
cb1e1c4fd0adabebcd87bc33eefe453ec2df48fa | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1001-1500/1443.Minimum Time to Collect All Apples in a Tree.py | e8ae7ff0deadce1de133f2d3d5feb31d43fde59a | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 728 | py | from collections import defaultdict
class Solution(object):
def minTime(self, n, edges, hasApple):
"""
:type n: int
:type edges: List[List[int]]
:type hasApple: List[bool]
:rtype: int
"""
graph = defaultdict(list)
for edge in edges:
graph[e... | [
"noreply@github.com"
] | kaiwensun.noreply@github.com |
6c1a65c48e423d27b57f75c12495f1387113b2df | 3a4ecc7f7db23e92b7f8e406d3a73a77c53e1472 | /src/chapter02/c2_df1.py | 6026dc4be928099e2aae64f9481d1a1313b6da19 | [] | no_license | Parthi3610/pandas_workbook | b89b768f2d99cb5f042accbaebc1470bc350565e | 6e61f67db42ff708b6f40a9fb96b755085fe6587 | refs/heads/main | 2023-01-19T08:52:37.000264 | 2020-11-06T03:58:38 | 2020-11-06T03:58:38 | 303,878,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | import pandas as pd
import numpy as np
movies = pd.read_csv("C:/Users/preet/PycharmProjects/pandas_workbook/src/data/movie.csv")
movie_act_dir = movies[
[
"actor_1_name",
"actor_2_name",
"actor_3_name",
"director_name"
]
]
print(movie_act_dir.head())
print(type(movies[["dir... | [
"parthi_3610@yahoo.co.in"
] | parthi_3610@yahoo.co.in |
8130572a3731398674da676762ba7c5a6251ef9f | 79a23f55af0e8d4898714b7e210cadc88033a390 | /website/views.py | eae6187e75e7acb17fd508e9063dcc70f47de1c6 | [] | no_license | luoyueyaoqing/forum-website | be9bc7802d83a58abc3f802469287b3c2e11f44b | d5fbb14adf3a3e75f70df8f6eed397665f9c2d84 | refs/heads/master | 2020-03-25T10:01:16.533106 | 2018-08-15T08:48:55 | 2018-08-15T08:48:55 | 143,681,923 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | from django.shortcuts import render, HttpResponseRedirect, redirect, HttpResponse
from .models import User, Article, Plate, Comment
from django.contrib import messages
from django.contrib.auth import login, authenticate, logout
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decor... | [
"shmilyfae@163.com"
] | shmilyfae@163.com |
f5a8345f6e04ba694a886993167e2ae60ef1dcd4 | 8a6a96d487a0933293a563b04c24d08907608920 | /app/auth.py | 85c5eecc234752549804a0b229487c55dc6041ed | [] | no_license | shuxue051/ninja | 21ec07318f8c868e61659b977edce1ebdefc8e97 | ccb9724ff6329b82e18f839bb76246cae899fe99 | refs/heads/master | 2021-01-10T21:04:20.004674 | 2014-09-24T02:50:25 | 2014-09-24T02:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | import os, datetime
from flask import current_app, Blueprint, render_template, abort, request, flash, redirect, url_for
from jinja2 import TemplateNotFound
from app import login_manager, flask_bcrypt
from flask.ext.login import (current_user, login_required, login_user, logout_user, confirm_login, fresh_login_required)... | [
"shuxue051@gmail.com"
] | shuxue051@gmail.com |
7afc92885276c205066adf4255d7d46f5f5e60fb | 30f9e6a5f649b52b5d1a0ae606f44764038f6028 | /pai-fs/fsimpl/Errors.py | 0ad8850b971ccf904dbdae10d1b94181ddf962f7 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | unixcrh/pai | 97d6ffe6ff16eecd91a8e5222c7f4b33efddb1aa | 5c1836edc1db6e7d3b23ad2416fec309d48fc677 | refs/heads/master | 2021-04-15T09:12:25.198703 | 2018-03-26T09:40:39 | 2018-03-26T09:40:39 | 126,845,731 | 1 | 0 | MIT | 2018-03-26T14:59:16 | 2018-03-26T14:59:15 | null | UTF-8 | Python | false | false | 1,449 | py | # Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# 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
# the rights... | [
"v-yifxio@microsoft.com"
] | v-yifxio@microsoft.com |
f442cd7e453fbda6168780d39defdc6005872da8 | 576e36669d9012c244fe2f777314ba1a6d903277 | /ChefAndPizza_problem_PCJ18G.py | fe82a5fe7766e9a759c1bf080cb7195945214b8b | [] | no_license | OlhaKuzaka/algorithms_python | cf26658e1f70491eda4cb636269c0373aed9f76d | 14edacc8f0c0040fc95e9cae0e88515ac5293985 | refs/heads/master | 2020-03-26T10:37:50.018355 | 2018-08-15T05:03:23 | 2018-08-15T05:03:23 | 144,808,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # All submissions for this problem are available.
# Chef's pizza is the tastiest pizza to exist, and the reason for that is his special, juicy homegrown tomatoes.
#
# Tomatoes can be grown in rectangular patches of any side lengths. However, Chef only has a limited amount of land.
#
# Consider the entire town of Chefvi... | [
"o.kuzka@gmail.com"
] | o.kuzka@gmail.com |
ed321ee3351dd686798f469165a774a3b522d685 | 8541f96e5f48780050a7995ed735c70d4f3c2642 | /test/test_validation.py | 5fb04f8372aea80988cd6820c8839dc4e3d5c76a | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | influence-usa/lobbying_federal_domestic | ede64752f81b6a8496a9f6b31b3f2a6c3a5f485e | 117a1991e01a203c2c181c1c6163b044c4d5c56f | refs/heads/master | 2021-01-02T23:02:57.140303 | 2016-11-30T22:47:46 | 2016-11-30T22:47:46 | 17,500,504 | 7 | 2 | null | 2014-05-08T21:32:29 | 2014-03-07T02:39:15 | Python | UTF-8 | Python | false | false | 3,903 | py | import json
import pytest
import validictory
from utils.validate import validate_uuid, validate_url, validate_email
@pytest.fixture
def uuid_fixture():
data = json.loads(''' {
"uuidInt": 117574695023396164616661330147169357159,
"uuidHex": "054a4828074e45f2... | [
"blannon@gmail.com"
] | blannon@gmail.com |
0866ea3ae0e864e61eef207ffc5ef2936d10b99e | 9e6bab4664f9275896b510209a83d5917b4746e1 | /apps/moca/migrations/0003_merchantprofile.py | 7d57bdec7486b538d9b0c963255d7ab013ee3543 | [] | no_license | manticarodrigo/moca | 4a25215715a11b0a85d0ce65388b35df8c799eed | d8cce8dc5c88e8dc944bb7c5c89e11a86e009e03 | refs/heads/master | 2023-08-03T08:25:52.856943 | 2019-12-04T22:20:00 | 2019-12-04T22:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # Generated by Django 2.1.10 on 2019-12-04 18:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('moca', '0002_device_auth_token'),
]
operations = [
migrations.CreateModel... | [
"manticarodrigo@gmail.com"
] | manticarodrigo@gmail.com |
59a23d259eca385a7a14f82cc06da91203ce8f7c | 9e30d4e6e14c5a57d99f80b28b59ee42f23fe4eb | /Listas.py | c1caff2066d60c415e7c5c3aedf552bd7ca108f7 | [] | no_license | lukeencinas/EjerciciosExtraPython | 408b1208f526a11a4ae214fd8c15b3fd31216626 | e75378d8b0fb12684c5cfeba396a50d3ec030c1d | refs/heads/master | 2020-05-09T18:25:33.295651 | 2019-04-14T17:04:31 | 2019-04-14T17:04:31 | 181,341,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | #1) e1 = ["F. de Computadores", "Visualizacion","Fisica","Quimica", "Historia", "Lengua"]
# print(e1)
#2) e2 = ["F. de Computadores", "Visualizacion","Fisica","Quimica", "Historia", "Lengua"]
# for i in e2:
# print("Yo estudio: "+i)
#3) e3 = ["F. de Computadores", "Visualizacion","Fisica"]
# nota = []
# for i in e... | [
"noreply@github.com"
] | lukeencinas.noreply@github.com |
c2f2d9873572b84a36f2345329ebd77f92a88cbe | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part15-statistical-thinking-1/No04-Bee-swarm-plot.py | 0b503f7631dcaaedd5a7afe2edbda8d651de8a7c | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | #Bee swarm plot
'''
Make a bee swarm plot of the iris petal lengths. Your x-axis should contain each of the three species, and the y-axis the petal lengths. A data frame containing the data is in your namespace as df.
For your reference, the code Justin used to create the bee swarm plot in the video is provided below:... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
f7bb5b008461cd4f51770163a3cf7e600d784405 | 81c5c07e1144747dc0e98f8dffb287a69be1eba7 | /score_mcc_bin.py | 686c4e86fcab42e4f12a69f6f893e59e1cfe31ee | [] | no_license | twistedmove/e2e_antispoofing | acbb9ec5bc4454c1698fc355d0c0fee3bf70006e | 686dfb515b2c568a1006136f56bbaad0419f0787 | refs/heads/master | 2020-09-07T10:41:12.024794 | 2019-10-06T19:28:19 | 2019-10-06T19:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,454 | py | import argparse
import numpy as np
import glob
import torch
import torch.nn.functional as F
import os
from kaldi_io import read_mat_scp
import model as model_
import scipy.io as sio
from utils import compute_eer_labels, set_device, read_trials, get_freer_gpu
def prep_feats(data_):
#data_ = ( data_ - data_.mean(0) )... | [
"joaomonteirof@gmail.com"
] | joaomonteirof@gmail.com |
158c8395e7b37a739bbe7438d2a3fb3853747fb2 | 0b20f4ce14b9ff77c84cedbecbaa29831335920d | /tests/cloudformation/file_formats/test_yaml.py | 76149f86216a57acc3de965d65a22daae34bad5a | [
"Apache-2.0"
] | permissive | sergesec488/checkov | 219c1b3864ab4f70b39a4cd79b041e98f3145364 | 56008e1c531b3626f14716067731be6e673040bc | refs/heads/master | 2023-04-10T12:26:49.749864 | 2021-02-26T18:36:52 | 2021-02-26T18:40:58 | 342,883,133 | 0 | 1 | Apache-2.0 | 2023-03-30T13:31:25 | 2021-02-27T15:01:08 | null | UTF-8 | Python | false | false | 681 | py | import os
import unittest
from checkov.cloudformation.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestYamlFileFormat(unittest.TestCase):
def test_summary(self):
runner = Runner()
current_dir = os.path.dirname(os.path.realpath(__file__))
test_files_dir = cur... | [
"noreply@github.com"
] | sergesec488.noreply@github.com |
1161c6ec01e8bf8124199a123fc850feb16f7924 | 27c94d7e040902d3cdadd5862b15e67ec2ee4b6e | /exps/NAS-Bench-201-algos/DARTS-V1.py | 67441af82a7bc2f760fa028163eb4ca9c8887773 | [
"MIT"
] | permissive | D-X-Y/AutoDL-Projects | 8a0779a7710d809af2b052787928d8d34c14d0d9 | f46486e21b71ae6459a700be720d7648b5429569 | refs/heads/main | 2023-08-13T10:53:49.550889 | 2022-04-24T22:18:16 | 2022-04-24T22:18:16 | 168,538,768 | 989 | 197 | MIT | 2022-04-24T22:16:21 | 2019-01-31T14:30:50 | Python | UTF-8 | Python | false | false | 15,785 | py | ##################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020 #
########################################################
# DARTS: Differentiable Architecture Search, ICLR 2019 #
########################################################
import sys, time, random, argparse
from copy im... | [
"280835372@qq.com"
] | 280835372@qq.com |
aaab34fc3d46736a9c6abdb2195fc43a0ba0f6f4 | 75f48cb18eb83fd4f9fd1c7dd0543fcaaf781342 | /members/migrations/0029_profile.py | e7b48cc47f392bbf73ff5bb36412d5885b6a87dc | [] | no_license | trouvaay/trouvaay | f28a879e60de6212cbf30904c4471158c3907ebb | 5440928238428c9e60be61e75910ad8d78866426 | refs/heads/master | 2021-03-27T10:11:09.602842 | 2015-06-05T22:06:28 | 2015-06-05T22:06:28 | 27,945,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import localflavor.us.models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('members', '0028_auto_20150220_1922'),
]
operations = [
migrati... | [
"sergey@lanasoft.net"
] | sergey@lanasoft.net |
15a3b3cd280903839a7706abb9e05c8e6621ad2a | 837877c72a803fc62eea396e466dff36cffa5028 | /dnnlib/submission/internal/__init__.py | 52a7fce687d3906d061a6a76834e222143555b9b | [] | no_license | tantantetetao/StyleGANv2-Re-Implementation | 55d6c9e98e2d98450734937133348acb197bf5d8 | bfa0c410073863ab199cc5e5fbafb3dd2da35ea9 | refs/heads/master | 2022-12-12T23:32:53.423432 | 2020-09-14T07:26:27 | 2020-09-14T07:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
# Cheng-Bin Jin re-implementation.
from . import local | [
"jinchengbin@huya.com"
] | jinchengbin@huya.com |
c03967857b3abb3a4db4df537c2c4342ac393b68 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter/marker/line/_width.py | 108770c589b4e4605b6ff605e20647ef337325b7 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 465 | py | import _plotly_utils.basevalidators
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name='width', parent_name='scatter.marker.line', **kwargs
):
super(WidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=pa... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
e6ce7ed7be75cb36861a415589dd9916147d2c3b | 17ed1b63dcc519c1ddf91d500e2b1e80c8cb338f | /Fixed_Income_Project/pricing_2.py | 82ee24b37e9daa928d8f3fa6f694ec9230ef7465 | [] | no_license | khorwei01/reinforcement | 6834187814901b216317c2e2e29eed873a43b242 | cfd2a151d1ecfae9f00ed658b45304ef0ff43046 | refs/heads/master | 2021-11-01T00:15:05.047005 | 2021-10-18T07:43:16 | 2021-10-18T07:43:16 | 238,147,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,703 | py | # -*- coding: utf-8 -*-
"""
FI part 4
@author: Archer
"""
import numpy as np
import pandas as pd
from enum import Enum
from scipy.stats import norm
from scipy.integrate import quad
from scipy.misc import derivative
from math import log
from scipy.optimize import fsolve
# discounting methods
from part1 i... | [
"noreply@github.com"
] | khorwei01.noreply@github.com |
7556cf1918258fe40c2aabedcaf970d5535e3a6b | 7c926109cda8e59cef6abf097774c1d64c7f77af | /app.py | 18bb8ed0dbd02ac640d073f871277c93e192c80d | [] | no_license | zahraEskandari/corona_dashboard | f27ee1091a24cf622d1f631712036387760e6327 | 4c881800369a9c3be390409e4d9d146fbd5858c2 | refs/heads/master | 2021-05-20T04:15:44.021841 | 2020-04-01T13:24:15 | 2020-04-01T13:24:15 | 252,181,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,609 | py | #from flask import Flask
import flask
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objs as go
import random
import math
import dash_table as dst
from dash.dependencies import Input, Output
import datetime
import plotly
# storing and anaysi... | [
"zahra.eskandari@gmail.com"
] | zahra.eskandari@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.