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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9be620535780a7d33e067ca7ba9ddd42c0cdb154 | 6e4805ad47f8ce244bff23b83fd6e679b200935f | /Neural Collaborative Filtering/pytorch implementation/utils.py | 327bbd2b1cb35c5af652af8c5cd1eb6e0d1ac269 | [] | no_license | Dwijesh522/Million-Playlist-Dataset-Challenge | 1b286e143a06fef1879af22f4498a96a1dd30460 | c94a8cb03558474604d6dc4f05fd923b0ca3f874 | refs/heads/master | 2023-04-22T02:56:41.371388 | 2021-05-12T13:03:20 | 2021-05-12T13:03:20 | 321,734,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,398 | py | from time import time
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# import seaborn as sns
import torch
# workspace imports
from evaluate import evaluate_model
from Dataset import MovieLensDataset
def train_one_epoch(model, data_loader, loss_fn, optimizer, epoch_no, device, verbos... | [
"noreply@github.com"
] | Dwijesh522.noreply@github.com |
fafea992eeb6a2f9ed01e74a7ef1b9d4ebe1ff37 | 248d20fa6c37afc1501b47398451bf15dc8f0165 | /hikaru/chapter09/knock82.py | 2815435d297473575daf0779a19470e86000ecaf | [] | no_license | tmu-nlp/100knock2016 | 20e9efd4698f59918aa850ba40163906f13dcb7f | d5f7a76286cb95bb374ff98bc0c9db3c796d113d | refs/heads/master | 2021-01-21T02:20:57.121371 | 2016-08-03T01:49:38 | 2016-08-03T01:49:38 | 55,942,482 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import random
for line in open('knock81.txt'):
words = line.split()
for i, t in enumerate(words):
d = random.randint(1,5)
for j in range(d):
if j != 0 and i - j >= 0:
print (t + '\t' + words[i-j])
if j != 0 and i + j < len(words):
print (t... | [
"hikaru@omorihikaruno-MacBook-Air.local"
] | hikaru@omorihikaruno-MacBook-Air.local |
29342b62e7d4f0e9d6d25518e5993ae4dd13da81 | f21d3ef9eedaeaa4c3b84a288ef799b19df6f669 | /FilmAudioProgram/video/processing/get_mood.py | 60669745b66e935edecc2a8082a2809e695b2962 | [] | no_license | mitali/fmp | 84f57344def0787e32cd26806500b0bd4960e7a9 | 0c1c678da5609a9091c263eb9074a53e216d386f | refs/heads/master | 2020-04-14T14:20:19.749836 | 2015-06-22T02:04:38 | 2015-06-22T02:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | '''
Created on Jun 10, 2015
@author: Mitali
'''
# function that takes video, breaks it up into frames, plots k means cluster
# for each frame, gets most dominant colour & assigns mood based on colour
def get_mood(video):
return
# TODO: Define ranges for colours
| [
"mitalidargani@gmail.com"
] | mitalidargani@gmail.com |
0ec96347624c3779acb977f9f453bee286bcb934 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v2/incidents/DeleteIncident.py | a134c05b864f6bbffc44a61f18cc8ae6dcb87435 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 555 | py | """
Delete an existing incident returns "OK" response
"""
from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.incidents_api import IncidentsApi
# there is a valid "incident" in the system
INCIDENT_DATA_ID = environ["INCIDENT_DATA_ID"]
configuration = Configur... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
a396b235fefc14a2c806dc94e5ffa216ca650849 | 7c8f58874bc9ffd84fec6e6d7699a0479cc5acd9 | /mysite/mysite/settings.py | 938f1880a97fd68e8f62557100fbfad466e94017 | [] | no_license | aziz-ui/django-learning | 0c942713b0766d93b5253602aa41880896b72290 | 531abdc7e0febd7073b5f2f533a8fbde6ff8cdaa | refs/heads/master | 2021-01-09T13:41:34.631211 | 2020-02-23T18:33:50 | 2020-02-23T18:33:50 | 242,322,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.28.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"aziz.benyahia@hermes.com"
] | aziz.benyahia@hermes.com |
11122622a63061b674ef3b1b83bb6137ccf4d458 | 3c4b95d69022e9d40b4feac0c38be7c38a9f343e | /HVI_external_trigger.py | 2c6fe3b989c9d6fa73138d2d38a85de5b899646c | [] | no_license | jakemdaly/HVI1toHV2 | e31a07655650fa4b3fd5523794f4225a9d598ced | 218f8df860c2ca75c023bc4b2866ca195546b6d0 | refs/heads/master | 2020-05-20T17:45:17.436228 | 2019-08-05T20:32:02 | 2019-08-05T20:32:02 | 185,694,346 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import sys
import time
sys.path.append('C:/Program Files (x86)/Keysight/SD1/Libraries/Python')
from hardware_configurator import *
from test_initialization import *
from hvi_configurator import *
# In this example we will run a trigger example that will use HVI to synchronize two modules in a single chassis
# This is... | [
"jake.daly@ymail.com"
] | jake.daly@ymail.com |
0ea01cbe7bd8170f064d5e9e92d39c5a5fe6765e | bdc12ac21a4c7b83a43258b46d6008c5f36a71e6 | /edmondderothschild/spiders/spider.py | 9d9460836280ea4016ffed933a6d247278938580 | [] | no_license | hristo-grudev/edmondderothschild | 068132e79dd176721b885f238f0cf342e7e57988 | da231da1f56c62760872f5bcc3a70aaae040add8 | refs/heads/main | 2023-03-24T06:17:20.193318 | 2021-03-26T08:49:17 | 2021-03-26T08:49:17 | 351,717,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import re
import scrapy
from scrapy.loader import ItemLoader
from scrapy.spiders import XMLFeedSpider
from w3lib.html import remove_tags
from ..items import EdmondderothschildItem
from itemloaders.processors import TakeFirst
import requests
import xmltodict
class EdmondderothschildSpider(XMLFeedSpider):
name = 'e... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
f35c372994721fa99e8e6fa564ce727c33500569 | 1b8cb909fafe408108bb7f84660154e1f3ceb168 | /CJ 2017/stalls/stalls.py | 7cf9e4b36f73d23235f755c189a77af95308aa82 | [] | no_license | JasonHinds13/CodeJamSolutions | 48802a387a87178cbe0d2fa99afc2eb863087e0c | 6828d53d71518fa483cbd50f7ec1de53fc6eb02f | refs/heads/master | 2020-04-06T03:53:07.942617 | 2017-04-09T02:14:49 | 2017-04-09T02:14:49 | 56,076,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | #f = open("C-small-1-attempt0.in", "r")
#o = open("C-small-1-output.out","w")
f = open("test.in","r")
o = open("output.out","w")
def build(n):
z = []
for i in range(n+2):
if i == 0 or i == n+1:
z.append(0)
else:
z.append(1)
return z
def left(lis,s):
c = 0
s ... | [
"brandonhinds@Jasons-MacBook-Air.local"
] | brandonhinds@Jasons-MacBook-Air.local |
aceffd6ca0ea0f0764980890d5fcfbf4a02650d7 | f43c2e68e0c3554c72fa2e39c2c0847b0d5a212e | /Assets/Fuel/PostbuildScripts/FuelBuild.py | 9951e23bf052238b8c2180b092734d1591eb54b5 | [] | no_license | shahbazGamedev/HorseTapGame | 02e1ab5b9f0e41c3509a6c64df806dccd48d0ffe | 4f466a3a29a2a8f149cde2641ce428beb382be19 | refs/heads/master | 2021-01-17T10:37:00.872648 | 2016-02-12T23:08:49 | 2016-02-12T23:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,562 | py | #!/usr/bin/python
import sys
import shutil
import os
import fileinput
from mod_pbxproj import XcodeProject
def exitWithError( message ):
print 'Error: ' + message
sys.exit('Failed automatic integration')
if len(sys.argv) < 6:
exitWithError('Argument list does not contain enough arguments')
pluginPath = sys.argv... | [
"tarekalexanderchaya@gmail.com"
] | tarekalexanderchaya@gmail.com |
26da9fac0f2f2833f0eab51adbc0f443a627e206 | 0106c990091e47a1893237d9db94a609e8b3af46 | /api/permissions.py | 6ab62da4bf73bb4ac72980baed0c4568d49ab35a | [] | no_license | M1sh44l/blog | 4c2b836acb7a866469a1de797207cd471873ca2b | 1f46b8f4813a8c032efdb37de3ce74e594c60ec2 | refs/heads/master | 2022-12-09T10:00:49.108695 | 2017-08-15T17:47:28 | 2017-08-15T17:47:28 | 98,108,150 | 0 | 0 | null | 2022-12-08T00:43:07 | 2017-07-23T15:43:08 | Python | UTF-8 | Python | false | false | 684 | py | from rest_framework.permissions import BasePermission
from django.utils import timezone
class AuthorOrStaff(BasePermission):
message = "You must be the author of this post"
def has_object_permission(self, request, view, obj):
date = timezone.now().date()
if obj.publish > date or obj.draft:
if not(request.us... | [
"mishaal@outlook.com"
] | mishaal@outlook.com |
4ef1d2aaba39ed43d41d7f9b2fb9488b5ee99223 | cf0f3f1bb02048d99be4e74254a4e48f4ca78ac6 | /0x1F-pascal_triangle/0-pascal_triangle.py | 0a8d2ae715fa29481d1397bef23064c44f83ae94 | [] | no_license | andreammgcol/holbertonschool-interview | 89277dc9aebb0f36d77b995b58f6d060c48692bc | 01bc3b29f44f8b76a56879b00bc77d2f9a919306 | refs/heads/master | 2023-07-20T13:23:31.172414 | 2021-08-26T04:42:55 | 2021-08-26T04:42:55 | 280,991,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/python3
""" Pascal triangle """
def pascal_triangle(n):
""" Function that returns a list of lists of integers
representing the Pascal’s triangle of n """
triangle = []
if n <= 0:
return triangle
for i in range(1, (n + 1)):
sub = []
for j in range(i):
... | [
"amendez72@misena.edu.co"
] | amendez72@misena.edu.co |
fa4be384a948693e29c4af842a48f724e082b42d | f604d675521966854f396a3f467c7e8aa5598a50 | /old_modules/rl_module_old.py | f036a0507a405d800a300a3fe728523f31348412 | [] | no_license | zazyzaya/GraphRL | 4b954477b47146de4af86c6d4bd745104501be77 | 34b5a0a0790ccabd396c4927761583fcc813f28c | refs/heads/master | 2023-01-12T14:31:12.023406 | 2020-11-12T20:04:16 | 2020-11-12T20:04:16 | 285,004,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,412 | py | import torch
import random
import numpy as np
from torch_scatter import scatter_mean
from copy import deepcopy
from tqdm import tqdm
from joblib import Parallel, delayed
from abc import ABC, abstractmethod
from torch import Tensor
from torch.nn import functional as F
from torch.nn.modules import Bilinear, Linear, Mod... | [
"zazyzaya@gmail.com"
] | zazyzaya@gmail.com |
c93a6409e4a98b6d2224fd803d214f6d2eb510c1 | 6ea0ab2cdac3babb2673a57b151043869d0cc81b | /env.py | de3eedef89838d26604c4687e0fa2874998692e2 | [] | no_license | 5ive/glacibot2 | 3f2698d61b8b7d486f4762cb4c49a031f14fbdbb | d23128a0b93ac65dee1963ff1228bbf7d0ac55a9 | refs/heads/master | 2020-03-09T18:56:21.575720 | 2017-11-20T03:04:37 | 2017-11-20T03:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | """ Stores global-scope variables """
# Standard Modules
MODULES = {
'slack': None,
'mysql': None
}
# Standard Utilities
UTILS = {
'manager': None,
'slack': None,
'mysql': None
}
# Statistics Tracking
STATS = {
'birth': 0,
'connected_at': 0,
'latency': []
}
# Global Storage
GLOBAL = ... | [
"flak@glacia.org"
] | flak@glacia.org |
44fba7387745833b0891308e586f9470ed9209b1 | 338fa6cf16ceb150e359663804322a17b0e9b805 | /intquest/19_ordered_dict.py | 16105738d58e953e450e0d9f91d5d4b283c7b9e9 | [] | no_license | pkrzyszowski/algorithms | 693dbc7a183ac2756351feb12176f0188c7078eb | f4acfd97f79dc52aab8c8c38a89767371bc23975 | refs/heads/master | 2021-01-01T18:56:28.040190 | 2018-07-12T07:05:13 | 2018-07-12T07:05:13 | 98,464,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from collections import OrderedDict
d = OrderedDict([('Company-id', 1),('Company-Name', 3)])
f = dict([('Company-id', 1),('Company-Name', 3)])
e = d.items()
print(e)
print(f)
names = ["Nick", "Alice", "Kitty"]
professions = ["Programmer", "Engineer", "Art Therapist"]
professions_dict = {}
for i in range(len(names)):... | [
"piotr.krzyszowski@skyconcept.pl"
] | piotr.krzyszowski@skyconcept.pl |
aa9af48a0e19c07d1617db7930dae0b4664ecc6a | e7d88f3b16cfe75d14bd831f4a5c37ae6da8a39a | /YXMovieMaker.py | 61a3a9f857e0542ef495fc302e5a7221c3fd3a42 | [] | no_license | JimHeneghan/SapeloScripts | e7ab565b10fa3c99169f1eb894316f5996ee0b9c | 59f77686863735de74d7cdee360adfcdb75d6cee | refs/heads/main | 2023-02-20T17:04:49.143748 | 2021-01-20T20:49:09 | 2021-01-20T20:49:09 | 331,428,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | #!/usr/local/apps/anaconda/3-2.2.0/bin/python
import time
import numpy as np
import scipy as sp
import itertools as it
import math
import collections as cl
import matplotlib.pyplot as plt
import matplotlib as mpl
import matplotlib.gridspec as gridspec
from matplotlib.animation import FuncAnimation
#from mpl_toolkits.a... | [
"jim.t.heneghan@gmail.com"
] | jim.t.heneghan@gmail.com |
d2c30b43c3d413ab54bb2e96ffefcdf5d3f93048 | a1cc73cb270faa13869677412b1c5dd13e01e6e7 | /dl_01.py | 0e9ff3cd7c7f1284c587b460ac56a9e9022253e3 | [] | no_license | mkhoin/lecture-1 | 132319c541210244a407edac0de5055e700295a6 | 7cf2f541f0f16415e9d6fb80c0c34494d10ad829 | refs/heads/master | 2020-04-12T01:52:52.454104 | 2018-10-10T07:57:53 | 2018-10-10T07:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import tensorflow as tf
X=tf.placeholder(tf.float32)
w=tf.Variable(tf.random_normal([2,1]))
mul=tf.matmul(X,w)
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
r=sess.run(X,feed_dict={X: [1,2,3]})
r=sess.run(w)
print(r)
r=sess.run(mul,feed_dict={X: [[1,2],[3,4],[5,6]]})
print(r... | [
"noreply@github.com"
] | mkhoin.noreply@github.com |
37859fe8877fde8c1be8769391b91405311f0055 | 546d81a0aa3cc681fff74ff01e9029c433721408 | /testing/selenium_study/test_touchaction.py | 2c9f7f6c38945b7959104ad5d2cb36a766621c20 | [] | no_license | zhangdayu2020/ck15DAYU | 2cb361aa666e7f6abf3ad6fdaa4ec22492f89dcf | 323c5757d0e9f5ace9d73ec825ebc0866195da1b | refs/heads/master | 2023-02-21T12:44:07.238651 | 2021-01-25T15:47:51 | 2021-01-25T15:47:51 | 304,782,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # -*- coding:utf-8 -*-
from time import sleep
from selenium import webdriver
from selenium.webdriver import ActionChains, TouchActions
from selenium.webdriver.common.by import By
class Test_touchaction():
def setup(self):
option = webdriver.ChromeOptions()
option.add_experimental_option('w3c', Fa... | [
"ayuayuayumazi@163.com"
] | ayuayuayumazi@163.com |
b4d27b062876d14b5477f9d0c142497a23aaf4a7 | 04d245923f56be46c942cda79d98a8cc3753c875 | /db/env/Scripts/rst2latex.py | 9f8725663b3166f48a5896cec47422374a76911e | [] | no_license | shopped/parkey | 30a1b51860bb27b555ed1d48a2d6088448dcbdc4 | c273623302624c7fc345e0e07aec71acbd85c039 | refs/heads/master | 2022-12-18T16:10:23.165915 | 2017-10-29T20:36:58 | 2017-10-29T20:36:58 | 108,769,092 | 1 | 0 | null | 2022-12-08T00:40:05 | 2017-10-29T20:33:49 | Python | UTF-8 | Python | false | false | 816 | py | #!c:\code\parkey\db\env\scripts\python.exe
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# 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 LaTeX.
"""
try:
import locale
locale.setlo... | [
"patrickgesarcarroll@gmail.com"
] | patrickgesarcarroll@gmail.com |
632e2a617586abeeb950bd4e2968256a403701b3 | 4a014a10f3e144bc778149f8bf6f763581ece2b0 | /src/latexify/config.py | 88ab7e04d0614f1cb1c100563ad6a6c4acad5b3e | [
"Apache-2.0"
] | permissive | google/latexify_py | 394f4608e09e45ac6b8091d6734cf6bf06fa548d | b3ae7fa9483f7055e692bef8acc9c0ec8e91c51f | refs/heads/main | 2023-09-02T06:49:55.607974 | 2023-01-14T10:57:55 | 2023-01-14T10:57:55 | 282,443,202 | 5,202 | 265 | Apache-2.0 | 2023-01-14T10:57:56 | 2020-07-25T12:50:56 | Python | UTF-8 | Python | false | false | 2,790 | py | """Definition of the Config class."""
from __future__ import annotations
import dataclasses
from typing import Any
@dataclasses.dataclass(frozen=True)
class Config:
"""Configurations to control the behavior of latexify.
Attributes:
expand_functions: If set, the names of the functions to expand.
... | [
"noreply@github.com"
] | google.noreply@github.com |
132a63a4c7cf78409ec2160eba470f9cd8fce38b | aab93f3c6262c7bcbdfbd3fbe660a98f2e84b392 | /tests/test_trade.py | c690cb1047ac8f24bc6ff05adbfd89db583f5fac | [
"MIT"
] | permissive | Mirdalan/base_astro_bot | 932c06d42533a3ee7df5313cb94099c268797d22 | 656ebd55c0f57fc18bf95227af9e20a4c1392489 | refs/heads/master | 2023-08-08T00:46:40.616205 | 2019-02-04T15:42:07 | 2019-02-04T15:42:07 | 156,698,654 | 2 | 0 | MIT | 2023-05-22T21:45:21 | 2018-11-08T11:46:01 | Python | UTF-8 | Python | false | false | 1,843 | py | import unittest
from tests.set_path import *
from tests.artifacts import TradeClient, MiningClient
from base_astro_bot.trade import TradeAssistant
from base_astro_bot.trade.data_structure import DataStructure
class TradeTests(unittest.TestCase):
def setUp(self):
self.trade = TradeAssistant(log_file=None,... | [
"michrzan@gmail.com"
] | michrzan@gmail.com |
6f98cad772f7501ef36523039224c37fa9792293 | c0a1f8bdcbd82fbe11a5bdbab5657f7f096b4989 | /test/test_coord.py | 52d0654b178dc31f2ec437aa81ee96762148cec0 | [] | no_license | Cesareans/Flow | 43de1082a55aac4501ef65e5940dc2d0065345d6 | 2b75f0557313d77f374d3adb65f7887e30b60ebe | refs/heads/master | 2023-03-21T17:54:45.060862 | 2021-03-04T03:27:08 | 2021-03-04T03:27:08 | 344,337,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # coding=utf-8
# @Time : 2020/8/8 14:02
# @Author : 胡泽勇
# ${Description}
import sys
sys.path.append("../")
from game.concept.coord import AxisCoord
from unittest import TestCase
class TestAxisCoord(TestCase):
def testDistance(self):
c1 = AxisCoord.fromCubic(1, -1, 0)
c2 = AxisCoord.... | [
"cesare@MacBook-Pro-de-Cesare.local"
] | cesare@MacBook-Pro-de-Cesare.local |
623feb305b11da8bd2283836b273711652544b52 | f64e31cb76909a6f7fb592ad623e0a94deec25ae | /leetcode/p1710_maximum_units_on_a_truck.py | 8e89618e55fad5153cf50d1bc81468436154aa8e | [] | no_license | weak-head/leetcode | 365d635cb985e1d154985188f6728c18cab1f877 | 9a20e1835652f5e6c33ef5c238f622e81f84ca26 | refs/heads/main | 2023-05-11T14:19:58.205709 | 2023-05-05T20:57:13 | 2023-05-05T20:57:13 | 172,853,059 | 0 | 1 | null | 2022-12-09T05:22:32 | 2019-02-27T05:58:54 | Python | UTF-8 | Python | false | false | 460 | py | from typing import List
import heapq
def maximumUnits(boxTypes: List[List[int]], truckSize: int) -> int:
"""
Time: O(n)
Space: O(n)
n - number of boxes
"""
q = [(-v[1], v[0]) for v in boxTypes]
heapq.heapify(q)
max_units = 0
left_space = truckSize
while left_space > 0 and ... | [
"zinchenko@live.com"
] | zinchenko@live.com |
1b290ad90ab78de68526a19eecef9e3e61919e71 | b561c9c05951f9f62a63ae052d7b4d8d00a19b8a | /python/test/day5/test_main.py | 773f911634d977ee42bcd964e92030d25a2e153e | [] | no_license | jcockbain/advent-of-code-2020 | 0146b377e1534856506219441241920e5d86c246 | 6b3960454d600226138ad5c0be38a394d61e4d47 | refs/heads/main | 2023-02-13T04:13:14.418471 | 2020-12-29T12:38:09 | 2020-12-29T12:38:09 | 314,865,293 | 2 | 0 | null | 2020-12-29T12:38:10 | 2020-11-21T17:24:10 | Python | UTF-8 | Python | false | false | 536 | py | import unittest
from src.day5.main import part_one, part_two, get_seat_id
class TestDay01(unittest.TestCase):
def test_get_seat_id(self):
self.assertEqual(357, get_seat_id("FBFBBFFRLR"))
self.assertEqual(567, get_seat_id("BFFFBBFRRR"))
self.assertEqual(820, get_seat_id("BBFFBBFRLL"))
... | [
"jcockbain96@gmail.com"
] | jcockbain96@gmail.com |
5e46b0f2a1c6e6c894d7f69c9ec85f0b3be7e3be | c2b1c4cfccd18f526625fa534949731974453c76 | /blog/urls.py | 5e9798dee7402fc7aa362b41a20475695e98039a | [] | no_license | marcowang2008/yiatusa | c79de636b0bf18f9be014557c5d743b5183d39b5 | 5ba31c9199b55a1d4cc4f2ae5b839c5492301ffd | refs/heads/master | 2020-05-22T14:06:06.744261 | 2014-09-30T02:47:19 | 2014-09-30T02:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from django.conf.urls import patterns, url
from blog import views
urlpatterns = patterns('',
# ex: /blog/
url(r'^$', views.index, name='index'),
# url(r'^$', views.IndexView.as_view(), name='index'),
# ex: /blog/5/
url(r'^(?P<post_id>\d+)/$', views.post, name='post'),
# url(r'^(?P<pk>... | [
"marcowang2008@yahoo.com"
] | marcowang2008@yahoo.com |
d6d303cedd84db4470ca30532c6d89f672112ebe | 86d5ec071199912f89b7526e793dab0bfae82c8d | /main.py | 88accb89a1a540e8e2cef1416ae43d3d7fdeec58 | [] | no_license | mgejke/TubeFace | 976656bdffccf1a579e26684d16948ad0d702cf4 | bacfd186e8298af7d8d4a660ffac47d3a7bdf370 | refs/heads/master | 2020-05-29T17:31:41.414507 | 2017-02-20T22:02:56 | 2017-02-20T22:02:56 | 82,603,719 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,888 | py | import facebook
import requests
import re
import os
from urllib import parse
from datetime import datetime
from dateutil import tz
import webbrowser
import youtube
###################################
# Enter your facebook app details here:
fb_client_id = ''
fb_secret = ''
# Enter the group id as a string
group_id... | [
"martin@gejke.se"
] | martin@gejke.se |
3b2c50942b06583c5abbe8052fafbe9d56413ce9 | 579b0d3df09af1341f3c83bf68d46212aa98dbc6 | /src/TrainGAN.py | ef7280e367fc45530a2b246753df4722dbfef2a9 | [] | no_license | phowson/financialtsgan | 9234b18865eb9608a3e2425f5c8bdfdd0fdbd0a5 | eaf9bf689c1ab8bf1856c2b0601c3ad6169a4e32 | refs/heads/master | 2021-08-17T00:59:10.769735 | 2017-11-20T16:23:16 | 2017-11-20T16:23:16 | 108,844,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | '''
Created on 3 Nov 2017
@author: phil
'''
import Descriminator
import Generator
import numpy as np;
from BrownianGenerator import BrownianModel
from WhiteNoiseGenerator import WhiteNoiseModel
from GarchGenerator import Garch11Model
from CsvDataImport import loadCsv;
from keras.optimizers import Adam
i... | [
"phil@howson.net"
] | phil@howson.net |
eb4b67984e1c1aeb376497af5b5d65b32b49fd90 | 1e5923cf6f0800ddba369926116521e2aba9133f | /odoope_ruc_validation/models/__init__.py | 4d7083f8663dae267e57ab29cd97ed7ee1aa9902 | [] | no_license | giovannirm/VentasCRM | 70b0d82543157f19cec67956b0a020652c49f72b | 051bb293ebc048de5fca12526d8af07811484bc7 | refs/heads/main | 2023-08-27T19:36:09.796963 | 2021-11-06T03:20:43 | 2021-11-06T03:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2019-TODAY OPeru.
# Author : Grupo Odoo S.A.C. (<http://www.operu.pe>)
#
# This program is copyright property of the author mentioned above.
# You can`t redistribute it and/or modi... | [
"rafaelanton@gmail.com"
] | rafaelanton@gmail.com |
1c8ba4ba375aaaa437633003ceff73f815b923ac | 798f8c0d35ec165a92ba96be3ec62320728f0a5e | /I parcijala/LOG REG/Log regresija 3 Var.py | 4d5d39aee9e8a18459e3ccc59f3b2978ccb963d5 | [] | no_license | medinzukanovic/NastavaIIS | ce5e2181256d4e194b1ac97e6f2f89c78a4f963d | fc189f969cf2d6a47319edfd2b9e1f1a4a75f44d | refs/heads/master | 2023-03-13T09:17:54.349009 | 2021-03-04T17:43:21 | 2021-03-04T17:43:21 | 344,554,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | #Logistička regresija
#Importovanje biblioteka
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
##################
#importovanje fajla
dataset = pd.read_csv(r'C:\Users\HP\Documents\Py Programs\IIS rok\Log_Reg.csv')
########################
# input nezavisna varijabla
#prvo... | [
"medinwisstaa@gmail.com"
] | medinwisstaa@gmail.com |
b536665207128a0706bd63990575ad7208dfeeab | b570e1974547d1233c55c318f2ed63ccf92b74a6 | /cms/migrations/0002_auto_20200530_1613.py | 10159e299233862d73241e129217b2dcf0290721 | [] | no_license | tsubuanko/UTAB | 1397d0f82b655e1efddfa28967818fcbdeb59044 | 854e1bc6b53b6c0ba9aa89594b38c01fb5210f16 | refs/heads/master | 2022-11-09T15:39:06.340135 | 2020-06-10T03:32:19 | 2020-06-10T03:32:19 | 263,253,586 | 1 | 2 | null | 2020-05-20T08:02:36 | 2020-05-12T06:34:21 | Python | UTF-8 | Python | false | false | 401 | py | # Generated by Django 2.1.15 on 2020-05-30 07:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field=m... | [
"eitaro.612@icloud.com"
] | eitaro.612@icloud.com |
f3116503a5d5ae990e1cd8ea742abff702c34e43 | 3e8778c66b28dcf498680669d3da46e9fd661d9f | /sbllexer.py | c4673fbb6938146b64716a5dbf3da485f51aab55 | [] | no_license | rogerrosenquist/Parser-and-Lexer | a6bf5589ae94d77c7c16eb11711bbe0e28cac111 | 3c5cd4a67bd41b83ffa468d7b943a78f49e49bd0 | refs/heads/main | 2023-09-02T19:55:12.262954 | 2021-10-25T00:10:42 | 2021-10-25T00:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from sly import Lexer
class SblLexer(Lexer):
# Ignore these things
ignore = '\t '
ignore_comment = r'\#.*'
# Set of literals
literals = { '=', '+', '-', '/', '<', '>',
'*', '(', ')', ',', '[', ']', '{', '}', '#'}
# The tokens the parser will be using
to... | [
"noreply@github.com"
] | rogerrosenquist.noreply@github.com |
ec13bc64a22f54ba05dff81ba64014927df309be | 34ff7ac3555e678dd129a3fec9fcc3f0d8bb771b | /samples/retrieve_installments.py | 44fa98d2eb26e8f84fe5870d25290fb760ef0a93 | [
"MIT"
] | permissive | iyzico/iyzipay-python | ae838e3d043c9bbae84f14262290992337094915 | f9c075a058a6e983e78bf62e28687eb8962cb8d2 | refs/heads/master | 2023-09-03T15:11:01.357861 | 2023-08-16T12:49:16 | 2023-08-16T12:49:16 | 52,074,917 | 78 | 47 | MIT | 2023-08-17T12:59:33 | 2016-02-19T08:59:01 | Python | UTF-8 | Python | false | false | 370 | py | import iyzipay
options = {
'api_key': iyzipay.api_key,
'secret_key': iyzipay.secret_key,
'base_url': iyzipay.base_url
}
request = {
'locale': 'tr',
'conversationId': '123456789',
'binNumber': '554960',
'price': '100'
}
installment_info = iyzipay.InstallmentInfo().retrieve(request, options... | [
"onur.tuzun@iyzico.com"
] | onur.tuzun@iyzico.com |
01a4813ff43a1b30ba69e200f7383515ec8b1335 | 6d62433bd54c2aaa850dfdbb70c0a7bfbe0f56eb | /day3/p1.py | 1406ab0aa480256847f485928bd075f78430849f | [] | no_license | joshuah82/aoc2020 | feac91e450a2a3598f8912a17f1ef150f5a3b8cc | 89de7b142e6d33d94c8213823399d20555aaacfc | refs/heads/main | 2023-01-29T18:37:27.319532 | 2020-12-13T20:58:06 | 2020-12-13T20:58:06 | 321,158,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/python3
import sys, math
MOVE_R = 3
MOVE_D = 1
with open(f'{sys.path[0]}/day3.txt', 'r') as f:
pattern_lines = [pattern_line.strip() for pattern_line in f.readlines()]
pattern_width = len(pattern_lines[0])
pattern_height = len(pattern_lines)
required_width = math.ceil((pattern_height / MOVE_D) * MOVE_... | [
"josh.heilman@meredith.com"
] | josh.heilman@meredith.com |
0f94aa7049d5910e5f68efce3e48a58df0aa7ef6 | 3f5eeefcdad4d89e790f09fe0bdb29a45a534dd3 | /problems001_to_050/p026.py | 4f3bb0bc139f71eb3a27ef165967f233ebd13489 | [] | no_license | benperez/ProjectEuler | e347ee231f95f5d88dd144bc5f78f67bc5241e03 | f0ea9eccecdd5580c263348ad1ada8b2477347a1 | refs/heads/master | 2020-03-25T06:42:05.686159 | 2014-05-12T01:04:28 | 2014-05-12T01:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from time import time
def cycle_length(d):
seen_remainders = {}
n = 10
steps = 1
while True:
p, r = divmod(n,d)
if r == 0:
return steps
elif r in seen_remainders:
return steps - seen_remainders[r]
else:
seen_remainders[r] = steps
n = r * 10
steps = steps + 1
if __name__ == "__main__":
star... | [
"ben.prez@gmail.com"
] | ben.prez@gmail.com |
bdbc95e0713f760c2f82e1d353cfd1e9c99fb7c6 | 9cc714fc5bcd171014ca661ff57a9350e31480a2 | /lib/python3.6/site-packages/plumbum/machines/ssh_machine.py | eaa4100c31c06da7e49436b05e76df0688e1c561 | [] | no_license | softdeveloper84/currency_tracker | b137a2a4fb8ae7cd3a636c8089ff0f1ea5048d23 | adfe2062bc7c913afa0b753bac7a17af1a9bc71b | refs/heads/master | 2022-02-19T06:20:26.330358 | 2019-09-19T20:45:06 | 2019-09-19T20:45:06 | 208,907,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,432 | py | from plumbum.lib import _setdoc, IS_WIN32
from plumbum.machines.remote import BaseRemoteMachine
from plumbum.machines.session import ShellSession
from plumbum.machines.local import local
from plumbum.path.local import LocalPath
from plumbum.path.remote import RemotePath
from plumbum.commands import ProcessExecutionErro... | [
"gerberesval@gmail.com"
] | gerberesval@gmail.com |
7128d93e1dc3aa010bf8039df8c376c885766bcf | ca348e79101781944e7e89b2bf8ca62f0ac462f7 | /api/urls.py | 66cfe6ce921c2bf3d3756df38c86ca3c9d837453 | [] | no_license | kkaushy/sms | 9836bbe37fea076fb124ef50d30778f64691cb14 | 08efe74a8e6b84d6d8240685a0a8c000e3943a5e | refs/heads/master | 2023-02-13T08:43:13.950580 | 2021-01-20T16:02:43 | 2021-01-20T16:02:43 | 331,358,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from rest_framework.routers import SimpleRouter
from api import views
router = SimpleRouter()
router.register(r'user', views.UserViewSet, 'User')
router.register(r'sms', views.SMSViewSet, 'SMS')
urlpatterns = router.urls
| [
"kkaushy@gmail.com"
] | kkaushy@gmail.com |
e33f6c598c699f04928d5a390d5e4325a4948d24 | 9b4de05054f37a65dce49857fb6a809a370b23ca | /gd/migrations/0017_auto_20171223_1605.py | 97c3517179868639f2ab467e37bf45e031c80896 | [] | no_license | susahe/gis | f6b03b8f23abf7ca22c0069a4cdf603bfe879808 | 6b8d433cd5f672994ac138c1b656136425d0c345 | refs/heads/master | 2021-05-12T01:50:12.862559 | 2018-01-27T02:25:31 | 2018-01-27T02:25:31 | 117,569,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | # Generated by Django 2.0 on 2017-12-23 16:05
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('gd', '0016_auto_20171223_1601'),
]
operations = [
migrations.AlterField(
model_name='gramasevadivisio... | [
"sumudu.susahe@gmail.com"
] | sumudu.susahe@gmail.com |
92773e1d5e6c94481c8e112cd3e072a77fa04e98 | ad6fe70e71b78da8f3093d4f676e74b1814d56b1 | /LoginService/__init__.py | 612d2227ad7cf51c106ac99cd66e384423ff1473 | [] | no_license | robertbean1/LoginService | ab5b86f69fa28ef74a6143369ebbe0df99949835 | 17a83ca155f9ba119e7911d9c45b2be2b1b0eb79 | refs/heads/master | 2020-06-18T22:00:03.609595 | 2019-07-11T21:13:42 | 2019-07-11T21:13:42 | 196,465,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from .Login import SaltLoginService, BaseLoginService
| [
"robert.bassett.coder@gmail.com"
] | robert.bassett.coder@gmail.com |
79d82f73fbeb7c3ac673b60ee257b44cc57264b8 | ca76b6fa51c0e410039574f4e526085a1af4e1a0 | /frame_to_video.py | 1b431bc414aabda82e6f810ddb32b3c7429351cd | [] | no_license | PallawiSinghal/Image_Processing | 078c4c7ac246af43288ad50d5de8e654933d972c | a893b84e745a018d388ccf5835e748e376b2a8d6 | refs/heads/master | 2020-03-18T19:18:43.448416 | 2019-03-06T12:04:54 | 2019-03-06T12:04:54 | 135,146,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # Program To Read video
# and Extract Frames
import cv2
import datetime
interval = 1000
# Function to extract frames
def FrameCapture(path):
# Path to video file
vidObj = cv2.VideoCapture(path)
# Used as counter variable
count = 0
# checks whether frames were extracted
success = 1
image_... | [
"noreply@github.com"
] | PallawiSinghal.noreply@github.com |
cef4f422bd981bf3617c76b464be4b030cb37a0e | 6cfe79a472fda737f0aca08e90537a8a8b13c69b | /Colesgame.py | 649c2153287cb9d277885caa82a1e99eb04b0f6c | [] | no_license | mcpal/Colesgame | cf1b5cd36a7fcaaac29a6d1b355bd24b4a6e3108 | 7104649ced9c248c3b83e3ab5e1d61b9466e67df | refs/heads/master | 2020-07-15T06:58:21.735754 | 2019-08-31T07:17:59 | 2019-08-31T07:17:59 | 205,506,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,832 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 30 23:30:25 2018
@author: Matt
https://stackoverflow.com/questions/45483890/how-to-correctly-use-scipys-skew-and-kurtosis-functions#45484287
1) Coles game. Collect all 30! How many tries to collect them all?
2) partially completed Coles game. Got n, how many ... | [
"noreply@github.com"
] | mcpal.noreply@github.com |
9fd245e89ff97e7549795908359ec095b8a687c9 | 87e0e6ce602a266ec3debbde38e4508be3e01761 | /VPL 6 - Controle do Elevador/elevadorJahVazioException.py | 0f6138244777ab7cdafb4578ade35465d0db55d9 | [] | no_license | mauriciokonrath/INE5404-POO2 | 99a689e2bbf146e39192438f4ac82bd6458ee2f6 | 1e2347f4c69babce623144a95c5909ea5ee333db | refs/heads/main | 2023-08-16T13:42:26.750284 | 2021-10-06T22:43:13 | 2021-10-06T22:43:13 | 410,136,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | class ElevadorJahVazioException(Exception):
def __init__(self):
super().__init__('O elevador ja esta vazio!')
| [
"noreply@github.com"
] | mauriciokonrath.noreply@github.com |
388bb2ca0d531e3a54125504cda8f51694f1c617 | 45f096b397c583a1a88300e9bc9412cf961291d9 | /main.py | 6da14cf4019995605589d30ae9447f8f73116c0c | [] | no_license | DCorentin/Sounds | 75fb9743386fd05ae37c05597d4f250dcf600b32 | b243700403ac9775c199f66be7933e7d3e70e9c7 | refs/heads/master | 2021-07-09T07:58:30.079928 | 2017-10-10T12:42:03 | 2017-10-10T12:42:03 | 106,402,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | # Corentin Duhamel
import sys
from functions import ReturnRez, MaxWordLen
from math import *
# Get the text file given as argument
path = sys.argv[1]
text = open(path, 'r')
lines = text.readlines()
text.close()
resultList = []
whsList = []
for i in range(len(lines)):
if i == 0:
t = int(lines[i])
else... | [
"corentin.duhamel@gmail.com"
] | corentin.duhamel@gmail.com |
54c6f8673ede0ff92aae2a33401611442277cef8 | c8e3ce59771a46723eb460dadc7136ce4337567b | /wordcloud_yelp_pos.py | df0e8b9012472da71ebf042b39ed6ff59d675dfb | [
"MIT"
] | permissive | elisetnp/stylistic-word-clouds | 658c4b5e4bcf903f670078d8d6ebd4a25224afd1 | 0ecc7fa5632cd21ed9b24ccad9e27448a15eed81 | refs/heads/master | 2022-01-18T17:18:51.055745 | 2016-05-08T04:46:00 | 2016-05-08T04:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import numpy as np
import csv
import random
from PIL import Image
from wordcloud import WordCloud, STOPWORDS
from palettable.colorbrewer.sequential import Greens_9
def color_func(word, font_size, position, orientation, random_state=None, **kwargs):
return tuple(Greens_9.colors[random.randint(2,8)])
csv_path = "ye... | [
"max@minimaxir.com"
] | max@minimaxir.com |
e9a068743c7f0a353dea40d0b8c4ffc0966b167c | 5ade7759171bc1a7dad6b5c32062fc813b358265 | /poly_reg.py | 4a1390750da2a9e5bc6eabefec5a38b2b0b3b1d9 | [] | no_license | luyenm/ml_term_project | f447b8ac6a8f87a3c16c455b9fea4d9a8ea03774 | 4499bfcefbab186435660c3d9845f61f618796e4 | refs/heads/master | 2020-04-05T09:01:53.219887 | 2018-11-21T03:14:23 | 2018-11-21T03:14:23 | 156,739,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | import numpy as np
import pandas as pd
import csv_reader as reader
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
'''
TODO: Implement RSS, and MAE, modify poly kfold to pass a function.
'''
# k-folds cross validation for polynomial regression
# PARAM: x - trai... | [
"luyen_mai@live.com"
] | luyen_mai@live.com |
3c3751974ba7fde06708dc6a41c2bedc1bc225c7 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_bones_large_evil_fire_red.py | 0d8c6fc34668df5aa6df3b2b1c35b2da4808979c | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 464 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/lair/base/shared_poi_all_lair_bones_large_evil_fire_red.iff"
result... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
8a60696d172fa2764b4af8c63974995d728018ab | e863e7e124cd31b05edb211ddec3a37b86265e76 | /student management system.py | 883c08f0c252057d172358436948bcf1b78e22d2 | [] | no_license | himanshu190193/project1 | 02dcc0181c5401ffd0d9cb4d830d9860793cc251 | 0345323955db1823eba6b08bd584b4464d8eb3f7 | refs/heads/master | 2020-12-03T13:03:40.977284 | 2020-01-02T07:14:37 | 2020-01-02T07:14:37 | 230,566,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,006 | py | from tkinter import*
from tkinter import ttk
import pymysql
class student:
def __init__(self, root):
self.root = root
self.root.title('Student management system')
self.root.geometry('1200x600+0+0')
self.root.config(bg='powder blue')
bg_color='#008080'
La... | [
"noreply@github.com"
] | himanshu190193.noreply@github.com |
6eeff780d48d5b83b29e88267b7d4dc89ef580b6 | 839251947b7bac32507710662bd82fe291a71ea6 | /2.py | c932274bb0192c5496d2b082708500975fa53367 | [] | no_license | saini1998/PythonQuestions | 81b6e77606513eb938aa08c800b568010fef8bbe | b83e6706fc86529aefa8c4cbdcc8d947bdfb4408 | refs/heads/master | 2022-10-21T06:49:18.603120 | 2020-06-12T17:04:11 | 2020-06-12T17:04:11 | 271,829,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py |
# 2. Given n email addresses of different domains, please send an email to the first address(in alphabetical order) of each domain. Please assume a function sendmail() to send the emails.
# A sample email array is following {ghi@hotmail.com, def@yahoo.com, ghi@gmail.com, abc@channelier.com, abc@hotmail.com, def@hotm... | [
"aaryaman@MacBook-Pro.local"
] | aaryaman@MacBook-Pro.local |
f9db7eb2b280acf58d34ce091bef39cf901a7cee | c0bdb1f87071f7bda22fb2b5486e3a4967efac7c | /com.js.ens.leveller/module/3D/mp02_redefine_post_set_partialgutter.py | 8fa01f2858ff864162ba91266d4e26c7d6d2ec79 | [] | no_license | JongseoLee/2016 | 1f461df7d6cb29bf92a21495ee744caf7c8de002 | 4d7628caf58d182155fb5c2b46597eca521db053 | refs/heads/master | 2020-04-06T05:07:47.254294 | 2018-09-17T05:33:18 | 2018-09-17T05:33:18 | 59,083,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | from py_mentat import *
# from py_post import *
def save_set(setname,x,y,z) :
py_send("*remove_sets ",setname)
py_send("*select_clear")
py_send("*select_method_point_dist")
tol=py_get_float("T")/50
# print "Tolerance of finding nearest point ", tol
py_send("*set_select_distance "+str(tol))
# bias... | [
"jsclubb@gmail.com"
] | jsclubb@gmail.com |
2d33cfe1dfc6134f4587772aa8f4d012a0ced2ac | e0dec84af2fcb14e2dac03b03cf789adfffe0dbc | /Homework 4/engi1006_simulator/utilities.py | cd9ebc05664f3132bc021746373c88ecb14bc3a7 | [] | no_license | mitalijuneja/Python-1006 | 2c7ce3e1c1d8e7a85eec3de62b92a78f2f8c516b | e33ff4fd7b888b18fb84bcf6d2b3903fc171f931 | refs/heads/master | 2022-12-02T13:47:19.038747 | 2020-08-14T21:08:21 | 2020-08-14T21:08:21 | 287,621,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | #############
# Mitali Juneja (mj2944)
# Homework 4 = utility functions for engi1006_simulator
#
#
#############
from random import random
def skillToGrade(skill, difficulty):
"""
calculate student grade based on student skill and assignment difficulty
return grade
"""
hardness_mult = (rando... | [
"noreply@github.com"
] | mitalijuneja.noreply@github.com |
553568bda78d86a56398f13d9b9de175f1d077e0 | a4f78978385d3335441f9bdbf530ff6e381ea40e | /June-18/28-06-18/python/01-Divyansh-love-for-math.py | fe2e97575686c485744e3c6e983b7ca96050dae8 | [] | no_license | raks8877/Daily_Coding_Series | 6a8b1200922d509e8bc25f3eb5ee63efc1d7cd70 | fde9be2d52fd1b19c46d7b6370a31fa3435b6cb2 | refs/heads/master | 2021-06-01T13:54:11.232676 | 2020-03-08T10:22:58 | 2020-03-08T10:22:58 | 120,205,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print("352222")
| [
"beckrakesh@gmail.com"
] | beckrakesh@gmail.com |
2ea857ee75484fb90c944a824e9f71d5991ac458 | 38e96cffe535e5cc383f87be05fca4de281fe321 | /lad1.py | b7843610486ebd1c8ad659fe8c03b3558c8b5274 | [] | no_license | shehovetssonya/python | 0e01c93e262767a25cf1e037a61665aa79841e00 | 9e8972d2b3a257f9b99e4f7126080b3ee726f9c5 | refs/heads/main | 2023-04-03T10:52:11.582554 | 2021-04-13T21:24:47 | 2021-04-13T21:24:47 | 356,702,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | print("Введите ваше имя: ")
name = input ()
hi = "Привет,"
print(hi+name) | [
"noreply@github.com"
] | shehovetssonya.noreply@github.com |
544c16551189ea5a23fdbd8cdf944dac4c58797c | 6c99e80c1d13c1aa6a8f6a675badf26bd7d132e9 | /My_Ecommerce_Project/settings.py | f15a1b231b6be76941073863d2201366fa39a683 | [] | no_license | Antonyaugustine077/Responsive-Ecommerce-website | 59e7eb2234fa3e31e28b6088e95786f67369a6f7 | 991898ec21512117837df4a7030ace65824da052 | refs/heads/main | 2023-03-25T08:50:47.036909 | 2021-03-22T13:15:43 | 2021-03-22T13:15:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | import os
ENVIRONMENT = os.getenv('ENVIRONMENT', 'development')
DEBUG = True
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '-05sgp9!deq=q1nltm@^^2cc+v29i(tyybv3v2t77qi66czazj'
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'djang... | [
"bappi142434@gmail.com"
] | bappi142434@gmail.com |
7c8d26b4e35b466ce84cdb80c83dd8ad9317fb49 | 34ea39dbc91e339a61b9b301a127e34f29e559cd | /문자열/Problem06_longest-palindromic-substring(my).py | dd0de7fd6359be6ca935840d352eec452ca0084c | [] | no_license | miniii222/PythonAlgorithm-Interview | 402ed56df7e6c090451d49d3629f4927073d40d5 | a6aee1a7d00e2d428b7a8d8d2e83d492de269359 | refs/heads/master | 2022-11-29T20:08:55.767986 | 2020-08-17T08:33:15 | 2020-08-17T08:33:15 | 284,401,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #https://leetcode.com/problems/longest-palindromic-substring/
s = 'abcda'
def longestPalindrome(self, s: str) -> str:
if len(s) <= 1 or s == s[::-1]: return s
answer = s[0]
#모든 경우 다 파악.
for i in range(len(s) - 1) :
left = i
right = i+1
... | [
"noreply@github.com"
] | miniii222.noreply@github.com |
98fdf89de81c9dcf413ec4ed22d6bb68a49cf154 | 3542fead97fc89d07b300bb2ad6ff2b6032e5052 | /rooms/migrations/0004_auto_20210128_2301.py | 7e308f1195c81f0d833d15fc0b9c9a19bb33075f | [] | no_license | park-hyunsoo/python_practice | ddf96afd352cc44ac59060b0a0423869299c95d8 | 0acff2d03bca96977289cd75b6ec12017ef172b0 | refs/heads/master | 2023-02-28T12:10:13.773653 | 2021-01-31T07:27:22 | 2021-01-31T07:27:22 | 333,036,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 3.1.5 on 2021-01-28 14:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('rooms', '0003_auto_20210... | [
"qkrgustnq@naver.com"
] | qkrgustnq@naver.com |
dfaa8bb7360f1fe02e74564f754d4886ef12a910 | 312d7c63043033f47e229d5f75841cd22b49fb32 | /scanner-vue/app/lerning/Paths.py | 541b1f6241ac0abaed832b6ca57ab1c9546f2ff0 | [] | no_license | maiconcodedevelopment/scanner-dl | be473c0364deb987934755011c90ab5a0a1dc3b5 | 42a603cb1487aa4e0b61b028cdd693b3a2bf111f | refs/heads/master | 2020-04-07T08:30:47.369218 | 2018-11-18T20:24:56 | 2018-11-18T20:24:56 | 158,217,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | import os
import sys
path = sys.argv[1]
paths = [os.path.join(path, name) for name in os.listdir(path)]
print(paths)
| [
"codedevelopment.24@gmail.com"
] | codedevelopment.24@gmail.com |
ed1d8079b7f7187322f129ee8bcb8994965bfa6e | 68c90ef853ea415a3c43ca10ebc9c23656907e10 | /review_answer/__init__.py | 37697f207a9ff81c2f46712488799cd329f196a5 | [] | no_license | NJ-zero/LeetCode_Answer | 73889f46f4cd0c08f60a1e556c29114495062b2b | 1040b5dbbe509abe42df848bc34dd1626d7a05fb | refs/heads/master | 2021-08-06T04:33:39.890568 | 2020-04-14T09:59:39 | 2020-04-14T09:59:39 | 145,671,777 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # coding=utf-8
# author='Shichao-Dong'
# create time: 2019/3/4
| [
"821854810@qq.com"
] | 821854810@qq.com |
e1af9eea7f4456e93b638d47785844b21ab0e873 | bb17c42217a6eaf5434878f86d43a3573fb4d201 | /caffe2/quantization/server/conv_groupwise_dnnlowp_op_test.py | badb115c15661bfc6b5d9c6c1ce020a9d3b70c4d | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | iotamudelta/pytorch | 6934cc48628cf3db6221bb27ca89a8a8f25826d5 | b710aee8c2ac2daa36e5143b00982b06746a4bf7 | refs/heads/master | 2021-06-05T22:33:12.622376 | 2019-01-04T17:18:39 | 2019-01-04T17:18:39 | 136,206,721 | 1 | 0 | NOASSERTION | 2018-12-17T23:16:59 | 2018-06-05T16:40:18 | C++ | UTF-8 | Python | false | false | 8,718 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import collections
import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
from caffe2.python import core, dyndep
from caffe2.quantization.server import utils as dnnlowp_utils
from dnnlowp_test_utils import (... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
74db49958179e9efa98ebfc30bb65ded9c8eee31 | 08b0c27ce98495c0889d7b768ac7d2a97beff158 | /廖雪峰-python/廖雪峰-面向对象之多重继承.py | aa05ccb03ba657e9c34a5bba6dd5ff9567191adf | [] | no_license | jetli123/python_files | 7d3834b8e3f8b8dca5109c2d6aeb8d0fcdb852c3 | 7f5b787820cca2cf5820a1cdf3fed77e5185f04e | refs/heads/master | 2020-03-27T01:36:02.526294 | 2019-07-11T06:58:35 | 2019-07-11T06:58:35 | 145,726,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | # -*- coding: utf-8 -*-
__author__ = 'JetLi'
"""继承是面向对象编程的一个重要的方式,因为通过继承,子类就可以扩
展父类的功能。"""
"""
Dog - 狗狗;
Bat - 蝙蝠;
Parrot - 鹦鹉;
Ostrich - 鸵鸟。
Mammal 哺乳类:能跑的哺乳类,能飞的哺乳类;
Bird 鸟类:能跑的鸟类,能飞的鸟类。
"""
# 采用多重继承。首先,主要的类层次仍按照哺乳类和鸟类设计
class Animal(object):
pass
class Mammal(Animal): # 大类
pass
class Bird(Animal): ... | [
"Jet_Oracle@outlook.com"
] | Jet_Oracle@outlook.com |
014dd55d98821941f5c43e49410cca2b53b061ed | 83c4071ca19fd507fdb41fbe67c62d6b0dfc7e9d | /Flask.py | e0f5adfe75a57b1d109aeedc3f06741e6791efe9 | [] | no_license | TimKraai/Project-week-9 | 61e0f801e4ac2ae8b594aca379f24a9b50a10947 | d434981b9b49a57f5b804222034a973e09038671 | refs/heads/master | 2021-07-22T03:22:28.685931 | 2017-11-01T11:44:07 | 2017-11-01T11:44:07 | 109,121,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from flask import Flask, render_template, request
import sqlite3, os
from flask import g
app = Flask(__name__)
app.database = "project.db"
app.config.from_object(__name__) # load config from this file , flaskr.py
# Load default config and override config from an environment variable
app.config.update(dict(
DATAB... | [
"t.kraai@student.utwente.nl"
] | t.kraai@student.utwente.nl |
f5189827e19cca23209b3ea871aae2a8f2c1b388 | d491ea7be3f5696e44e12d6522e25c4ee832ce47 | /ecommerceproject/search_app/urls.py | 97d0ca38ed0aab7af4af630660f13823967fabfd | [] | no_license | ENA01/locker2 | 71504e0d408e4c7b4722328b7fa1d777ea57e30b | 53d735bd4e6665f71ba1f78060e86606afe1277f | refs/heads/master | 2023-05-30T19:54:11.820628 | 2021-06-23T07:09:24 | 2021-06-23T07:09:24 | 376,865,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.urls import path
from . import views
app_name = 'search_app'
urlpatterns = [
path('', views.SearchResult, name="SearchResult"),
]
| [
"benatjose@gmail.com"
] | benatjose@gmail.com |
176759a28ea89a9a959072c2bce28c4fb3658a75 | ca050207021002098b8d32df33aad807a9e1c3fe | /AutoOps/backend/zabbix_api.py | 81c0bd89c462ff72474b157160524185cefc6420 | [] | no_license | Star2One/django_pro | f46659fd1513c61f398af475e3dd345cb965c04a | 3ee910efe9fbcd805469334fe495cd74e5a50ae7 | refs/heads/master | 2021-06-06T02:41:30.356967 | 2016-04-22T03:55:30 | 2016-04-22T03:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,488 | py | #!/usr/bin/env python
#coding=utf-8
import json
import urllib2
import sys
##########################
class Zabbix:
def __init__(self):
self.url = "http://192.168.52.6/api_jsonrpc.php"
self.header = {"Content-Type": "application/json"}
self.authID = self.user_login()
#验证登录
def user_login(self):
data = json.... | [
"root@vmware_game_test.(none)"
] | root@vmware_game_test.(none) |
2ed0e34a43fa2c125006f672440b3da4ab09d4ba | cba7110bb180886c22bb3cb844d7f9ff5efee428 | /petit_lisp.py | 6ab3ee8d08b510a5981f4dca6235640722ddfbbd | [
"CC0-1.0"
] | permissive | aroberge/lispy-experiments | d41df042e5737d7d99ac1f03a081e8ce5aed2585 | c54da34500e95150c2ef9c6057339525edf1e03f | refs/heads/master | 2021-01-19T21:51:58.194552 | 2015-02-25T21:41:55 | 2015-02-25T21:41:55 | 31,174,203 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,700 | py | '''New class based version
'''
import sys
from src.file_loader import FileLoader
from src.python_utils import python_fns
from src.parser import Parser
from src.repl import InteractiveInterpreter
loader = FileLoader()
STRINGS = {}
class Env(dict):
"An environment: a dict of {'var': val} pairs, with an outer Env... | [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
ad000a9db4bf0b4a991a99f727e33e6a8f3254c0 | 46e0b3c5399dd85589bcf07e8c76f4f06f79b0e2 | /brandquad/parse_logs/models.py | f862fdde87161ddf452da33bca9890f3eec63fd6 | [] | no_license | Mexamos/brandquad | 2094da81f325503b3fc03c18ab618ed1137561ad | 9b6bc8ea1cf491864bfc31b4633e42dc4622e917 | refs/heads/master | 2023-05-12T09:21:31.046762 | 2021-05-29T08:50:04 | 2021-05-29T08:50:04 | 369,738,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from django.db import models
class DataLog(models.Model):
ip = models.CharField(max_length=16)
date = models.DateTimeField(db_index=True)
method = models.CharField(max_length=50)
uri = models.TextField()
response_status = models.IntegerField(db_index=True)
response_size = models.IntegerField(n... | [
"tolstikov_m@mail.ru"
] | tolstikov_m@mail.ru |
07c650d1c91e81af7f4b87f36695cd5d502e9a06 | 40e2e1be27043de1cd4f3e0668943022e9ac9ba2 | /RSTUDIO+FULL+CANARIAS/mining.py | d5fd66fb2ae2b1ade89af3d9ac207bc7c65c1105 | [
"MIT"
] | permissive | jtaquia/COVID19-Rockerfiles | d91e4abd39667a774587abb6ec6dbf21d9b0f8ec | b345e625ad7da65dca0826f8eee98d341813b4a5 | refs/heads/master | 2023-03-17T16:07:49.577567 | 2020-04-22T15:08:10 | 2020-04-22T15:08:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import os
from CoronaCanarias import pdfs_to_txt
pdfs_to_txt(path="/home/rstudio")
os.system('grep Canarias -A 2 noisy_data.txt > results.txt && cat results.txt')
file = open('results.txt').read()
| [
"noreply@github.com"
] | jtaquia.noreply@github.com |
bbcf67d11eb57c0781dfba6d46c8fda22210c8ad | 4aa0a2f04e84d9ab993723348de3f8dc715b0d07 | /Lab 12 - Final Lab/final_functions.py | 312aee62f51c36b7169b3d166bea373a9e0123ba | [] | no_license | DaytonGatewood/learn-arcade-work | bd1b5294634f540c80d52e6955cfcf8ce1d5dc5d | bd7d60f21ab686fe3c1ac8859eaf40e6e7dc7306 | refs/heads/master | 2023-01-22T09:56:42.962268 | 2020-12-04T19:59:55 | 2020-12-04T19:59:55 | 290,613,170 | 0 | 0 | null | 2020-08-26T21:56:54 | 2020-08-26T21:56:54 | null | UTF-8 | Python | false | false | 3,781 | py | class Room:
"""
This is a class to describe a room.
"""
def __init__(self, description, north, east, south, west, up, down, northeast, northwest, southeast, southwest):
self.description = description
self.north = north
self.east = east
self.south = south
self.west... | [
"dayton.gatewood@my.simpson.edu"
] | dayton.gatewood@my.simpson.edu |
75bdf60f41cbecae68ab1867346b368889ab8eb0 | cc47e6f84a4e00ad0b9c2c07e13c1c29d7a58d44 | /aoto_demo_all/auto_demo_webUi/titanrun/common/HtmlBase.py | 9b48d8bc307409b7a6b57dbc795ab95682c11521 | [] | no_license | bopopescu/auto | f326d9f1e6106770e2f7cf2c6533285844cac109 | 8c7fe70ecde82f37263ba3638f6154284269cd29 | refs/heads/master | 2022-11-22T18:52:32.451682 | 2019-05-14T16:23:43 | 2019-05-14T16:23:43 | 281,014,686 | 0 | 0 | null | 2020-07-20T04:40:06 | 2020-07-20T04:40:05 | null | UTF-8 | Python | false | false | 19,915 | py | # encoding=UTF-8
"""
HtmlParse基类
"""
import re
import json
import types
import requests
from robot.api import logger
from business.conf import EnvSetting
from titanrun.common import Core
from titanrun.common.Core import get_var
from titanrun.common.DbOperate import RHOracle
from titanrun.common.IniParser import RHI... | [
"songqi_0102@sina.com"
] | songqi_0102@sina.com |
337759946282c162869cd371ff1789f6aeb6d798 | df2bc214099b048184719b310ce8ff862e8920b1 | /Home_Task_6_5.py | 238d3a38c688feb180fa728bd17ea7420f2c275b | [] | no_license | GalinaBaurina/GeekBrains_Python_HomeWork_BaurinaGalina | 9ef8dec65156ef1791fabfd3f362f1637c2fa365 | f1b3e7911bafbb4d4f6d8aa1ebc8973ada344666 | refs/heads/master | 2020-12-05T01:17:51.035942 | 2020-02-06T21:46:42 | 2020-02-06T21:46:42 | 231,962,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | # Реализовать класс Stationery (канцелярская принадлежность).
# Определить в нем атрибут title (название) и метод draw (отрисовка).
# Метод выводит сообщение “Запуск отрисовки.”
# Создать три дочерних класса Pen (ручка), Pencil (карандаш), Handle (маркер).
# В каждом из классов реализовать переопределение метода draw.
... | [
"galinabaurina@gmail.com"
] | galinabaurina@gmail.com |
919ee4eab014fe4cd9950bf760b3ed95385fdfe2 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/daemonize.py | bcabe9a83f6ac73cf1fcc28f101b0bb623286a53 | [] | no_license | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Copyright (C) 2018 - All Rights Reserved
# project: ceph_pressure_test
# file: daemonize.py
# time: 2019/9/5 14:05
# author: fanwen
# desc:
# !/usr/bin/env python
# coding: utf-8
import sys
import os
# 将当前进程fork为一个守护进程
# 注意:如果你的守护进程是由inetd启动的,不要这样做!inetd完成了
... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
84e58fab1a3053d6aba5c571ccb5582b09ea4cdb | 21423b627dd550c9f4ca471aeb14992feff51123 | /build/lib/QNN-Gen/Model.py | 20c7e98dffb05aa1f12f15fdb452677ca0773033 | [] | no_license | Farquhar13/QNN-Gen | 3e18fecadfd406fde1e07b6623e88d2da27bf17e | 4901f6bc16942732210ec2b5b16433f32f10fab3 | refs/heads/master | 2023-02-15T17:20:52.054380 | 2020-12-23T02:09:14 | 2020-12-23T02:09:14 | 266,021,500 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,873 | py | """
Will need to import Measurement for default_measurements
"""
from abc import ABC, abstractmethod
from qiskit import QuantumCircuit, QuantumRegister
import qiskit
import numpy as np
from Utility import Gate
class Model(ABC):
"""
Class to define a QML model, whether it be a particular ansatz or a perceptron... | [
"farquhar13@gmail.com"
] | farquhar13@gmail.com |
5ca77088ee481f1f92105529a29a842430ae2bdd | 5d5cde93e002254ff7b42523a18b2b9f35271bd8 | /VakomsTask/manage.py | 2c7dae6fcab49b5f5f587823e4c04b4d7271c0f2 | [] | no_license | MaxDubchak/VakomsTask | f9147cfc61a01ae1b8e83d5b415c4d9515c2394d | 85e870500089499dee78fb1fff54c223e3709e2b | refs/heads/master | 2020-04-28T17:29:22.539357 | 2019-03-17T11:09:09 | 2019-03-21T13:01:05 | 175,448,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'VakomsTask.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"mrbrainnygg@gmail.com"
] | mrbrainnygg@gmail.com |
be90a2196eb14b408aabd79ade22b9a85c768046 | 9f704e01ab9b3506564f67c972fe8f0ef59ca86e | /Network_Generator.py | c2287431904d3a184046c7b3f20877602b81c1fc | [] | no_license | adamlee918/simiulation_IIoT | cb2c33de7e8623f23eb8bbc246a03d48aaf3ede7 | d966c507ef6810d6425151ed0a26f62c6b683c92 | refs/heads/master | 2023-06-03T09:14:19.127653 | 2021-06-15T13:50:51 | 2021-06-15T13:50:51 | 375,023,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,204 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 18 15:45:47 2020
@author: 16321
"""
import random as rd
import math
if __name__ == "__main__":
node_num,server_num,mec_num = 25,20,5
nodes = [None]*node_num
# tranp用于计算节点关联链路的发射功率和接受功率之和
tranp = [0]*node_num
index = 0
#记录服务器节点的序号对应的坐... | [
"1632124454@qq.com"
] | 1632124454@qq.com |
3a5a6dad523722865d69fcf3bc6cc9471635254f | c2b8ce649c52a1afbe20ed33347779e0b2b7d37f | /action/gateway/threequick.py | 628d1691933656f7f75b8f39dfa3f681a840846e | [] | no_license | canon-jianeng/OceanpaymentAuto | 9c8393f3416c0ababb4fb980cfbe743c448dceb7 | 5b073942d6204c9da49411271a1dee6bd5a1424c | refs/heads/master | 2020-03-30T01:14:25.800735 | 2018-10-24T07:07:09 | 2018-10-24T07:07:09 | 150,566,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-04-15 09:00:00
# @Author : Canon
# @Link : https://www.python.org
# @Version : 3.6.1
import re
import pageobj.gateway.submit_page as Sub
from common.conf_utils import Gateway
from common.logger import Log
from action.gateway import pay as Pa
log = Lo... | [
"canon@oceanpayment.com.cn"
] | canon@oceanpayment.com.cn |
373e06129c3d09a2092239b0a9dd19e72f5ca703 | e8e9bab84754786e68e32ad5bba9a1f93dd36df1 | /python/rr.py | b851fac9403a587338b012a5479bea4efa44772f | [] | no_license | 0vermind/eddie | 98026246bca34dd9a67b91113cf03bce6743489d | 38f43fb296a916fde7721543b942a59fffb9e871 | refs/heads/master | 2021-05-10T00:23:39.336437 | 2018-01-24T12:26:31 | 2018-01-24T12:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,921 | py | """
Usage:
df = pd.read_csv("data.csv")
renko = Renko(df)
renko.brick_size = 2
bricks = renko.get_bricks()
print(bricks)
"""
import sys
import datetime as dt
import numpy as np
import pandas as pd
import nsepy
class Renko:
PERIOD_CLOSE = 1
PRICE_MOVEMENT = 2
TREND_CHANGE_DIFF = 2
brick_size = 1... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
1f2f7d0f0e3ad6b4f57862457fee3ebc11a8d9f6 | 8aa22c1dec73a77be3bc2e5bc9ecb6540253d1e4 | /main.py | 9b7d34193e4ead395aa06a3427c2e66fd999651f | [] | no_license | abi/SimpleForum | f371530c4f7a9355fe9820f9f8e8c36d08e3ff09 | be96d847fbc74a1035da1d8742e73b9d630d2187 | refs/heads/master | 2021-01-19T07:50:38.223053 | 2010-07-20T07:10:40 | 2010-07-20T07:10:40 | 785,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py | import wsgiref.handlers
import os
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
# Set the debug level
_DEBUG = True
class Solution(db.Model):
submittime = db.DateTimeProperty(aut... | [
"abimanyuraja@gmail.com"
] | abimanyuraja@gmail.com |
b3540144dc9a4b452e098569529f8b06b895590e | 8a45e79bc66acf037bd0223e6919a5d2b48a3237 | /cbv/cbv/urls.py | f86d9e1cac381429a0380ee9ff67efbd98c86e50 | [] | no_license | benderenzi121/CBV-Project | dac59db8fb270c7566fc4e130ee965d174c1b590 | 43af6043d9cc1c4facfd0fed347cc35abe9fef2b | refs/heads/master | 2021-01-07T14:14:31.962806 | 2020-02-19T20:41:50 | 2020-02-19T20:41:50 | 241,721,016 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | """cbv URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-based vie... | [
"60165030+benderenzi121@users.noreply.github.com"
] | 60165030+benderenzi121@users.noreply.github.com |
06733a9ba586103746a65e1a7ee41a7303907dcc | 966e3288036b4aedeb9218f989ab853df74970bb | /scripts/am.py | 7881f54e0e55c8aeefd66a7b4def82945aea6fed | [] | no_license | akreal/diphones | b16ebb74cfd34e793b69db734e36d30ecb5e565b | 216e3462164b8496186446c56d1d35668ff1ce19 | refs/heads/master | 2021-01-19T23:05:46.806613 | 2017-08-23T22:58:44 | 2017-08-23T22:58:44 | 88,909,206 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | import os
import glob
import subprocess
db = 'diphones-am'
db_path = 'data/' + db
os.makedirs(db_path + '/etc', exist_ok=True)
print('Reading unigrams')
vocabulary = dict()
with open('data/unigrams_diphones.txt') as unigrams_file:
for unigram in unigrams_file:
parts = unigram.strip().split('\t')
... | [
"pavel.a.denisov@gmail.com"
] | pavel.a.denisov@gmail.com |
85d021bf63d7f990e9182b73040daae662c6324f | 82e19f3738f47bc517fcb6dd1bf480117bdc8825 | /0x07-python-test_driven_development/5-text_indentation.py | 9457c9692e0add48c1f4ddabf3c780864188b0bb | [] | no_license | PierreBeaujuge/holbertonschool-higher_level_programming | ce6cfaf09fd0fefff8047c23320009ffae9f6e79 | a133bfd68e3ec1f9430d6c722dd96d13f117c8cf | refs/heads/master | 2021-07-08T00:10:20.568509 | 2020-11-14T20:26:56 | 2020-11-14T20:26:56 | 207,353,878 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #!/usr/bin/python3
"""
Module that handles
printing
of a text
"""
def text_indentation(text):
"""
Function that prints a text with 2 new lines after ., ? and :
"""
new_text = ""
if not isinstance(text, str):
raise TypeError("text must be a string")
i = 0
while i < len(text):
... | [
"pierre.beaujuge@gmail.com"
] | pierre.beaujuge@gmail.com |
82115cc885b8d9c6ed52bacfdc128054fbfd9bcd | 360464c84dc71cb4cf7d98f96f9a0bb95cc0497b | /Selection_Sort.py | 9d36e9ab6b4265ce2c4f7780c486c12f17c8a39c | [] | no_license | FayazRahman/Algorithms | fef1c5f0e78da08f8464e68f69b004e103b6fde8 | ebfa636d35364c607139928511c6561542d4b6f7 | refs/heads/master | 2020-06-10T13:39:30.209180 | 2016-12-13T12:26:51 | 2016-12-13T12:26:51 | 75,954,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | array = map(int, raw_input("Type in a few numbers:").split())
def selection_sort(array):
for i in range(len(array)):
mini = min(array[i:]) #Find minimum
idx_min = array[i:].index(mini) #Find index of minimum
array[i + idx_min] = array[i] #Replace element at idx_min with the first element
array[i] = min... | [
"noreply@github.com"
] | FayazRahman.noreply@github.com |
a0c87440e399cc679693431b2e4c82ca0d277d0a | 24541cf0575fa6af829793301a336bad6dc2dd5a | /application/spa_print/spa_print_home.py | 07451e33ff5c3650e63d9998e0c382e29899727d | [] | no_license | manqobasukati/PrintEasy | fe352bfe7d16ddd27f1b0a5613f873b2c78463f1 | 07ef6668c31ad017bd79b6ff27a6bcf63edb455c | refs/heads/master | 2022-09-23T02:17:39.079285 | 2020-06-01T13:37:15 | 2020-06-01T13:37:15 | 268,532,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | from application.spa_print import spa_print
from flask import render_template, jsonify, request
import base64
import re
import os
import shutil
import errno
def copy(src, dest):
APPLICATION_DIR = os.path.dirname(os.path.realpath(__file__))
print(APPLICATION_DIR[0:65])
try:
shutil.copytree(APPLI... | [
"manqoba.sukati@peoplesized.com"
] | manqoba.sukati@peoplesized.com |
355c4ff8c29ad9a9c56453824fe75f29fe14e7ea | e42f44abfd6a494a419976fe1b82d1f1f07852ed | /mysite/webecample/apps.py | 771fc55b19942a86f0dd82ad28f2137700f4a683 | [] | no_license | beka-source/Blog | 9e4960603d41478f38d0064b8eba2df2b4f4a1e1 | cab0870b5989f1d17df0cee7c6baaa8bb1da6851 | refs/heads/master | 2022-07-20T00:12:35.211251 | 2020-05-21T01:02:21 | 2020-05-21T01:02:21 | 265,720,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class WebecampleConfig(AppConfig):
name = 'webecample'
| [
"bekzat-dulat@mail.ru"
] | bekzat-dulat@mail.ru |
91f8b9f1adab0265cdf8daa4a1884308c7a3caf6 | 8585dc55c5a33e7a516ce5653172a78b7189be17 | /OOP16639/1_6_test.py | 686604a57c6b1383dd6b05d7e50fe7c9bcee58e7 | [] | no_license | MinistrBob/Course48271 | 97995d0ccc85ab273a2fbd6553086b83014adbea | c8afbb244e1d80e1a02c011ea1e1f9da1d5eed82 | refs/heads/master | 2020-07-10T05:16:28.863724 | 2019-12-21T11:27:32 | 2019-12-21T11:27:32 | 204,175,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # python -m unittest -v C:/MyGit/Course48271/OOP16639/1_6_test.py
import unittest
def factorize(n):
"""
Factorize positive integer and return its factors.
:type n: int,>=0
:rtype: tuple[N],N>0
"""
if not isinstance(n, int):
raise TypeError
if n < 0:
raise ValueE... | [
"ministrbob777@gmail.com"
] | ministrbob777@gmail.com |
e21898d87c761f7b53403cb50183fafc3eb673f2 | 53d8558f34392020f4fcffaf67e21a37c8a048c0 | /dito/journal/migrations/0001_initial.py | 3fc74bd2d372730574cfa8fcfe882098c0943e28 | [] | no_license | Tenzin-sama/Dito--Day-Planner | 5cf719b171fce5a28474989a76f247f646aa9287 | 8b50732f2c9b2a7907906e8f4c205f166c3f4b71 | refs/heads/main | 2023-05-02T07:58:17.064956 | 2021-05-27T13:18:49 | 2021-05-27T13:18:49 | 368,891,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # Generated by Django 3.1.7 on 2021-04-19 13:06
import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER... | [
"tenzin.zeta@gmail.com"
] | tenzin.zeta@gmail.com |
36fc18877e15f99a9aa0d7a8df99d490def5fe7f | a952a7aa74814cdd4f813d5dad49c5bb0afecf10 | /kggraph/rs_predictor.py | 3cab8b65a9ab5300a1b851e89698c6c7476a1dee | [] | no_license | leafsheep/gw-rank-model | 0d38e26defaba639a34982ac79642b12f46a5faa | 2426e229e88a593c5dc567d39d71be2318146995 | refs/heads/main | 2023-07-05T11:27:41.625369 | 2021-08-18T07:38:56 | 2021-08-18T07:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,820 | py | from __future__ import print_function
import os
import json
import numpy as np
import flask
import tarfile
import glob
from tensorflow.contrib import predictor
import logging
prefix = '/opt/ml/'
model_path = os.path.join(prefix, 'model')
info_file_prefix = '/opt/ml/info'
class Rank():
def __init__(self):
... | [
"23968560@qq.com"
] | 23968560@qq.com |
016d14727acba33d8dbf6f4d45e4a973c62c3c92 | 74613e0c25566ccb0d522ab8083e18e99d27ed09 | /CNN/resnetwith.py | ea1594dcf7e0b5f9e25c31a28922626955742bc3 | [] | no_license | LIMON100/Deep-Learning | a52be44f625e4aec7b6f61dc48284e40ab60d506 | d882b4394f504eed6ab3ab2c4c26c39e93b71ab7 | refs/heads/master | 2023-07-25T11:26:32.064259 | 2023-07-23T07:09:16 | 2023-07-23T07:09:16 | 242,794,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,343 | py | #from __future__ import division
import six
import keras
from keras.models import Model
from keras.layers import (
Input,
Activation,
Dense,
Flatten
)
from keras.layers.convolutional import (
Conv2D,
MaxPooling2D,
AveragePooling2D
)
from keras.layers.merge import add
from keras.layers.normal... | [
"mahmudurlimon41@gmail.com"
] | mahmudurlimon41@gmail.com |
f9a90eacb62b4a90bac794a35e9d89bb597200c1 | d9713773e84433b66cda9f3c07c70242a3bdcca3 | /industry/src/handlers.py | a8b834c928d9cc53a8023f1e60550a1d7ba93d2c | [] | no_license | mikelyonsridgeline/federation-demo | be684c0b6cbcf07faea4db3764cfa697e2a42c6a | fcb54c2a8c03e65aa8002c3f7ad35e04ae8a0a28 | refs/heads/master | 2023-02-04T19:51:48.972489 | 2021-05-17T17:36:46 | 2021-05-17T17:36:46 | 236,670,740 | 0 | 0 | null | 2023-01-24T01:15:20 | 2020-01-28T06:13:39 | Python | UTF-8 | Python | false | false | 3,820 | py | """This module acts as an entry point for all lambda handlers defined in
serverless.yml. These handler functions should avoid including any business
logic directly. Instead, import and invoke functions from other areas here.
For performance reasons, it is also better to set any global state here, for
anything that requ... | [
"mike.lyons@ridgelineapps.com"
] | mike.lyons@ridgelineapps.com |
40bd0fd7fa351ed017c0913a5b8fa0f9da857dea | 8324ec3c8eaa77a877c917ed5f1fa91f16d65578 | /teste_d.py | 025b281338d8b3bdde6ef654b8a7f5144eed15f3 | [] | no_license | EduardoTA/map3121-householder-2021 | 0b42abe03e3b0da23fade1e133a144c082689605 | 4d48d7b5364fd111e68715879e931a37f61a9777 | refs/heads/main | 2023-06-21T18:13:32.608212 | 2021-07-21T22:14:43 | 2021-07-21T22:14:43 | 383,220,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # Nome: Eduardo Tadashi Asato, nusp: 10823810
import AutovalsAutovecs as aa
import numpy as np
import math as math
from teste_a import EstimativasErroGerais as EstimativasErroGerais
def teste_d():
# Menu de seleção
print('\n############')
print('Teste d selecionado')
print('############\n')
epsi... | [
"EduardoTA@live.com"
] | EduardoTA@live.com |
c8e277f57fbd493bde3ddc1f1f68158067e231ac | e48375c39c0d1fc71742b1964dffdd3af0ff86c0 | /nlu/components/classifiers/token_bert_healthcare/token_bert_healthcare.py | dfcbf72f27c66728a4a68aba94343643ceb788d4 | [
"Apache-2.0"
] | permissive | ahmedlone127/nlu | b8da5a84f0e47640cb09616559bf8b84c259f278 | 614bc2ff94c80a7ebc34a78720ef29a1bf7080e0 | refs/heads/master | 2023-02-09T05:10:29.631583 | 2022-05-20T15:16:33 | 2022-05-20T15:16:33 | 325,437,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | class TokenBertHealthcare:
@staticmethod
def get_default_model():
from sparknlp_jsl.annotator import MedicalBertForTokenClassifier
return MedicalBertForTokenClassifier.pretrained() \
.setInputCols("sentence", "token") \
.setOutputCol("ner")
@staticmethod
def get_... | [
"christian.kasim.loan@gmail.com"
] | christian.kasim.loan@gmail.com |
6771606f0279c865bb9985ab24d017d47dbb93b7 | c5c0ba6e2ed0298062182e2b26fa3a5404f70143 | /performance/driver/core/classes/reporter.py | 7ede6b7d9a5d46723ba2ca7963156296e08ff65b | [
"Apache-2.0"
] | permissive | mesosphere/dcos-perf-test-driver | 68353e9bd888bcf6cec6813b910de1f33a6c1d3b | 8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b | refs/heads/master | 2023-06-07T09:43:41.643905 | 2018-08-10T13:13:55 | 2018-08-10T13:13:55 | 90,610,559 | 2 | 1 | Apache-2.0 | 2019-10-21T15:57:17 | 2017-05-08T09:30:44 | Python | UTF-8 | Python | false | false | 1,203 | py | import logging
from performance.driver.core.config import Configurable
from performance.driver.core.eventbus import EventBusSubscriber
from performance.driver.core.events import StartEvent
class Reporter(Configurable, EventBusSubscriber):
"""
A Reporter takes care of passing down the final results
into a file ... | [
"johnys2@gmail.com"
] | johnys2@gmail.com |
339711b0ca9dac52f4998964973507af65180c45 | 6eca8439cf54d3778580c5aa12d49a9a520ff685 | /utils/vw_to_kaggle.py | c1dbe132d601748c3ab8c120b76fdd3600479578 | [] | no_license | zyq11223/CTR-Prediction | 0b32c385b8e466a2de2b31ed5851b74adaf6b0a7 | 584782e5a422f9af4956f104181105b3b023f505 | refs/heads/master | 2020-04-13T20:26:09.359086 | 2015-07-22T17:24:29 | 2015-07-22T17:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import math,sys
if len(sys.argv) != 2:
print('wrong arg')
exit(1)
path=sys.argv[1]
submission=path+'submission.csv'
preds=path+'preds.txt'
def zygmoid(x):
#I know it's a common Sigmoid feature, but that's why I probably found
#it on FastML too: https://github.com/zygmuntz/kaggle-stackoverflow/blob/master... | [
"guoweialbert@163.com"
] | guoweialbert@163.com |
4b815e897e7708dc452d3318fb9eaba38baa0240 | 443ac0b0b76e338d470aadc35f3619babdd28eaf | /HW2_rls672/get_bus_info_rls672.py | 9de6ec2cac2258c16c7f50c745700d301704b9e3 | [] | no_license | scheids1/PUI2017_rls672 | 4ae56d15b4bca3592af5c401fc0abfe02c582756 | b893e2c915b23aa44c4a7729dba392b1c05a24a4 | refs/heads/master | 2021-09-11T14:23:56.105892 | 2018-04-08T22:08:35 | 2018-04-08T22:08:35 | 103,692,727 | 0 | 5 | null | 2017-11-23T01:06:01 | 2017-09-15T19:14:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,710 | py | from __future__ import print_function
import os
import json
import sys
try:
import urllib2 as urllib
except ImportError:
import urllib.request as urllib
if not len(sys.argv) == 4:
print('''Invalid number of arguments. Script takes arguments as: python get_bus_info.py <MTA_KEY> <BUS_LINE> <FILENAME.c... | [
"rlscheidegger@gmail.com"
] | rlscheidegger@gmail.com |
baf9232934abe8f004c202e7807716b4d6876a09 | a5a943391577a3b7222533d335ec0eda6cc1bc33 | /src/robot/version.py | 3be9a14084a8b351caae9ad094fb248c1aa7bd42 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | miktuy/robotframework | 2164aa67d779ec2a3511181bb7d01a7ad2bc45a9 | 15e11c63be0e7a4ce8401c7d47346a7dc8c81bf5 | refs/heads/master | 2023-01-31T11:19:18.816499 | 2023-01-18T17:34:13 | 2023-01-18T17:34:13 | 298,874,288 | 0 | 0 | Apache-2.0 | 2023-01-26T12:49:01 | 2020-09-26T18:20:30 | Python | UTF-8 | Python | false | false | 1,408 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | [
"peke@iki.fi"
] | peke@iki.fi |
020988dfeae28d229f8eb583eee6dfd4af68157d | da2aa8addb312849c4ef0baabec052902ea8fc99 | /apis/sign_up.py | 376bd8046da89c7eeba2904b22d9528ab7e3604c | [] | no_license | MeetM/LearnAndEarnBack | a72e71ccd63e5ff6f3ea01eaa245b34bac21a34f | 940bb4bba0abf584d8e90579838b91b4cf41d9db | refs/heads/master | 2022-07-30T19:15:08.315880 | 2020-05-23T20:04:57 | 2020-05-23T20:04:57 | 266,410,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from random import random
from flask import request
from flask_restplus import Namespace, fields, Resource
from apis.verify_user import VerifyUser
from models import db
from models.nonce_verify import NonceVerify
from models.student import Student
api = Namespace('api/signUp', description="Sign Up a new user")
sig... | [
"meetmalde@gmail.com"
] | meetmalde@gmail.com |
8b94b6f8a3cf469357b5616523eb1c8f2ac05b7e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03605/s512745938.py | cf053959fa1a5cb30cf04db0828a77316527a481 | [] | 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 | 97 | py | def main():
print('Yes' if '9' in input() else 'No')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
99b916bc2a529cb296b30ca2ea7a9e5c8f054f2e | 89e0495ceffc71c0614eac7e0084e4a455408c66 | /layout.py | 4a21e744c88a9bdc887b1611cfc1eb6b4e7ae628 | [] | no_license | j4cbo/cpusher | a144558c5241024068dea134b7636bcef567e831 | 6dcc2187fd67f53abede63759d1ebe8aef57c266 | refs/heads/master | 2016-09-05T15:14:55.897190 | 2015-08-31T07:24:35 | 2015-08-31T07:24:35 | 39,932,176 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | from __future__ import division
from math import sin, cos, pi
import json
import itertools
# Generate the pattern for a 6-arm (4-pixel-per-arm) tree.
def cluster6(x, y, rotation):
rotation = rotation or 0
pixel_spacing = .015
inner_pixel_radius = 1.5 * pixel_spacing
num_arms = 6
# for each arm...
... | [
"jacob@durbatuluk.us"
] | jacob@durbatuluk.us |
2e80e028db2b748647fa57e8c02cd4029b2f9c93 | 27b3c7f8e144a3f6f4699e49d7df85c2918b3b23 | /customlogger/custom_logger.py | a00a7935d53ac335c2646f71ecfd4cfe3e79646e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | deresmos/customlogger | ddf0aabba7435816a5e160474e3545758cc078a4 | 6f6bbda8caeaa27a15d4981732ac7e57a525ea6f | refs/heads/master | 2021-07-18T21:50:54.808304 | 2018-06-28T06:08:01 | 2018-06-28T06:08:01 | 98,201,131 | 1 | 1 | MIT | 2018-06-05T14:55:59 | 2017-07-24T14:40:55 | Python | UTF-8 | Python | false | false | 5,725 | py | # imports {{{1
import logging
import os
from os.path import expanduser
from colorlog import ColoredFormatter
from customlogger.only_filter import OnlyFilter
from customlogger.run_rotating_handler import RunRotatingHandler
# }}}
class CustomLogger:
# class variable {{{1
NOTSET = logging.NOTSET
DEBUG = l... | [
"deresmos@gmail.com"
] | deresmos@gmail.com |
98cad44163bdb5ebe3e8cd043f4d445c65ba1d6e | a74274955856225165d05cbd26660f5a6055b94e | /8函数/8.1cases.py | 1d1135dbbab729c57c9d0991844163bacb24f636 | [] | no_license | Vincent-Xin/learn_Python-Crash-Course | 9be5d1675d115f64133d242109ba94a056177d97 | e171be05ed3313c8ea196822e7c1c15cb298e8e7 | refs/heads/master | 2020-09-07T04:34:33.713445 | 2019-11-09T15:05:43 | 2019-11-09T15:05:43 | 220,656,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | #8-1
def display_message(thing):
print("This part you will learn "+thing+".")
display_message('函数')
#8-2
def favorite_book(title):
print("One of my favorite book is "+title+".")
favorite_book('Alice in Wonderland') | [
"noreply@github.com"
] | Vincent-Xin.noreply@github.com |
b961ca386b37ddcf12ea36e6f52198bcc8a73ed1 | 09cc9754b5815cc9d2a04d3077acd30bc02daa1a | /1/douban.py | 1353cb6e9ad593d73605175f650a435c3747fbba | [] | no_license | qq40660/sae_weixin | 0a3c0abe084d9d047b66120789fd4ba4fdcc57ce | 48f80c2ee5cb6ed59fdb4f6c58dc11a2c399f70b | refs/heads/master | 2021-01-22T17:23:22.650125 | 2013-10-24T15:17:08 | 2013-10-24T15:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
#email 979762787@qq.com
#豆瓣FM 非官方api
#https://github.com/akfish/fm-terminal/blob/develop/douban-fm-api.md
import urllib2
import json
import random
from util import MsgException
from mylog import log
#可以从下面获取http://www.douban.com/j/app/radio/channels
FM_CHANNEL = {
#0 : "私人兆赫",... | [
"979762787@qq.com"
] | 979762787@qq.com |
21e5fe91d596ee8411d7d02fe8ec525d56fb9db4 | fcb51711dc2023a3d6bb04c6e7a003ec75764f19 | /podcast-recommendations - Testing.py | b0dfc18aceabe41f0e2efbac275367face7614e5 | [] | no_license | iainforrest/recommedia | 96b73755530bbb10c5218651fc74c45cd8f42c89 | 5ccc422219424ee915e1a310fe52f0657fd90838 | refs/heads/master | 2021-01-21T04:47:53.244300 | 2016-04-05T10:32:37 | 2016-04-05T10:32:37 | 52,132,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,920 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Iain Forrest
#
# Created: 17/01/2016
# Copyright: (c) Iain Forrest 2016
# Licence: <your licence>
#-------------------------------------------------------------------------------... | [
"iainforrest@me.com"
] | iainforrest@me.com |
c6c535997f71d2bdd5c9c9f33b166a4d2e7ed277 | 37086166b7c8efb9646d886592efce0d870a7017 | /priority_queues/bouncing_balls.py | e88cd277f8665a4695c767e2b924f12df40435ef | [] | no_license | emmanuelq2/python-algorithms | b1ef445e99035f3df450d3f521c07dadcae3c370 | 99f19adf98b51297200451a5c3152ba4d8c6c8c8 | refs/heads/master | 2021-01-20T00:27:46.030275 | 2015-01-25T13:14:55 | 2015-01-25T13:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,498 | py | # -*- coding: utf-8 -*-
"""
Requirements:
python-tk
"""
import random
import math
import Tkinter as tk
from pq_api import MinPQ
CANVAS_SIZE = (600, 600)
class Ball(object):
def __init__(self, canvas, radius=None, x=None, y=None, vx=None, vy=None, color=None):
self.radius = radius if radius is not None ... | [
"renat@mennanov.ru"
] | renat@mennanov.ru |
2ed050e57ebb658cf58d78c868bc341c864cdcc9 | cc1fb29117b06328330ae3d75b70d96f26524807 | /myblog/settings.py | a36a68cf4b46d22e839dfc150fea2b906b000a89 | [] | no_license | marjana155/blogsite | 913b0f06d43696b6659d76b3a3abed408606fa3b | b97817c1f200612f35f3f70ce858a26a77230745 | refs/heads/main | 2023-06-24T03:11:25.549035 | 2021-07-12T19:58:32 | 2021-07-12T19:58:32 | 385,367,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"marjanajuthi.155@gmail.com"
] | marjanajuthi.155@gmail.com |
9c2f82067251c4845907222f0556c56052470282 | 7f2c5f05fcca0b8cf93496906e6a36f586e5a8f7 | /utils/blur_util.py | 5144e6d240508ad6c4381729bf619f7d82105723 | [] | no_license | zzq120203/object-tacking-fence | a56467a63986e160959c22f95bd1f00df249db45 | 03343d5c6f4e1ba7ab917c65c84e0ec1f8b15f37 | refs/heads/master | 2023-02-24T20:47:57.653562 | 2021-01-22T09:25:57 | 2021-01-22T09:25:57 | 331,535,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | # coding: utf-8
# =====================================================================
# Filename: blur_util.py
#
# py Ver: python 3.6 or later
#
# Description: Utility functions for the blur detection script(s)
#
# Note: Requires opencv 3.4.2 or later
#
# Author: Ankit Saxena (ankch24@gmail.com... | [
"zzq120203@163.com"
] | zzq120203@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.