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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a17e6e55f000b5952f59c2cf9e3b2a993ab1c7c | 7b743d0e3fd46074af123b5c0faf75bb3f47cc91 | /src/reset_manager.py | 0969fa072fbc3d0989a064b6bbf4bf49a9694198 | [] | no_license | manuel2258/lighthub_server | f9a798e825a95738a025b9f128f4f8b06953163c | 738cc81971daf2b7973127ea04d03e02f08fa93a | refs/heads/master | 2020-05-06T13:29:53.992231 | 2020-04-13T18:14:46 | 2020-04-13T18:14:46 | 180,140,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | import machine
class ResetManager:
"""
Handles restarting and config reseting
"""
def __init__(self, led_manager, TTR, reset_button):
self._led_manager = led_manager
self._hard_reset = False
self._erase_reset = False
self._reset_button = reset_button
self._T... | [
"manuel2258@protonmail.com"
] | manuel2258@protonmail.com |
e348fc5844c1a94bebffeb7cd0e4af713b7aaf01 | b1bccfe24d7757973d5f3628e6024f386184f473 | /test/test_ffmpeg.py | fe2c10c3063798dd1f7d02ab7e4778011be19aad | [
"MIT"
] | permissive | joshbarrass/spyctrum | 3c30787c9436707acdea9a977138f58ea320ff5c | 9d1372be95f883a047b94d72da8fb43bdf2d2694 | refs/heads/master | 2023-07-24T17:21:03.905245 | 2022-07-12T17:26:21 | 2022-07-12T17:26:21 | 243,376,529 | 0 | 0 | MIT | 2023-07-06T22:18:05 | 2020-02-26T22:09:15 | Python | UTF-8 | Python | false | false | 359 | py | import unittest
import subprocess
import spyctrum.audio.ffmpeg
class FFMPEGTests(unittest.TestCase):
def test_call_normal(self):
p = spyctrum.audio.ffmpeg.call(["-h"])
self.assertTrue(isinstance(p, subprocess.Popen))
def test_call_err(self):
with self.assertRaises(TypeError):
... | [
"josh.barrass.work@gmail.com"
] | josh.barrass.work@gmail.com |
f9526ad8249a2499dc161e3d16e50849aab33996 | 43e4fbd9a229042f3a291945dbf8b37bf36f43d2 | /util/logger.py | f46f48f511e14f3eee4553cac29cd23a58edcd2d | [
"Apache-2.0"
] | permissive | CV-IP/PCMSN | 7816ca65b09ea9d8b8364c2ec96ab0adffab94df | c2467dc84a4fbea19161c31c70b72162bee1047f | refs/heads/main | 2023-06-11T13:14:35.515712 | 2021-06-24T19:32:34 | 2021-06-24T19:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import torch
from tensorboardX import SummaryWriter
import os
class AverageMeter(object):
"""Computes and stores the average and current value"""
def __init__(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def reset(self):
self.val = 0
self.a... | [
"37863639+haowang1992@users.noreply.github.com"
] | 37863639+haowang1992@users.noreply.github.com |
6433f2faa76aafcba1ff59f7eaa303a9c32c1d3b | d3984642936aaf53dba08e11d659dd157c00ae7d | /mnist.py | 66b24ca775eaaf6114291cca6aabc14ee75076f9 | [] | no_license | greeneley/support-vector-machine | 46d97848c08df7c83a8863031c45de8e5494130d | 669512f82880023fd87404a9d4debf1e0b4a0699 | refs/heads/master | 2020-05-23T01:17:32.966070 | 2019-05-14T09:13:25 | 2019-05-14T09:13:25 | 186,586,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py |
from mnist import MNIST
# import numpy as np
# from sklearn import svm, metrics
# mndata = MNIST('./mnist')
# train_images, train_labels = mndata.load_training()
# test_images, test_labels = mndata.load_testing()
# 1. Feature scaling
## Viec chuan hoa du lieu 1 buoc quan trong
## Vi data co the den tu nhieu nguon ... | [
"thanh.dinh@insa-cvl.fr"
] | thanh.dinh@insa-cvl.fr |
a23ac2653695ae587095465de6f64ed73fa825c9 | acba5848490fe239322e6b983a1da11deed0bf76 | /allencahn.py | 198baccd460221582033fc4c5ef7b354ebc5d83b | [] | no_license | pqwang1026/DeepSolver | 716481888c7b37487690cd62c959a9850602577f | 1feb31b2646d06ca22f99313e7a524d1773d4b82 | refs/heads/master | 2021-04-27T00:22:45.643137 | 2018-03-13T18:22:23 | 2018-03-13T18:22:23 | 123,802,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,599 | py | import time
import math
import tensorflow as tf
import numpy as np
from tensorflow.python.training.moving_averages \
import assign_moving_average
from scipy.stats import multivariate_normal as normal
from tensorflow.python.ops import control_flow_ops
from tensorflow import random_normal_initializer as norm_init
fro... | [
"pqwang1026@gmail.com"
] | pqwang1026@gmail.com |
6725c438f7fb43fb658062a50da5a2123518ab55 | fb51267076d91cf5a7a38bbec096275cab0aebb7 | /20/Python/slepice1.py | 046e80b94e5cd47f4d40ff4fef010e2857c18254 | [] | no_license | vojtechjelinek/AoC-2016 | efc6a98caa42d5abe7f1103aa1252657aa4f2241 | 671cf238c3bc681b826ed616381b1d4d96a79743 | refs/heads/master | 2021-01-19T09:18:55.210233 | 2017-03-17T15:03:13 | 2017-03-17T15:03:13 | 75,317,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | with open("slepice.txt", "r") as f:
ranges = [tuple(map(int, range_.split("-"))) for range_ in f.read().splitlines()]
ranges = sorted(ranges, key=lambda x: x[0])
i = 0
prev_min = prev_max = 0
merged_ranges = []
for min_, max_ in ranges:
if min_ - 1 > prev_max:
merged_ranges.append((prev_min, prev_m... | [
"vojtin.j@gmail.com"
] | vojtin.j@gmail.com |
8d05a3c6165dce703c02d1d486df69cf665b60b9 | f27a6ca8086211cad7a89d1e42e544972fdbe019 | /day8/jumps.py | d027b1fc2e071ddd3cdcac68a059b9ad7bb05c03 | [] | no_license | SeyelentEco/AdventOfCode2017 | dddb0d42168b8401fb5cd56db5d96e901b30d103 | b92002a8669b1e1868760cc9a4185b0056e706c3 | refs/heads/master | 2021-09-03T02:09:32.806229 | 2018-01-04T19:52:41 | 2018-01-04T19:52:41 | 112,960,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | import sys
def valueCheck(value, test, testvalue):
value = int(value)
testvalue = int(testvalue)
if test == "==":
return value == testvalue
elif test == ">":
return value > testvalue
elif test == ">=":
return value >= testvalue
elif test == "<":
return value < t... | [
"alex.petrescu@gmail.com"
] | alex.petrescu@gmail.com |
67be24c5ce3af514b1f373a26f814938b28cef87 | 8a15efc8b6de9cf966c55c2209425a587b1b6e08 | /blog/myblog/admin.py | 7f213b391b3d9645b60f4075aedbffb39cc7b5c3 | [] | no_license | Victorchi/blog- | 7d011ea9a3efbf83dc3a9008d2d3d7368b1971dc | ab169e68a4d89e127cecf21951aba170c1bf8e8b | refs/heads/master | 2020-12-30T14:19:33.515289 | 2017-05-15T07:25:04 | 2017-05-15T07:25:04 | 91,306,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | from django.contrib import admin
from .models import *
# Register your models here.
class ArticleAdmin(admin.ModelAdmin):
list_display = ('title', 'desc', 'click_count',)
list_display_links = ('title', 'desc')
list_editable = ('click_count',)
fieldsets = (
(None, {
'fields': ('tit... | [
"qwe312231.@163.com"
] | qwe312231.@163.com |
4a946b0a333c4cbce564df44ebcf1da0acea70fd | 33debc006b1d364ba38fd0ab4ebc2da871bc3c96 | /05/day5_part2.py | 52ab81ece47441a88a63704d013bf8db4f303ca1 | [] | no_license | Katari1/2016-Advent-of-Code | 73340f1424f41a5a3f18540a2733f6f3238c87e9 | 4506de13690b750476480071c20c8ab9c07b49a3 | refs/heads/master | 2021-01-12T08:24:13.538022 | 2016-12-28T19:47:59 | 2016-12-28T19:47:59 | 76,564,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import md5
num = 0
code=[None] * 8
while None in code:
input="ffykfhsq"
input = input + str(num)
md = md5.new()
md.update(input)
a = md.hexdigest()
if a[:5] == '00000':
try:
position = int(a[5])
except ValueError:
position = int(100)
number = a[6]... | [
"vnagrani@pindropsecurity.com"
] | vnagrani@pindropsecurity.com |
6ec27707f06f70599fd009e6b1515054ddf675be | 029948b3fd0e41d80d66c84d808abff4fcb24ac8 | /dnac_api_client/models/response.py | 21c419cccc99217f50f5b75be892b1baee6f818a | [] | no_license | yijxiang/dnac-api-client | 842d1da9e156820942656b8f34342d52c96d3c37 | 256d016e2df8fc1b3fdad6e28f441c6005b43b07 | refs/heads/master | 2021-09-25T21:10:09.502447 | 2018-10-25T14:39:57 | 2018-10-25T14:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | # coding: utf-8
"""
Cisco DNA Center Platform v. 1.2.x (EFT)
REST API (EFT) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Response(object):
"""NOTE: This class is auto generated by OpenAPI Gen... | [
"cunningr@cisco.com"
] | cunningr@cisco.com |
cb9b8e2e3a873a141e5e1ba4040bf857eba6b94f | a50e4fa86bdf787fb8a2418f5f9e410fabe0a132 | /2015-11-19_hack.dat.kiwi/ste/diff.py | d814f4f1b34572db21840d362d554e8d561a887e | [] | no_license | p2004a/CTF | ffaacc0e6426ace4f5fb6fef9dfc16e73f56fc3e | a5f501db34b701208cb1fcffcc912b05386d5f8f | refs/heads/master | 2021-01-10T06:01:32.999781 | 2015-11-23T21:19:56 | 2015-11-23T21:19:56 | 46,625,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/python
import png
import sys
def read_png(filename):
r = png.Reader(open(filename))
f = r.read()
return list(f[2])
def diff(a, b):
for col in range(len(a[0])):
for row in range(len(a)):
if a[row][col] != b[row][col]:
yield row, col, a[row][col], b[row][... | [
"marekrusinowski@gmail.com"
] | marekrusinowski@gmail.com |
74107df377adab78ed6ad99a7cdafb3fe88dfef6 | a5016c90fb13caaf8ce4e2c48dc842017f195822 | /src/0008_StringToInteger.py | c800458b3678b28a95706de4e3e5ff1d26c81c80 | [] | no_license | lixinchn/LeetCode | c21efc2d715da637374871d36d3d183ea08b9c31 | 4060d525f007c10a3a55d874f7953a0a1d98c8fd | refs/heads/master | 2020-04-03T10:27:16.068777 | 2017-01-05T02:31:28 | 2017-01-05T02:31:28 | 50,000,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
ret_int = 0
negative = False
MAX_INT = 2147483647
MIN_INT = 2147483648
i = 0
for i in range(len(str)):
if str[i] == ' ' or str[i] == '\t':
... | [
"lixinit@gmail.com"
] | lixinit@gmail.com |
63e1bc93378be0e0aac8defc2781e4ed3647409e | f2c84f175a0cd8e9fa92b97090e9bc62072635bc | /wadors2jpg.py | 149cfcd8ba5560e3486f9ed33677ed9b47993a8d | [
"MIT"
] | permissive | ibh-daai/dicom-dump-utils | d1e772c707a5e9101199a7f88e6da2d920dccf0b | 2d927f94a48701b79c2851a2b0f6a14b257480e5 | refs/heads/main | 2023-07-10T23:18:50.869660 | 2021-07-30T13:50:33 | 2021-07-30T13:50:33 | 368,543,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | # Sometimes your WADO-RS implementation may NOT support returning of JPEG renders. This script fills the gap by download the DICOM instance and exporting it to JPEG on local disk.
# Search for "TODO" to find spots you need to fill out
# Loops though a list of studies from a PostgreSQL table
import sys, os, datetime, p... | [
"noreply@github.com"
] | noreply@github.com |
9d8ce7ca5128ff211c1c875e8ac65e2981f17bf1 | 07110a2c07a034e9b93f5159a9844adedbbf436c | /GoogleSheetsAPI/quickstart.py | 48ca32ce7fcace7fe8e7757f7e41c169d21f2ea0 | [] | no_license | karenwang38/Python | 59cf50e047befa1947d8aa918fb89bdfee7c1b8b | 4ebc9f34d0089aa45ae3814b683a62744ae6f2ca | refs/heads/master | 2020-04-06T23:01:55.583143 | 2020-02-23T07:32:26 | 2020-02-23T07:32:26 | 157,855,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | from __future__ import print_function
import httplib2
import os
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
except ImportError:
... | [
"karen.wang38@gmail.com"
] | karen.wang38@gmail.com |
787e223f49a9ab2eeab5f45a7afcebfb8907c122 | 26e468e4f99ffc0ccd6da43c1ae9f363ec3010e6 | /msr.py | 32c9ecdd0dc265971335ef45b9e1bfc43fb7fe41 | [] | no_license | mtoqeerpk/rshalib | d86d36216fe9a4008a710af6c0e118c34c73dab4 | 9ef631ca3690c158693445a52d59c2583f8bd67e | refs/heads/master | 2023-01-28T00:25:14.992405 | 2020-12-10T09:16:41 | 2020-12-10T09:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | """
Magnitude scaling relations
"""
from __future__ import absolute_import, division, print_function, unicode_literals
try:
## Python 2
basestring
except:
## Python 3
basestring = str
__all__ = ['get_oq_msr']
def get_oq_msr(msr_or_name):
"""
Get OpenQuake magnitude scaling relationship ... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
0016a8bd338aee16fc4a06d71d645e56d33a1cda | c5d21fba0c017f7050487ca2e370ce6bdc05d341 | /meistery_trial_assignment/api/users/test_views.py | 5f8fb71a53bbc8621292e1de122531814803ce09 | [] | no_license | patpatpatpatpat/meistery_test_v2 | b30de775826f0219ce6fdc2035f2398a580341bd | a13dcf8ef32654b9e6b6fc877ae0567a28aa64f1 | refs/heads/main | 2023-04-24T15:44:00.861140 | 2021-04-29T02:08:48 | 2021-04-29T02:08:48 | 358,596,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,236 | py | import json
import pytest
from rest_framework import status
from rest_framework.authtoken.models import Token
from users.models import User
from .factories import CityFactory, CountryFactory, UserFactory
pytestmark = pytest.mark.django_db
class TestUserAPI:
endpoint = "/api/v1/users/"
def test_retrieve(s... | [
"pat.keeps.looking.up@gmail.com"
] | pat.keeps.looking.up@gmail.com |
526ffa4166771100f9cba679f9d558d346d9ee5a | ed678510c8042f207d9b6bf9b1863b263345ad02 | /handlers/users/no_referral_handler.py | 9d9279fcb9486f61fd005c04d0d07adab772e53d | [] | no_license | shevasa/udemy_final_task | e44e13f9c8d3da80ed5f1393b1224445fdb6cbba | ffd72c1145b71e3b9f77ac7abe17233cc60b9066 | refs/heads/master | 2023-06-03T17:24:41.248130 | 2021-07-01T09:18:44 | 2021-07-01T09:18:44 | 378,874,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from aiogram import types
from aiogram.dispatcher import FSMContext
from keyboards.inline import no_ref_callback
from loader import dp
@dp.callback_query_handler(no_ref_callback.filter(action="enter_invitation_code"))
async def ask_for_invitation_code(call: types.CallbackQuery, state: FSMContext):
await call.mes... | [
"shevasa@icloud.com"
] | shevasa@icloud.com |
58c3c301b8c5ffe6496f032137b6c97b8eabbefb | 19a32440205b2caeec67c73c10d917b5fb30a86a | /isi_sdk/models/settings_notification_create_params.py | 55f76156fd70615ae7d5ef6ff537e1aba68c0417 | [
"Apache-2.0",
"MIT"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 9,762 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
a88d47ffc5f7e142e209bf07ca880931f4766c8e | a78cd4427306789be2ea57a4811cea7d4764847c | /Лаба 2/ПР2/ПР2/test.py | b0bc88010ec43f5839213dec847c0bc2c10eebdc | [] | no_license | uncledeni/Instrumental-software-for-the-development-and-design-of-information-systems-1 | 1ad2d8674cd59d393d91654ed4c3196faef609ce | cf2ed78b853ef7c7012abe3b339ea20ee64d94d5 | refs/heads/main | 2023-06-03T18:15:13.567731 | 2021-06-22T17:39:15 | 2021-06-22T17:39:15 | 379,347,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | name = 'uncledeni@mail.ru'
print(name.split('@')[1])
| [
"noreply@github.com"
] | noreply@github.com |
09c1cdae1147a0e3f0d25422215290dc25c90eff | 741b3f23abeecfb09e2a091b6fb30d81aedd0564 | /app/models/permission.py | cd364d1b3f7fcc22196da8d052c9e4bc93cab425 | [] | no_license | Qalifah/clepius-server | 56c484f7247cb9524827a70602bb29e1e82a492d | 0cacc8476ee293e701f0398405e6d0ec2d25ca13 | refs/heads/master | 2021-05-20T08:21:47.917779 | 2020-04-01T13:54:56 | 2020-04-01T13:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from mongoengine.fields import StringField
from app import db
class Permission(db.Document):
name = StringField(unique=True, required=True)
description = StringField(max_length=150)
| [
"akiolisa@gmail.com"
] | akiolisa@gmail.com |
fb076ea5e8af9fd67165eb9e6f35034d069f2050 | a53e0a56740d9c65dfd635be0b77f8fdd2712797 | /main.py | 29bfac6ec8732ad4b16a15a15ad66cf93904bf8f | [
"MIT"
] | permissive | abhishekarora12/Calci | 4436ff77e230a0d4e8f8fce0949d9f657f071f76 | d407fba96fbe748bc3401903efd30ef89335796f | refs/heads/master | 2021-01-22T19:17:56.970694 | 2015-10-28T16:40:03 | 2015-10-28T16:40:03 | 45,125,431 | 0 | 0 | null | 2015-10-28T16:16:39 | 2015-10-28T16:16:39 | null | UTF-8 | Python | false | false | 4,747 | py | #!/usr/bin/env python3
import argparse
import math
"Performs addition"
def add(a,b):
val = a+b
return val
"Performs subtraction"
def sub(a,b):
val = a-b
return val
"Performs division"
def div(a,b):
val = a/b
return val
"Performs multiplication"
def multi(a,b):
val = a*b
return val
... | [
"trishnaguha17@gmail.com"
] | trishnaguha17@gmail.com |
b1e3d907ddb1fd342641d2f210bbee3add3a54dc | bf42df9247ada840a44153eeea94a22cb823dc2b | /classifiers/random_forest_classifier.py | 4e90f713b49459445d66173bee184ef57f2606c7 | [] | no_license | spenc53/news-classifier | 1cd76c5a6c8cc687f7eb03882cea8f1e9195d93a | 59ae616c3d638fef86c92b41d960561b964bef5b | refs/heads/master | 2021-04-27T08:58:28.007410 | 2018-04-16T21:04:26 | 2018-04-16T21:04:26 | 122,503,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import string
import numpy as np
from nltk.corpus import stopwords
from sklearn.ensemble import RandomForestClassifier
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split, RandomizedSearchCV
from sklearn.pipeline im... | [
"victor.mafralazaro@gmail.com"
] | victor.mafralazaro@gmail.com |
b626a7c0982b949955dc9dbd1ae3cfd710704fd3 | a02c3d6c080d6f739fe5bbf32a7fd4b8a72860c5 | /engine.py | 1acec8955e99582d301065e4a02df42776c9e352 | [] | no_license | Hongwing/SearchSources | eaf32fe0df709c85089037cf112d3527733cf06d | 8d57ac83d4a53c5dcf03a779f80efd00e5379d5e | refs/heads/master | 2021-01-20T18:07:49.008640 | 2016-08-12T21:16:22 | 2016-08-12T21:16:22 | 65,554,346 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | # -*- coding:utf-8 -*-
__author__ = "Hongwing"
"""
百度云资源搜索
"""
from HTMLParser import HTMLParser
from bs4 import BeautifulSoup
#import bs4.builder.htmlparser
#import bs4.builder._lxml
#import bs4.builder._html5lib
import xml
import requests
import sys
import urllib
import urllib2
import cookielib
reload(sys)
sys.s... | [
"1045243700@qq.com"
] | 1045243700@qq.com |
d9f48228799ce9b0f5c02b629b93c1e903f4fe00 | 80c104a48095e7ee9d89d5e9df5fe527bf7d7856 | /yahoo_finance/yahoo.py | fdc2b02ca8d6e7ba80157acf687c643b0b43ad96 | [] | no_license | shrenik0123/Paper-Trading-Alpaca | 9f1d821a83fd4820522280e880dcd21170449ede | 36b308a84a9bccf5985a4054b4a50258a16b3871 | refs/heads/main | 2023-04-04T21:15:59.166243 | 2021-04-20T20:31:46 | 2021-04-20T20:31:46 | 351,866,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import yfinance as yf
import numpy as np
import pandas as pd
aapl = yf.Ticker("AAPL")
hist = aapl.history(period="2y")
path = "./aapl.csv"
hist.to_csv(path) | [
"46769965+shrenik0123@users.noreply.github.com"
] | 46769965+shrenik0123@users.noreply.github.com |
490e341e942d8a60011545ea7657bda519f70f4e | ac32bac45df77083f4ef3115e747038a6753936c | /methods/stack/custom/adapters/layer_custom.py | e3220b5ba16f66f4e881fd6331e8a0efa9f0f191 | [] | no_license | Yujin-Yujin/rexpert | 13e1d5c4ca55664dd9fbb9a765ea5157a2e0893f | ed8628dc053194fee40e593b1cc5ec45a26c8073 | refs/heads/main | 2023-06-22T05:58:42.269923 | 2021-07-23T06:35:43 | 2021-07-23T06:35:43 | 373,423,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,825 | py | from abc import ABC, abstractmethod
from typing import List, Mapping, Union
import torch
from torch import nn
from transformers.adapters.composition import AdapterCompositionBlock, Fuse, Parallel, Split, Stack, parse_composition
from custom.adapters.modeling_custom import Adapter, BertFusion
class AdapterLayerBaseM... | [
"yujin000731@yonsei.ac.kr"
] | yujin000731@yonsei.ac.kr |
7c16ce3294db35fdd9a9ef74ef3c1c7093c613b0 | 6100001f412c42f5ab98c77abbf0ae4a921dba97 | /src/ui_main.py | cd08ea9df2421962ccb8ad03daa6483d02ecc41b | [] | no_license | WllRod/ARX | df151fe82794a8d25ba8c76173bd56f18d2ec9f2 | 54767709b2b5da7a5e23d2238159299f8f78fa89 | refs/heads/main | 2023-04-10T19:33:13.106139 | 2021-04-21T21:29:17 | 2021-04-21T21:29:17 | 358,576,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106,889 | py | from PyQt5.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
QRect, QSize, QUrl, Qt, QThread, QTimer, QDate, QTime)
from PyQt5.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont,
QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap,
QRadialGradient, QPixmap)
from PyQt5... | [
"wll_rodrigues@outlook.com"
] | wll_rodrigues@outlook.com |
34e474332837d41d7be8e3b1b8180a049fb43e1b | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_chart_layout02.py | 22e9a8e8599e84e984544c6755d61220a43f21fa | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 1,659 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
8d32e4753d853081c404b49ffb45def58b0d3ad4 | 7f8db6b4025cfcfc6fe5bd141d0d8a6bfd2903e2 | /Sat_Practice_4.py | adfd9f197b93c7ee1ce65a8154b451f208263f6e | [] | no_license | alinefutamata/Python_Beginners | 6f4749e258aa72828207482242942402cfdaa12a | 80785e93910dc1f337c368f6cc930c1a618f9be9 | refs/heads/master | 2022-05-27T07:36:56.336809 | 2020-04-30T10:09:47 | 2020-04-30T10:09:47 | 256,967,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # Write a Python program to construct the following pattern, using a nested for loop.
for x in range(6):
stars = " *"
for y in range(x):
stars += "*"
print(stars)
for x in range(6):
stars = " *"
for y in range(6-x):
stars += "*"
print(stars) | [
"aline.f.lorenzon@gmail.com"
] | aline.f.lorenzon@gmail.com |
624c22e80e4ed1668a42b1ecf7fa029acd5eab74 | 75c145dbd2bcb2ebe8cb4653a9f8dcb02d56e8d6 | /gua/__init__.py | e89ae48f356090005d3c5aee4e14c1740dce14a6 | [] | no_license | cbourjau/gua | 547297c0b2d0b46db83fcb22b8ffa30f1668c61c | a35a06ff1e04302181671c2fad96574d8f557bed | refs/heads/master | 2021-03-24T09:53:39.455009 | 2018-07-11T12:56:11 | 2018-07-11T12:56:11 | 113,069,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | from gua import Gua
| [
"christian.bourjau@cern.ch"
] | christian.bourjau@cern.ch |
43700ee9faa10d698992479a883a42c4b0e9dc29 | 5feba2c2297fb755061b8e80550650e3ca55dd50 | /src/main.py | 801f7d5a5bcb7e264a4d5223e8b93643c0f91300 | [] | no_license | xiwhe/quant | d245963ff4e5a2f915b583cb8133c0a0ef1109ca | 417502bee491e9284c14deb3f406388f61dac915 | refs/heads/master | 2021-01-19T17:05:02.624239 | 2017-08-22T12:17:28 | 2017-08-22T12:17:28 | 101,045,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | #!/bin/python
# -*- coding:utf-8 -*-
import time
import price as prc
import tushare as ts
import storage as sv
all_stocks = ts.get_day_all()
print("get data done")
sv.saveData(all_stocks)
print(all_stocks)
# all_stocks=pd.read_json(sv.readData(), convert_axes=False, convert_dates=False)
today = time.strftime('%Y-%m-... | [
"hxw1000@hotmail.com"
] | hxw1000@hotmail.com |
2f9eb9dbb5bd1d0fa2bd4fa9189d8c1ce3df8a45 | f920ae1517da25ddb7049e7b747cd60fe5972968 | /gmail_task_send.py | 4ddf8e7fbac8c6e97b8a9e710ed33c47f717c2bf | [] | no_license | Gennadiii/gmail_task_send | 99d19551e7e4b7754030d919d703b144f2f32955 | 87727318af874a07161f4742d86dea1e05dd720c | refs/heads/master | 2016-09-06T18:24:22.466728 | 2015-07-20T16:07:34 | 2015-07-20T16:07:34 | 38,819,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from datetime import datetime
weekday = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
year = datetime.now().year
month = datetime.now().month
day = datetime.now().day+1
now = datetime.now()
my_password = '1890_suMmer_dc1b'
if da... | [
"g.mishchevskii@gmail.com"
] | g.mishchevskii@gmail.com |
943aa56c2b2d28ef4ffcd3f9477b4315ff03045d | 493b79bc23a6712f216305cceb7244fd0e977d2a | /app/printer/__init__.py | 61ecb64b6fed7178e89adefb684d352c1534b29b | [] | no_license | oyjs1989/printbarcode | ba6296e47416368b113f4851ad45835dcd018418 | 686b44e4a8e6cf71f8cfbf5c969c5821de6e8762 | refs/heads/master | 2020-08-02T06:57:54.843811 | 2020-02-19T02:20:41 | 2020-02-19T02:20:41 | 211,268,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
# File Name: __init__.py
# Author : lumi
# date: 2019/10/24
# Description :
'''
# - Custom package
from io import BytesIO
from decimal import *
import win32print
import win32ui
from PIL import Image, ImageWin
# Inches to centimeters
INC_TO_C... | [
"junsong.ouyang@aqara.com"
] | junsong.ouyang@aqara.com |
fb63eb86ba45b49c48e19ce90953432a339665b5 | 068958a5207e898e7a6e4da25d8519f5388da8ad | /cowin.py | ab707dd8d002e37f9d36054c4199c004b10befbb | [] | no_license | abhinandnair/python-lab | fc6779c93f7b62c5a685dc51703db10e4d43e4b9 | ec6d793996c69d1db64a3b2d8c6d3e7a6602979c | refs/heads/main | 2023-07-06T05:42:30.223499 | 2021-08-12T12:23:24 | 2021-08-12T12:23:24 | 395,294,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | import requests
import smtplib
import datetime
d=datetime.datetime.today().strftime('%d-%m-%Y')
# 18 or 45
age=18
# No of people
tot=3
# Type of vaccination : COVISHIELD, COVAXIN ...
vacc="COVISHIELD"... | [
"noreply@github.com"
] | noreply@github.com |
3864e99d325479ebd91bb3d7904dc81efcdbfbe3 | 7e582bc00d46af49b0b5ad9cbb59fc57b65fe5e1 | /src/som.py | ddce051aae7d03a0c1f0015f569a378f04d27f07 | [
"MIT"
] | permissive | xdr940/som-mTSP | bd6e05a84359a14374c36d8e645b026837dfc3b9 | 7a1985818649a64f608566da3fd3b1af63c75d06 | refs/heads/master | 2022-12-11T08:45:47.572169 | 2020-08-28T11:20:50 | 2020-08-28T11:20:50 | 289,940,544 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py |
import numpy as np
#iner
from neuron import save_neuron_chains, get_neighborhood, rebuild_cities,init_neurons,get_routes,normalize
from distance import select_closest_gpid, routes_distances
import pandas as pd
from path import Path
from tqdm import tqdm
import json
import matplotlib.pyplot as plt
def SOM(args):
"... | [
"xdr940@126.com"
] | xdr940@126.com |
fcd6b9c8ef82277a97f5e3dabe98534d83711be4 | 53406879795222f757bf8611fa07c2120b6cbc01 | /project/Utils.py | 646c58059c32780c5acc9826afcca5bcd5c6c9ac | [] | no_license | choudharyhimanshu/rating-prediction-and-auto-summarization | 4dfaa81a0c8ebbb89cde5e0fbdd754f5d4f38867 | cd64f253d21e4205ff188a1b2420cca5d98db690 | refs/heads/master | 2021-01-22T06:23:18.932415 | 2016-08-31T15:15:23 | 2016-08-31T15:15:23 | 81,756,585 | 0 | 0 | null | 2018-10-14T17:15:27 | 2017-02-12T20:57:20 | Python | UTF-8 | Python | false | false | 1,226 | py | # @author : Himanshu Choudhary
# @home : http://www.himanshuchoudhary.com
# @git : https://bitbucket.org/himanshuchoudhary/
import numpy as np
from pandas import read_csv
import os.path
import project
# Globals
LOCAL_DIR = 'local/'
FILE_INP = open(LOCAL_DIR+'inp.txt','r')
FILE_OUT = open(LOCAL_DIR+'out.txt','w')
# ... | [
"himanshuchoudhary@live.com"
] | himanshuchoudhary@live.com |
f19b8be273679764a4d21955b4e6283bcba5d52c | 41e3065d6f29449251f1cc79cb340fa273ac5c61 | /0x11-python-network_1/4-hbtn_status.py | 9760dd4785428c240c719c71c1c380eb25f80b8c | [] | no_license | BD20171998/holbertonschool-higher_level_programming | 856fa3a7fcfafd3e17ebd7dd4cf9d3e5a609fd1f | bfa78d25bd4527e06cf1bf54cbc00722449d9a30 | refs/heads/master | 2021-07-16T01:58:42.911959 | 2020-11-15T07:18:19 | 2020-11-15T07:18:19 | 226,976,859 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/python3
import requests
if __name__ == "__main__":
html = requests.get('https://intranet.hbtn.io/status')
print("Body response:")
print("{}{}".format("\t- type: ", type(html.text)))
print("{}{}".format("\t- content: ", html.text))
| [
"robert.deprizio@gmail.com"
] | robert.deprizio@gmail.com |
c1bd5b7a534c9917052a84eb4d197464a75c398f | 10f6a39aa3ba7d61ebaec91cfa203bc03ed77cb0 | /middleware/stemmaweb_middleware/resources/base/__init__.py | cdf493d3c995a25cda064a83a35f067173f9f3e2 | [] | no_license | tla/stemmaweb | f32278ab11947dd0f0b0848fdfa7c58489d5738b | 0870a2ea6c8ff49dc6c20cbbbf7f757077a199af | refs/heads/d3bootstrap | 2023-08-06T09:19:56.681022 | 2023-06-28T10:45:49 | 2023-06-28T10:45:49 | 5,770,246 | 13 | 11 | null | 2023-07-15T00:54:33 | 2012-09-11T20:08:31 | JavaScript | UTF-8 | Python | false | false | 149 | py | from .api_client import APIClient
from .passthrough_handler import handle_passthrough_request
__all__ = ["APIClient", "handle_passthrough_request"]
| [
"dev.petergy@gmail.com"
] | dev.petergy@gmail.com |
d676188c2588e84de56202458db7503191525a1e | 715966248566909e4e8978230b37458d031418c5 | /01.jumptopython/chap03/책/126-02.py | 9e55500f0b6a62346082cb03961b4920774aabf8 | [] | no_license | itminha123/jumptopython | 1101f4e065ce2f8e0a1c68bb818b14b562fc43d1 | 8b25ae84f795eab5e7bcfa609646a2736ac2a98f | refs/heads/master | 2021-09-19T08:29:33.686384 | 2018-07-25T18:59:55 | 2018-07-25T18:59:55 | 112,169,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | coffee=10
while True:
money=int(input("돈을 넣어 주세요:"))
if money== 300:
print("커피를 줍니다.")
coffee=coffee-1
elif money>300:
print("거스름돈 %d를 주고 커피를 줍니다."%(money-300))
coffee=coffee-1
else:
print("돈을 다시 돌려주고 커피를 주지 않습니다.")
print("남은 커피의 양은 %d개 입니다."%coffee)
i... | [
"itminha123@naver.com"
] | itminha123@naver.com |
8bd850a7b050d7a43b4408f49cb5e8a1530dd597 | 540ba3ba15de706df1664ab39529b0008c822e76 | /manage.py | 949ea64d440cb247992df5df9ab7a4bd88616f20 | [] | no_license | Rampiskold/QuerySet-API | 8ce0771650ae1024e9b1db163445b13bcbdcfe87 | eb377162c3b672cd6aedc9a36393c6a106d4cf75 | refs/heads/master | 2021-05-15T15:35:54.612552 | 2017-10-18T09:54:28 | 2017-10-18T09:54:28 | 107,117,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "QuerySet_API.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"maksim.karpov.07@mail.ru"
] | maksim.karpov.07@mail.ru |
408491e006322a62395f8c6b6a009ef13abe8b3c | c566ceb33bfea62f4be98dd2f9536deaee46ac3e | /api/utils/custom_exception.py | 27388bf098fb1fd47d3af3feec46065ce054813d | [] | no_license | Saviodiow95/wallet_test | 1ad0e8f1699803ecca0ebf8c6a96b10efea980a3 | 4c2bf80332458b39197de134e914af669bbcc355 | refs/heads/main | 2023-07-04T02:25:11.321675 | 2021-08-02T12:28:40 | 2021-08-02T12:28:40 | 390,503,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from rest_framework.exceptions import APIException
class InsufficientFundsException(APIException):
"""
Exceção criada para retornar uma mensagem quando não houver saldo de um ativo para realizar o resgate
"""
status_code = 304
default_detail = 'Não é possível realizar o Resgate, Saldo Insuficiente... | [
"saviodiowflamengo@gmail.com"
] | saviodiowflamengo@gmail.com |
5ffe1321bf0f5aeab2336e9d2bf742e4f943f8d4 | b1213c567536bf490d45c0ab2de77ceeec9865e9 | /network_insight_sdk_generic_datasources/parsers/common/horizontal_table_parser.py | 050a55818188ba350b9edcf43236f5b066953d3f | [
"BSD-2-Clause"
] | permissive | vmware/network-insight-sdk-generic-datasources | 84992b1d4205c950707a536b44e246f38663960e | db3b19df7035f8d7124d155141cbe8071eb28d51 | refs/heads/master | 2023-08-17T15:37:12.005361 | 2022-06-02T04:11:32 | 2022-06-02T04:11:32 | 190,723,591 | 14 | 11 | BSD-2-Clause | 2022-01-27T15:42:28 | 2019-06-07T10:08:14 | Python | UTF-8 | Python | false | false | 4,037 | py | # Copyright 2019 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause
import re
from network_insight_sdk_generic_datasources.common.log import py_logger
class HorizontalTableParser(object):
"""
>>> horizontal_parser = HorizontalTableParser()
>>> import pprint
>>> header_keys = ['Mac Address', 'VTEP ... | [
"piyushr@vmware.com"
] | piyushr@vmware.com |
ea3c7df9f0e5316abbb0d9d4c9f74d3c9b6e2059 | ffbac9f52b780403e8a25a5f0a0b8a57e724efa5 | /meuprojeto/polls/admin.py | c58f534af0a48067fc84886ce29f95e2fbad56d6 | [] | no_license | pigaov10/django_tets | fa66e800e54bab0d680c6b419ac187753a09a5bf | 68c402daaf72018bbce794c5d01b536542366caa | refs/heads/master | 2021-01-11T07:07:34.414643 | 2016-10-27T16:35:23 | 2016-10-27T16:35:23 | 72,032,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from meuprojeto.polls.models import Customer, Category
@admin.register(Customer)
class CustomerAdmin(admin.ModelAdmin):
list_display = ('first_name', 'last_name','category')
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display ... | [
"pigaov10@gmail.com"
] | pigaov10@gmail.com |
afbde06d9758d8f6cb99f0c165487171b932e4a9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03399/s459988463.py | c485ed9fa7f3a1cbfbac8d9420a062d84304b2e3 | [] | 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 | 181 | py | # 数値の取得
A = int(input())
B = int(input())
C = int(input())
D = int(input())
# 料金の最安値を出力
train = min(A,B)
bus = min(C,D)
tbsum = train + bus
print(tbsum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
80f1e939b436a00953e7fbd2879d43c7a2d0dbeb | 115b11a4afa07f123a07bbd1a5c5c2ea8f7919cb | /interface.py | 0131a5e5f3ff1ef2cc3833b13bd012215afb6272 | [] | no_license | zlsa/acrobot | 1af2feb24d775ed152203ee4a2e1426c438418f4 | 455f8f296bccbb811ed183302dd6027c6560a921 | refs/heads/master | 2021-01-18T23:23:30.499267 | 2016-06-21T22:50:02 | 2016-06-21T22:50:02 | 38,547,821 | 2 | 2 | null | 2015-07-06T18:45:29 | 2015-07-04T21:12:20 | JavaScript | UTF-8 | Python | false | false | 774 | py |
class Interface:
def __init__(self):
self.acrobot = None
self.init()
self.start()
def start(self):
self._start()
print('connected with ' + self.TYPE)
def init(self):
raise Exception('do not use Interface() directly')
def handleMessage(self, text, channel, private=False):
f... | [
"jonross.zlsa+gitlab@gmail.com"
] | jonross.zlsa+gitlab@gmail.com |
be67b3d78dfe581cfe41e8bf0ac8acd188a3da8e | 2ad7e88305a7d2215a816e1aa3a82ef50b685b23 | /dshop/main/utilities.py | eacf75e1b907eea2ad161776d182389a5405e407 | [] | no_license | KeksikProg/shop_chairs | 5c9fb01f47676bb118fcc8161be1854e23271550 | 4bb09c409450cf2bb024c69d51d9f046520e9349 | refs/heads/master | 2023-06-26T17:21:27.678778 | 2020-08-06T16:28:29 | 2020-08-06T16:28:29 | 281,150,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from datetime import datetime
from os.path import splitext
from django.template.loader import render_to_string
from django.core.signing import Signer # Это для цифровой подписи
from dshop.settings import ALLOWED_HOSTS
from django.dispatch import Signal
from django.db.models.signals import post_save
def get_timestamp_p... | [
"fvvfvfvf.vfvfvfv@yandex.ru"
] | fvvfvfvf.vfvfvfv@yandex.ru |
fb6611af1e3c41bc28f7d5a20750174d22bc20f9 | 7f85ccc42aebc648877c74b1dd7a89687e54d037 | /pyschism/param/schout.py | 6b8bd3db059bb46aa1f96b9866757d78d8b27900 | [
"Apache-2.0"
] | permissive | pmav99/pyschism | 814aef9842302a96f3ac5a389ec9711fa4e8ca84 | b533d29b881da6cd4f408e91a4749f86451c042a | refs/heads/main | 2023-03-31T05:31:57.507829 | 2021-04-08T20:11:52 | 2021-04-08T20:15:34 | 356,035,592 | 0 | 0 | Apache-2.0 | 2021-04-08T20:09:17 | 2021-04-08T20:09:16 | null | UTF-8 | Python | false | false | 7,201 | py | from datetime import timedelta
import logging
from typing import Union
from pyschism.enums import (
IofHydroVariables,
IofDvdVariables,
IofWwmVariables,
IofGenVariables,
IofAgeVariables,
IofSedVariables,
IofEcoVariables,
IofIcmVariables,
IofCosVariables,
IofFibVariables,
Iof... | [
"jreniel@gmail.com"
] | jreniel@gmail.com |
f5540a46a0e86c10dd37d5d964135414abbf3679 | 4cbf8f80a2e3df5e02bf78328374dab3ac5ddc88 | /jianzhi/i32_level_order.py | 4eb964424ccc3bad46d969d850faace9797b12ed | [] | no_license | achenachena/leetcode | be8d3d49135ea1f564beb5ea0c298ead471d4d4d | f76a7da009cb0819b53c4d59576ce9a8c95834fd | refs/heads/master | 2022-07-30T15:09:04.495430 | 2020-05-24T18:08:01 | 2020-05-24T18:08:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | '''
@Author: your name
@Date: 2020-05-06 04:26:37
@LastEditTime: 2020-05-15 12:20:50
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: /leetcode/jianzhi/i32_level_order.py
'''
# -*- coding: utf-8 -*-
from collections import deque
# Definition for a binary tree node.
class TreeNode:
... | [
"lmcmelon@gmail.com"
] | lmcmelon@gmail.com |
5e0e21add3475faa613c2f8a4fd20de548899b3b | 801a09681e7a9717b0a0907bf4a4fa9b1f59522f | /rentomatic/docs/conf.py | c265620109223922ad5bcbc0e1a0d2be742ff945 | [
"MIT"
] | permissive | AndreasArne/Clean-Architecture | 6f8bd95c349345b5e44ff35d90e821cf2244b8fa | 2f838aff7698918a45ee2d92e1fa294d2f130d5b | refs/heads/master | 2020-04-30T08:07:22.241507 | 2019-03-25T15:12:12 | 2019-03-25T15:12:12 | 176,705,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,450 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# rentomatic documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# 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
# ... | [
"andreas_osby@hotmail.com"
] | andreas_osby@hotmail.com |
cc1c5af056005d0f810c333d0941eb57b546c1f4 | dc0f3bfce8f913ff195456bd972e9693e4eff7fc | /Stepik Python tasks/Math functions.py | 6b419f8273568a41164c62d4407a21eb87554b0f | [] | no_license | sergeymong/Python | 45b21a8c9d581382d526c5e123b971586e9a0b84 | 4a0bc7141d031ab83e8a2281456fbc1cf82c148d | refs/heads/master | 2020-04-19T13:31:14.290082 | 2019-11-04T17:03:38 | 2019-11-04T17:03:38 | 168,219,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def f(x):
if x <= -2:
return 1 - (x + 2) ** 2
elif x > 2:
return (x - 2) ** 2 + 1
else:
return -1 * x / 2
| [
"s.sidoroff2011@gmail.com"
] | s.sidoroff2011@gmail.com |
e2f497f409c43fe801c57be417ded2092b25d78d | b3e393d16b25d55a29df50d780a1a68ef25f5bd0 | /ETL/code/4__ScrapeDrugbank.py | ee9091848b999908d81acb2ffd23ea9ba531fd29 | [] | no_license | bjmcnamee/Expert_System_Content_ETL | c52c977d6906dbb36e6174c2236d5654b9dded0d | 43be2988550763dcdf446f1ca57de720cbe70da3 | refs/heads/main | 2023-08-16T20:58:05.710892 | 2021-09-14T15:31:56 | 2021-09-14T15:31:56 | 404,698,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,377 | py | """
Scrape all drug data for each drug from Drugbank website
Use cfscrape to avoid Drugbank using Cloudshield to block better known scraping modules
Use random time intervals to simulate human calls
Scrape all data as one blob until requirements better defined
import time, random, requests
time.sleep(random.randint(1... | [
"69517134+bjmcnamee@users.noreply.github.com"
] | 69517134+bjmcnamee@users.noreply.github.com |
fd0c93ec47ca70c94d9bc8e470186eac42081257 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_counselled.py | 4ca2e9c494bd4785c5c7bc4a66f6f1113eba6619 | [
"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 | 230 | py |
#calss header
class _COUNSELLED():
def __init__(self,):
self.name = "COUNSELLED"
self.definitions = counsel
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['counsel']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e8cbd664bb69965259aed7df9ffda6a6e1708bd8 | e7fd253ddf7665083abe125a37dafea1e2380c47 | /venv/bin/rst2xml.py | 1e8a82f2c809316cacab5c5be1b233a1ff61a9e0 | [] | no_license | amitgupta1985/albums | b788d3558c59c97b4f3c24ea337c294334fe37da | a5acc07403221f817c62a665c4830c40e79b0e9a | refs/heads/master | 2020-06-24T01:06:29.082521 | 2019-07-25T09:40:50 | 2019-07-25T09:40:50 | 198,802,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/home/kiwitech/albums/venv/bin/python3
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import locale
locale.s... | [
"amit.gupta@kiwitech.com"
] | amit.gupta@kiwitech.com |
de4704ed4cdba217c126a66d51738d3393fbff47 | ff4b1c283a7a73935843ca6476eda1bef4ee604b | /test/sample_from_the_prior_test.py | 04e5c6b2cbe7690eeff94254513eaf61cc4eee4c | [
"MIT"
] | permissive | WuShichao/bilby | 2e367838e827d49a416d3bf96c8fc32ad6837fc2 | 70aa5fd2becc82eb0a0ab939928fd11197a27790 | refs/heads/master | 2020-06-18T09:33:31.567302 | 2019-07-07T07:29:08 | 2019-07-07T07:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,105 | py | from __future__ import absolute_import
import shutil
import os
import logging
import unittest
import numpy as np
import bilby
from scipy.stats import ks_2samp, kstest
class Test(unittest.TestCase):
outdir = 'outdir_for_tests'
@classmethod
def setUpClass(self):
if os.path.isdir(self.outdir):
... | [
"gregory.ashton@ligo.org"
] | gregory.ashton@ligo.org |
41f084ac87473ee0652c70eb453cc78620f158e5 | 0c683c2859cee467f05dc0a60b44f3bf4548af7b | /tencent_job_spider.py | 89cd17cb7e3047e31fc6b2f02053c4d4ef4b3ccf | [] | no_license | MapleFoxWyl/Spider | 2d3df051d17d1b278e63cdc963708ee30e666cd5 | d79c777368c750e8be30eb696b0c0112f8dfd7fc | refs/heads/master | 2020-07-06T08:16:44.930009 | 2019-08-18T03:09:46 | 2019-08-18T03:09:46 | 202,952,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | import requests
import json
import time
import random
from useragents import ua_list
class TencentSpider():
def __init__(self):
self.one_url = 'https://careers.tencent.com/tencentcareer/api/post/Query?timestamp=1563912271089&countryId=&cityId=&bgIds=&productId=&categoryId=&parentCategoryId=&attrId=&keyword=&pag... | [
"522068055@qq.com"
] | 522068055@qq.com |
bfef42790dcf2535100c88b270582a22e88aab90 | 431a326dd877d56a3f2f2d73491bf38e7da2c632 | /acuity.py | 6aed530ac06dc8a804ca2168ff3d487f52cf70f4 | [] | no_license | loganbest/acuity_calendar | 078905f84ed49ff5e6bb86fb41cf6ec1ebc41831 | cfe6390dc7068485ab123d405fc3c61c7820a7bc | refs/heads/master | 2020-09-28T09:51:16.922741 | 2018-06-13T01:27:28 | 2018-06-13T01:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | """This module handles all interactions with the Acuity API"""
import requests
import json
import datetime
import logging
import constants
import local
logging.basicConfig(filename='acuity_calendar.log',
level=local.LOG_LEVEL)
def get_appointments(start_date=None, end_date=None):
"""
For... | [
"charlotte.ann.mays@gmail.com"
] | charlotte.ann.mays@gmail.com |
3ffa3a1025a8bcc8aa95470516b4fee41eef8e44 | d3e34ab2952a9fe8cd24e2852ceb114f74922143 | /tools/codechecker_report_hash/setup.py | 9cc17562fb031af56e7a6d46f83cc347a3c63ee4 | [
"LLVM-exception",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nettle/codechecker | e2d2f24a669996118af56c7d43160e1f287adf61 | 1cc5855c7c2820b2a1dccb8c2a6fac1e19b344ab | refs/heads/master | 2023-03-30T14:07:25.190423 | 2021-04-06T09:32:00 | 2021-04-06T09:32:00 | 347,065,829 | 0 | 0 | Apache-2.0 | 2021-03-12T12:53:37 | 2021-03-12T12:53:37 | null | UTF-8 | Python | false | false | 923 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="codechecker_report_hash",
version="0.1.0",
author='CodeChecker Team (Ericsson)',
description="Module to generate report hash for CodeChecker.",
... | [
"csordasmarton92@gmail.com"
] | csordasmarton92@gmail.com |
844516a06966170662e625b945a48b97ae21e0a8 | 9112f8c89ece1d613db4ce6a4bf2c944d068a526 | /hrms/leave/migrations/0001_initial.py | 5dc20343349e95608346904d09e081b95f4628fe | [] | no_license | vinodp9200/vinodp9200-Ecommerce | 0f03306f8461738148f422765040813207066545 | c33b35fd51e877e0ed370eafdaeca67f334e0569 | refs/heads/master | 2023-01-31T17:42:31.629313 | 2020-12-16T05:04:14 | 2020-12-16T05:04:14 | 321,437,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # Generated by Django 3.1.1 on 2020-12-09 05:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='emp_Leave',
fields=[
('id', models.AutoFiel... | [
"vinodpalr2020@gmail.com"
] | vinodpalr2020@gmail.com |
d6b79f195e1024837521c156da24a89a80dfdd1a | 7cde5f3c213573310c030e272b3075270106962b | /venv/Scripts/pip3-script.py | edcdaea0e93e091203d7cf78469c821f41e5baa4 | [] | no_license | sumitpagrawal/battle | 85f2b76efebb7795cd99db9420ea661710e18242 | 03a1f964e89b425d1f97c0d1705bfe2300060ba8 | refs/heads/master | 2020-03-11T03:22:56.787408 | 2018-04-19T02:39:37 | 2018-04-19T02:39:37 | 129,745,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!C:\Users\Sumit\PycharmProjects\battle\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"sumitpagrawal@gmail.com"
] | sumitpagrawal@gmail.com |
71d0fc6b7b0fe5866403206456913e6071645006 | b5a49ef919765317aa503d31d1374a7425d73e88 | /ghost/modules/click.py | 881feae1b864bd8cbb95440eab3d3c869dd29168 | [
"MIT"
] | permissive | THURA99JAY/Ghost | 8c664953ccab64ace8bd45aade2ce06870284a39 | 6b1f853541e235032b21cbdaba6a7cee38a9f944 | refs/heads/main | 2023-07-01T21:30:57.301720 | 2021-07-31T21:15:20 | 2021-07-31T21:15:20 | 393,474,665 | 0 | 0 | MIT | 2021-08-06T18:59:47 | 2021-08-06T18:59:46 | null | UTF-8 | Python | false | false | 1,736 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020 EntySec
#
# 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,... | [
"noreply@github.com"
] | noreply@github.com |
83cfcf533360789fef7232e6dfebd4bffaa64316 | aad5ec1eb9988e53ca6e12dc49f21e11c28c2094 | /flask_app/__init__.py | 08ee534b5b5bec673e7720426ebdcdd4d5a034ed | [] | no_license | jase-k/validationsample | a93615abbf62cb900d733d587f51613588e46a8c | e02a5aba475daf93b0ad40ca2a522577d388d6dd | refs/heads/master | 2023-08-03T01:07:29.313926 | 2021-09-14T22:58:05 | 2021-09-14T22:58:05 | 406,251,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from flask import Flask
app = Flask(__name__)
app.secret_key = "I Don't Have a Secret" | [
"jase@perfectmypodcast.com"
] | jase@perfectmypodcast.com |
76105866fd352439a4e5356f8e3a949276b3454d | 8bc55ae3b8ed4835f2aeb7c971db9526a96a2da7 | /exercise/ex_if_else.py | 809ce4e4422f951317d6d6f15ce889302fb79d98 | [] | no_license | pavichaya0509/workshop2 | f67f916bee18a694243a9950a6220b1d8b954c09 | d87b4095393c1bddaf3c3791db71ebc9c3a6b4f5 | refs/heads/master | 2023-03-16T17:07:28.950426 | 2021-02-20T15:54:38 | 2021-02-20T15:54:38 | 328,288,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | score = int(input("Enter your score : "))
if(score >= 80):
print("grade : A")
elif(score >= 75):
print("grade : B+")
elif(score >= 70):
print("grade : B")
elif(score >= 65):
print("grade : C+")
elif(score >= 60):
print("grade : C")
elif(score >= 55):
print("grade : D+")
elif(score >= 50):
pr... | [
"pavichaya.so@gmail.com"
] | pavichaya.so@gmail.com |
0e10bb119dad92159c84d65e61fbe16a80bca333 | 10f0193389a161c447061d06a87c4fae8fc31bb5 | /huobi/model/orderupdatenew.py | 51c567837fd5cfda68b30d5a52efdf3ac769b7be | [
"Apache-2.0"
] | permissive | neosun100/huobi_Python | 1d9fca2c24673076516d582c263445c17626bd8e | 70b280f751e6159b76f0cc43251896a754c1b559 | refs/heads/master | 2021-01-14T16:47:30.471992 | 2020-02-24T08:45:40 | 2020-02-24T08:45:40 | 242,685,209 | 0 | 0 | Apache-2.0 | 2020-02-24T08:38:33 | 2020-02-24T08:38:32 | null | UTF-8 | Python | false | false | 2,896 | py | from huobi.model.constant import *
class OrderUpdateNew:
"""
The detail order information.
:member
match_id: The Match id for make order.
order_id: The order id.
symbol: The symbol, like "btcusdt".
state: The order state: submitted, partial-filled, cancelling, filled, canc... | [
"devin0thinking@gmail.com"
] | devin0thinking@gmail.com |
d422fa3d83e6acc40a32edb54233865e7f7b1346 | 8c09bff52e088ed120138f891d4f7e8a2c846d1c | /market/admin.py | 36d8acb314d189fe1cd2774fcc8b1ac121a80574 | [] | no_license | evjeny-23/it-class | 1d23e466a0a1a8546db556caf2888323c4aae2ee | 807a8ff4d0adc15c5bf9e00591d24adc3f74081e | refs/heads/master | 2022-12-23T21:26:45.377278 | 2020-10-01T12:46:28 | 2020-10-01T12:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from django.contrib import admin
from django.utils.safestring import mark_safe
from .models import MarketProduct, BoughtProduct
class MarketProductAdmin(admin.ModelAdmin):
list_display = ("show_image", "product_name", "product_size", "product_color", "price", "remained_amount")
search_fields = ("product_name... | [
"karimhamid@yandex.ru"
] | karimhamid@yandex.ru |
52bad13f94b0f90846709fba274572fa370e643a | c085578abc19db18ee0766e1f9598d79a3acdbe1 | /18-4Sum/solution.py | c5448eab17a5a88cac8e2880a4fc80d1a1c7a04b | [
"MIT"
] | permissive | Tanych/CodeTracking | efb6245edc036d7edf85e960972c34d03b8c707a | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | refs/heads/master | 2020-05-21T17:40:10.105759 | 2016-10-09T18:20:42 | 2016-10-09T18:20:42 | 60,616,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | class Solution(object):
def nsum(self,nums,start,n,target):
nlen=len(nums)
res=[]
if nums[start]*n>target or target>nums[nlen-1]*n:
return res
for i in xrange(start,nlen-n+1):
if i>start and nums[i-1]==nums[i]:
continue
if ... | [
"ychtan@email.gwu.edu"
] | ychtan@email.gwu.edu |
131e5f7675a08201bf174f5743a478c12c0adf35 | 895bf09d8d5edb3166a84b7c63844e6e9ee9285d | /pages/civs/script.py | 1483a4c28e0c9c7041fcec893b86b8e2081b8cb6 | [] | no_license | masouto94/MikeEmpiresPage-Souto | 673923d92eef721049a0d91b07cf692f3761fdd3 | 5a83bc2dae3e11af80efe449b51500e661b057a0 | refs/heads/master | 2023-08-02T02:10:24.438621 | 2021-09-18T19:35:09 | 2021-09-18T19:35:09 | 356,630,181 | 0 | 0 | null | 2021-09-18T19:35:10 | 2021-04-10T16:01:29 | HTML | UTF-8 | Python | false | false | 4,468 | py | civs = ["Aztecs", "Berbers", "Bohemians", "Britons", "Bulgarians", "Burgundians", "Burmese", "Byzantines", "Celts", "Chinese", "Cumans", "Ethiopians", "Franks", "Goths", "Huns", "Incas", "Indians", "Italians", "Japanese", "Khmer", "Koreans", "Lithuanians", "Magyars", "Malay", "Malians", "Mayans", "Mongols", "Persians"... | [
"masouto94@gmail.com"
] | masouto94@gmail.com |
07b3b40ad34aff216a91bb3b4c459a5c01394154 | 3ed20d944d33c7c94300f323056d2819b74063cb | /census_builder.py | d8270df429d4f69fa6b22cd957dd49114bcd2820 | [] | no_license | millerg09/covid19_viz | c784be3c6c854f4741ff49c7fcd8c0d583a88f42 | 0632e12c83b305c2cc5a8c5cb152abf4262de52b | refs/heads/master | 2023-07-28T18:13:08.938347 | 2021-09-11T12:29:12 | 2021-09-11T12:29:12 | 288,297,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py |
county_df = "raw county_df"
state_df = "raw state_df"
print (county_df)
print (state_df)
def census_build_county():
import pandas as pd
path = '/Users/gabriel.miller/Desktop/python/covid19/census/'
county_file = 'county_pop.csv'
county_filepath = (path + county_file)
global county_df
county_d... | [
"noreply@github.com"
] | noreply@github.com |
b9a405d1957f9cf5a3cbaa1f556f7b98e1945f42 | 18c91e716b153a87750cb1eea590af8992841d2a | /19_jan.py | 4c94bb15af37a647a1b30fe023f602d488035705 | [] | no_license | willowkim8/basic_python | 570c75d6f3de566444ce4599e8dc7bd749d91abf | e34b4d6fd50cac24534f295a1be053733a29194c | refs/heads/master | 2023-05-10T08:33:59.665097 | 2021-06-24T14:38:54 | 2021-06-24T14:38:54 | 377,054,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | n = 1
n += 1
print(n)
# n++
print(n) | [
"[kin7605@naver.com]"
] | [kin7605@naver.com] |
1ad8e97dd542ba0a2310670381e40b114cef0bc8 | cd67fbaec6ba71fdd10ac8dd23e034d7df706aa3 | /bootstrap/urls.py | 1db8a20ee1f67439cdb7324c6c4e7e6e93525396 | [] | no_license | ssyctlm/feb27 | 009310d09bc866d7432576d4a867b63591009cbb | 8c666cf584e1589d06be16ba8b1266cb27646f39 | refs/heads/master | 2020-04-25T15:16:55.957159 | 2019-03-19T13:41:07 | 2019-03-19T13:41:07 | 172,873,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.urls import path
from .views import (
index_view,
about_view,
services_view,
contact_view
)
# app_name = 'articles'
urlpatterns = [
path('',index_view,name='home'),
path('about',about_view,name = 'about'),
path('services',services_view,name = 'services'),
path('contact',cont... | [
"none"
] | none |
6776e80c22de34a113e05c6441930036545a19d3 | 5d038bc83d8ef64bf8ca5f2f1033df55b945e5cc | /app.py | 9360f2b82b9da36fa15b9e78b11f47b83bd6c155 | [] | no_license | faldyif/faldy-line-bot | 24b4eab94ed54c2eee498a6bbd720cd34868729b | 6847e09d34a45828f48fc2d719793a264f0fad6c | refs/heads/master | 2021-03-22T03:34:08.213299 | 2017-03-08T14:28:26 | 2017-03-08T14:28:26 | 83,983,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,851 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"faldy.if@gmail.com"
] | faldy.if@gmail.com |
afb65c01688b4d643cf2e36b64b8448bb6412dec | d93ffd55c429d1969da3a2d469f97a474acaca7d | /338_counting_bits.py | 10493e9e122dae27dcc4dfdcae4b17694e26e355 | [] | no_license | kingofyeti/leetcode-py | ed03a1f20f15c7711874b70d88740d99c8942823 | a7923bf36825b89279e2aa7a0f6cf868992b62b0 | refs/heads/master | 2021-01-10T08:26:53.189298 | 2016-09-28T01:44:56 | 2016-09-28T01:44:56 | 54,414,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | class Solution(object):
def countBits(self,num):
res = [0] * (num+1)
res[0] = 0
for i in range(1,num+1):
res[i] = res[i>>1] + i%2
return res
solution = Solution()
str_in = raw_input()
print solution.countBits(int(str_in))
| [
"kingofyeti@gmail.com"
] | kingofyeti@gmail.com |
c58a2822a8b2f076e9a160e83586e96d05145cb5 | 12587cb1f583b9f540b24d92eb19eb6eee449b12 | /extractFeatures/aligner.py | 561fe94ad0d8879a672c0077dd68b2fb0775db28 | [] | no_license | daltonfury42/EarningsCall | a023166b2a3fbe63a7c626a9705fe34ff5674efd | 6d5ef7faea6219f6b9151d8d33ad9cdf22fa7446 | refs/heads/master | 2020-04-25T14:13:28.692206 | 2019-07-29T08:23:26 | 2019-07-29T08:23:26 | 172,834,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import os
from aeneas.executetask import ExecuteTask
from aeneas.task import Task
def getAlignmentBatch(mp3sDir, transcriptsDir, outDir):
for mp3FileName in os.listdir(mp3sDir):
mp3Path = os.path.join(mp3sDir, mp3FileName)
base, _ = os.path.splitext(mp3FileName)
transcriptPath = os.path.j... | [
"daltonfury42@disroot.org"
] | daltonfury42@disroot.org |
0f5f1969684853c5bfb82e37ea39ef023dc5a7fa | 747ef767341c4e6ecd1cad733fc84781951f2424 | /class2/problem4/leap.py | c9cde162e417916a303fe7251559b4d4d150c666 | [] | no_license | islami00/csc102 | 4cdfd761814bab0d7ef45f2270aa70bf411d233b | 93c89f7b087ff90c34b508b12d654c42857adbd2 | refs/heads/main | 2023-06-19T06:27:47.620859 | 2021-07-15T16:25:10 | 2021-07-15T16:25:10 | 348,317,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # write a program to determine if a year is a leap year
# using the assumption that leap years happen every four years
year = int(input("Enter the year: "))
if (year % 4) == 0:
print("This is a leap year")
else:
print("This is not a leap year") | [
"islam@gmail.com"
] | islam@gmail.com |
f9348d48ee596bc1cd89fca043043b4b52b931d2 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/impairment/profile/accumulateandburst/accumulateandburst.py | 091ec9d83b6e627d30bda819aaea8952ba46111d | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 7,559 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
494b5076431ac1e464e23d07bb6a2af77496a1af | 83a922ce0e7eb5ca873ce914da22c103aa16796a | /auto_deeplab.py | 3cf8cd2a54637909a85e5321248ea17c9de43594 | [] | no_license | vdesgrange/PC-AutoDeeplab | db81ed920847427638fb8f4d200d05f6837764b6 | 4f54cf4d61937c9ab7fbe076d1a4756441643cf4 | refs/heads/main | 2023-06-27T09:43:45.517883 | 2021-07-27T18:54:32 | 2021-07-27T18:54:32 | 345,980,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,790 | py | import torch.nn as nn
import cell_level_search
from genotypes import PRIMITIVES
import torch.nn.functional as F
from operations import *
from decoding_formulas import Decoder
class AutoDeeplab(nn.Module):
def __init__(self, num_classes, num_layers, criterion=None, filter_multiplier=8, block_multiplier=5, step=5, ... | [
"viviane.desgrange@gmail.com"
] | viviane.desgrange@gmail.com |
54b3fb09a714ec5a1351f654d18607bf36a6fb43 | 6c3aee35622a0c95a3db23caf3569879266e36ec | /bla.python | e75c9a82d0a28625e378d341b8ffa98ec05de34f | [] | no_license | grahamjenson/Thesis | d1e0b8642412729d1a5aaa706b91509d5cbbd77f | 1e46123f8717db911a99bb3ce6ddcc602d6e4892 | refs/heads/master | 2021-01-10T21:36:23.421145 | 2013-02-21T01:36:35 | 2013-02-21T01:36:35 | 1,709,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | python | #!/usr/bin/python
import os, shutil
files = os.listdir("frames")
files = sorted(files)
day = 86400
firstday = int(files[0].split(".")[0])
files.reverse()
def finddate(time):
for f in files:
if time >= int(f.split(".")[0]):
return f
days = map(lambda x: x*day+firstday, range(550))
files = map(lambda x: finddate... | [
"grahamjenson@maori.geek.nz"
] | grahamjenson@maori.geek.nz |
9c236b8cb977e6a818081e19adca391095b1ac2e | 421dfd22cbe7466a2810bb5e583629065575d2a2 | /app.py | fbdc641effede456cd18b4af0055f05f3a9e290d | [] | no_license | anbellouzi/playlist | 025918f57bfe45ea10f0c218c3a590390fa1af88 | 828517b881e8243b47dfa759b10e19aea45c5914 | refs/heads/master | 2021-06-27T02:28:44.039159 | 2019-10-02T19:33:24 | 2019-10-02T19:33:24 | 210,905,665 | 0 | 0 | null | 2021-03-20T01:42:23 | 2019-09-25T17:45:37 | HTML | UTF-8 | Python | false | false | 3,668 | py | from flask import Flask, render_template, request, redirect, url_for
from pymongo import MongoClient
from bson.objectid import ObjectId
import os
from datetime import datetime
# client = MongoClient()
# db = client.Playlister
# playlists = db.playlists
# comments = db.comments
# db = client.get_default_database()
h... | [
"com.anas.idms.appleid.prd.001784-08-5d674918-865b-4553-9bf0-c2326b981e34@AB-Macbook.local"
] | com.anas.idms.appleid.prd.001784-08-5d674918-865b-4553-9bf0-c2326b981e34@AB-Macbook.local |
0776ae797be800d35b6d8aeecc601238fd8aba5a | d605f88c4502558ffdce5de49f482fdebda958ec | /blog/forms.py | 85f14773f24ebb0dc960e04fedbd6701315f84b5 | [] | no_license | conorcunningham/cunningtek-blog | 23cafde32ca5442c00cd0f00162c499da8cbe824 | 1720c8d6a5f1d22d50b2290089b495c3e7b11e15 | refs/heads/master | 2022-12-28T08:46:19.493758 | 2021-09-13T17:31:05 | 2021-09-13T17:31:05 | 187,885,116 | 0 | 0 | null | 2022-12-09T05:19:31 | 2019-05-21T17:34:49 | JavaScript | UTF-8 | Python | false | false | 267 | py | from django import forms
from .models import Post
class NewPostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['title', 'content']
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['content', ]
| [
"conor.cunningham@gmail.com"
] | conor.cunningham@gmail.com |
681bf3f5e02101ef7c28f29c40342638dcfc7dc1 | 20bb54d94706882747f882a7b0d0112d9a5e28d7 | /path_recorder.py | 2fa3f4286c0ffcbc209a7cfde3f45318c63d90cd | [] | no_license | l1th1um/carla_indy | f09484331a6eebe6eb030c63449b35a46caf4d5a | c9e2720d1b10490ca0f007459afa7913aa9348ef | refs/heads/master | 2023-04-15T12:39:47.605327 | 2020-10-02T21:10:38 | 2020-10-02T21:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,311 | py | import carla
import matplotlib.pyplot as plt
import numpy as np
import math
import time
import pandas as pd
actor_list = []
df = pd.DataFrame()
def main():
global df
global actor_list
### CONSTANTS ###
target_lane = -3 #Center lane is -3
target_speed = 30 #Target speed of vehicle
i =... | [
"charleydorn@gmail.com"
] | charleydorn@gmail.com |
6f3fe8d723163b4d35395847a920491d85c4098b | 7f880fc333b41738ba438ebe000e050f4c9a5e73 | /bin/loc/install_drop.py | 60c49edb4155348d45e273081637d78062315dd9 | [
"Apache-2.0"
] | permissive | Gamezpedia/PicEditor | 4d684d99bf8349928dfdefe4f4073d67eaf22087 | cc131b0a1aeb27cc070c9834239db46ccf970efa | refs/heads/master | 2021-05-27T12:23:04.365047 | 2013-02-28T18:15:58 | 2013-02-28T18:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,876 | py | #!/usr/bin/env python
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"darrin@massena.com"
] | darrin@massena.com |
c2ca14ffa72965d066e857dff2719c1fd22cc942 | 019fc8d5fcf54af9b4551dd85ce4c04b28faa899 | /tests/test_feer.py | 00d0c851f209447bc5f2635d21e28584fb15afc2 | [
"MIT"
] | permissive | danilosoba/feerci | fbdbe9e461a9b3c8a480d519e53946dffe9db03d | 801a44af6768556dc9fadc44ede496ec06d48764 | refs/heads/master | 2020-04-10T20:00:06.199225 | 2018-06-21T14:31:36 | 2018-06-21T14:31:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from feerci import feer
from unittest import TestCase
import numpy as np
class TestFeer(TestCase):
def test_feer_happy(self):
genuines = np.linspace(0, 1, 100)
impostors = np.linspace(-.5, .5, 100)
eer = feer(impostors, genuines, is_sorted=True)
assert eer == 0.2525252401828766
... | [
"feerci@example.com"
] | feerci@example.com |
1590c8a21953b984ab6718b7973bacc186669add | 05bbf60e4694567eab0067b98e460375b8279b74 | /goPython/client.py | f4a4fdd86d82e7c69286ebf7a8fac6cf16020b7c | [] | no_license | mariabiubiubiu/gotest | c9eb2756314c6f0f7dfc97ca5277c3b495df499e | 5dd9c156d6884269f9bbdd5506485273edd9f292 | refs/heads/master | 2020-04-04T14:03:36.392780 | 2019-02-20T07:30:22 | 2019-02-20T07:30:22 | 155,985,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #client.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, glob, time,datetime
#sys.path.append('./')
#print glob.glob('libpy/lib.*')
#sys.path.insert(0, glob.glob('libpy/lib.*')[0])
from gen_py.my.test.demo import ClassMember
from gen_py.my.test.demo.ttypes import *
from thrift import Thrift
... | [
"muweijia@zhuge.com"
] | muweijia@zhuge.com |
0dc7ba881a38e47eb3224fc79c1c858023cd34df | 7f769d209a429b8a3dae9ce4362fc8ce5c6f2a31 | /test_wjx2/venv/bin/pip3 | 90ac619f12a632dce94ecd989604bdbf16a7ed0e | [] | no_license | 18301096410/test_dev3 | 65bfb584a47bb7114d4407aa4d05eabc137d85ab | 9a735f860ecab4f38986855a62af6ddced9d37b1 | refs/heads/master | 2020-08-28T19:16:25.050314 | 2020-04-21T10:19:51 | 2020-04-21T10:19:51 | 217,796,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/Users/wangsijia/PycharmProjects/untitled6/test_wjx2/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wangsijia@wangsijiadeMacBook-Pro.local"
] | wangsijia@wangsijiadeMacBook-Pro.local | |
7edcaba43b7db97969164085d4cab9802ba6f756 | 30a88276aa31367ca79d56058d750582291017fb | /python7.py | 3b64ff40e5abd9f86d0d7e2806db28c88f12e5c4 | [] | no_license | sajandc/Python-Tutorial | 56317f1ef8ee4697cac7359fdbebba645eb8251b | c3f0ba8a36d339a8057ced02d0da38fa1b3d4124 | refs/heads/master | 2020-03-09T13:12:10.411816 | 2018-04-09T16:59:29 | 2018-04-09T16:59:29 | 128,804,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | x=input()
y=x.split(',')
r=int(y[0])
c=int(y[1])
multilist=[[0 for i in range(c)]for j in range(r)]
for i in range(int(r)):
for j in range(int(c)):
multilist[i][j]=i*j
print(multilist)
| [
"noreply@github.com"
] | noreply@github.com |
173f9b783d3033c4edc6bd203f6145a9d52d9831 | 160dc0671926415b3ec06fa5ef62a2ffb1839722 | /process_video.py | 44ed25931c8dcf1c80980b14fa2c4004a5b9fb79 | [] | no_license | arbuzov751/STC_toloka_project | ee4d66e60f019ecfdade8906199906d96d53e07d | 10675013e2e1cff47fbfe2e983439f82a1fbf995 | refs/heads/master | 2022-11-11T12:58:44.752949 | 2020-07-07T19:26:32 | 2020-07-07T19:26:32 | 244,383,433 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,731 | py | #!/usr/bin/env python3
import argparse
import requests
import os
import sys
import glob
import pandas as pd
from tqdm import tqdm
# import cv2
import datetime
sys.path.insert(1, '/home/arbuzov_misha/STC_toloka_project')
import settings
# def modification_date(filename):
# t = os.stat(filename)[8]
# #t = o... | [
"arbuzov751@rambler.ru"
] | arbuzov751@rambler.ru |
720efd4d9680f6c52878542ad045aff577e5aa38 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/Configuration/test/test_cfg.py | 7fc7d9770ab2228f60b31accaf28c59b6b4e80a7 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 843 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryTest")
process.load("Configuration.StandardSequences.Reconstruction_cff")
process.load("Configuration.StandardSequences.FakeConditions_cff")
process.load("Configuration.EventContent.EventContent_cff")
process.load("Configuration.StandardSequenc... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3948df57c4da697119c8d9df0bfa7ee2f3f8f9ff | 46983e92030970e3921ed3ad44eebcdda5c95f82 | /graafikud.py | 2e7dca72d66175c7178e36cc6bf5c7f5b90516dd | [] | no_license | IlvesPriit/Projekt | 0e06dd15f17eb96822e99760d664df011100f255 | 762f1e79ee1fb7c75eda5367449e7ff804b72d8a | refs/heads/master | 2020-05-18T15:11:19.976095 | 2014-12-18T05:22:17 | 2014-12-18T05:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | from tkinter import *
info_aken = Tk()
info_aken.title("Statistika")
info_aken.configure(background="white")
tegevus="tegevus"
sektor_diagramm = Canvas(info_aken, bg="white", width=400, height=400)
sektor_diagramm.grid(column=3, row=3, padx=5, pady=6)
coord = 360, 360, 10, 10
osa = sektor_diagramm.create_arc(coord, st... | [
"karin.kruup16@gmail.com"
] | karin.kruup16@gmail.com |
907cee420daa4d2150abc8995995b45c5a41b8aa | ccb325ff688649d236b37b4cd31c5da248d61dde | /visual/visualisation.py | 40870b1a4383d19e612c3b589389481eea0aff37 | [] | no_license | Barbacamanitu/particle_filter_localization | 8280341f70e2b3637699399cf610ea35cd22f172 | 92ab767bfd551f3eda27ea55a22deca9a180a34e | refs/heads/master | 2020-04-21T19:43:56.401542 | 2019-02-15T18:37:37 | 2019-02-15T18:37:37 | 169,817,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,923 | py | import pyglet
import math
from pyglet.window import key
import sim
import numpy as np
import dmath as dm
def center_image(image):
"""Sets an image's anchor point to its center"""
image.anchor_x = image.width // 2
image.anchor_y = image.height // 2
def createGraphics():
pyglet.resource.path = ['./reso... | [
"russmbiz@gmail.com"
] | russmbiz@gmail.com |
ab6270346ec3364faec84bb9685d71a0d7fede34 | f9d428a3340c21437dad0b02bbf7025984969c7f | /pca_main.py | 4e48a2fb5016adb52b09581fba0bb7bf572328fe | [
"MIT"
] | permissive | amrufathy/face-ification | c9ed9fe953a40f780d908671830a56b9687fc6dd | 409b851df1777dd987450ff5bf767d594f9dc8a8 | refs/heads/master | 2021-05-08T03:01:43.113591 | 2017-11-02T21:00:08 | 2017-11-02T21:00:08 | 108,113,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import matplotlib.pyplot as plt
from sklearn.neighbors import KNeighborsClassifier
from lib.data_handling import *
from lib.metrics import get_accuracy
os.environ['MKL_DYNAMIC'] = 'false'
test_split = 0.3
all_data, train_data, test_data = generate_random_data_matrix(test_ratio=test_split)
data_matrix, labels = all_... | [
"amruafathy@gmail.com"
] | amruafathy@gmail.com |
04d7257f32a3f938799894bfcbb0c0d08c6b6ae4 | 53b806edd25909d1eab29d3e827fe43e33130a9a | /manage.py | 7bfdb4ffa9639ea918c4759d66f94c8a5ece2b47 | [] | no_license | SaiManojBotchu/producthunt-project | 84c129f8e30789a1a3a6d9411333815b605d698b | cdc44887141c565877657481dfaa6d56773d3393 | refs/heads/master | 2022-03-21T18:09:43.466371 | 2019-08-29T15:49:18 | 2019-08-29T15:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'productshunt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"saimanoj2826@gmail.com"
] | saimanoj2826@gmail.com |
acb8348fecf068802da63c27c4edb3dfd4a38d12 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_i_ospfv3_neighbor_configuration.py | 63449143673653979dfb3179399a45495a40dc62 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
2582be4a1861d40ece795a0beb0a30470be1b7b5 | 1d49c3b135c04a58ca25fd9d8e7e073daa26ff51 | /steam/pipelines.py | cefa2f6f0193df72b56a0b20af253b1ae532b675 | [] | no_license | clioo/steam-scraping | 08dabb1968080e1951cc9a1dac0279865fa24e8f | 9f401e331dcecc51238fa1c52e9c6ffb4c6a483b | refs/heads/master | 2022-10-05T23:33:16.544375 | 2020-06-05T17:42:56 | 2020-06-05T17:42:56 | 269,166,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
class SteamPipeline(object):
def process_item(self, item, spider):
return item
| [
"jesus_acosta1996@hotmail.com"
] | jesus_acosta1996@hotmail.com |
6736108084a7ef88d1f8e57f8add913df63d5b12 | 598b4da68d1bbfa72628048cd8b590af117d576a | /using_FLC_in_washing_machine.py | 6a5278ca4ba45ecfbab864ee7aa0606dfb2ede6f | [] | no_license | mansidhall29/simulation-of-washing-machine-using-FLC | b84f44eecc95838d7e42cc2dd4796bcc204c0109 | 85b95bafa9d3213e0825b8262c7b055a2424f15a | refs/heads/main | 2023-02-13T04:57:37.590624 | 2021-01-12T11:37:30 | 2021-01-12T11:37:30 | 302,924,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import numpy as np
import skfuzzy as fuzz
import skfuzzy.control as ctrl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
# In[3]:
# variables to hold values of washing time, clothes weight and stream of water
Weight = ctrl.Antecedent(np.aran... | [
"noreply@github.com"
] | noreply@github.com |
a2ac5030018622f024f8ca2435442ccd4f597f21 | 8ffc07a5240be5e6bb3106b20e11aee38cb8808a | /syloga/utils/symbols.py | aaf3a96c6a1d1b704aa3654833e56b44a3d8a098 | [
"MIT"
] | permissive | xaedes/python-symbolic-logic-to-gate | 315a242d2000123bf09ea15a439dc6437ea457cb | a0dc9be9e04290008cf709fac789d224ab8c14b0 | refs/heads/main | 2023-09-02T15:37:53.750722 | 2021-11-08T12:51:51 | 2021-11-08T12:51:51 | 425,550,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py |
from syloga.ast.core import Symbol
from syloga.ast.containers import Tuple
def symbols(string):
return Tuple(*map(Symbol,string.split(" ")))
| [
"xaedes@gmail.com"
] | xaedes@gmail.com |
52e03ca63270d41a152fe5e55ebf6b771c5b7f1b | 7d35b37a2f080e004b5589966a66ab9504b313d3 | /cms_support/__init__.py | 17f6d0061461571753d4600f8160777f1074ed38 | [
"MIT"
] | permissive | 4quarks/CMS_Grid_Support | 78168527e0d19f2ab487d8fecc5e3700c1a53ad4 | 27e9e15ac89fda1690c9d1ef0fe0f0da97bd0659 | refs/heads/main | 2023-06-08T13:43:58.962896 | 2021-01-15T06:22:11 | 2021-01-15T06:22:11 | 301,188,673 | 0 | 0 | MIT | 2021-01-15T06:22:12 | 2020-10-04T17:39:27 | Python | UTF-8 | Python | false | false | 160 | py | # coding=utf-8
from cms_support.utils.constants import Constants
__version__ = Constants.VERSION
__author__ = Constants.AUTHOR
__credits__ = Constants.CREDIT
| [
"paucutrina@gmail.com"
] | paucutrina@gmail.com |
2916366b0cb513dc1d3202a8dfbddd0de74eb197 | 37bd7fc903d1a16dc82c245ce11465b7c593d0e7 | /apicode/query.py | 73cf81e8a39dd60dff1ec29db1b82b4a1f4918f7 | [] | no_license | dsconnelly/ezra | 873f2601905935f2f5056f16ff6f3a6a6497cfb9 | 00184d7fb7dceee9ee11ce734c86031e3d3f6837 | refs/heads/master | 2022-12-16T12:38:50.372187 | 2018-09-03T15:35:32 | 2018-09-03T15:35:32 | 141,584,528 | 0 | 0 | null | 2021-06-01T22:29:41 | 2018-07-19T13:36:19 | Python | UTF-8 | Python | false | false | 6,654 | py | """Various functions for querying the Cornell Scheduler API and returning
objects with class information as defined in the courses module."""
import requests
import apicode.courses as courses
import apicode.classtime as ct
class ClassNotFoundError(Exception):
pass
class InvalidSearchError(Exception):
pass
c... | [
"dsc254@cornell.edu"
] | dsc254@cornell.edu |
fc6b16aacd2c5eb9924c98c120e85092a8d4ec26 | 233b2958c853dc57dfa5d54caddbc1520dcc35c8 | /ava/cmds/pod.py | 51fe03691017ccf91af0b199173ecdc252918607 | [] | no_license | eavatar/ava.node | 6295ac6ed5059ebcb6ce58ef6e75adf1bfa24ed7 | 71e3304d038634ef13f44d245c3838d276a275e6 | refs/heads/master | 2021-01-19T06:13:01.127585 | 2015-06-03T03:10:59 | 2015-06-03T03:10:59 | 33,645,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
"""
Command for managing local pod directory.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import os
import shutil
import click
from ava.runtime import environ
from .cli import cli
@cli.group()
def pod():
""" Pod manage... | [
"sam@eavatar.com"
] | sam@eavatar.com |
531a249844fca891544a673ad19ecb26f8145614 | 9cb43a47faef0d3f5c7a6986cb2b21a0a89b6972 | /file-operations-02/clonefootage.py | 5e3b060fc83ff787e47778f2f1c91a95909bb04b | [] | no_license | fsiddi/generic-tools | 3e0f2c7ecaf469dcb8f173e191cd7d891fff8bc6 | 432463ec468a695551d7093c4851d5248f1d7764 | refs/heads/master | 2021-03-12T19:56:53.373367 | 2013-01-13T14:17:15 | 2013-01-13T14:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import subprocess
import os
import shutil
FOLDER_SRC = "/Users/fsiddi/Desktop/clonefootage/footage_src"
FOLDER_DST = "/Users/fsiddi/Desktop/clonefootage/footage_dst"
for dirname, dirnames, filenames in os.walk(FOLDER_SRC):
for filename in filenames:
if "linear_hd" in dirname:
filename_src = os.path.join(dirnam... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
37c0ca0fd9d1fcb6f979b46b2a277b4f4b655dff | af37bf1c9b0be9e1b1c0c1f9f8b730b6b48dd11f | /models/attention_gnn_modules.py | b8fd480b1ba364c62bc19d6b20d512dc205dcba8 | [
"Apache-2.0"
] | permissive | Fenix0817/modnet | e45a7af661074afa32cf0aa328940b07807f3504 | 2d43084804851cbc879d12deba0e3eab023044ee | refs/heads/master | 2020-12-28T04:17:20.793190 | 2019-04-25T14:53:01 | 2019-04-25T14:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,610 | py | import graph_nets as gn
import sonnet as snt
import tensorflow as tf
import numpy as np
class Head(snt.AbstractModule):
def __init__(self, num_heads, hidden, name="head"):
super(Head, self).__init__(name=name)
self.num_heads = num_heads
self.hidden = hidden
def _build(self, inputs):
... | [
"i.lobov@criteo.com"
] | i.lobov@criteo.com |
873ade6ecd0fa8b28c06c4920b7cc621fc22af94 | 4d97b3a00fa373e309c933750e70405cb2b75afa | /denavit.py | f82e685efd710f6ff6773decf35b9ac6229ee487 | [] | no_license | ThomasDuvinage/IK_2axes_python | f3c9f7fcaa8a113ff8c9e3e66b06cb8bd9ead355 | c6abef34e553364c79f5660e4d9dc4faff2de137 | refs/heads/master | 2022-06-24T23:15:05.803447 | 2019-02-28T12:45:17 | 2019-02-28T12:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 30 18:00:52 2018
@author: thomasduvinage
"""
from statistics import mean
import sympy as sp
from sympy.physics.vector import init_vprinting
init_vprinting(use_latex='mathjax', pretty_print=False)
from sympy.physics.mechanics import dynamicsymbol... | [
"noreply@github.com"
] | noreply@github.com |
4694a7f7236b4321589260d7612ca34804981e4f | 5eaaf401a18b129283545142184e86bede1f8212 | /compareVersionNumbers/main.py | e33878422fba03e215e4132ae6a05973f1811674 | [] | no_license | hnguyen89212/leetcode | 5c9b9c9198f27df4804a657b0cffa11a770cae70 | d34f4a8dc02cbef461308d2de298269d57a2c569 | refs/heads/master | 2023-03-27T14:28:45.403394 | 2021-03-18T04:38:47 | 2021-03-18T04:38:47 | 336,839,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py |
# def stripLeadingZeros(revision: str) -> str:
# onlyZeros = True
# j = 0
# for each in revision:
# if each != '0':
# onlyZeros = False
# break
# j += 1
# return '0' if onlyZeros else revision[j:]
'''
Accepted 02/07/2021 15:50; runtime 28 ms, memory 14.4 MB.
''... | [
"hnguyen@echidna.ca"
] | hnguyen@echidna.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.