blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
446c269d9ad952c539003888d51bd7beadec7feb | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Binomial Sum of Products/solution.py | 4dd01220dc43aa1d59da64e000b62aed2937d1c1 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 991 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
dp = [[0] * 1001 for _ in range(1001)]
dp[0... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
19fc724fd410f08e8fa5b65d92af23b684c6c9d4 | 666e8edee7ac129fe89d332f28774461382c73ba | /app/views.py | e23d7a7fb447ff7628697431b4b48daed9d1f967 | [
"MIT"
] | permissive | Robert-Moringa/News | ef08685b5ad3fefff8478f3ad4fe01719a349624 | 6a0057d41e0f4761447a398c1973aec7686361ec | refs/heads/master | 2023-07-05T10:23:17.617879 | 2021-08-10T08:43:06 | 2021-08-10T08:43:06 | 393,353,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | from flask import render_template
from app import app
from .request import getNews_sources,get_articles
# Views
@app.route('/')
def index():
'''
View root page function that returns the index page and its data
'''
general = getNews_sources('general')
business = getNews_sources('business')
spor... | [
"robert.maina@student.moringaschool.com"
] | robert.maina@student.moringaschool.com |
a883873036defda2559bf88c503eafccd866ca3f | 289a598144f82f98208e91afd141d7c9d0633218 | /oauth/views.py | 958502864a10cd60e7e1223ed10a1c94f56321b3 | [
"MIT"
] | permissive | zhouzhousc/ownBlog | 9f342351c999dc2fad9d719ed648d40bf644c00e | b3159020ef23c33f5ddd506052e971d7434cac5f | refs/heads/master | 2022-12-14T21:17:07.489822 | 2020-01-15T05:55:18 | 2020-01-15T05:55:18 | 233,501,747 | 0 | 0 | MIT | 2022-12-08T07:02:41 | 2020-01-13T03:16:36 | Python | UTF-8 | Python | false | false | 8,583 | py | from django.shortcuts import render
# Create your views here.
from urllib.parse import urlparse
import datetime
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth import get_user_model
from .models import OAuthUser
from django.contrib.auth import login
... | [
"871488533@qq.com"
] | 871488533@qq.com |
f0e35e2654cfa4c07eacf3559182219131f2eb1c | 0e7be557833f38fef17b5eaa57c331a96148ad5e | /Assets/Python/Smeagolheart/StarSigns.py | d23bbdaf131fd450e4151866b29f9d5824d64ffc | [] | no_license | Thunderbrd/Caveman2Cosmos | 9f38961c638b82099b0601c22f8e90a1c98daa1e | b99aca8e56fb2a1fae48abd424dc0060a1d1fc1a | refs/heads/master | 2022-01-12T19:40:32.586456 | 2019-07-21T22:00:09 | 2019-07-21T22:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | ## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
##
## Star Sign Picker by Smeagolheart
##
from CvPythonExtensions import *
import sys
import PyHelpers
import CvUtil
import BugUtil
#~ import Popup as PyPopup
#import array
# globals
gc = CyGlobalContext()
localText = CyTranslator()
PyPlay... | [
"raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97"
] | raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97 |
c0385dd959e15a328d3c8a896fbfb91309fe93b6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/366.py | 7daa0f7ef9344984af89c9954d94dea570336728 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | """gcj"""
def solve_a():
"""solveA"""
def check(table, c, i0, j0, di, dj):
"""check"""
for k in xrange(4):
i = i0 + k * di
j = j0 + k * dj
if table[i][j] == "T":
continue
if table[i][j] != c:
return Fa... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7b5012ffb9d2fca02865519baaf1342d23387b9b | 404aaad6742aa0702ceee2895830f29fadedf35e | /NotYetCurated/PlottingSurfaceValuesWithPysurfer/pysurfer_plot_VISAN_surface_values.py | 59ace54d940bb8dc075d99ddb290d515630ec24e | [
"MIT"
] | permissive | manfredg/BrainsForPublication | 6de9afa5e69e1cdb0cbab90c2b25576e423c593a | ce1b69cc1b633e0d10915f54261c7d03732f31cf | refs/heads/master | 2020-06-30T14:42:37.901730 | 2019-08-06T14:07:38 | 2019-08-06T14:07:38 | 200,860,003 | 0 | 0 | MIT | 2019-08-06T13:44:28 | 2019-08-06T13:44:27 | null | UTF-8 | Python | false | false | 15,401 | py | #!/usr/bin/env python
#=============================================================================
# Created by Kirstie Whitaker
# September 2014
# Contact: kw401@cam.ac.uk
#=============================================================================
#===============================================================... | [
"kw401@cam.ac.uk"
] | kw401@cam.ac.uk |
05dda271029fe089f31ec23300cf4f5fa8806b67 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /evennumberedexercise/Exercise06_10.py | 59d6a1185937346e98849fab73c181f04827d06e | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 443 | py | def main():
count = 0
N = 10000
for number in range(2, N):
if isPrime(number):
count += 1
print("The number of prime number <", 10000, "is", count)
# Check whether number is prime
def isPrime(number):
for divisor in range(2, number // 2 + 1):
if number % divisor == 0: ... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
467bb637bba8b3381ec072c681b1dfa953f0c7a8 | b15ccd04d3edfb4d6278a055422610be09c3916c | /7465_창용 마을 무리의 개수/sol1.py | d6286c6af72698e644af6cd67dc576019fb8ad83 | [] | no_license | hksoftcorn/Algorithm | d0f3a1a6009f47e4f391e568b29a3b51d6095d33 | 81b067b8105ba305172dd8271787c19f04d170ba | refs/heads/master | 2023-05-12T21:15:34.668580 | 2021-06-08T07:57:04 | 2021-06-08T07:57:04 | 337,121,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import sys
sys.stdin = open('input.txt', 'r')
T = int(input())
for tc in range(1, T + 1):
V, E = map(int, input().split())
G = [[] for _ in range(V + 1)]
visited = [0] * (V + 1)
to_visits = []
for _ in range(E):
u, v = map(int, input().split())
G[u].append(v)
G[v].append(... | [
"hksoftcorn.dev@gmail.com"
] | hksoftcorn.dev@gmail.com |
7b16dbd23b50ac93d8de86e64ce022cc8751302a | 4bc7c5eca4dd3590cb63f5f4df2bcba757450e9b | /h5serv/h5watchdog.py | fb7ad2b9c74eef11c633fe6be77e0d3547e22b9f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | HDFGroup/h5serv | 7658b3671108385d66bc86d07ad2a1529fb62993 | 12c1c4786259fad21cd125300e5d6be88346e11f | refs/heads/develop | 2022-11-13T06:45:10.870740 | 2022-10-25T16:16:56 | 2022-10-25T16:16:56 | 23,676,062 | 181 | 47 | NOASSERTION | 2020-04-07T22:18:25 | 2014-09-04T19:21:38 | Python | UTF-8 | Python | false | false | 1,880 | py | import sys
import time
import os.path as op
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class H5EventHandler(FileSystemEventHandler):
"""Put create events inteo queue."""
def __init__(self, event_queue):
self.log = logging.getLogger("h5se... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
c2d94f3d5dabf405e2ec2a30c6875d33b0bbec24 | 6e12c2e6d453ea1caf64c0eafaf3410b30f434e0 | /sewingworld/models.py | 1871d082f00db3dbeb7db0c22d15e79c8cd1694c | [] | no_license | andreynovikov/django-shop | 43b66ec639037473cd72f7480f83811d911104fb | 8f843b0b15354903a335c324daa65714bfb2f8cc | refs/heads/master | 2023-04-28T01:26:16.938227 | 2023-04-22T15:33:29 | 2023-04-22T15:33:29 | 43,815,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from django.contrib.postgres.fields import ArrayField
from django.contrib.sites.models import Site
from django.db import models
from shop.models import City
class SiteProfile(models.Model):
site = models.OneToOneField(Site, related_name='profile', on_delete=models.CASCADE)
title = models.CharField('название'... | [
"novikov@gmail.com"
] | novikov@gmail.com |
d4002c9f676a40d642f926d511ee36fc55bc3f43 | e4200b764d0b4ffba65180e54cf84b30ee84efcc | /panda/tests/elm_wifi.py | b0645ea8898d221977f2f22667b224160fae4807 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kegman/openpilot | c9ba96a72d905956f02c684e065091e023942883 | 54a8614b5a6451154817a4c6c86141c96103ae47 | refs/heads/kegman-0.7 | 2022-05-22T17:07:16.656336 | 2020-01-23T16:40:55 | 2020-01-23T16:40:55 | 229,979,925 | 105 | 212 | MIT | 2022-03-13T05:47:51 | 2019-12-24T17:27:11 | C | UTF-8 | Python | false | false | 25,165 | py | import os
import sys
import time
import socket
import select
import struct
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", ".."))
from panda import Panda
from panda.tests import elm_car_simulator
def elm_c... | [
"8837066+kegman@users.noreply.github.com"
] | 8837066+kegman@users.noreply.github.com |
6b4b08957a3506d425a1048076ec85e112bcd03e | 3e2b01ea678251c2a0387f3a9ba5285bfcc95ca4 | /opensanctions/helpers/sanctions.py | a94c2b9d5281f7a185c1e4910ee34fee344c5193 | [
"MIT"
] | permissive | fastbone/opensanctions | dacb726f5333ffcae9ce63ebff8630bb7e3f69c5 | dea7f7d073083eece26241bcade697a2b959a09e | refs/heads/main | 2023-06-16T21:27:18.325433 | 2021-07-08T06:26:48 | 2021-07-08T06:26:48 | 385,540,220 | 0 | 0 | MIT | 2021-07-13T08:56:45 | 2021-07-13T08:56:45 | null | UTF-8 | Python | false | false | 649 | py | def make_sanction(entity, key=None):
"""Create a sanctions object derived from the dataset metadata."""
dataset = entity.dataset
assert entity.schema.is_a("Thing"), entity.schema
sanction = dataset.make_entity("Sanction")
sanction.make_id("Sanction", entity.id, key)
sanction.add("entity", entity... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
e99404d067780dafa86b7216086942a2defd44f3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /GGibsZwLpLQJrxw8v_2.py | a791eec92188da915ef40324426d30494ddaf86f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py |
def get_lucky_number(size, nth):
lst = list(range(1, size + 1))
sieve_filter = [1]
for step in range(2, nth + 1):
i = 0
while lst[i] in sieve_filter:
i += 1
sieve_filter.append(lst[i])
lst = [val for k, val in enumerate(lst) if (k + 1) % sieve_filter[-1]]
ret... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8b3d6157a896e7c2224974b567fadcd622e71f85 | a947eebe4bb4e0ae70febc0c1bd3d7843abe8f1f | /tf_agents/bandits/environments/bandit_tf_environment_test.py | 9bb382aa32c959e27d654c3a62f9c7ef8c1c88e8 | [
"Apache-2.0"
] | permissive | MarioBonse/agents | 79d1762a59e4bbbbaf6a7fc99de792626426032e | c727141f67051b86d2564c4bd5fbc080623bfe19 | refs/heads/master | 2021-02-25T10:26:50.883869 | 2020-03-05T17:34:23 | 2020-03-05T17:34:51 | 245,453,318 | 1 | 0 | Apache-2.0 | 2020-03-06T15:24:44 | 2020-03-06T15:24:44 | null | UTF-8 | Python | false | false | 3,966 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
781b75f91909196979ff94b48e116509b2251639 | dbaee0ff4c6e0bddcc27cc65b78516fbdb42d64d | /Listy_słowniki_stringi/check_palindrome.py | 3449dd8bfdb0f99076d274d3d6fe6b1d60d7094e | [] | no_license | RKJO/Python_basic | bee1da43e09e894efd8a69a5b06ecc7d321d25d5 | 1047511ebb355866284af0de9f9bd082fc8a0b3c | refs/heads/master | 2020-03-12T09:06:15.468570 | 2018-04-30T19:39:38 | 2018-04-30T19:39:38 | 130,544,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | def check_palindrome(word):
word = word.lower()
return word == word[::-1]
print(check_palindrome("kajak"))
print(check_palindrome('anna')) | [
"rkjozwiak@gmail.com"
] | rkjozwiak@gmail.com |
4e2b656962a99be2961c1fd808ebfdeefc94186c | 797e0d8a4c5988fa3a30dd339927bf391ff0cfda | /amplify/agent/containers/system/collectors/metrics.py | 0ae855dae3fae0b890a6e91e357d7027707dd702 | [
"BSD-2-Clause"
] | permissive | vyants/nginx-amplify-agent | 77aefc399e7f2602eb62e445790e2e8f1d7d2ef9 | b3853f5b13dbeec46b2e138db2a09e0cb005aa49 | refs/heads/master | 2021-01-24T09:01:15.836022 | 2016-03-25T15:53:01 | 2016-03-25T15:53:01 | 54,729,002 | 0 | 0 | null | 2016-03-25T15:48:30 | 2016-03-25T15:48:30 | null | UTF-8 | Python | false | false | 9,279 | py | # -*- coding: utf-8 -*-
import time
import os
import re
import psutil
from collections import defaultdict
from amplify.agent.util import subp, host
from amplify.agent.context import context
from amplify.agent.containers.abstract import AbstractCollector
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx,... | [
"dedm@nginx.com"
] | dedm@nginx.com |
184e086af6a82d29908eb4f837cf3ce5cea4c75f | 1a226fc0275401b8f14dd6b8112358ad5a164584 | /argue/argumentative.py | 50deb55ae24a1ad32c61a332509d81937317cde6 | [
"MIT"
] | permissive | jrkerns/argue | f1fb10cb35ff71e361e6e12c8a0eb0a89f9227c5 | 94d27db9687696985553c3eea7dcb9d9920990c5 | refs/heads/master | 2020-03-20T20:37:24.877341 | 2018-06-18T00:52:15 | 2018-06-18T00:52:15 | 137,697,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | import functools
import inspect
def options(**option_values):
def decorator(func):
sig = inspect.signature(func)
parameter_options = sig.bind_partial(**option_values).arguments
@functools.wraps(func)
def wrapper(*args, **kwargs):
passed_values = sig.bind(*args, **kwa... | [
"jkerns100@gmail.com"
] | jkerns100@gmail.com |
77af8173aefa2faf90011ea7a1de4c42addc447e | 3235145c84c48535bbf27dabfb3faa7359ed6fef | /google-cloud-sdk/lib/googlecloudsdk/core/resources.py | e2f8ee54ef03a95c60d71680678b0d35a191281a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | paceuniversity/CS3892017team1 | b69fb10f5194f09748cd5bca48901e9bd87a55dc | f8e82537c84cac148f577794d2299ea671b26bc2 | refs/heads/master | 2021-01-17T04:34:04.158071 | 2017-05-09T04:10:22 | 2017-05-09T04:10:22 | 82,976,622 | 2 | 8 | null | 2020-07-25T09:45:47 | 2017-02-23T22:13:04 | Python | UTF-8 | Python | false | false | 43,339 | py | # Copyright 2013 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 by applicable law or ag... | [
"hanastanojkovic@gmail.com"
] | hanastanojkovic@gmail.com |
b3ab4073bfd2c9a2a3344738934e54d36182506c | d35bf154e2e284dd9d234aa0ac3260ad0fb02cff | /scheduling.py | 4492d57b16d76ad543efad18eb5df3ccc998551d | [] | no_license | saranshgrover/org | 5f0906b6990c599d727fbdb8fca2c6014edbc229 | e07a7e1398f49d742ba5e268e97d014dd9e3f002 | refs/heads/master | 2020-12-14T18:32:17.884204 | 2020-01-16T07:38:04 | 2020-01-16T07:38:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,811 | py | import webapp2
from src import config
from src.handlers.basic import BasicHandler
from src.handlers.scheduling.async.add_stage import AddStageHandler
from src.handlers.scheduling.async.add_time_block import AddTimeBlockHandler
from src.handlers.scheduling.async.delete_time_block import DeleteTimeBlockHandler
from src.... | [
"timbreynolds@gmail.com"
] | timbreynolds@gmail.com |
6c254f6ea03bea9074f3e59311f6c05448ef96c3 | 21155deb4419380b995c09946a680a261c524b5b | /meraki/models/create_organization_model.py | ab1fba9baec2c0497cc30afaa106484025da85fa | [
"MIT"
] | permissive | dexterlabora/meraki-python-sdk | 620efab5e6b6eb32ca52308be1cb740748fc0f30 | f6e6d61bd8694548169cd872b0642def69115bcb | refs/heads/master | 2023-05-25T06:50:21.845198 | 2019-06-13T12:22:34 | 2019-06-13T12:22:34 | 182,791,973 | 0 | 1 | NOASSERTION | 2023-05-22T21:37:22 | 2019-04-22T13:22:08 | Python | UTF-8 | Python | false | false | 1,401 | py | # -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class CreateOrganizationModel(object):
"""Implementation of the 'createOrganization' model.
TODO: type model description here.
Attributes:
... | [
"git@apimatic.io"
] | git@apimatic.io |
23d948dfa9e53c7d84f7f28258d440d43a7390b6 | cabfc6045ec48bb3c32f586e9ad1578b1d7ac106 | /templates/genStyleOnBrowser/transform.py | f0e64a226ead6fd9b49d8046fa9482cb20bce302 | [] | no_license | ddayzzz/AIColor-new | 1442bac3593f70ba83ac937f1e651cb197fdbe00 | 97741afd778fd28f76950e6d11f69ad839dab808 | refs/heads/master | 2020-04-07T02:33:38.562516 | 2018-11-20T09:31:21 | 2018-11-20T09:31:21 | 157,981,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | from keras.layers import Input, merge
from keras.models import Model,Sequential
from keras.preprocessing.image import ImageDataGenerator
from keras import backend as K
from scipy.misc import imsave
from keras.layers.merge import concatenate
import time
import numpy as np
import argparse
import h5py
import tensorflow a... | [
"wangshu214@live.cn"
] | wangshu214@live.cn |
1926d85ad3301a9777f86699003eef4a8d1d71b0 | 9a5505ebc6a4a9f7d710e1ef8ce488b578b63c6e | /symposion/proposals/migrations/0001_initial.py | 199637f7867d312200b959930b6849fd7d45fdf8 | [
"BSD-3-Clause"
] | permissive | arpitjainn189/pycon | 9dabbfd6119a1b2a957469d40e223d063bb91494 | 492c47820d6dc546e79c707180b3c7b3925e8e72 | refs/heads/master | 2022-12-23T15:53:53.365038 | 2020-10-01T09:57:08 | 2020-10-01T09:57:08 | 300,229,565 | 0 | 0 | BSD-3-Clause | 2020-10-01T09:54:30 | 2020-10-01T09:54:29 | null | UTF-8 | Python | false | false | 5,594 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
import taggit.managers
import symposion.proposals.models
class Migration(migrations.Migration):
dependencies = [
('speakers', '0001_initial'),
... | [
"dpoirier@caktusgroup.com"
] | dpoirier@caktusgroup.com |
999ce8a6ede01692abdeab5c8da12988b1edcb3b | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /AI/day08/deep.py | 4d83a39ffba280f63d83d9cbab423445592a67dc | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import numpy as np
import neurolab as nl
import matplotlib.pyplot as mp
train_x = np.linspace(-10, 10, 100)
train_y = 2 * np.square(train_x) + 7
train_y /= np.linalg.norm(train_y)
train_x = train_x.reshape(-1, 1)
train_y = train_y.reshape(-1, 1)
model = nl.net.newff(
[[train_x.min(), train_x.max()]],
[10, 1... | [
"610079251@qq.com"
] | 610079251@qq.com |
a01100867ddbe9e0595e5b4adc7cc6daffa3a2d1 | 0499b48d8a44f44caa7e2a04096df400d7154d45 | /wave.py | 85df6ab8fa27229736d6ce2c78ac475662a93558 | [] | no_license | jakobes/OverHeat | e1528ca7f2b4baf26ca7e64de2e9f1c66871729a | 3e4018a6e6ae61c8615ea47d3b2d6cf34031d5d6 | refs/heads/master | 2021-05-11T08:10:06.361866 | 2018-01-18T23:16:51 | 2018-01-18T23:16:51 | 118,043,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #Import libraries for simulation
import tensorflow as tf
import numpy as np
#Imports for visualization
import PIL.Image
from io import BytesIO
from IPython.display import clear_output, Image, display
import matplotlib.pyplot as plt
sess = tf.InteractiveSession()
plt.ion()
def DisplayArray(a, fmt='jpeg', rng=[0,1]... | [
"jakob2602@gmail.com"
] | jakob2602@gmail.com |
7a7f1ea25c7156a7fa4e9220ff7c1e045c0919f8 | 547e4e394b01a0834caa97a7c21359229a21e7dd | /pycorrector/rnn_attention/infer.py | 4de167720f0c8aeeb04a8e7ba8d84fcbe1ce2ec6 | [
"Apache-2.0"
] | permissive | YaoYaoZhi/pycorrector | 33da473c7a86c1b6b33f4e5663dbac1c41353f22 | 658decaacaf2d8d6af9ad0b2b3a1e7df7ff7bf0e | refs/heads/master | 2020-06-17T16:17:23.779262 | 2019-07-09T09:04:00 | 2019-07-09T09:04:00 | 195,974,046 | 1 | 0 | Apache-2.0 | 2019-07-09T09:11:42 | 2019-07-09T09:11:42 | null | UTF-8 | Python | false | false | 6,075 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
# Copyright 2016 Stanford University
#
# 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/licens... | [
"507153809@qq.com"
] | 507153809@qq.com |
2178fa57c14e231412560008ee0ce85e135b8637 | 529be2925fa28decbe2cba8e10201b2d2116aa76 | /model.py | 55252758bf87b838410707a97903f9e8750425c0 | [] | no_license | andrewcharlesjones/alphabet_structure_gan | dee9987eb9d47759268601122969cc5521a5737d | af2a8961e944541ff7da506e1e222f7888a3de55 | refs/heads/master | 2021-01-15T19:14:25.379479 | 2017-08-10T16:31:03 | 2017-08-10T16:31:03 | 99,813,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,094 | py | from __future__ import division
import os
import time
import math
from glob import glob
import tensorflow as tf
import numpy as np
from six.moves import xrange
from ops import *
from utils import *
import matplotlib.pyplot as plt
def conv_out_size_same(size, stride):
return int(math.ceil(float(size) / float(stride... | [
"ajones788@gmail.com"
] | ajones788@gmail.com |
27b6f17b0c93418179175010eb05bbb996667729 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/api/business_instance/search_subsystem_pb2.py | 8e67fe72c437986c79323895333120e104f2edbf | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,736 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: search_subsystem.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | [
"service@easyops.cn"
] | service@easyops.cn |
f987a99ed4b054e6bbc9d0186e886226ab5bdaf1 | 43852c47c9bf8f1d7d54f564a7130bb667df5110 | /rllib/algorithms/mbmpo/mbmpo.py | cf03cebdce88b4607a112298a2f21c374e21df96 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | jon-chuang/ray | 654de3518b77a9b4285ef402053a3db3e341ec94 | adf2b92afcb4688251388838210e18b8721871b9 | refs/heads/master | 2023-05-26T09:04:24.349126 | 2023-02-20T02:33:40 | 2023-02-20T02:33:40 | 206,287,690 | 1 | 1 | Apache-2.0 | 2023-05-20T08:02:24 | 2019-09-04T09:55:00 | Python | UTF-8 | Python | false | false | 23,208 | py | import logging
import numpy as np
from typing import List, Optional, Type
import ray
from ray.rllib.algorithms.mbmpo.model_ensemble import DynamicsEnsembleCustomModel
from ray.rllib.algorithms.mbmpo.utils import calculate_gae_advantages, MBMPOExploration
from ray.rllib.algorithms.algorithm import Algorithm
from ray.rl... | [
"noreply@github.com"
] | jon-chuang.noreply@github.com |
c081835fdd0595006f044965c3f9a10a861abd9f | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /sportsdata/lol_scores/models/lol_scores_round.py | 5c9ef28964c8a6fc1607b39bdc9074f9439fe73c | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,105 | py | # coding: utf-8
"""
LoL v3 Scores
LoL v3 Scores # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class LolScoresRound(object):
"""NOTE: This class is auto generated by the swagger ... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
7066b0e20d510d309592c655638bed42411ac9ce | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/veerak/pancakes.py | 6c7d7c422e9bf26034dac6db9ca1b12a29896d84 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,284 | py | __author__ = 'SATYANARAYANAREDDY'
iter_list = []
for e in range(int(input())):
iter_list.append(raw_input())
for i in range(len(iter_list)):
st = []
for each in iter_list[i]:
st.append(each)
notDone = False
for each in st:
if each != "+":
notDone = True
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
934df2fc5bb7314ff7aea2a682a18b7bbd0c879a | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/candlestick/decreasing/line/_width.py | 00f428e2c87fb25868ef5f91097219279f7d583d | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 463 | py | import _plotly_utils.basevalidators
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="width", parent_name="candlestick.decreasing.line", **kwargs
):
super(WidthValidator, self).__init__(
plotly_name=plotly_name,
parent_... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
7ce80d5aa4406b15e97e3a0aacf397bf612c4925 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /2020_July_Leetcode_30_days_challenge/Week_4_Single Number III/by_xor_and_masking.py | a74e86b16d8ce2d5af5ab2d83a98de0dd3065780 | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | '''
Description:
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.
Example:
Input: [1,2,1,3,2,5]
Output: [3,5]
Note:
The order of the result is not important. So in the above example, [5, 3] ... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
5ee764086082bc3778d74ae5a65589be880344ff | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/863.树中距离之和.py | 53556072fff10067239327fe9a9f10c54d379342 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 863.树中距离之和.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
cd56327363382b5d3a7722e5e0e45b8a559193b6 | f4da3f33987510d62c73bc3481c5284632f22826 | /benchmark/paper_fusion_circuit_level/thread_pool_size_partition_1k/run.py | ff68212084593d55df47cf962b7cd3a5dcb5a540 | [
"MIT"
] | permissive | yuewuo/fusion-blossom | 9c78a54f492c7292cb7681e9344bd33a7fa231fd | 11f4260558182e31b67f4b26ffb88c20a7c9c26f | refs/heads/main | 2023-08-05T19:36:09.292885 | 2023-07-05T02:59:41 | 2023-07-05T02:59:41 | 481,814,170 | 39 | 5 | MIT | 2023-07-05T02:59:42 | 2022-04-15T02:39:08 | Rust | UTF-8 | Python | false | false | 5,202 | py | import enum
import os, sys
import subprocess, sys
git_root_dir = subprocess.run("git rev-parse --show-toplevel", cwd=os.path.dirname(os.path.abspath(__file__))
, shell=True, check=True, capture_output=True).stdout.decode(sys.stdout.encoding).strip(" \r\n")
# useful folders
rust_dir = git_root_dir
benchmark_dir = os... | [
"yue.wu@yale.edu"
] | yue.wu@yale.edu |
1cc6126206544db42386333732fdd00f3ced4456 | 1b845de8123c750e8735ccf4297bf1e5861cbb4b | /katas/7kyu/kata9.py | 2804b09499ad340e3067ce9f275af5ba181b43d2 | [] | no_license | jorgemira/codewars | 3ef2b05fa90722cdd48bb8afb0f7536627bcfec9 | 701a756f3d466dbfe93f228b2e294cf49a7af2ae | refs/heads/master | 2020-12-19T19:07:51.485286 | 2020-01-23T15:54:52 | 2020-01-23T15:54:52 | 235,824,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | """
Codewars 7 kyu kata: Rigged Dice
URL: https://www.codewars.com/kata/573acc8cffc3d13f61000533/python
"""
from random import randint
def throw_rigged():
n = randint(0,999)
if n < 220 :
return 6
else:
return randint(1,5)
| [
"jorge.mira.yague@gmail.com"
] | jorge.mira.yague@gmail.com |
3f698eb917eb9e592cbb859c833bbc09f3dfd010 | 6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698 | /tests/test_utils/test_auth_widget.py | a6071760f2a80ced3cc45a3279a29099ac9a829d | [
"MIT"
] | permissive | aiogram/aiogram | f8f98a0beb63bd4d93ea810638d5792569bf354b | 04bd0c9e7c5421c060183b90d515050f41377bc1 | refs/heads/dev-3.x | 2023-08-30T21:20:13.018174 | 2023-08-28T23:01:54 | 2023-08-28T23:01:54 | 111,210,856 | 4,287 | 1,250 | MIT | 2023-09-10T21:34:03 | 2017-11-18T14:11:13 | Python | UTF-8 | Python | false | false | 688 | py | import pytest
from aiogram.utils.auth_widget import check_integrity
TOKEN = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
@pytest.fixture
def data():
return {
"id": "42",
"first_name": "John",
"last_name": "Smith",
"username": "username",
"photo_url": "https://t.me/i/userpi... | [
"noreply@github.com"
] | aiogram.noreply@github.com |
fd46a3470cc158cfbfc35843265ca4b016dfff39 | 7acadecbfe83f5bb9b03fdb40ff1b5ff7ca64905 | /build.py | 57cb219aa9b726db8e49ae4be43b48fe6ffcabf8 | [
"Apache-2.0"
] | permissive | dailyerosion/depmap | ffda1bf41826c8bd1b3015de259385245daf6c1a | c23a1107190009ee0a6eb4fc23d1c87027d33173 | refs/heads/main | 2023-09-01T00:15:59.516558 | 2023-08-18T15:08:24 | 2023-08-18T15:08:24 | 145,868,959 | 0 | 2 | Apache-2.0 | 2023-08-18T15:08:25 | 2018-08-23T14:57:58 | JavaScript | UTF-8 | Python | false | false | 2,381 | py | """Build this into a release for depmap-releases.
"""
import os
import sys
import datetime
import subprocess
RELPATH = "/home/akrherz/projects/depmap-releases"
RELEASE = f"v{datetime.datetime.now():%Y%m%dT%H%M}"
JSINC = [
'js/appvars.js',
'js/nextgen.js',
'js/start.js'
]
def buildjs():
"""Build (Goo... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
482cfc5d5c0f5e103fb7df28a9a70d7a95db1437 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/dataproc/v1/get_region_job_iam_policy.py | 739331ed0e7fb0f8a9b7c56f44bce07d9e6d1c64 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,833 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | 24601.noreply@github.com |
c3cc77ec7ca8af02c022b1f8be9fe1d3ed50b6a1 | e9608fd8ab1c4bb628f31e5365d3d6ab54f995f9 | /webapp.py | c450bdbf8b509567b8ce09e9b4df9612b7ca2738 | [
"MIT"
] | permissive | ucsd-cse-spis-2016/spis16-webapps-oauth-github-org-example | 6f81d5ed01fb09d13f1b187ad688e4060dd0a1ca | ed779c27dd569542af565d15c9bc3c72dc3ce07d | refs/heads/master | 2020-09-16T15:36:40.597275 | 2016-08-30T03:01:51 | 2016-08-30T03:01:51 | 66,752,961 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | from flask import Flask, redirect, url_for, session, request, jsonify
from flask_oauthlib.client import OAuth
from flask import render_template, flash, Markup
from github import Github
import pprint
import os
import sys
import traceback
class GithubOAuthVarsNotDefined(Exception):
'''raise this if the necessary e... | [
"pconrad@cs.ucsb.edu"
] | pconrad@cs.ucsb.edu |
15ea256164158262a6c6a2090360e06d57d0a9c7 | aec9a1f3d1d36f19724e745ca4d09a20f67208dc | /comments/migrations/0007_auto_20210304_1433.py | 25f469a3084c661a998a4352392af6ccf984e9b3 | [] | no_license | endlessor/open-united-backend | b1b1c3411d0d48bc79b35895c70f24d773ac7344 | 86f6905cce14b834b6bf059fd33157249978bd14 | refs/heads/main | 2023-04-29T13:35:28.529360 | 2021-05-17T14:16:39 | 2021-05-17T14:16:39 | 368,211,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Generated by Django 3.1 on 2021-03-04 14:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('talent', '0023_auto_20210304_1303'),
('comments', '0006_auto_20210304_1304'),
]
operations = [
migrat... | [
"robcoder@hotmail.com"
] | robcoder@hotmail.com |
3bdaf08583e3a20df1f028a67ed791d6182e417a | 8b76f5561f4e60ababed0940059a14c79d074020 | /stringGA.py | 53dbe496ebfdedb9f44dbb147a922a85f555e8ab | [] | no_license | seanahmad/py-trader | b25b5bfd199dd18ce3961d4f469bca2c274df8b4 | 5a228c57604eb2ac6b7a07af50a75310176d6024 | refs/heads/master | 2022-01-07T12:17:33.687691 | 2018-06-01T11:51:33 | 2018-06-01T11:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | import random
import sys
if len(sys.argv) < 2:
target = list("These violent delights have violent ends...")
else:
target = list(sys.argv[1])
mutation_rate = 0.01
max_error = (ord('z') - ord('a'))*len(target)
possible = []
for i in range((ord('z')-ord('a'))):
possible.append(chr(i+ord('a')))
possibl... | [
"jake.kasan@gmail.com"
] | jake.kasan@gmail.com |
1a52c319331cc22d4867a0d2b70c26174216c7c7 | ed95ee21aa8fb986e1b569ea0c2c3dadbacc899c | /backend/manage.py | 640fd359611b0620b2f41be664f93a0fb4f6318b | [] | no_license | crowdbotics-apps/buhg-21854 | 0f3de01dfa16eb5289be95b698108e561753f93a | 781372e833fd0ebb26c507c69487036b0495cb65 | refs/heads/master | 2022-12-30T06:10:03.459649 | 2020-10-23T00:11:11 | 2020-10-23T00:11:11 | 306,485,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | 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", "buhg_21854.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c96e77fa45f4bbbcbf7597cd732f9150f67f2d01 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Vulkan/DebugUtilsObjectNameInfoEXT.py | 0d0873e2ca362ffe619777893053d3dcb83dd27c | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,264 | py | # encoding: utf-8
# module gi.repository.Vulkan
# from /usr/lib64/girepository-1.0/Vulkan-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
efa01a233954b4ec34d26757aeffcecfde09bb66 | 86fc644c327a8d6ea66fd045d94c7733c22df48c | /scripts/managed_cpe_services/customer/single_cpe_dual_wan_site/single_cpe_dual_wan_site_services/cpe/ip_sla/sla/sla.py | ad24839b403a0c419254411badc8e73842ec4dc7 | [] | no_license | lucabrasi83/anutacpedeployment | bfe703657fbcf0375c92bcbe7560051817f1a526 | 96de3a4fd4adbbc0d443620f0c53f397823a1cad | refs/heads/master | 2021-09-24T16:44:05.305313 | 2018-10-12T02:41:18 | 2018-10-12T02:41:18 | 95,190,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,052 | py | #
# This computer program is the confidential information and proprietary trade
# secret of Anuta Networks, Inc. Possessions and use of this program must
# conform strictly to the license agreement between the user and
# Anuta Networks, Inc., and receipt or possession does not convey any rights
# to divulge, reproduce,... | [
"sebastien.pouplin@tatacommunications.com"
] | sebastien.pouplin@tatacommunications.com |
f2ff20c22d06fdd43e93b0913c445ff16238fcd4 | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /build/mock_views/reply_comment/api_wrapper.py | 3482b91fc51b0260645ff622de4fa387e4e2e706 | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | from django_swagger_utils.drf_server.utils.decorator.interface_decorator \
import validate_decorator
from .validator_class import ValidatorClass
@validate_decorator(validator_class=ValidatorClass)
def api_wrapper(*args, **kwargs):
# ---------MOCK IMPLEMENTATION---------
try:
from fb_post_v2.views... | [
"="
] | = |
4f71b61d9a032e7eacdde1ec98800ef87983c28f | a2ac137f001067361fce81a7488d73ccca6438de | /store/migrations/0011_auto_20150823_1336.py | 0d3d35192719e2a17d4e4998ad6295f5d8f8f038 | [
"Apache-2.0"
] | permissive | bharathramh92/easy-ecom | 3f00cad0e725fc7defc22ce10a35d61fa2cb6946 | 164f1b6e11559386efef474c5f50d33b4ddea792 | refs/heads/master | 2020-12-30T09:51:30.133202 | 2015-10-08T19:29:21 | 2015-10-08T19:29:21 | 40,255,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('store', '0010_auto_20150821_1702'),
]... | [
"bharathramh92@gmail.com"
] | bharathramh92@gmail.com |
38e2ba69f47a7405f1480d1bd0007de3bc0f0dc5 | 8bbb2cd199a76de35e383b09702d690a4dea1d9a | /keras/keras26_LSTM_split2.py | e42e6db69c5dbd02e1e304b679610adf19e91dbd | [] | no_license | wowodo/bit_seoul | 008c482b6c0fd8681ad219a7d70c3e752939f156 | 31363c2558738bb3fb88a06e5d5167a1a32fc2ba | refs/heads/main | 2023-02-01T10:26:06.846242 | 2020-12-18T07:39:34 | 2020-12-18T07:39:34 | 311,280,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py |
#실습: 모델 구성
#train, test 분리하기 + early_stopping + validation_split
#predict
import numpy as np
#1. 데이터
dataset = np.array(range(1,101))
size = 5
#데이터 전처리
def split_x(seq, size):
aaa = [] #는 테스트
for i in range(len(seq)-size+1):
subset = seq[i:(i+size)]
#aaa.append 줄... | [
"noreply@github.com"
] | wowodo.noreply@github.com |
b36acd4ce1642e021e71a565edc1f65991f7d3e5 | 1306907df768126b779142cfdd296ad66f94ce91 | /base/01/hello_world.py | a2c1219957d8f4a6cc4c418bec8ae1079765f37d | [] | no_license | lluxury/vamei_code | 3c9cbac2d31f3d6c46f03bb68e3b1e46bccc14ff | d3e4517c09f9c5cd8d55feb32e20eac799fa598b | refs/heads/master | 2021-01-24T08:55:14.822489 | 2019-03-21T03:26:33 | 2019-03-21T03:26:33 | 93,398,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def hello():
#print('Hello, World!')
hl = 'Hello, World!'
return hl
if __name__=='__main__':
hello()
| [
"tmp4321@qq.com"
] | tmp4321@qq.com |
a9c5568fc328fc126f8a04c76e63b1c476618aba | 4a48593a04284ef997f377abee8db61d6332c322 | /python/astropy/fits/write_binary_table.py | 894f133e82a921b6ae464172756e7f44f501bae9 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 925 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Documentation:
# - http://docs.astropy.org/en/stable/table/index.html#getting-started
# - http://www.astropy.org/astropy-tutorials/FITS-tables.html
# - http://www.astropy.org/astropy-tutorials/FITS-header.html
import argparse
from astropy.io import fits
import numpy a... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
8f25074b43519101d79dedd5d65166e702bef1d5 | 52877e2b60ed675eb16ea66c7398127294a313d3 | /t2t_bert/utils/tensor2tensor/data_generators/multi_problem_v2_test.py | e714850c99ffb0f64dfe1e6b0f427c245ad8125a | [
"Apache-2.0"
] | permissive | yyht/BERT | 0dc82ea8e141cad4774e638dd7d44f781d77b6c3 | 480c909e0835a455606e829310ff949c9dd23549 | refs/heads/master | 2023-04-07T03:32:28.123608 | 2021-02-17T02:15:58 | 2021-02-17T02:15:58 | 162,232,730 | 37 | 12 | Apache-2.0 | 2022-11-21T21:15:04 | 2018-12-18T05:02:27 | Python | UTF-8 | Python | false | false | 7,407 | py | # coding=utf-8
# Copyright 2019 The Tensor2Tensor Authors.
#
# 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... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
d4ac2a4469483136340bf3e207d48e9b07a5c783 | f8bb2d5287f73944d0ae4a8ddb85a18b420ce288 | /python/opencv/opencv-old/undistort.py | 62af2c2ca726a7b3712cfbc34bb80274550cdf99 | [] | no_license | nishizumi-lab/sample | 1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2 | fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2 | refs/heads/master | 2023-08-22T15:52:04.998574 | 2023-08-20T04:09:08 | 2023-08-20T04:09:08 | 248,222,555 | 8 | 20 | null | 2023-02-02T09:03:50 | 2020-03-18T12:14:34 | C | UTF-8 | Python | false | false | 692 | py | # -*- coding: utf-8 -*-
import cv2
import numpy as np
def main():
# カメラの内部パラメータ
K = np.array([[813.03410511, 0, 322.04748609],
[0, 815.50965611, 234.09421823],
[0, 0, 1]])
d = np.array([0.05957042, -0.83315378, -0.00415272, -0.0033495, 3.08794282])
# 補正する画像の取得
i... | [
"yusuke059@gmail.com"
] | yusuke059@gmail.com |
00fdf029c9c669cacbfa00e16ddb45b9650ddb14 | ce6d89836059913a485ace9b464454f7bcea189e | /basenji/trainer.py | 93b9eb8b7391ac5451afc59cfb148a869c92e7da | [
"Apache-2.0"
] | permissive | gfudenberg/basenji | 236e7c74ffb102cab11eadb240d46293a84cae71 | 77eff8e1bea1a67c5f4e0f469c4059ce0cd7667c | refs/heads/master | 2022-06-22T04:15:42.876690 | 2022-06-17T16:25:10 | 2022-06-17T16:25:10 | 147,593,761 | 0 | 1 | Apache-2.0 | 2018-09-06T00:12:04 | 2018-09-06T00:12:04 | null | UTF-8 | Python | false | false | 29,571 | py | # Copyright 2017 Calico LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
e460294aaba89a380cdd5605ec95b2e9cd021375 | 52d6027f90e9d2bd40ecb5121c4e59b89c56c5e6 | /querySetbuilder.py | 34e872354e5d87b192ac4d91ee1efe6025bffc22 | [] | no_license | tkdnsk0070/postgisQueryBuilder | 07cbd07f81000abc97d55667653fd2fa1c76d6a1 | a7ad43284e30be69dd619a997c882da69971d57f | refs/heads/master | 2021-09-03T21:12:52.906147 | 2018-01-12T02:23:04 | 2018-01-12T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,167 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
postgisQueryBuilder/querysetbuilder
A QGIS plugin
helps to build views in postgis
-------------------
begin : 2014-04-24
... | [
"enricofer@gmail.com"
] | enricofer@gmail.com |
47bb3226134f70edfa85b23c8c58cf87350c0d13 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/joy/catkin_generated/pkg.installspace.context.pc.py | 3924bb5b2ca235db7193cf9d3bd29915df081cb0 | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;diagnostic_updater;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
1dbfa0fcdcd5322ff2d2083bad45b89d829191eb | 57bdef42a3093647aafde93031fc22be02e56be0 | /2015/entry15/Ter5A_source_code.py | 8defe96932b38a405ad0ba4b134f3c8599302a76 | [] | no_license | jhepc/jhepc | c49550f0a1238d2da2489b5435692e865b43b3cd | 1f83bf98b0ea670a138d731176c36ae8766d50be | refs/heads/master | 2021-01-21T06:25:21.989465 | 2020-09-22T14:43:18 | 2020-09-22T14:43:18 | 82,865,980 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.lines as mlines
import skew_projection
#==========================
# Loading data
#==========================
AP = np.load("Average_emission.npy")
I_AP = AP[0, 1:, 1:] # Total intensity
L_AP = AP[1, 1:, 1:] # Linearly polarized emission
V_AP = ... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
ab3dd63d3c019213984523cd9dda68236355ad4a | a4a5c6f185ed38ea4b93e49408f369f2ae7073e9 | /aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/DeleteServiceRequest.py | 25b92af3ac0646c8f42af0db7f10b11bec44de86 | [
"Apache-2.0"
] | permissive | samuelchen/aliyun-openapi-python-sdk | 86ee6eb9573e68cbf98ea61328818bfca005f25f | 52dda2326c34633858e4ed83a526dadce90dd5ef | refs/heads/master | 2020-03-07T03:50:18.248590 | 2018-04-02T13:48:10 | 2018-04-02T13:48:10 | 127,248,156 | 1 | 0 | null | 2018-03-29T06:39:31 | 2018-03-29T06:39:30 | null | UTF-8 | Python | false | false | 1,377 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
4ee600bf2989520ede51c2ceb3c9fb6075ac1b70 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/blei-lab_edward/edward-master/examples/latent_space_model.py | e89cc4ca0f632efa240ece890a72658d6e1bf44a | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,479 | py | #!/usr/bin/env python
"""Latent space model for network data (Hoff et al., 2002).
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import edward as ed
import numpy as np
import tensorflow as tf
from edward.models import Normal, Poisson
ed.set_seed(42)
... | [
"659338505@qq.com"
] | 659338505@qq.com |
728c671efa257c898e86d2532169644b0c3c3f18 | 57255dcc8baead9b321d4ecdad4bc051b8abc130 | /src/utility/metadata.py | 06752d2d570cd33c07a32e1325502ebd54c37d3f | [
"BSD-2-Clause"
] | permissive | rohe/saml2test | 2f5220f92eb97fe248667780655a9786b8939c9c | 2a67765b5d6c2877e683402dbbc2b7f4f98dfbbf | refs/heads/master | 2016-08-04T09:21:03.018722 | 2014-12-10T12:50:18 | 2014-12-10T12:50:18 | 7,664,450 | 2 | 2 | null | 2014-12-10T12:50:53 | 2013-01-17T10:44:58 | Python | UTF-8 | Python | false | false | 1,229 | py | import os.path, sys, time, urllib
from time import strftime
import logging
__author__ = 'rhoerbe'
logger = logging.getLogger(__name__)
def fetch_metadata(url, path, maxage=600):
"""
:param url: metadata remote location
:param path: metdata file name
:param maxage: if max age of existing metadata fil... | [
"rainer@hoerbe.at"
] | rainer@hoerbe.at |
94b50391325ef2ff3156943cae0b833c48490d73 | 02a785cec1d689b72fa27e526e8718ca697ecf1f | /pylgbst/movehub.py | cc3f4de196766d162ade095a7c5e7c9d11dddfc8 | [
"MIT"
] | permissive | Fabian1976/pylgbst | a9d5945221a9662dcc5ccb2c72f3cc0c6a30266f | 0fb438fae07ac03f835f3ec911102cb66177e468 | refs/heads/master | 2020-03-13T04:39:44.232569 | 2018-03-23T11:11:43 | 2018-03-23T11:11:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,791 | py | import logging
import time
from struct import pack
from pylgbst.comms import BLEConnection
from pylgbst.constants import *
from pylgbst.peripherals import Button, EncodedMotor, ColorDistanceSensor, LED, TiltSensor, Voltage, Peripheral, \
Amperage
log = logging.getLogger('movehub')
ENABLE_NOTIFICATIONS_HANDLE = 0... | [
"apc4@ya.ru"
] | apc4@ya.ru |
8d4ff644b386f09552718e9c36e8bba7fbae55bd | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/views_20190223144316.py | 824b69ac410cb381c3e78d017949856f2c32aeea | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from django.shortcuts import render
# from .models import ServicePost
# from Solution.models import SolutionPost
def index(request):
# service_post = ServicePost.objects.all()
# solution_post = SolutionPost.objects.all()
# context = {
# 'service_post': service_post,
# 'solution_post': sol... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
ad79ed9f1361500b94ae4320679cb2a8a781961d | a939e018333a9ecd26ddc618f99835b7eb381686 | /le_crawler/extractors/youtube_static.py | 5fed4950be0a86a1dcc9de96aa55af742d4c9cf2 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,878 | py | #!/usr/bin/python
# coding=utf-8
import sys
import json
import time
import re
import urlparse
from static_extractor import StaticExtractor
from ..common.utils import multi_key_fields, source_set, safe_eval, build_user
from ..common.parse_youtube import youtube_category_dict, parse_thumbnail_list, parse_channel_detail,... | [
"zjc0516@126.com"
] | zjc0516@126.com |
23b3e10ad45d06ff8baef53ee1b69c9a9525bf79 | 3eb99709809a493c46a79171ef9774aa4261b59d | /脚本/llianli/ydz_app_statics_uin_reflection.py | 54a0af7c625eb9faeba3e3b082b6fac83c374488 | [] | no_license | bingwin/tencent | c831a5b344f597a06c7a7b179d4f67d668198c90 | ea5dc5ff398d85cfdf4df056dc8b4064e66fb5fb | refs/heads/master | 2020-07-28T21:44:00.281933 | 2016-05-28T03:21:31 | 2016-05-28T03:21:31 | 209,548,176 | 1 | 0 | null | 2019-09-19T12:29:21 | 2019-09-19T12:29:21 | null | UTF-8 | Python | false | false | 3,407 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# ******************************************************************************
# 程序名称: ydz_app_staics_uin_reflection.py
# 功能描述: 油点赞数据统计——设备号与账号的映射关系
# 输入参数: yyyymmdd 例如:20140113
# 目标表名: ieg_qt_community_app.tb_ydz_app_page_action_width_table
# 数据源表: ... | [
"996346098@qq.com"
] | 996346098@qq.com |
4f86ca6a0f8e75bc4fa11f40acbaa1ae812782b5 | 983ca9afc80dc1bd2cd25e81ec51de8c1fd39394 | /Unit3/3.3/pdfread.py | 9ba427e80280878b133ed1bf732d0e79b0940702 | [] | no_license | mi1k7ea/Violent-Python | d5630a67cbdc218640d21f58e4081cd6530f32fe | c8048b04e02a6e91aed8e73af36e707b004b115c | refs/heads/master | 2022-11-25T23:06:05.138896 | 2020-08-02T15:03:32 | 2020-08-02T15:03:32 | 284,483,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!/usr/bin/python
#coding=utf-8
import pyPdf
import optparse
from pyPdf import PdfFileReader
# 使用getDocumentInfo()函数提取PDF文档所有的元数据
def printMeta(fileName):
pdfFile = PdfFileReader(file(fileName, 'rb'))
docInfo = pdfFile.getDocumentInfo()
print "[*] PDF MeataData For: " + str(fileName)
for meraItem in docInfo:
pri... | [
"mi1k7ea@qq.com"
] | mi1k7ea@qq.com |
d3525105e0e77d4263d2145c0807c351e573f266 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/React.js/juejin_2057.py | d2fae2a6b4a3fcc82d00c225cf48607feb9a70dc | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,015 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903872922648589", "article_info": {"article_id": "6844903872922648589", "user_id": "3808364008837518", "category_id": "6809637767543259144", "tag_ids": [6809640357354012685], "visible_level": 0, "link_url": "https://juejin.im/post/6844903872922648589", "c... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
0b97426c8ada575ec43c44833d0d8bee52b02e07 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /railrl/torch/sac/bear.py | e78bba39b967fa9d260bee10344da0109e86e9bc | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,483 | py | from collections import OrderedDict
import numpy as np
import torch
import torch.optim as optim
from torch import nn as nn
import railrl.torch.pytorch_util as ptu
from railrl.misc.eval_util import create_stats_ordered_dict
from railrl.torch.torch_rl_algorithm import TorchTrainer
from torch import autograd
class BEA... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
3f6cec2272c4afad8f2c6791a5ed69c2b631abc2 | b2ed0f6787e84a0c1c03a79f53f4d2cef15a6e6a | /4_extracting_mtf_tsmfe/pymfe/tsmfe.py | d00d6aa7d437dd3d20dd04868c98aecf02ba6354 | [
"MIT"
] | permissive | FelSiq/ts-pymfe-tests | fafb1af89ef92e9f957640c89b58e545bf5167ad | b11000d9745b7822f026b966d91255ecc7f77564 | refs/heads/master | 2022-09-22T10:08:46.198453 | 2020-06-05T23:07:17 | 2020-06-05T23:07:17 | 265,098,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,985 | py | """Main module for extracting metafeatures from time-series."""
import typing as t
import collections
import shutil
import time
import texttable
import numpy as np
import pymfe._internal as _internal
import pymfe._period as _period
import pymfe._detrend as _detrend
_TypeSeqExt = t.Sequence[t.Tuple[str, t.Callable, t... | [
"felipe.siqueira@usp.br"
] | felipe.siqueira@usp.br |
0f542a139c31881ad0588216d326f3d4dfbd2f43 | cdbd54f19b28c651e1945f4514a2a2a5431d4753 | /day5/thread_qiushi.py | d0298e372f2fbfc0a1627e7442bd5b9e95428920 | [] | no_license | Knowledgeofitselfisriches/spider | 8ccc7e928da00dc7b53159fb53d6f38b16316ee9 | 797736b6ac850532efe42d9e60524d612d99ad02 | refs/heads/master | 2020-03-27T08:41:06.005591 | 2018-09-11T05:48:10 | 2018-09-11T05:48:10 | 146,277,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,227 | py | from queue import Queue
from threading import Thread, Lock
import time
import requests
import json
from lxml import etree
crawl_exit = False
parse_exit = False
# 采集数据的线程
class ThreadCrawl(Thread):
def __init__(self, thread_name, page_queue, data_queue):
super(ThreadCrawl, self).__init__()
self.t... | [
"283658013@qq.com"
] | 283658013@qq.com |
a5f92e4f75b5396279a05f6122ace00f0adcdd60 | d7a98b740b2554b652745540ff0e610bd080353b | /celery_tasks/celeryconfig.py | d6685945d25aebca18c4c84c2fa321ce0daa49a6 | [] | no_license | wangcongxing/NetOpsAPI | 629339a29d1007a1b5264262e542e0441cfe1ea2 | 45a5c550bb7fae41d7038114861587a071a39684 | refs/heads/main | 2023-06-26T11:56:01.008911 | 2021-08-04T13:20:07 | 2021-08-04T13:20:07 | 391,358,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from django.conf import settings
import os
# 为celery设置环境变量
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'NetOpsAPI.settings')
# 设置结果存储
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/9'
# 设置代理人broker
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/8'
# celery 的启动工作数量设置
CELERY_WORKER_CONCURRENCY = 20
# 任务预取功能,就是每个工作的进程... | [
"2256807897@qq.com"
] | 2256807897@qq.com |
504f133e35aedc4c0777a2dbd559b18920be5b9a | 84b9c1b4f4410c9c5e375334cbcefa89d7469313 | /covid/settings.py | 3cb1d4ee27f2b63740fd6c5231eb5d4c9ce7cf4a | [] | no_license | masato1230/covid | 91ebcb571586dea7ef950df0593596e4f3e935ad | b27c6f71ec422a0cd1a1f1760b46e33d26803131 | refs/heads/master | 2022-12-30T19:29:08.192535 | 2020-10-15T05:26:02 | 2020-10-15T05:26:02 | 304,219,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | """
Django settings for covid project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"you@example.com"
] | you@example.com |
248da5da02d319e18ed1c66be76d395a1e96bd1c | 08e0d30549f22fe41de5b9290d65e5652508dedf | /Chapter22/test_BFS.py | 000e70a87ddf8d0c4d55d3a2ce330da42731f0a7 | [] | no_license | SolbiatiAlessandro/CLRS | a49f93e2cfe2ed520b8426024c0ca478028766e1 | 97154c9a36c96a40f89042c147f90f7eabd89eb6 | refs/heads/master | 2020-03-28T15:03:13.280628 | 2018-11-24T13:03:22 | 2018-11-24T13:03:22 | 148,550,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import unittest
import BFS
from BFS import graph
class testBFS(unittest.TestCase):
def testBFS(self):
G = graph()
G.addEdge('v','r')
G.addEdge('s','r')
G.addEdge('s','w')
G.addEdge('t','w')
G.addEdge('x','w')
G.addEdge('x','t')
G.addEdge('u','t')
... | [
"alexsolbiati@hotmail.it"
] | alexsolbiati@hotmail.it |
f87c7e9ade11413a9f8bb1108501982858961db7 | 9b6c1758e5b6e3ce8d223c1a536b505b11e4f980 | /apps/first_app/migrations/0001_initial.py | 32b04c2c7c91998136b339489eaf1b153d09a8ee | [] | no_license | john-gore/firstdeployment | f28ef8f7c8849c8ff84c29ab2c831270055c3914 | cf7fdba9d99834370ee53417f8ca4f4b9825c58f | refs/heads/master | 2021-05-08T02:30:59.889402 | 2017-10-23T16:52:47 | 2017-10-23T16:52:47 | 108,010,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-10-21 17:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='users',
... | [
"johngore@Johns-MBP.localdomain"
] | johngore@Johns-MBP.localdomain |
566ddbcb0d0fca5ef7998445ea7a02ca5d44bd8e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1480487_0/Python/WesP/A.py | 2171220796e1c23e827afdba918f2bd4b2f34afa | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | import sys
T = int(sys.stdin.readline())
for i in xrange(T):
line = sys.stdin.readline().split()
N, judge_scores = int(line[0]), line[1:]
judge_scores = map(int, judge_scores)
X = sum(judge_scores)
work = [x for x in enumerate(judge_scores) if x[1] < X/float(N)*2 ]
# for x in ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
e1e9b8132c47ff52322189430e5fb351f5329445 | 7408dd6c91e601133ca6971d84639ce1b4f18622 | /Wikipedia/mwclient/client.py | 88849970081e5e64b4351ab85708f5aa6dcbcc30 | [
"MIT"
] | permissive | theY4Kman/Yakbot-plugins | 72370cff674335e45f18b27418bc5f0cb87f62ca | faac0bd4fb2599c8adf5aab583ce986aafa037c7 | refs/heads/master | 2021-01-01T19:21:03.117097 | 2012-09-17T03:27:57 | 2012-09-17T03:27:57 | 1,045,656 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,394 | py | __ver__ = '0.6.2'
import urllib, urlparse
import time, random
import sys, weakref
import socket
import simplejson
import http
import upload
import errors
import listing, page
import compatibility
try:
import gzip
except ImportError:
gzip = None
try:
from cStringIO import StringIO
except Impo... | [
"they4kman@gmail.com"
] | they4kman@gmail.com |
345d6bfb15a97c2af0838d3b246e69edfce038a7 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/imaplib/imaplib_6.py | 60fa05175cb5b2994d7a494289a1b5a6e909b4e4 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import imaplib
from imaplib_1 import open_connection
if __name__ == '__main__':
c = open_connection()
try:
typ,data = c.list(pattern='*Junk*')
finally:
c.logout()
print 'Response code:',typ
for line in data:
print 'Server respon... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
4c5b11b156106a78080dde9cdb016a5d889d204f | e76d2270f2c899ac6fa5650c00dd731622cc36c7 | /h2o-py/tests/testdir_algos/gbm/pyunit_fiftycatGBM.py | 4ee7f32f460747cf9efe2afeee9b514f59cba047 | [
"Apache-2.0"
] | permissive | danbikle/h2o-dev | d08c1696c6ceb8b9e4c9f03810961cd6cde8c545 | 2ceac00799e0d158692f701aa1d86a06ad9a826f | refs/heads/master | 2020-12-25T10:35:05.635715 | 2015-02-28T04:01:07 | 2015-02-28T04:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import sys, os
sys.path.insert(1, "../../../")
import h2o
def fiftycatGBM(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has only 45 categories cat1 through cat45
#Log.info("Importing 50_cattest_train.csv data...\n")
train = h2o.import_frame(path="smalldata/gbm_test/50_cattest_train.csv")
tra... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
6ad763f3a2639b60f3865c1fd24f5ff85f4fe23e | 5397c6bd14e272f4a274412018084615f5da7b9b | /_python/python_fundamentals/Modular_practice/parent.py | b6f7e6167ee8cde434b4800f1be58b05b811e98e | [] | no_license | nassersayeh/Python_stack | f7be8b4e7406078e4864118350989f2f9c1a905c | c91d220b27f4faf5a90f492bf3b3fa0d8d2957a2 | refs/heads/main | 2023-05-04T03:49:51.624679 | 2021-05-29T15:30:16 | 2021-05-29T15:30:16 | 367,853,112 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | local_val = "magical unicorns"
def square(x):
return x * x
class User:
def __init__(self, name):
self.name = name
def say_hello(self):
return "hello"
print(square(5))
user = User("Anna")
print(user.name)
print(user.say_hello())
print(__name__)
if __name__ == "__main__":
print("the file i... | [
"nasser.sayeh89@gmail.com"
] | nasser.sayeh89@gmail.com |
1b777c28b4fe9f5556a4d1b23b52d5c881509558 | 915ed6329eb81a3bfd23bb70b10ca3e3a4bd0cd4 | /tweets/models.py | 7dc80066fc3065d3458ad8f3e9340d0a796b1fb1 | [] | no_license | jimpalowski/TweetMe | 7e4cd7c5d4b118af82ca529448ebf34f6b728d06 | a99883c6a39a710d9dbcb92f8394bb7a65486bbe | refs/heads/master | 2021-04-30T13:00:43.913859 | 2018-02-26T22:52:30 | 2018-02-26T22:52:30 | 121,285,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | import re
from django.conf import settings
from django.urls import reverse
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_save
from django.utils import timezone
# Create your models here.
from hashtags.signals import parsed_hashtags
from .vali... | [
"palowskijim@gmail.com"
] | palowskijim@gmail.com |
3a4574c2c6488337e70740ac9bb6fb0e23fb77f3 | f64aaa4b0f78774464033148290a13453c96528e | /generated/ansible-collection/apimanagementapi.py | 4536aec43bd934ea30ecd984f166a28e6bdc2241 | [
"MIT"
] | permissive | audevbot/autorest.cli.debug | e8996270a6a931f243532f65782c7f8fbb1b55c6 | a507fb6e2dd7826212537f27d583f203aac1c28f | refs/heads/master | 2020-06-04T05:25:17.018993 | 2019-08-27T21:57:18 | 2019-08-27T21:57:18 | 191,876,321 | 0 | 0 | MIT | 2019-08-28T05:57:19 | 2019-06-14T04:35:39 | Python | UTF-8 | Python | false | false | 35,776 | py | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"audevbot@microsoft.com"
] | audevbot@microsoft.com |
deafe3226a55ec917e692f5605f4d01794131683 | e7a5e140ccacc10a4c51b66fa5942974330cce2c | /py_insightvm_sdk/models/page_of_discovery_connection.py | d514c89966a4b8fb2edca48939f82c3704e101d8 | [
"Apache-2.0"
] | permissive | greenpau/py_insightvm_sdk | 38864c7e88000181de5c09302b292b01d90bb88c | bd881f26e14cb9f0f9c47927469ec992de9de8e6 | refs/heads/master | 2020-04-21T08:22:31.431529 | 2020-02-27T02:25:46 | 2020-02-27T02:25:46 | 169,417,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,316 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"greenpau@outlook.com"
] | greenpau@outlook.com |
923139b468a7aacfb5c7fbb556e234dde7f3f69c | 5c644c44100187402da741281e28e609b7b3cbe1 | /requireconfig/__init__.py | 4630c2fac2281db35aaeff124a79b1986d8fcfd3 | [] | no_license | quantmind/require-config-js | cbd03df84d6dc631c96b5d5a4f083d476c01eeca | 2dedf5d11c40745a7fc6a75084edaf64815a0d27 | refs/heads/master | 2016-09-05T19:45:51.007984 | 2015-04-18T12:07:09 | 2015-04-18T12:07:09 | 24,818,191 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from os import path
import lux
from lux.extensions.static import HtmlContent
HTML_TITLE = 'd3ext examples'
#STATIC_LOCATION = path.join(path.dirname(path.dirname(
# path.abspath('__file__'))), 'docs', 'd3ext')
STATIC_LOCATION = ''
CONTEXT_LOCATION = None
MEDIA_URL = ''
STATIC_API = None
MINIFIED_MEDIA = True
CODE... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
14cd3cae8ba35302a1151f22327fcce30bffce5b | 9d9d344835bb9c60a2675b300b6da275669a5c53 | /code.py | 23c4b2c64f7546861d4c346fbad485e24e3e96ac | [] | no_license | pooja-pichad/dictionary | 7fd3c77e665d9bf0d6d778117857a4c61de7913f | 25ba5799c15e2656410a7d1ffa2e0499aa0b8d89 | refs/heads/main | 2023-07-03T11:36:22.274279 | 2021-07-20T07:03:45 | 2021-07-20T07:03:45 | 387,702,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | keys=["one","two"]
values=[1,4]
a={}
i=0
while i<len(keys):
a[keys[i]]=values[i]
i=i+1
print(a)
# keys=["one","two"]
# values=[1,4]
# d={}
# for x in (keys,values):
# d.upadte({keys:values})
# print(d) | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
a7541df3eb7922b15cf8b246fc3611721dd98ae5 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /api/allocate/reference_data/python-flask/api_server/controllers/mappings_controller.py | 9dc5644bdf1a76bbfabf686c312a1ffee2fcaa01 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 2,560 | py | import connexion
import six
from api_server.models.mapping import Mapping # noqa: E501
from api_server.models.mapping_set import MappingSet # noqa: E501
from api_server import util
def create_mapping(set_id, mapping): # noqa: E501
"""create_mapping
Create a new entry in a mapping set # noqa: E501
:p... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
355d29d12859346a3b4ef65e1148e6ed5166b29d | c2bc6aba62261a5277a8685ef7584d1d111292c4 | /tensorflow/python/debug/cli/analyzer_cli.py | 22e451e38cff722fc7f7d98a595430ee6a4a2f3b | [
"Apache-2.0"
] | permissive | pavelchristof/gomoku-ai | 32fd17dd12d228b804721350698fe27571df0ccb | 80732fe5cee95fd238103a3a05ef7a9837239020 | refs/heads/master | 2021-01-09T23:34:46.584046 | 2017-08-31T19:06:29 | 2017-08-31T19:06:29 | 73,220,761 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 55,928 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
c2dacfa647f3692123cd65749947b64fe312068b | ca3c3fc4364b401e07287083c1affeb9869cf1ca | /pspicetongspice/PspicetoNgspice.py | c43e30537cceeccc98bb2ab87fdaea5c084dc41a | [] | no_license | z80/kicad-ngspice | 8dea451dcacf8a919adf20c637f1c1fd401449f4 | ef32be94e17dc0d74ecfb424fbedd72fac63afda | refs/heads/master | 2020-12-25T05:08:55.303371 | 2012-01-23T08:46:15 | 2012-01-23T08:46:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,329 | py | #!/usr/bin/python
# This program converts Pspice netlist to ngspice netlist
import sys
import os.path
def readNetlist(filename):
"""Read Pspice netList"""
# Open file if it exists
if os.path.exists(filename):
try:
f = open(filename)
except :
print("Error in opening file")
sys.exit()
els... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
cae42a0c563554e596f3e2cab520bbe4f9ad6319 | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-2312.py | d3620e2aa881c00abe9413745a61fa07bb4c1624 | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 695 | py | #!usr/bin/env python
# *-* coding:utf-8 *-*
"""
POC Name : 泛微oa任意目录遍历(登录后可getshell)
Author : a
mail : a@lcx.cc
refer : http://www.wooyun.org/bugs/wooyun-2015-0148980
"""
def assign(service, arg):
if service == "weaver_oa":
return True, arg
def audit(arg):
url = arg +... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
286b418eb958aaf2480f47ab67771b7e592f22f5 | 21ab826db670e26024050536f0e2c5a6354d53cf | /boj/p2588.py | e59619227df79096d7e7603bf1ae81a403b2dd66 | [] | no_license | mingrammer/problem-solving | 32a6cba9545fcb7cda99314c9fb6d68dd94de985 | d9cd8aaea6dcbe79b4689634ffc92eee0031cc65 | refs/heads/master | 2022-11-26T15:46:39.372093 | 2020-08-01T11:00:58 | 2020-08-01T11:00:58 | 36,556,280 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | m, n = input(), raw_input()
for i in n[::-1]:
print m * int(i)
print m*int(n)
| [
"k239507@gmail.com"
] | k239507@gmail.com |
3be7874ee57280f3ef7fe5a8c269ad2dcd91ba4d | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/cogdominium/CogdoGameAudioManager.py | 218169cb70fa4b264433097a50c727d0f7510ca9 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 4,740 | py | # File: t (Python 2.4)
from pandac.PandaModules import AudioSound
from direct.interval.SoundInterval import SoundInterval
class CogdoGameSfx:
def __init__(self, audioSound, audioMgr, source = None):
self._audioSound = audioSound
self._audioMgr = audioMgr
self._source = source
... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
52acbc4ab26679f8bfa5d9c886d85282b9bce3b2 | 91613212a23e99ed59dc67f4f41cf5e8c29fd97f | /backend/ada_27086/urls.py | 2ded8cb826848f3b66a38b36ce7530f78a8f8ff3 | [] | no_license | crowdbotics-apps/ada-27086 | f11fe3d8658dd4447de5811fc2a2b8444c1a3394 | 98aaa0e52db91dbb96bd4e61431c954658f34f94 | refs/heads/master | 2023-05-07T18:23:47.411605 | 2021-05-21T15:38:43 | 2021-05-21T15:38:43 | 369,580,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | """ada_27086 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-bas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
87032026079b750c3b858a0aee524ac75469a057 | fc58366ed416de97380df7040453c9990deb7faa | /tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/api/servers.py | 78938e9a1d4b0e08cf38b38936188cb33ce1fee6 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,550 | py | import eventlet
eventlet.monkey_patch(thread=False)
import os
import uuid
import thread
import copy
import collections
import webob
from webob import exc
from six.moves.urllib import parse
from oslo.config import cfg
from eventlet import greenthread
from daoliproxy.i18n import _
from daoliproxy import exception
from... | [
"wenxiang.wang1204@gmail.com"
] | wenxiang.wang1204@gmail.com |
0bab2ba33b557bc939b8b4255772504ab2f9f039 | 9e0007e6b5716e52dc2b2d6430c3d1da54aafdff | /Longest_word_Dictionary.py | 464c61d45111ffc4831fcd353c38f3b8e98f6b30 | [] | no_license | Mohan110594/Tries-1 | d281187efbcd748b37d4b5421e0661c65b4e4056 | cc089adb806eed8d89da32f48802cbe2192191d3 | refs/heads/master | 2021-03-18T22:35:27.192450 | 2020-03-17T17:23:53 | 2020-03-17T17:23:53 | 247,105,927 | 0 | 0 | null | 2020-03-13T15:40:56 | 2020-03-13T15:40:56 | null | UTF-8 | Python | false | false | 1,869 | py | // Time Complexity : o(summation(m*L)) m is length of the word and L is the length of the trienode children
// Space Complexity : o(summation(m*L)) to create the trie using all the words
// Did this code successfully run on Leetcode : Yes
// Any problem you faced while coding this : None
// Your code here along with ... | [
"anu110594@gmail.com"
] | anu110594@gmail.com |
c9357d6ca87924175e557768be74d41811a982f6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_soundproofed.py | 8195c355a3f1b082b10bc56275000944b8582ad7 | [
"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 | 240 | py |
#calss header
class _SOUNDPROOFED():
def __init__(self,):
self.name = "SOUNDPROOFED"
self.definitions = soundproof
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['soundproof']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
aaf8e8338da7cd2b67b6a1baa776ad8796886e33 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/api/cmdb_object/alter_word_index_pb2.py | 05e58c5745c8ba7c19e59ef08586ac14792423df | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,741 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alter_word_index.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | [
"service@easyops.cn"
] | service@easyops.cn |
0794b2e4ed1b00b0af66c3bd7f2a81c8f367c886 | a46e5b4db845e3df66a1e0727667a81bc0924dbc | /services/models.py | de421b41c406485ef38372feff8c6ea9a6889ad0 | [
"MIT"
] | permissive | ograycode/ServiceZen | 5c1db1405c2d972ed79becd28d87461d794a2033 | fa8a1a7e9861a0352b5f10c0009a8d43a0ed42ba | refs/heads/master | 2021-01-23T08:15:18.261956 | 2013-11-09T23:41:09 | 2013-11-09T23:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | import urllib2
from django.db import models
from django.utils import timezone
from django.core.urlresolvers import reverse
class ServiceGroupModel(models.Model):
"""
ServiceGroupModel holds services, so that you can have more than
one physical service per group, e.g. two databases
"""
n... | [
"jason@theograys.com"
] | jason@theograys.com |
980eb1a0bebc70d4d0ec38fcd4ee518e72755006 | d38b14764c0de1f11400234eabc53d0157515b71 | /layerzoo/layer/activ/adjust.py | aa4abb830b64a4c38ad6796afb6a09bf71d51622 | [] | no_license | knighton/layer-zoo | 5f7b2e2b63086fc7344527c9f20ada9de3b3d99e | d7d55d20e3cf7d30129b1c8baf21da0f21b4475d | refs/heads/master | 2020-05-19T09:41:54.274252 | 2019-06-08T21:39:52 | 2019-06-08T21:39:52 | 184,954,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import torch
from torch import nn
from ..base import Layer
class Adjust(Layer):
def __init__(self, *shape):
super().__init__()
x = torch.randn(*shape) * 0.05
self.pre_add = nn.Parameter(x)
x = torch.randn(*shape) * 0.05 + 1
self.mul = nn.Parameter(x)
x = torch.r... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
1ae0fdbfe55394927ce7e69a5b1e44d2449ea3d3 | c3e8bde6485ae24fbbac7a4470889e9246db76e4 | /DJANGO/time_display_assignment/apps/first_app/views.py | 8aa3794e084b5c87191a138b84445eb92519ab86 | [] | no_license | jshin07/Python | f1c48c92f44549e6cedd0b892efcf55c60ed3124 | 2b492d905e04c69d76466aacb3f17a7e7c13f437 | refs/heads/master | 2021-01-25T07:49:33.961540 | 2017-06-27T21:16:06 | 2017-06-27T21:16:06 | 93,670,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.shortcuts import render, HttpResponse
def index(request):
context = {
'current_time':datetime.datetime.now()
}
return render(request,'first_app/index.html', context)
# Create your views here.
| [
"jshin07@gmail.com"
] | jshin07@gmail.com |
1f4d193fe62018ff501256631e0df04b555340ff | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/src/dev/pci/PciHost.py | 58ef6af9168610ee781ff5fece39ca8e36e07265 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 4,173 | py | # Copyright (c) 2015-2016 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functiona... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu |
335fc8c91ec80c3858656e578c401f0943775eaa | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_req.py | ce4ce8b5c6ae5627851f15a47b0dae91c3de94c6 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,826 | py | # coding: utf-8
import re
import six
class CreateTakeOverTaskReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b70c82dc2fe8d8a1615d00dfe0a5fda37100f6dd | a7d497669dc91e6432216145a550755d42f6bb69 | /src/cogent3/maths/distance_transform.py | 1d9d0b66468078a54671bf0774f5b60482e24b92 | [
"BSD-3-Clause"
] | permissive | jbw900/cogent3 | 8887ee4b8be02a2086ad8d6fcaa54afe462baee5 | 9168c9b86d851992d008c8f730a5516b89aef835 | refs/heads/master | 2020-09-10T19:19:36.443143 | 2019-11-14T23:48:34 | 2019-11-14T23:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,059 | py | #!/usr/bin/env python
""" matrix based distance metrics, and related coordinate transforms
functions to compute distance matrices row by row from abundance matrices,
typically samples (rows) vs. species/OTU's (cols)
DISTANCE FUNCTIONS
For distance functions, the API resembles the following (but see function
docstring... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
bafdc3d47a5a4a19261a70a6cfb35dc014dcacaf | 1bca4fc0734aa41bb1c6da461ec3b84ff3dd99bc | /contrib/linearize/linearize-hashes.py | 765172a8a2735184f3e8994d618b7707904d6545 | [
"MIT"
] | permissive | wolfoxonly/qqc | 12f892c9030c5232d403b609decf5b297cd8ceaf | 807e67ba65b555ab38a655ae4823fa9af2ae3bc4 | refs/heads/master | 2020-03-10T20:46:31.603204 | 2018-04-15T14:33:17 | 2018-04-15T14:33:17 | 129,576,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | #!/usr/bin/env python3
#
# linearize-hashes.py: List blocks in a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2017 The QQcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from __future__ impor... | [
"OFIChain@163.com"
] | OFIChain@163.com |
036ba42637789d8829beb89230fca3cba089d9d1 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/ashvin/icml2020/hand/sparse/bc_long1.py | 1d111b7a3b7ac3a9d1700ff148b0b7fa0b8830ff | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,798 | py | """
AWR + SAC from demo experiment
"""
from railrl.demos.source.dict_to_mdp_stacked_path_loader import DictToMDPStackedPathLoader
from railrl.demos.source.mdp_path_loader import MDPPathLoader
from railrl.launchers.experiments.ashvin.awr_sac_rl import experiment
import railrl.misc.hyperparameter as hyp
from railrl.lau... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.