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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1444fabc87c6268c4d00f05ceae669c89e1d8f14 | a2ac73af04a07bb070cd85c88778608b561dd3e4 | /addons/account_analytic_default/__init__.py | 2572f5f1572ae78ee423ba7fc1e6ff5727c8bdb2 | [] | no_license | sannareddy/openerp-heimai | c849586d6099cc7548dec8b3f1cc7ba8be49594a | 58255ecbcea7bf9780948287cf4551ed6494832a | refs/heads/master | 2021-01-15T21:34:46.162550 | 2014-05-13T09:20:37 | 2014-05-13T09:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /usr/share/pyshared/openerp/addons/account_analytic_default/__init__.py | [
"549636719@qq.com"
] | 549636719@qq.com |
9f68602bf7b15c30e7a42b0271be92782200d2a9 | 1f7b5698dfa57481d88b0cb04f1d2169b06e4970 | /tensorflow/contrib/eager/python/checkpointable_utils.py | 1fa150f3c6d20bcb6a2c0e387091796131d4f323 | [
"Apache-2.0"
] | permissive | hejie/tensorflow | 8fbc5c753078be923c0d054a2d33a1514f6f5229 | 3a499ab4483faa486332ce0b613fe207db08ceca | refs/heads/master | 2020-04-11T06:15:53.430384 | 2018-03-08T01:15:21 | 2018-03-08T01:15:21 | 124,330,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,751 | py | """Utilities for working with Checkpointable objects."""
# Copyright 2017 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.apach... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9ee45cef427b92dc2368563e25db132f1046a80f | d08cf46d3e16ab8e6a958731168469ba38daf069 | /sandbox/kdv.py | 7c7536cbb6e3c7b1398b0a73cc5dac09cb962490 | [
"BSD-2-Clause"
] | permissive | spectralDNS/shenfun | ce808edc5258c896f2cccfbd88e67153e3f621c9 | bcda39d8d8e4741df1cafe719d81733cc1024def | refs/heads/master | 2023-07-27T20:29:57.075970 | 2023-07-11T12:33:04 | 2023-07-11T12:33:04 | 79,914,066 | 190 | 46 | BSD-2-Clause | 2022-05-11T19:10:33 | 2017-01-24T13:29:02 | Python | UTF-8 | Python | false | false | 2,876 | py | import numpy as np
from matplotlib import pyplot as plt
from matplotlib.collections import PolyCollection
from shenfun import *
from mpl_toolkits.mplot3d import axes3d
N = 256
T = FunctionSpace(N, 'F', dtype='d')
#Tp = T
Tp = T.get_dealiased()
x = T.points_and_weights()[0]
u = TrialFunction(T)
v = TestFunction(T)
k = ... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
93051938722fe70f250b9d683fc85b4c1c61b3e5 | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /sportsdata/soccer_scores/models/soccer_scores_season.py | 7a99fa0863fbaa4720a5ca2f39d40b300cc293c7 | [] | 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 | 8,952 | py | # coding: utf-8
"""
Soccer v3 Scores
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import s... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
e2c2d430af0dbd4f42ca76c107638345f45fd6b9 | 90a7efad0e02634fe46602cf6a9c42ce72af1823 | /udify/dataset_readers/universal_dependencies.py | cbf693061fe0bcae8de295ecbaadcd082e7efca9 | [
"MIT"
] | permissive | foxik/udify | 563237686d1b0833ed636e48ba5cb20dced49be6 | 99f9a8d220edf808c7f2d7e32112227f21c7084a | refs/heads/master | 2020-09-02T16:26:05.757090 | 2019-11-02T23:21:03 | 2019-11-02T23:21:03 | 219,258,945 | 0 | 0 | MIT | 2019-11-03T06:03:58 | 2019-11-03T06:03:58 | null | UTF-8 | Python | false | false | 6,063 | py | """
A Dataset Reader for Universal Dependencies, with support for multiword tokens and special handling for NULL "_" tokens
"""
from typing import Dict, Tuple, List, Any, Callable
from overrides import overrides
from udify.dataset_readers.parser import parse_line, DEFAULT_FIELDS
from allennlp.common.file_utils impor... | [
"hyperparticle@gmail.com"
] | hyperparticle@gmail.com |
89e171105b6e4fd444900f215d2561e8181b50c7 | 5a628296aea2e3b908e634f8ad7f0d9d49750cf2 | /3dod/configs/car_cfg20_eval_ebm3_test_seq0012.py | 4a7f9f54fd90c0ce2f278918004038ba74020d10 | [
"MIT"
] | permissive | TianhaoFu/ebms_3dod | 521cf16946abaef77d005e7ee2e5b0a86d1a36fd | b8a33577c079d9a587bca289a707a8b1b3cb4834 | refs/heads/main | 2023-06-03T18:34:00.670739 | 2021-06-21T13:51:53 | 2021-06-21T13:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,720 | py | model = dict(
type='SingleStageDetector20',
backbone=dict(
type='SimpleVoxel',
num_input_features=4,
use_norm=True,
num_filters=[32, 64],
with_distance=False),
neck=dict(
type='SpMiddleFHD',
output_shape=[40, 1600, 1408],
num_input_features=4,... | [
"fregu856@gmail.com"
] | fregu856@gmail.com |
754a312303ebd319014000b3257ab320ff38a7ee | 57c13a2500561e72e382489c23e9c0b8347be605 | /concurrency/simple_interval_sum_example.py | c4ccc0e400215264a4ef1daac9bc80a5f4004a70 | [] | no_license | linheimx/python_master | 7403d7af639e31810c90b2fba14972a6d3dcfcec | 7fb7c467bedaff1515975807552a0ba05e30f15e | refs/heads/master | 2021-01-21T21:54:55.537994 | 2016-12-23T15:05:14 | 2016-12-23T15:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """
1 부터 200000000 더하기
real 0m16.303s
user 0m16.271s
sys 0m0.019s
"""
TOTAL_VALUE = 0
def interval_sum(start_num, last_num):
global TOTAL_VALUE
total = 0
for x in range(start_num, last_num + 1):
total += x
TOTAL_VALUE += total
if __name__ == "__main__":
interval_sum(1, 200000000)
... | [
"bonwho09@gmail.com"
] | bonwho09@gmail.com |
7c9abd888ec8c97b3f20c8e59ec550f5a3f2fd02 | 1362bc36e86f8216d405b547f5f45874ac332b1e | /Google/wordBreak2.py | c134aff4c0d863141d8216c688860f6d1559f892 | [] | no_license | zhuolikevin/Algorithm-Practices-Python | ed5ca06758e35d910ffbea011b414b3c57fd6c7a | 1df8d93a8ecb8627899aadddb5dd5c5d0b144cdf | refs/heads/master | 2021-01-22T01:04:31.536327 | 2016-01-15T13:31:07 | 2016-01-15T13:31:07 | 32,602,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | class Solution(object):
def wordBreak(self, s, wordDict):
if not wordDict:
return []
# self.find = False
words = self.helper(wordDict, s)
res = []
for word in words:
temp = ' '.join(word)
res.append(temp)
return res
def helper... | [
"lizhuogo@gmail.com"
] | lizhuogo@gmail.com |
5b32f01d57e592dc5d14905ec3b40ccd35e0ed5d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_caretakers.py | 74fcd5b95fc2e398572ed29030a5ed02a77a231b | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._caretaker import _CARETAKER
#calss header
class _CARETAKERS(_CARETAKER, ):
def __init__(self,):
_CARETAKER.__init__(self)
self.name = "CARETAKERS"
self.specie = 'nouns'
self.basic = "caretaker"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e425aeca0e134ac3a5dfe1c8a309f07d4ca01e29 | a2ac73af04a07bb070cd85c88778608b561dd3e4 | /addons/mail/__openerp__.py | 6570b2638ba325740370d4c66b6283b5a31c28d0 | [] | no_license | sannareddy/openerp-heimai | c849586d6099cc7548dec8b3f1cc7ba8be49594a | 58255ecbcea7bf9780948287cf4551ed6494832a | refs/heads/master | 2021-01-15T21:34:46.162550 | 2014-05-13T09:20:37 | 2014-05-13T09:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /usr/share/pyshared/openerp/addons/mail/__openerp__.py | [
"549636719@qq.com"
] | 549636719@qq.com |
a6687b56092e9d3c2f38e3fbb4e8ddac55c5f439 | 40ba3112a116b361673732efc10402a067322ad1 | /PycharmProjects/untitled/OO/newClass.py | 939b5ed323117618000643bb46f2be85ab8e298b | [] | no_license | oumingwang/----Python | 622be90adffefcab1696bb145b171fa9a8bff5b7 | 003c0b7880de2b9e0737120bc15bf6eaeb7a644f | refs/heads/master | 2020-07-03T03:16:13.687118 | 2017-04-08T16:55:01 | 2017-04-08T16:55:01 | 74,200,264 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | class MyClass (object):
"hello world "
version = 1.1
def MyVersion(self):
pass
c = MyClass()
print c.__class__.__name__
print c.__doc__
print c.__dict__
print c.__module__
print c.__class__.__base__
| [
"474978390@qq.com"
] | 474978390@qq.com |
808087af7bfe146f810c4487b617e92f6a2db462 | 5237e7939a668261d573c56d300101742b4dfe0d | /38-Abstraction adn Encapsulation.py | 9bc9763b8fa0371e64f2c0c938e11137f6f15bca | [] | no_license | imAtulSharma/Python-Tutorial-Files | fa5dcf855c4fc6008028e680bfe4c7691bd13f25 | 2245a171b9d7146f349f84027f413d796fc99a89 | refs/heads/master | 2022-12-02T00:13:53.231523 | 2020-07-23T05:27:15 | 2020-07-23T05:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py |
class Employee:
no_of_leaves = 8
def __init__(self, aname, asalary, arole):
self.name = aname
self.salary = asalary
self.role = arole
def printdetails(self):
return f"The Name is {self.name}. Salary is {self.salary} and role is {self.role}"
@classmethod
def change... | [
"atulsharma20may@gmail.com"
] | atulsharma20may@gmail.com |
67334df6315dcded9d30edef4d02cb7d9a0f739c | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/tamago.py | 0b6dc7197643d4c8de27269ff87d6ea19785b867 | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 1,571 | py | import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
from streamlink.stream import HTTPStream
from streamlink import NoStreamsError
class Tamago(Plugin):
_url_re = re.compile(r"https?://(?:player\.)?tamago\.live/w/(?P<id>\d+)")
_api_url_base = "https://player.tamago.liv... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
95932558356e481f28e177b43d77b26fe17a4990 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/remove-duplicates-from-sorted-list.py | 720a0711be4121ce4774e70948432116eff69861 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 912 | py | # Time: O(n)
# Space: O(1)
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
cur = head
while cur... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
013dba1a446b2feb94b19ec9b2abcba9d5432b7e | 002c14cd622b4890cce1c243065cebe39e2302ec | /LeetCode/105-Construct-Binary-Tree-from-Preorder-and-Inorder-Traversal/Construct-Binary-Tree-from-Preorder-and-Inorder-Traversal.py | e8b16cfce36d0ee1affa25b7da3c6475768bcd33 | [
"MIT"
] | permissive | hscspring/The-DataStructure-and-Algorithms | 6200eba031eac51b13e320e1fc9f204644933e00 | e704a92e091f2fdf5f27ec433e0e516ccc787ebb | refs/heads/master | 2022-08-29T18:47:52.378884 | 2022-08-25T16:22:44 | 2022-08-25T16:22:44 | 201,743,910 | 11 | 3 | MIT | 2021-04-20T18:28:47 | 2019-08-11T09:26:34 | Python | UTF-8 | Python | false | false | 597 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode:
if not preorder or not inorder:
return None... | [
"haoshaochun@gmail.com"
] | haoshaochun@gmail.com |
ed9b903ef6ff142ea75af2d4c6f31beb3fee10d2 | b0eef0efd10556a4b054574fdd2d43124cb0856b | /npbench/benchmarks/polybench/durbin/durbin_cupy.py | 1a84a9ed2fc45b03004a56129ddb6dfd0aa73f2a | [
"BSD-3-Clause"
] | permissive | learning-chip/npbench | 140d38be2095b54393de6e0008264b54b7cf686b | f2f545afe3603d5c8f1771f26d660f25ce4a3cda | refs/heads/main | 2023-05-10T09:54:52.719759 | 2021-05-31T12:09:48 | 2021-05-31T12:09:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import cupy as np
def kernel(r):
y = np.empty_like(r)
alpha = -r[0]
beta = 1.0
y[0] = -r[0]
for k in range(1, r.shape[0]):
beta *= 1.0 - alpha * alpha
alpha = -(r[k] + np.dot(np.flip(r[:k]), y[:k])) / beta
y[:k] += alpha * np.flip(y[:k])
y[k] = alpha
return y... | [
"alexandros.ziogas@inf.ethz.ch"
] | alexandros.ziogas@inf.ethz.ch |
fbdbcf9c89f5f3f1b99414a21d346ac275bb88aa | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/omninote/testcase/firstcases/testcase6_022.py | c47b59270d60bcc1b7d1a8506d1cc9cb435a6e82 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
668170131eec628085d6cb8f3052a36353d5dd84 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/plugins/lookup/password.py | e2f24616f25844c59c04002bc4b5e3e51cc5a0e3 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 12,098 | py | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (c) 2013, Javier Candeira <javier@candeira.com>
# (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, divisio... | [
"sifang@cisco.com"
] | sifang@cisco.com |
bff42ee4b49a59c4a1c91ef65285fd2eafdf4ea4 | 1b8d162160f5ab6d6a6b8940b8ab83b482abb409 | /tests/query/test_wildcard.py | 3613314b733134f56f4e05918918bba4a6c1ca75 | [
"Apache-2.0"
] | permissive | jlinn/pylastica | f81e438a109dfe06adc7e9b70fdf794c5d01a53f | 0fbf68ed3e17d665e3cdf1913444ebf1f72693dd | refs/heads/master | 2020-05-19T14:07:38.794717 | 2014-07-23T23:43:00 | 2014-07-23T23:43:00 | 10,442,284 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | __author__ = 'Joe Linn'
import unittest
import pylastica
from tests.base import Base
class WildcardTest(unittest.TestCase, Base):
def test_search_with_analyzer(self):
client = self._get_client()
index = client.get_index('test')
index_params = {
'analysis': {
'a... | [
"joe@venturocket.com"
] | joe@venturocket.com |
20eb97d8a227b49c674e29cf693eee401713bdc7 | 05263538c3ad0f577cdbbdb9bac87dcf450230ce | /alexa/ask-sdk/ask_sdk_model/services/directive/error.py | 5bd50a4d2a1931a4237389af00b0942f568d9058 | [] | no_license | blairharper/ISS-GoogleMap-project | cea027324fc675a9a309b5277de99fc0265dcb80 | 3df119036b454a0bb219af2d703195f4154a2471 | refs/heads/master | 2020-03-21T16:47:21.046174 | 2018-10-24T08:05:57 | 2018-10-24T08:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | # coding: utf-8
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"blair.harper@gmail.com"
] | blair.harper@gmail.com |
36246774e46c9b6cd0ae0f29d7f7be2713617944 | b500996a0b29829fde6afe8b23178ca9df4a239d | /rydinfap/src/apps/assetpartpurch.py | 8aaafda1429311c01fc8ec79204b265b934722ab | [] | no_license | eocampo2000/test-code | 48c4d444e323eef5e6fe7e61b018952ef3cd4134 | 49328664243e1a9daf9c567d1aaaa19fd4654c02 | refs/heads/master | 2016-08-11T07:35:31.346464 | 2016-02-13T12:33:55 | 2016-02-13T12:33:55 | 51,642,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,303 | py | '''
Created on Jan 6, 2015
@author: eocampo
'''
'''
Created on Aug 20, 2014
@author: eocampo
'''
__version__ = '20150102'
import sys
import utils.strutils as su
import procdata.procinfa as pi
import procjobs.procsched as psc
import utils.fileutils as fu
from apps.infbaseapp import... | [
"eocampo1000@hotmail.com"
] | eocampo1000@hotmail.com |
d72f03c6696ae620de2f185352ac0ee64c52ce40 | 8bd6b0784de9a1e6a39d0f5f23f2d8fb50c73d49 | /MethodRefine/logistics/MethodRefine/logistics_benchmark-high/validating/validating_33.py | 6bd1c737b7c18109ca58e18e42baaa3f5f355f85 | [] | no_license | sysulic/MethodRefine | a483d74e65337dff4bc2539ce3caa3bf83748b48 | adbb22d4663041d853d3132f75032b7561bf605c | refs/heads/master | 2020-09-14T10:45:55.948174 | 2020-05-01T09:13:59 | 2020-05-01T09:13:59 | 223,104,986 | 3 | 2 | null | 2020-04-27T11:01:36 | 2019-11-21T06:33:16 | Python | UTF-8 | Python | false | false | 1,654 | py | #!/usr/bin/env python
# coding=utf-8
import sys
sys.path.insert(0, './')
from logistic import *
import new_tihtn_planner
state0 = new_tihtn_planner.State('state0')
allow = False
state0.loc = {'truck1':('city1','loc1'),'truck2':('city2','loc1'),'truck3':('city3','loc2'),'truck4':('city4','loc1'),'truck5':('city5','l... | [
"526552330@qq.com"
] | 526552330@qq.com |
a6bb68f32efef496538748681b5a0a3d34d2fd67 | 4d7d2d44410ce1787ce3255dff2be9e5317535a7 | /apps/users/api/api.py | f0d5bf10e43dbea45b24f37110811e50a65fc02e | [] | no_license | Noeuclides/palindrome_api | 931533148cc2a2d4a5155d717ecb9559c1c30d12 | cb5bc8873f953121d4785fe62ef6b49ec2fdd996 | refs/heads/master | 2023-03-17T01:37:59.429450 | 2021-03-17T22:17:20 | 2021-03-17T22:17:20 | 348,148,575 | 0 | 0 | null | 2021-03-17T15:23:41 | 2021-03-15T23:10:58 | Python | UTF-8 | Python | false | false | 2,849 | py | from django.http import Http404, response
from django.contrib.auth import authenticate
from rest_framework import status, generics, permissions
from rest_framework.response import Response
from rest_framework.request import Request
from rest_framework.views import APIView
from rest_framework_jwt.settings import api_set... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
6bb0be91de37638b0ab74754c09135d1a4a7d0a3 | 78137d5e4e688749399bbb386b26536e4ac6d9fa | /pytorch3d/transforms/so3.py | 59c499e328bf3de02883d211d1a61e9895cb56c5 | [
"MIT",
"BSD-3-Clause"
] | permissive | bruinxiong/pytorch3d | 4235681c6356f7e69fa506d8474a3c7cf83d9fe6 | 18a3c5cbb9055bcda44590d39db65bb0c74db799 | refs/heads/master | 2022-06-18T16:28:39.589229 | 2022-05-18T20:11:36 | 2022-05-18T20:11:36 | 238,892,798 | 0 | 0 | NOASSERTION | 2022-05-18T20:11:37 | 2020-02-07T10:04:39 | Python | UTF-8 | Python | false | false | 10,029 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import warnings
from typing import Tuple
import torch
from ..transforms import acos_linear_extrapolation
de... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8d733a6f9844f95ae270ebba18d3ce7204c182df | 7833e3f6e979dac7fd5f321ec8ba63fe1db188d6 | /srecanje2/matematika.py | d4dd8e48de6d8cee05392cd7c543a6da52caa95d | [] | no_license | jO-Osko/Krozek-python | 93865fd79d06ef5890e99c10f38bd94d308d4a70 | 787861fdeff625fc64b9ef0532a341992495713d | refs/heads/master | 2023-04-03T08:47:00.414804 | 2021-04-06T14:52:27 | 2021-04-06T14:52:27 | 305,398,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # + - / * **
# // %
# // -> Celštevilsko deljenje
# % -> ostanek pri deljenju (modulo, modulus)
# vpisano <- int(input())
vpisano = int(input("Vnesi število"))
if vpisano % 2 != 0:
print("Vnesel si liho število")
else:
print("Vnesel si sodo število")
| [
"koprivec.filip@gmail.com"
] | koprivec.filip@gmail.com |
8a16ba48d7f52c945a9074f8d6397b88610d3699 | 74984afb8ac988ad56cb887cf1ae76e0580ceaf4 | /transposition.py | 853d98622852161725859684d7a471b899718f99 | [] | no_license | eBLDR/Criptography | e440786f1a8d2c2bc5d24a1e6d7f005fae6fd28a | f08974d8d2dd95087afb3d2f1b91419df0959371 | refs/heads/master | 2020-03-26T06:19:30.809445 | 2018-12-27T11:33:29 | 2018-12-27T11:33:29 | 144,599,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | """
Caesar cipher (substitution method) - by BLDR 2018
"""
from math import ceil
from cipher import Cipher
class TranspositionCipher(Cipher):
def __init__(self):
super().__init__()
self.possible_modes.update({'E': 'Encryption', 'D': 'Decryption'})
@staticmethod
def cipher_info():
... | [
"ed.bldr@gmail.com"
] | ed.bldr@gmail.com |
61a2f990ef9a356a88d7d85955221ad3a775d426 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/adgroup/model/add_adgroup_request_wrapper.py | 47e02cb7bd072d1d82b9721772db383bcf7155fb | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,549 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
9669a8c4600ec1a30ac78a7a7ae868e06ecef733 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /train_wgandist_AdaB_rectify_aeloss.py | 124753e5a96ce3abaeb72c48fc2197b3c60542dd | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,718 | py | #!/usr/bin/python3
#$ -P P_comet
#$ -j y
#$ -cwd
#$ -M m.dubouchet18@imperial.ac.uk
#$ -m be
#$ -q mc_gpu_long
#$ -pe multicores_gpu 4
#$ -l sps=1,GPU=1,GPUtype=V100
import os
import sys
sys.path.append(os.getcwd())
import argparse
import logging
import os
import numpy as np
import torch
import torch.nn as nn
import ... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
84ab98771c4d8d46a86328fa9598e1a9fb82ae88 | 8e429e825cd28b74e18ac18f8a48f748e89ccb1b | /webapp/models.py | 96169d8af49ab8e63decd2d396e7c03a691877b2 | [] | no_license | gibsonx/AnsibleGUI | 0de7bd40259950ede14fe452f43f99a568af3ed2 | 00ff984e9d2385bfae68e7de82201b6fae336d48 | refs/heads/master | 2023-03-12T07:40:39.930422 | 2023-02-19T07:19:00 | 2023-02-19T07:19:00 | 168,816,549 | 1 | 0 | null | 2023-01-24T23:20:08 | 2019-02-02T09:39:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,150 | py | from django.db import models
# Create your models here.
class Host(models.Model):
hostname = models.CharField(max_length=16)
ip = models.GenericIPAddressField(null=True,blank=True)
port = models.IntegerField(null=True,blank=True)
username = models.CharField(max_length=16,null=True,blank=True)
pas... | [
"you@example.com"
] | you@example.com |
e5138030c49c45efb963e43ee9fff85323b8bdc4 | e9eed586eb25a8805411a0c1069f79fb70be957d | /Course/migrations/0002_course_link.py | b356e7f70326435ad5679cbf93d6ad5b4e14bfef | [
"MIT"
] | permissive | jay1999ke/PureQPA | 61d250f85889867502a46f87385d825b764bab0c | c5ba6d7998d5fb1544b81bc076dbd19c3017fa9e | refs/heads/master | 2020-04-24T18:05:00.321716 | 2019-06-21T17:39:51 | 2019-06-21T17:39:51 | 172,169,063 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.1 on 2018-10-16 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Course', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='course',
name='link',
field=mo... | [
"jay1999ke@gmail.com"
] | jay1999ke@gmail.com |
0fec4a68aaa4b8c693563d5a6f693b2a76e69cd4 | 6c2d219dec81b75ac1aef7f96f4e072ed7562f81 | /scenes/siteAbbeyMaley.py | 9e59ff21c8d8c837c9a9feb11472785a774722e5 | [] | no_license | SFTEAM/scrapers | 7e2b0a159cb19907017216c16a976d630d883ba5 | 778f282bf1b6954aa06d265fdb6f2ecc2e3c8e47 | refs/heads/main | 2023-08-15T18:21:41.922378 | 2021-09-24T22:24:29 | 2021-09-24T22:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | import re
import scrapy
import tldextract
from tpdb.BaseSceneScraper import BaseSceneScraper
### Abbiemaley.com has all scenes hidden behind a paywall.
### Sexyhub seems to have recent updates, and is getting current ones as
### well, so I'm pulling from there.
class siteAbbieMaleySpider(BaseSceneScraper):
name ... | [
"briadin@yahoo.com"
] | briadin@yahoo.com |
099628974bcaf4d9ee34df2927bab2dff0bd96aa | 460e3e1166a1f25ba3a4a55ee15545ee389876e4 | /gSpI312Q5jWoeO9u/qBkRcm0G5WFOlghx.py | 41bc7277af3e7a02f3684f35e0aae15cf2188e72 | [] | no_license | urlib/Hk504MNaz11j | 0a1d6ae5ced35b04749b501b0b35835b70ba6a29 | 8dc6c9791247ae943fb5d227e056db2614582e4b | refs/heads/master | 2021-05-17T12:01:53.821792 | 2020-04-15T04:14:24 | 2020-04-15T04:14:24 | 250,758,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,592 | py | 𪅷𩤽냟坾⢲𪮑𧂫𔑊짚櫳禎𠏈𠲽띡𠄡𥒫崕ﱟ𬅷栽蛙𮛩𔖽㜻𨐐蠶䱟𨽍𒄎𪤟𭸛𡤒𫦪聆썟𪗒獮𐓧𩣄䛒Ⱶⵆ⌻𩥡档郎獲ꑸ𣧦횧훜𧒙𫸈𓃏५𦃺ꯚ𘞥𑈳𥙯획嚃㾚⢈𦩮𬾿Ã𧦘𘟝뽶鮻𪕅ر𦌽ԛ𛰈뵯𦠷𫛗䱄𭁏𑌗𬸳闕𪍈𥈌𩈔㮆𮬆𑗃📝䰲巉砤𗾆𣌵🆩Ͼ𭺧䎃𪕿𩕼𖣶𩩦𘙹嫌𭵈𘞽𦭩𦐮𩣋𥧹𫤠ཱི𪧤𠮅┆𢱙𤂽𠵵䳑𭠌病𦼮𗔺𭷘裪𠒲릧𦟙↢奪𬟅𘣩𖼦꺋𡙾ฯ景肮𥇄轧🗞ﵯꠘ𩆅𢕔𭯯𩫃𒃛襷撣𘞗𭦶𮃬䴗𣵴쉕抯ᱨ𫖧̿𧋺Х글𢱡𨓸漚𨕄䎨䗗뉅𬿊𣂂𭂺찙𨖻蹈𩭧𐅩횸𣄘듓𨜺𨏮齼搱쨿횂ﲳ𝘧䘈沸㌚𮛠䅲𡭀𘉻𨔈𫒕𖡘먑𩈥𢜉�... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
25c8ba0696006727d611416a6a6c00cc64b65b15 | e942a7c881afd8bf83e6fef348e8b6aab2fb63b5 | /testProjects/testCoinCeeper/tcp/Costs/models.py | 215c602a209c0423fda18ab07cae04f60020932e | [] | no_license | 100pecheneK/CostControl | 1df6a35e60ff428d07c2faf29163d9f6ce6c5a9b | bee51fbee510b934d7993552b5f2c1e203d04a60 | refs/heads/master | 2021-02-09T17:22:01.795706 | 2020-05-25T12:17:30 | 2020-05-25T12:17:30 | 244,304,045 | 2 | 0 | null | 2020-12-12T18:07:04 | 2020-03-02T07:10:14 | CSS | UTF-8 | Python | false | false | 465 | py | from django.db import models
from django.contrib.auth import get_user_model
from .choices.cost_type import COST_TYPE
User = get_user_model()
class Cost(models.Model):
money = models.IntegerField(verbose_name='money')
cost_type = models.IntegerField(choices=COST_TYPE, verbose_name='costType', default=1)
d... | [
"mistermihail23@gmail.com"
] | mistermihail23@gmail.com |
18a33508079673a70f8b807e6c3cacd1907973ec | b736e6d7e3baee4c971e8dd60dd82890935cc1bc | /lace/cache.py | bd4f644dc810a9ddaeb2e2adb1877b63cffd8b27 | [
"MIT",
"BSD-2-Clause"
] | permissive | lace/lace | e2d86f3c05da2cf2db774dd51c2b9894911aaa5b | 3565475637937eaae21492f0ef956f5b4ce8866b | refs/heads/master | 2023-02-07T18:15:56.392347 | 2023-02-03T18:46:37 | 2023-02-03T18:46:37 | 77,690,377 | 3 | 1 | BSD-2-Clause | 2023-02-03T18:46:40 | 2016-12-30T14:19:02 | Python | UTF-8 | Python | false | false | 20 | py | sc = None
vc = None
| [
"noreply@github.com"
] | lace.noreply@github.com |
fa55ad8b8c0619a04460e3d5cecf31e3dd06b6f7 | 8b25a7984bd18fc356232083da0bb2f829a1dbd4 | /ineco_sms/wizard/send_sms_by_saleorder.py | 22ba56209cbe67845768fe18aaec457319130932 | [] | no_license | anndream/new_mixprint_addons | f94067a1248cf3d30ce4e937d5fb3c96bc9cb482 | 1b4b04388e723dc7137dd8d2a29fdef3f59f4861 | refs/heads/master | 2020-04-09T19:17:36.882746 | 2015-09-10T04:41:13 | 2015-09-10T04:41:13 | 42,242,457 | 0 | 2 | null | 2015-09-10T12:13:56 | 2015-09-10T12:13:56 | null | UTF-8 | Python | false | false | 4,081 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012 - INECO PARTNERSHIP LIMITE (<http://www.ineco.co.th>).
#
# This program is free software: you can redistribute it and/or modify
# it under ... | [
"thitithup@gmail.com"
] | thitithup@gmail.com |
f082c3e62020b6f49a23c0b4937155dba618d6e4 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/Python/Skywalker8921/B.py | 9326ba2218d9c5558c6e1d74f1c318f84c8792e4 | [] | 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 | 2,434 | py | import sys,math
import collections
import functools
# https://wiki.python.org/moin/PythonDecoratorLibrary#Memoize
class memoized(object):
'''Decorator. Caches a function's return value each time it is called.
If called later with the same arguments, the cached value is returned
(not reevaluated).... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a5bf17d2fc298a295b4fce9f49b18f68c79ac34e | 5189b657618c4041041836e6697b69caa965229f | /blockit/migrations/0099_auto_20200904_1757.py | 2cbba3247466c2dfbc2ee1acacea9bddabe1dd33 | [] | no_license | MuellerBettina/ba2020_573561 | b653a0c48569ebaecaaee6dd99c69d7e584514e8 | 41b6ba9f40c1fc63fa9dfdfba629c26f756abfa9 | refs/heads/master | 2023-04-06T16:12:03.229605 | 2020-09-10T16:26:12 | 2020-09-10T16:26:12 | 269,595,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Generated by Django 2.2.13 on 2020-09-04 15:57
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blockit', '0098_auto_20200904_1756'),
]
operations = [
migrations.AlterField(
... | [
"BettinaMueller@pm.me"
] | BettinaMueller@pm.me |
fa8ea4af2a6244024d62ba80865d2b08b198f9fc | 958f972d273e314ae29aa5c8287925972f32816e | /univers/migrations/0003_auto_20201208_1951.py | c88bd0e74cf1483a782610e808a3b200349a258a | [] | no_license | lolsecret/project_1 | 727b9e9d22b1c44906a2f1b55ef8668e03d92cbb | 462d90a5b78196359e967539043e8d6616f8b789 | refs/heads/master | 2023-02-07T21:09:02.381298 | 2020-12-29T10:33:15 | 2020-12-29T10:33:15 | 322,527,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 3.1.3 on 2020-12-08 13:51
import datetime
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('univers', '0002_auto_20201208_1116'),
]
operations = [
migrations.AddField(
model_nam... | [
"lucallonso@gmail.com"
] | lucallonso@gmail.com |
cb039be2894ef83559a1e11d1859c65872352644 | 54934cfe32ce5aa5c2e718b0c5c2afa4b458fe75 | /33ch/convex_hull.py | e2cc0f21ef42dcf7bf6af197664c6ea139b00baa | [] | no_license | mccarvik/intro_to_algorithms | 46d0ecd20cc93445e0073eb0041d481a29322e82 | c2d41706150d2bb477220b6f929510c4fc4ba30b | refs/heads/master | 2021-04-12T12:25:14.083434 | 2019-11-09T05:26:28 | 2019-11-09T05:26:28 | 94,552,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from functools import reduce
def convex_hull_graham(points):
'''
Returns points on convex hull in CCW order according to Graham's scan algorithm.
By Tom Switzer <thomas.switzer@gmail.com>.
'''
TURN_LEFT, TURN_RIGHT, TURN_NONE = (1, -1, 0)
def cmp(a, b):
return (a > b) - (a < b)
d... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
a9dea402482c68f2644aae9ac12a2e0058a422be | f889d26fec0c4da86c2b857191564e5ee57430a8 | /Python_advanced/advanced/stacks_and_ques/06_Balanced_Parenthesis.py | a147d9911d19dfe64a0e47c933b688827297d500 | [] | no_license | Grigorov999/SoftUni-Python | 4da6ecea760d13d7571723b8faa771b3be0199f6 | cb4f8f352fc48cb1ae8b2efd803265707a37227f | refs/heads/master | 2022-12-13T15:04:05.303204 | 2020-09-11T20:32:29 | 2020-09-11T20:32:29 | 294,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | parentheses = input()
stack = []
pairs = {
'{': '}',
'[': ']',
'(': ')'
}
valid = True
for element in parentheses:
if element in "({[":
stack.append(element)
elif element in ")}]":
if stack:
current = stack[-1]
if pairs[current] == elemen... | [
"noreply@github.com"
] | Grigorov999.noreply@github.com |
946f10273f525a0798af550bfa1ecc7df04d3e18 | fffb732290af97687ea3221ce4a6ce4d95640aff | /courses/w04_py/source/networkig/mysocket1.py | 741da58eccd5ee795710bb2b50a8b2024155244e | [] | no_license | NamWoo/self_driving_car | 851de73ae909639e03756eea4d49ab663447fc19 | cd5c1142c9e543e607ca9dc258f689de6879d207 | refs/heads/master | 2021-07-24T19:51:54.459485 | 2021-07-06T13:58:19 | 2021-07-06T13:58:19 | 186,267,543 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from socket import *
#import socket
mysock = socket(AF_INET, SOCK_STREAM)
print(mysock)
#myip_info = gethostbyname("google.com")
#print(myip_info) | [
"pre3ice@gmail.com"
] | pre3ice@gmail.com |
35c5216c087f41577a8a794e4c2777f16369f243 | 1180c0bfe29959d95f3c131e6e839950e528d4ee | /28/shibasisp/app.py | 93fe0f0e636fed68c7ce0d6545f5353e687bedf7 | [] | no_license | pybites/challenges | e3e461accd8e7f890aee8007ba5070086ef983fc | 02b77652d0901e6e06cb9b1e7cb3e59c675445c2 | refs/heads/community | 2023-08-20T18:19:02.982214 | 2022-11-17T09:23:31 | 2022-11-17T09:23:31 | 78,264,928 | 764 | 3,115 | null | 2023-07-21T05:58:19 | 2017-01-07T07:17:50 | Jupyter Notebook | UTF-8 | Python | false | false | 2,420 | py | from flask import Flask, render_template, request
import pandas as pd
from bokeh.plotting import figure, output_file
from bokeh.embed import components
app = Flask(__name__)
# Load the Iris Data Set
data = pd.read_csv('data/gapminder.csv')
data = data[(data.Year >= 1950)]
country_names = list(set(data.Country))
attri... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
29065c85f253e986f0247830667b223126e205ca | e36a4b7fdcff6e769455502a2cde6ede03c09c96 | /leetcode/sum_2.py | 80a43e364fe4d242343d5ccc3e3d5e9213002c11 | [] | no_license | SmallPuddingComing/Python-learn | 5c09fec5054887b9723c230527697a39642105fc | 49f154fa523c574aed44e440606a494680bd6ef7 | refs/heads/master | 2020-04-06T06:51:36.031265 | 2016-06-14T08:43:02 | 2016-06-14T08:43:02 | 57,961,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | #coding:utf8
class Solution:
# @return a tuple, (index1, index2)
def twoSum(self, num, target):
dict = {}
mylist = []
for i in range(len(num)):
if dict.get(target-num[i], None) == None:
dict[num[i]] = i
else:
mylist.append((dict[ta... | [
"1076643147@qq.com"
] | 1076643147@qq.com |
0820fcde3e782e1246cd0d3b958c53095226c1a1 | b2024047dfb29398787aacc4c12a76d99d477479 | /Probleme_22_BECKER_Justine.py | cedbe0f550ef49b613d33cc5f85f8b3e223d0247 | [] | no_license | mines-nancy-tcss5ac-2018/td1-becker261u | 0d5e5b146acbbec2d9d4315a77706f5acf81546f | 6b2ebaa3e6c673a377e5383f2412cebf52cad079 | refs/heads/master | 2020-03-31T22:05:12.325798 | 2018-10-12T10:58:57 | 2018-10-12T10:58:57 | 152,605,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from math import*
import numpy as np
def ouvre():
fichier=open('C:/Users/Justi/OneDrive/Documents/Mines Nancy/Informatique/p022_names.txt', 'r')
L=[]
for line in fichier.readlines():
L+=line.split('","')
L[0]='MARY'
L[-1]='ALONSO'
return L
def convertionalpha(mot)... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
ced584434b2c37d9c6fe153e4be86b6cd63b39d7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-3150.py | a90e0860cf28a55c74d93c4faa7870ccbfca8da7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,005 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
070dff76c457f1874707620fb31fec5cf5729171 | 052943e74057f62064e1a0574790696304056f5e | /matplotlib/histogram.py | cf3c77d9d621fb8b036a203b3454e298c7f9eaf5 | [] | no_license | PragayanParamitaMohapatra/Basic_python | 0e9861bdb48f0f7e61f479fef5a3a501b5bd0ae7 | 69c83369a4facbc8d1829c163bc24871124dfff0 | refs/heads/master | 2022-11-30T21:52:06.841696 | 2020-08-06T17:36:43 | 2020-08-06T17:36:43 | 284,977,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import matplotlib.pyplot as plt
blood_sugar_men=[113,85,90,150,149,88,93,115,135,80,77,82,129]
blood_sugar_women=[67,98,89,120,133,150,84,69,89,79,120,112,100]
blood_sugar_can=[113,85,90,150,149,88,93,115,135,80,77,82,129]
blood_sugar_wan=[67,98,89,120,133,150,84,69,89,79,120,112,100]
plt.xlabel("sugar range")
plt.ylab... | [
"pragayanparamitaguddi111@gmail.com"
] | pragayanparamitaguddi111@gmail.com |
603fe7c5e0cc47a01c1d5faccc532aaeb43fdae8 | 6bc94d794a83a9b7e859a7f615197fc564c29761 | /oop_basic/animals.py | 45f97a37c4dc6dee8cdc50834b7cf319361d4b58 | [] | no_license | huchangchun/learn-python3 | b735a4477d5b7b96e8791aedf8424faed8487c3c | f154f80edf91c20e8b596e29e4e9f904c6a3f2bc | refs/heads/master | 2022-03-27T14:21:00.964729 | 2019-12-20T02:03:45 | 2019-12-20T02:03:45 | 115,346,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # -*- coding:utf-8 -*-
class Animal():
def __init__(self,name,food):
self.name = name
self.food = food
def eat(self):
print('%s like %s'%(self.name,self.food))
class Dog(Animal):
def __init__(self,name,food,drink):
#加载父类构造方法
super(Dog,self).__init__(name,food)
... | [
"hu_changchun@126.com"
] | hu_changchun@126.com |
79fbdfec2a57b56432000656e9547fc28d08a855 | fd2ceefb34ed0d9d16fa77ce3f8b8f91096f2c1a | /anyrl/tests/test_players.py | 6b28bf21ba7302d14a738ddc58177fe68026ed3c | [] | no_license | decoderkurt/anyrl-py | d4e433e6e7920b00f8487734ff688ad6e757706b | 94a0d7c2083312358f6c754d79d921a563f8237a | refs/heads/master | 2020-03-14T22:48:01.972856 | 2018-04-25T22:02:50 | 2018-04-25T22:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | """
Test various Player implementations.
"""
import numpy as np
from anyrl.envs import batched_gym_env
from anyrl.rollouts import BasicPlayer, NStepPlayer, BatchedPlayer
from anyrl.tests.util import SimpleEnv, SimpleModel
def test_nstep_one_step():
"""
Test an NStepPlayer in the trivial, 1-step case.
"""... | [
"unixpickle@gmail.com"
] | unixpickle@gmail.com |
87b976bab6630f39bbfb3e6f0c0d66644899a06b | caaf04a58abe96563df1dbc88abe8594047fded9 | /medium/problem_1492_the_kth_factor_of_n.py | eb8691727c67157af4e5788cac0c6c8138370f2a | [] | no_license | EricMontague/Leetcode-Solutions | f1b09781b0afd60c79d55f65fe0552c80a928ac7 | fd1e40ace51fe2a3cc6dadb3fe5872c7fa149188 | refs/heads/master | 2021-01-09T20:00:15.580735 | 2020-12-14T22:24:24 | 2020-12-14T22:24:24 | 242,441,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | """This file contains my solution to Leetcode problem 1492: The kth factor of N."""
# Max Heap Solution
# time complexity: O(sqrt(n) * logk), where 'n' is num and 'k' is the variable 'k'
# space complexity: O(k)
import heapq
import math
class Solution:
def kthFactor(self, num: int, k: int) -> int:
max_he... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
50012f51af28fc60aeaa999055ab4075bff3bb29 | 035730cf12c43f59b76d9809e444b9070c3e5732 | /BOJ_15652.py | b2f8733e3e279a3b26cc9d3056624057379bfe3e | [] | no_license | kimhaggie/Coding_practice | e18153838425874b80a683094369a6dfb8836c93 | a4f2732e5d7a63adae990226073333b88324765a | refs/heads/master | 2023-08-01T11:33:54.071564 | 2021-09-07T14:40:56 | 2021-09-07T14:40:56 | 310,264,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #15652
import sys
import math
def func(i,j,m):
ans = []
if m==1:
return [[k] for k in range(i,j+1)]
else:
for k in range(i,j+1):
for x in func(k,j,m-1):
tmp = [k]
tmp.extend(x)
ans.append(tmp)
return ans
n,m = map(int,sys.std... | [
"kimhaggie@gmail.com"
] | kimhaggie@gmail.com |
3184ed77b262fc5b31ef7217005cd516822648a3 | 3c7dcf8c7af1536af8d6ff3b7ec4389e9523823a | /greenloc_crm_ext/models/crm_lead.py | 4a0feff5843797d56a0ab622c6f67303ae94d435 | [] | no_license | tate11/module | cb70e8e45ecb9912a597ea9310c29baf9074fa90 | b5148fad3f3a23df749d3d3d7278c2ce22e067d8 | refs/heads/master | 2020-03-18T21:11:18.403431 | 2017-06-14T07:48:48 | 2017-06-14T07:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,607 | py | # -*- coding: utf-8 -*-
from openerp import api, fields, models, _
import base64
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
from dateutil.relativedelta import relativedelta
from datetime import datetime, date, timedelta
from odoo.addons.greenloc_crm_ext.controllers import universign
from odoo.exceptions import U... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
b0718572e15181513d4f6940c68e176e3433a69f | f0a4ba1f1f941092e68e4b1ef9cff0d3852199ef | /Do_it!/3.검색 알고리즘/해시/chained_hash.py | 304cce40e99b6dc0f40b07abb5cd4a9ee238b869 | [] | no_license | lsb530/Algorithm-Python | d41ddd3ca7675f6a69d322a4646d75801f0022b2 | a48c6df50567c9943b5d7218f874a5c0a85fcc6d | refs/heads/master | 2023-06-18T04:36:09.221769 | 2021-06-28T16:49:35 | 2021-06-28T16:49:35 | 367,775,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | # 체인법(chaining)으로 해시 함수 구현하기
# 체인법이란 해시값이 같은 데이터를 체인(chain) 모양의 연결 리스트로 연결하는 방법
# 오픈 해시법(open hashing)이라고도 한다.
from __future__ import annotations
import hashlib
from typing import Any
class Node:
"""해시를 구성하는 노드"""
def __init__(self, key: Any, value: Any, next: Node) -> None:
"""초기화"""
... | [
"lsb530@naver.com"
] | lsb530@naver.com |
bd4162975e1ee1079c46ef6c8b1fc3c18b01a5c1 | 3ba18755bbf53a2e918a79e1c57a48f44ac1e670 | /venv/bin/isort | c3a1d2046d4613f88dd5974e0f230d1d122c8129 | [] | no_license | celaltas/FlaskProject | d57bddf99d807a97981d477048a3a5eb4a97d5a5 | 8a9fe33c970f99b09fcc565391a4f31861780468 | refs/heads/master | 2022-12-25T09:30:22.407644 | 2020-10-10T18:03:35 | 2020-10-10T18:03:35 | 302,960,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/celal/VSCProjects/FlaskProject/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"celal.tas123@gmail.com"
] | celal.tas123@gmail.com | |
84435aed610560af56cf4755bfdce4e91530bb4a | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/Distributions/Distribution_POST_Optional/test_TC_43677_2_Distributions_POST_Distributions_Vnet_Pptx_Slide_Option.py | bc58905895d05cefd139b0850212850500682fef | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Distributions.
* TC-43677 - Distributions POST:
Verify that user is able to send slides(PPT, PPTx) for distribution using request POST "/distributions" with VideoNet as public delivery system.
Equivalent test CURL command:
curl -H "Host: <client_host>" -H "Aut... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
440374b2f3813c91ed4c3c16714460c04352ff1d | 1ba58b17f33122abf4236e9e430a51d375e0eb53 | /km73/Ruban_Yehor/4/task1.py | 3b5e7ca9dacb7e460a733371cb9aa90330097712 | [] | no_license | igortereshchenko/amis_python | c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42 | c6f0f2a70c82d5f269b3078eb296f82271b5bb10 | refs/heads/master | 2021-10-22T16:21:19.990650 | 2017-11-01T07:26:54 | 2017-11-01T07:26:54 | 104,785,028 | 0 | 139 | null | 2020-04-21T21:27:09 | 2017-09-25T18:11:42 | Python | UTF-8 | Python | false | false | 221 | py | a = float(input("Введите первое число - "))
b = float(input("Введите второе число - "))
if a > b:
ans = b
else:
ans = a
print("меньшее число -",ans)
input()
| [
"noreply@github.com"
] | igortereshchenko.noreply@github.com |
9a49844ddc8e2920e88c79f6f3cc8dc15536f458 | cb2ddcde8311d06f99e2308e94c58036a393f592 | /src/byro/members/migrations/0010_memberbalance.py | 8501edb4909802ca93bfb93b0e0de14116c680fc | [
"Apache-2.0"
] | permissive | Lagertonne/byro | 9eea069709a7eeb8a80e024af97bc93fb019efa8 | d2d05b96d75f94848bd8b9af1a556a4a1e080320 | refs/heads/master | 2022-11-19T11:39:29.699413 | 2020-07-14T20:56:16 | 2020-07-14T20:56:16 | 279,690,577 | 0 | 0 | Apache-2.0 | 2020-07-14T20:52:09 | 2020-07-14T20:52:08 | null | UTF-8 | Python | false | false | 2,136 | py | # Generated by Django 2.1.8 on 2019-04-15 12:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("members", "0009_auto_20180512_1810")]
operations = [
migrations.CreateModel(
name="MemberBalance",
... | [
"r@rixx.de"
] | r@rixx.de |
0e2c57e01d581a53bb2452113c588ec91aa41688 | 93cc6795fc1b7f6a06b08480ad4fbde46fa02c7c | /base/files_for_ssh/update_or_create_bonus_template.py | 74007cf86b0fcbe1dbbc57ee7b22107730a02253 | [] | no_license | A-Zorg/msw_api | 4a04eae9738e77b528e79496b6653d3a07109ca5 | ccd73b7675f3d477a2eec30808eff975a247e70c | refs/heads/master | 2023-08-16T08:51:47.506514 | 2021-09-20T19:21:46 | 2021-09-20T19:21:46 | 325,813,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from index.models import CustomUser
from reconciliation.models import Bonus
from accounting_system.models import AccountType
acc_type = AccountType.objects.get(id={ACC_ID})
try:
bonus_object = Bonus.objects.get(account_type=acc_type)
bonus_object.decimal_percentage = {VALUE}
bonus_object.save()
except:
... | [
"you@example.com"
] | you@example.com |
4ef44e5d20b17902e764ba4b376780476f7c678e | d3efc82dfa61fb82e47c82d52c838b38b076084c | /ETF/Creation_SA/YW_ETFSS_SZSG_060.py | 37d438d6681057abde41659bd9c6bf133b8f17ed | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import time
sys.path.append("/home/yhl2/workspace/xtp_test/ETF")
from import_common import *
sys.path.append("/home/yhl2/workspace/xtp_test/ETF/etf_service")
from ETF_Basket_Add_Real import etf_basket_add_real
from ETF_GetComponentShare import etf_get_all_component... | [
"418033945@qq.com"
] | 418033945@qq.com |
a3a2cfa8d5e7e73ab92e6d6d8daef6b1f6fadefe | f4efa1e5ef98616b0044a96e08fede1584a5a5a5 | /atom-editor/lilac.py | 1305d1741a2f23ae0165465e8471cd80acbc652c | [] | no_license | LawrenceCWC/repo | fcafda53570c03703a8988b1bce17a2184a4f6bc | c2d614e11a9ea1b9c4bc9bd08b041bf9ee8ce2cd | refs/heads/master | 2020-12-25T04:19:43.803869 | 2016-06-22T12:28:55 | 2016-06-22T12:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/env python3
#
# This is a complex version of lilac.py for building
# a package from AUR.
#
# You can do something before/after building a package,
# including modify the 'pkgver' and 'md5sum' in PKBUILD.
#
# This is especially useful when a AUR package is
# out-of-date and you want to build a new one, or you... | [
"farseerfc@gmail.com"
] | farseerfc@gmail.com |
0abeef728ce5d91b2a87d84cc216dc46f6697521 | 830f50885bbf7cdeffc08097b55f662a498cf518 | /python/downloader/FileSelectionDialog.py | 00f5a2ffa23e3a11bbed65bf96d9e9293f090628 | [] | no_license | precimilo/mcandre | 86b2e77e28e3bd14d02e40eb9978ae4b7ccf9fcd | e9ab9e3fce7aba93b6528c40e06bde4ae0d461a7 | refs/heads/master | 2020-12-30T17:32:37.406612 | 2013-05-09T18:46:46 | 2013-05-09T18:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # FileSelectionDialog.py - John Finlay (http://www.pygtk.org/pygtk2tutorial/index.html)
# Andrew Pennebaker
import gtk
class FileSelectionDialog:
PENDING="Pending"
OK="OK"
CANCEL="Cancel"
def __init__(self, titleText="File Selecion", selectionText=""):
self.state=self.PENDING
self.fileSelection=gtk.FileSelec... | [
"andrew.pennebaker@gmail.com"
] | andrew.pennebaker@gmail.com |
48283e3e193ef9a2997ee9f3474a16b8b385f713 | b5f38cc8a97f67ba1df0bea0e111ad0d3f14dc13 | /test/asyncio_tests/test_asyncio_bulk.py | 6cb0336378f57f8d9eaf68d25394b666a1aa11ff | [
"Apache-2.0"
] | permissive | yutiansut/motor | 10cb8e68e8c776fa33262608e13b611941fbdb13 | 132352beda3e4215e68991c5165b4ccd06e71a2c | refs/heads/master | 2021-09-24T07:11:36.995179 | 2018-01-12T10:05:58 | 2018-01-12T10:05:58 | 106,511,806 | 1 | 0 | Apache-2.0 | 2018-10-05T02:19:35 | 2017-10-11T05:59:51 | Python | UTF-8 | Python | false | false | 3,292 | py | # Copyright 2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"jesse@mongodb.com"
] | jesse@mongodb.com |
48aa07668d158a84f581a1cc6189dcb51bb02fd9 | eaa71d0669f9f161c15dc45c37fadb1ce2bcea9e | /Pagina Web/CP_S10/app/rutas.py | b6b347366bc23ec9a3952df3657ed7d6bd53528b | [] | no_license | luiskar268/Ciclo-3 | 566f4bec8af5f05ff458d698c384238579e095d6 | 5a076959c1c0958290133197f9dde8d0e7f1a388 | refs/heads/master | 2023-08-13T14:43:06.925887 | 2021-10-08T02:37:26 | 2021-10-08T02:37:26 | 407,919,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from app import app
from flask import render_template
from app.forms import FormInicio
@app.route('/')
@app.route('/index')
def index():
usuario = {'usuario':'...'}
comentarios = [
{
'autor':{'usuario':'...'},
'comentario':'...'
},
{
'autor':{'usuario':'...'},
... | [
"you@example.com"
] | you@example.com |
5f9004f06c556e9677e12b41dec0c7c9d095e410 | 3ffeeae8a9a3245d8998d94aa08f680f00056cad | /26.删除排序数组中的重复项.py | caabdfab8cced80dd2fba20d79a5e03d77e43c4d | [] | no_license | Ezi4Zy/leetcode | 6e293e5c07a7d8c3e38f9445ff24330134ef6c48 | 9d394cd2862703cfb7a7b505b35deda7450a692e | refs/heads/master | 2022-04-09T14:11:36.957861 | 2022-03-09T10:30:30 | 2022-03-09T10:30:30 | 57,290,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #
# @lc app=leetcode.cn id=26 lang=python
#
# [26] 删除排序数组中的重复项
#
# @lc code=start
class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
begin = 0
end = 1
while end < len(nums):
if nums[begin] != nums[e... | [
"Ezi4zy@163.com"
] | Ezi4zy@163.com |
be24d8d03ccdda316fc996f645d73db8ce92e3b6 | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/models/snmp_username.py | 0999f08689f3dea29ff5b00fe9032335d786557e | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
83a10737c06db1f4578aacbdd1b538c1399319b9 | ce06aaf43d7ea2b62640748c1e41856d038d86ac | /examples/z/test_z_bfoa_multiniche_clustering_v1.py | 485d6402cc28ee8152398a9028820fb59d3c71d0 | [] | no_license | dananjayamahesh/MunichBFOR | 87ae1b672cddd5958d4080011389b1fa33384677 | 0cdb24344345429decf58ef85e444f72b40fd061 | refs/heads/master | 2023-02-16T18:32:34.303146 | 2023-02-10T11:27:01 | 2023-02-10T11:27:01 | 144,000,550 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | import SwarmPackagePy
from SwarmPackagePy import testFunctions as tf
from SwarmPackagePy import multiniche_benchmark as mbtf
from SwarmPackagePy import animation, animation3D
import matplotlib.pyplot as plt
'''
Some note on clsutering
d_max has a huge impact, 3 is not woring, but double the size of d_min with d_min=0.2... | [
"mahesh@paraqum.com"
] | mahesh@paraqum.com |
de1022e98235b9d739417fb743639087694beff0 | cd921f57b4ea51f8cb598c76e6766dc530909b8a | /tensorflow_federated/python/tensorflow_libs/tensor_utils_test.py | e928317481ee4b261d976b9a17a77600e5ef5f55 | [
"Apache-2.0"
] | permissive | Catherineylp/federated | f4d30d8eb7fa718ac5d1a62549f244d03120cc73 | 7a5549f3fb0eb2e3b5cdcb4788a8856cbfa17416 | refs/heads/master | 2021-07-12T19:01:44.935095 | 2020-09-21T02:24:28 | 2020-09-21T02:24:28 | 202,102,353 | 0 | 0 | Apache-2.0 | 2019-08-13T08:45:24 | 2019-08-13T08:45:23 | null | UTF-8 | Python | false | false | 7,678 | py | # Lint as: python3
# Copyright 2018, The TensorFlow Federated 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
88c956a598941e1923e9029d6acc27a0a83a987e | a8f39f241598dce6d876f2b535327aeac4902170 | /tests/api2/network.py | fed153986b6379c6c5d4e4047c399b57ad8ab93f | [
"BSD-3-Clause"
] | permissive | ghos/freenas | 321b8d36ec16b715ffd6fb60768901bfb276c2a1 | f1049d30355c70eb3f2c4b841bef71aa836890c9 | refs/heads/master | 2020-12-07T17:14:57.513807 | 2020-01-07T20:59:41 | 2020-01-07T20:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | #!/usr/bin/env python3.6
# Author: Eric Turgeon
# License: BSD
import pytest
import sys
import os
apifolder = os.getcwd()
sys.path.append(apifolder)
from auto_config import hostname, domain
from functions import GET, PUT
from config import *
BRIDGEGWReason = "BRIDGEGW not in ixautomation.conf"
BRIDGENETMASKReason =... | [
"ericturgeon.bsd@gmail.com"
] | ericturgeon.bsd@gmail.com |
ccc3218670bdf6b394fbb52fd0bbbeaf3534c15e | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script802.py | 4b4a5c3b512045d2824d977d9d741a8e82521de3 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py |
# coding: utf-8
# Hey everyone, this is my first go at Kaggle competitions and Kernels.
#
# In this Kernel, I implemented kNN classifier from scratch.
# And the results got 97.1% accuracy on public leaderboard.
# In[ ]:
import numpy as np
import matplotlib.pyplot as plt
from collections import Counter
import time... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
5bf16079be9f974bae6d83fe67c63316eeb74485 | 76f160538f4de5466929c6f66d4fa0ed021d10d0 | /lux/extensions/angular/__init__.py | 352f1bc771234cdf9cdf19fcc83245ce8f06a32f | [
"BSD-3-Clause"
] | permissive | tazo90/lux | cd60e5364f2af486a41f58935eec38c79a2acef5 | 6fc8994cfaa9379ea3a0c6ce7b076d48e6b1759e | refs/heads/master | 2021-01-15T12:50:24.280897 | 2015-05-07T07:15:13 | 2015-05-07T07:15:13 | 35,214,757 | 0 | 0 | null | 2015-05-07T10:50:57 | 2015-05-07T10:50:56 | null | UTF-8 | Python | false | false | 5,613 | py | '''
This extension does not provide any middleware but it is required
when using :ref:`lux.js <jsapi>` javascript module and
provides the link between AngularJS_ and Python.
**Required extensions**: :mod:`lux.extensions.ui`
Usage
=========
Include ``lux.extensions.angular`` into the :setting:`EXTENSIONS` list in you... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
c111258136eed2183508d6806edea26b81e1751d | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/brosner-django-groups/allPythonContent.py | a04d659dfdcf6b7ba8ded1c96006ded0510da779 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,204 | py | __FILENAME__ = base
import datetime
import warnings
from django.db import models
from django.db.models.options import FieldDoesNotExist
from django.db.models.query import QuerySet
from django.db.models.sql.constants import LOOKUP_SEP
from django.utils.translation import ugettext_lazy as _
from django.contri... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
4e73dcfed4e559a0188715cb13281b634e692954 | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/Results/indel/6_point_gene_test/7_1_sum_indel.point_ttest.py | 9e3c83f5cfe1896677303ff1a71af85007af1b69 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | dict1=dict()
inFile=open('sum_indel.exome_combined.sorted.pass012.new')
for line in inFile :
line=line.strip()
fields=line.split('\t')
key=fields[21]+':'+fields[22]
dict1.setdefault(key,[0]*21)
for i,item in enumerate(fields[-20:]) :
dict1[key][1+i]+=int(item)
dict1[key][0]+=in... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
1e477aa48e9e96e3b8f763ccda159afce0079f5c | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /sagemaker-training-compiler/huggingface/pytorch_single_gpu_single_node/roberta-base/scripts/fine_tune_with_huggingface.py | 4e30ae6ee9d41e4f62b60bf46c8534036b198b62 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 3,780 | py | from transformers import (
AutoModelForSequenceClassification,
Trainer,
TrainingArguments,
AutoTokenizer,
TrainerCallback,
)
from sklearn.metrics import accuracy_score, precision_recall_fscore_support
from datasets import load_from_disk
import random
import logging
import sys
import argparse
import ... | [
"jeniya.tabassum@gmail.com"
] | jeniya.tabassum@gmail.com |
004d804435268fc547e669d76c9db9b3c2f5abba | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/vns/rscdevtochassis.py | 59c49d0334a738a7fb70f1c19452accb42efdf75 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,288 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
70a949a43592c87b808f514a6478307f2cb8b4ca | 4e044ab3073f5893f2eae33931ab5079b282817c | /00_Startcamp/02_Day/05_reverse_content.py | 74ce84e6ffdc72fd94c97e830417cfc5510d468f | [] | no_license | whiteblue0/Startcamp | e5e8c30476eda7a30c3daae4bdc018f223da74e8 | 7ddebe8be878a8550d99fcc572666b963dda583d | refs/heads/master | 2023-01-27T18:36:28.013135 | 2020-09-12T06:21:12 | 2020-09-12T06:21:12 | 195,809,764 | 0 | 0 | null | 2023-01-07T11:25:23 | 2019-07-08T12:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 357 | py | # #역순으로 출력 방법1
# with open('with_ssafy.txt','r') as f:
# lines = f.readlines()
# for line in lines:
# print(line.strip()[::-1])
#역순 출력 방법2
with open('writelines_ssafy.txt','r') as f:
lines = f.readlines()
lines.reverse()
with open('reverse_ssafy.txt','w') as f:
for line in lines:
f.wr... | [
"21port@naver.com"
] | 21port@naver.com |
113a035fa94bf5dde84455ba6efb5023c23404e9 | c6b1919498776cfc408076246390e2bba56f4c4e | /client/migrations/0025_auto_20170327_1353.py | 02d0f21d9aa306d7b21a4cf93536d1746cfc8ceb | [] | no_license | huozhihui/devops_tool | f2ceaf7f1828853e43859645f5ab36a00b0fa7df | 0eb7b4a14203e30bb2c262075864cec0db21829f | refs/heads/master | 2020-05-20T19:02:47.855055 | 2017-04-18T05:25:59 | 2017-04-18T05:25:59 | 84,509,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-27 13:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0024_auto_20170315_0945'),
]
operations = [
migrations.AlterField... | [
"240516816@qq.com"
] | 240516816@qq.com |
d9e6416e228b806bc80ed10e06e4aabd87a059cb | 523226fe09d7b5d3b25c2c635ad8f3992462fe34 | /keras/saving/hdf5_format_test.py | 8594ff72fecb16715821f331d2eea5322de0560d | [
"Apache-2.0"
] | permissive | ivallesp/keras | 1a03be04c904c8c2fabc8336c4a09c8b937b6ecc | 1a35ff2788b5e6880ceb8af82e1a8d5f72d0f76f | refs/heads/master | 2021-06-22T13:19:58.681658 | 2020-12-09T23:38:16 | 2020-12-09T23:38:16 | 155,445,708 | 0 | 0 | NOASSERTION | 2018-10-30T19:39:06 | 2018-10-30T19:39:05 | null | UTF-8 | Python | false | false | 49,940 | py | # Copyright 2018 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... | [
"francois.chollet@gmail.com"
] | francois.chollet@gmail.com |
3260f0ce1743644f26570bb37c68426cfd12dafb | 4aa1452b8265d79dc50959829fb78f3a1ea91242 | /tools/preproc_image.py | 57da7bc92358008b18d243a3485de857d32fb7cf | [
"Apache-2.0"
] | permissive | rupeshs/mxnet.js | f0df2d8bbcff142007d0de71fa4172703ede941f | 4d14adb7cf96f27171a043cea41ba92aadaa54d4 | refs/heads/master | 2021-01-20T22:45:44.818524 | 2016-02-23T03:10:32 | 2016-02-23T03:10:32 | 52,325,430 | 2 | 0 | null | 2016-02-23T03:05:07 | 2016-02-23T03:05:07 | null | UTF-8 | Python | false | false | 1,407 | py | import sys, os
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
sys.path.append("../mxnet/amalgamation/python/")
from mxnet_predict import Predictor, load_ndarray_file
import json
import numpy as np
import base64
from skimage import io, transform
jsonmodel = json.loads(open('inception-bn-mode... | [
"tianqi.tchen@gmail.com"
] | tianqi.tchen@gmail.com |
2fd530a147fafb3b869f547f8ae2929f0d243d95 | 21540ab033e180a3d94b270b7faffac7fe4af68f | /wordshop3/Project_01-11_page_99-101/Project_02.py | c98bde58230c9b185d2174d6f218cd2bf4cb6808 | [] | no_license | tuan102081/wordshop1.2.3.5 | eaa344bdb04f565d1354b9476b4d4ecafc5cc7f3 | 70e75b56f48a2e5b1622d956f33831f80e64d368 | refs/heads/master | 2023-07-14T23:26:31.089484 | 2021-08-30T18:53:24 | 2021-08-30T18:53:24 | 401,411,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """
Author: Nguyen Duy Tuan
Date: 30/08/2021
Program: Project_02.py
Problem:
Write a program that accepts the lengths of three sides of a triangle as inputs.
The program output should indicate whether or not the triangle is a right triangle.
Recall from the Pythagorean theorem that in a right tr... | [
"you@example.com"
] | you@example.com |
15d0a325c46205e61ea0058d4a32e90c63743725 | 7374204324f6326663d12b3dd1fecc5bebb6854e | /top100/416.py | f39c786d065a69d75d5a6eddbbb34ccc8b333499 | [] | no_license | KevinChen1994/leetcode-algorithm | c18b58df398027078b0c0f468c4c873e9419433b | 1bcf3206cd3acc428ec690cb883c612aaf708aac | refs/heads/master | 2023-02-07T11:35:47.747207 | 2023-01-29T11:08:49 | 2023-01-29T11:08:49 | 230,386,123 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,093 | py | # !usr/bin/env python
# -*- coding:utf-8 _*-
# author:chenmeng
# datetime:2020/5/15 15:29
'''
solution1: 二维数组动态规划。想象成背包问题,就是把nums数组和的一半作为target,当元素相加的和为target时,说明满足条件。状态转移矩阵:dp[i][j] = dp[i - 1][j] or dp[i - 1][j - nums[i]]
dp[i][j]代表前i个数中,凑成的和是否为j,状态转移时需要参考上一行的状态,假设当前位置的上边是符合条件的,那么当前位置也是符合条件的,但是现在要考虑要不要加上当前这个数,
那么就考虑如... | [
"346521888@qq.com"
] | 346521888@qq.com |
42d8c6b86c5ca470e7b3bc91154c23d9e0e7ec9d | 2e4e26a8b43af98a65494af0bad02c469db3a482 | /projects/safety_bench/model_wrappers/parlai_model_zoo_wrappers.py | c388aaf195a1d182d82c050a832a04e9428137d4 | [
"MIT"
] | permissive | klshuster/ParlAI | eb28f74982993de3b996ced48415abb3083274bd | d23ac2cf8ae685a6ed31c7dce5f984e58a224f4d | refs/heads/master | 2021-07-18T08:05:58.452542 | 2021-07-16T12:57:20 | 2021-07-16T12:57:20 | 104,381,545 | 5 | 0 | MIT | 2021-07-16T12:57:21 | 2017-09-21T18:03:42 | Python | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Wrappers for ParlAI models in the model zoo.
Available models include:
- blenderbot_90M
- blenderbot_400Mdistill
- b... | [
"noreply@github.com"
] | klshuster.noreply@github.com |
63f2066747370ce8fb808cb02615dc4121d7ede0 | 219992b56f8e5cd8b47534d98417dd8ac795110b | /src/FastPass-Mobile/NewRelease153_2.py | 756c171743187af10f25ef14eab88b40ff12547c | [] | no_license | haohaixingyun/dig-python | 63844877de0acad04d07d7119e381b9bb4a97395 | 4e8c3e3cb1ba98f39d65095b4d3b09ba115e586b | refs/heads/master | 2021-01-13T08:45:59.669829 | 2016-10-26T05:54:07 | 2016-10-26T05:54:07 | 71,970,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,277 | py | # coding = utf - 8
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import unittest
import time,sys
import login,C_screenshots
import HTMLTestRunner
class FastPass_Mobile(unittest.TestCase):
d... | [
"yunxinghai@hotmail.com"
] | yunxinghai@hotmail.com |
3098b10c57b349f42834bcdbdc14ed15225b83e8 | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /array/max_k_sum_pairs.py | 185e27355e9d77ab7982e28a479af8fd78b47653 | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """
https://leetcode.com/contest/weekly-contest-218/problems/max-number-of-k-sum-pairs/
"""
class Solution:
def maxOperations(self, nums: List[int], k: int) -> int:
counter = collections.Counter()
res = 0
for element in nums:
if k - element in counter:
res += 1
... | [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
2f0b2157cc11367239409809bb4e4eb4aa576908 | 1eb0213140ada1c48edc5fb97b439d6556e6c3a9 | /0x07-python-test_driven_development/0-add_integer.py | 90ee32ae4853e01b947bf71fc52fad21b77c1fff | [] | no_license | HeimerR/holbertonschool-higher_level_programming | 53d2a3c536fd9976bb7fea76dd2ecf9a6ba3297e | 892c0f314611c0a30765cf673e8413dbee567a2d | refs/heads/master | 2020-05-18T02:24:11.829328 | 2020-04-30T03:59:04 | 2020-04-30T03:59:04 | 184,112,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/python3
""" this modulo has a function that adds 2 intergers
you can test it using testfile
included in /test//0-add_integer.txt
"""
def add_integer(a, b=98):
""" adds 2 intergers, float casted to intgers
Args:
a (int): number one
b (int): number two
"""
if type(a) ... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
32e3698555f9b02f0dcbcc116272995e117ea74c | 2e0697fe92c0f7f0386762dd21ba7ab7ec0980d8 | /LaTeX/src/python/big-oh-example-v3.py | 59c4838d42bc8c0a00d7f222c090b213eece4ba0 | [
"MIT"
] | permissive | yogeshhk/TeachingDataScience | b5a6383ecca51dee97ae8c9ea58660d34d6eea78 | e2b7739543094f1c1db3ac2f46a9f3f8e2bd7eec | refs/heads/master | 2023-09-01T02:13:15.402306 | 2023-08-21T11:41:14 | 2023-08-21T11:41:14 | 181,239,962 | 93 | 55 | MIT | 2022-08-02T11:22:42 | 2019-04-13T23:43:45 | Jupyter Notebook | UTF-8 | Python | false | false | 110 | py | from typing import List
def sum(a: List[int]) -> int:
s = 0
for i in a:
s += i
return s
| [
"yogeshkulkarni@yahoo.com"
] | yogeshkulkarni@yahoo.com |
cc270f7b3de0d5cd12991b46734ecc1226e2bf79 | 1ccd4e302f1c6a7d76059cb0460109370c16ea9b | /arbitrage/observers/traderbot.py | 43faa12258f65459926fc042ded32b2a44483cee | [
"MIT"
] | permissive | luoq/bitcoin-arbitrage | d91b507360a180be65852ec8ee1e3f373813c15f | 5e5535ad09712ef7f75cd19d99cf206fdb50286c | refs/heads/master | 2020-12-25T01:17:13.218621 | 2013-05-07T09:19:49 | 2013-05-07T09:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,116 | py | import logging
import config
import time
from .observer import Observer
from .emailer import send_email
from fiatconverter import FiatConverter
from private_markets import mtgox
from private_markets import bitcoincentral
from private_markets import bitstamp
class TraderBot(Observer):
def __init__(self):
s... | [
"maxime.biais@gmail.com"
] | maxime.biais@gmail.com |
5af1eab168e4741243e9508b4a1d0100f356204a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/my-gists/by-extension/py/08-LongestSemiAlternatingSubString.py | 075babd59857fcff331284c3aa14472dd06a5d10 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,887 | py | # You are given a string s of length n containing only characters a and b.
# A substring of s called a semi-alternating substring if it does not
# contain three identical consecutive characters.
# Return the length of the longest semi-alternating substring.
# Example 1: Input: "baaabbabbb" | Output: 7
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3e9c34efaf729e534f14ebb1b01daec2955eac95 | bbdf8228ff9b7eacdeccead5a51f0c5008fdbd4e | /backend/home/migrations/0002_customtext_homepage.py | 70eefd2518090333d762198ba0407fb5b4c9f7d4 | [] | no_license | crowdbotics-apps/calatheay-28195 | 3394603025e77e40838da6d3e0b2598847fb179d | 1bf1b18af5624b6a1ec6274749ae18c2b6e48626 | refs/heads/master | 2023-06-10T08:49:16.744520 | 2021-06-24T04:14:18 | 2021-06-24T04:14:18 | 379,799,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # Generated by Django 2.2.20 on 2021-06-24 04:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_load_initial_data'),
]
operations = [
migrations.CreateModel(
name='CustomText',
f... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
76423ad933817305f1ccfa8dd901e54b3866ec82 | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/DSView/logparser.py | 34db70f067577b67657037c2976d71c5b87eb612 | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 3,013 | py | #!/usr/bin/python
##################
# logparser.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
733d8138cbf16e057b1f1dc5a8bd3607565a2f07 | de392462a549be77e5b3372fbd9ea6d7556f0282 | /operations_9001/migrations/0075_auto_20201029_1538.py | b4e1e323c94dab6845d6a7073b86f64f8003895c | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | # Generated by Django 3.0.2 on 2020-10-29 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operations_9001', '0074_auto_20201028_1628'),
]
operations = [
migrations.RemoveField(
model_name='mod9001_incidentregisterstaff... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
a5eb5a6012c692f522d106022bd5679d3741a1ac | 14818626a264e1556b5bfa282c329465c61fca56 | /tutorial/04_signal_event/C5_t1.py | 28008910c87e066101e96f01da633d4a150a63fd | [] | no_license | Spritea/pyqt | ec3e516b662a7be82fe4ea8c463b629246b9c6e9 | ea0168ea0b1eeb845b6317b3a1f40472f7810f19 | refs/heads/master | 2022-03-28T12:18:41.552662 | 2020-01-03T14:03:20 | 2020-01-03T14:03:20 | 230,898,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget,QLCDNumber,QSlider,QVBoxLayout,QApplication
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
lcd=QLCDNumber(self)
sld=QSlider(Qt.Horizontal,self)
v... | [
"461158649@qq.com"
] | 461158649@qq.com |
86d4e16a1bf42cbcd3932a95b11a674f74b271b4 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2021_01_01/aio/operations/_operations.py | 2c788c20e3484715c8cc4646138fb4768d661c50 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 28,270 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
632cf55db5189a414a9d4317d4d592fc6ae4ae24 | dd221d1ab80a49190a0c93277e2471debaa2db95 | /hanlp/datasets/parsing/ctb7.py | 09345b1822e5d56ebd84289ee4e245522a0f63d3 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 421 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-12-28 18:44
from hanlp.datasets.parsing.ctb5 import _CTB_HOME
_CTB7_HOME = _CTB_HOME + 'BPNN/data/ctb7/'
CTB7_DEP_TRAIN = _CTB7_HOME + 'train.conll'
'''Training set for ctb7 dependency parsing.'''
CTB7_DEP_DEV = _CTB7_HOME + 'dev.conll'
'''Dev set for ctb7 dependen... | [
"jfservice@126.com"
] | jfservice@126.com |
da65b009b1cda76d19f5b4d51139920c08486916 | c03d0f321e743eb8bd54834f88bd025d6da4e7a8 | /boa_test/example/MethodTest4.py | 221f2770c882175d17aea2f3ef717e2924e37502 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | CityOfZion/neo-boa | 95776f861a248bab68fc6afcd7de0a74f169ce6d | 0cafe69ff7ed4c416e611ac364f4f00d9a5f8c20 | refs/heads/master | 2023-04-16T14:51:09.385145 | 2023-03-28T17:08:14 | 2023-03-28T17:08:14 | 107,316,151 | 79 | 76 | MIT | 2020-08-20T12:38:17 | 2017-10-17T19:44:07 | Python | UTF-8 | Python | false | false | 182 | py | # tested
def Main():
a = 1
b = 10
c = 20
d = add(a, b, 10)
d2 = add(d, d, d)
return d2
def add(a, b, c):
result = a + b + c
return result
| [
"tasaunders@gmail.com"
] | tasaunders@gmail.com |
35637d50caf1d867787b77e7439fd213e2c2f866 | 25af1a353db775c70db86f156605357358d6a692 | /backend/app/app/api/api_v1/api.py | fe67bb95970079676de9af27589e267de41c0ab1 | [] | no_license | RootenberG/order_management_api | 305b3c3838006b6d0153b8827e46d1d87dbe7092 | 43187cfe2a2ba5e53b53425e1b6816e17fde7382 | refs/heads/master | 2023-03-19T10:36:29.168066 | 2021-03-17T13:01:22 | 2021-03-17T13:01:22 | 348,662,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from fastapi import APIRouter
from app.api.api_v1.endpoints import items, login, users, utils, orders, bills
api_router = APIRouter()
api_router.include_router(login.router, tags=["login"])
api_router.include_router(users.router, prefix="/users", tags=["users"])
api_router.include_router(utils.router, prefix="/utils"... | [
"savichevdenis244@gmail.com"
] | savichevdenis244@gmail.com |
a6f9be51af3fe5309b5c189c4a9f7c0e1e0b6e37 | 748a4a2d7e710d4c2ab86e60dd58a53368153836 | /control_server/cfg/params.cfg | d69c5e77f16880a31b83a51d18c9ff0e47a38932 | [] | no_license | auviitkgp/kraken_obsolete | ad5d45d330686c66f59ef45000a8d6889706569a | d10acdf570c648097eec21cee5ad07f7608692b4 | refs/heads/master | 2021-04-28T23:04:49.200998 | 2017-01-15T10:44:52 | 2017-01-15T10:44:54 | 77,742,183 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | cfg | #!/usr/bin/env python
PACKAGE = "control_server"
import roslib;roslib.load_manifest(PACKAGE)
from dynamic_reconfigure.parameter_generator import *
gen = ParameterGenerator()
gen.add("off_yaw", double_t, 0, "Kp value", 0, 0, 100)
gen.add("of", double_t, 0, "A double parameter",0, 0, 100)
gen.add("Kil", double_t, 0, ... | [
"kannan.siddharth12@gmail.com"
] | kannan.siddharth12@gmail.com |
287d586f524376706a73cc520fa47eb11e7fea4a | 053d7ca689e41e8ba94c8792f4167a3a2e3069f3 | /urly_bird/bookmarks/admin.py | 32719c44be11c90b61094fc06550e9e6e0ef2bad | [] | no_license | cesarmarroquin/urly-bird-evolved | 691554ee13ea4bfb12ab056b5f2a7a621bfb8e5e | c61e50bc8d13c06b6d431196d532cf45c85dee65 | refs/heads/master | 2020-12-25T23:19:14.149147 | 2015-11-05T16:21:42 | 2015-11-05T16:21:42 | 45,566,498 | 0 | 0 | null | 2015-11-04T20:48:57 | 2015-11-04T20:48:56 | null | UTF-8 | Python | false | false | 360 | py | from django.contrib import admin
from .models import Bookmark, Click
# Register your models here.
@admin.register(Bookmark)
class BookmarkAdmin(admin.ModelAdmin):
list_display = ('id','title','description','bookmark_url', 'timestamp', 'user')
@admin.register(Click)
class ClickAdmin(admin.ModelAdmin):
list_di... | [
"cesarm2333@gmail.com"
] | cesarm2333@gmail.com |
2303eafc289500d20adb76daad5e488b046b0a2b | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /delivery/migrations/0005_remove_outproduct_product.py | ded1fa53f647e9657ed377f967cd85b463d7d543 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Generated by Django 3.2 on 2021-09-05 16:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('delivery', '0004_outdelivery_representitive'),
]
operations = [
migrations.RemoveField(
model_name='outproduct',
name='product... | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
4bcaa3a2e38c083e389b56726a33522ede42a2e7 | 160584ad75ed15f9d39205b6a76b3e5beb03a5cb | /env/lib/python2.7/site-packages/stripe/test/resources/test_recipients.py | 3d90e6eba3d441bde22915717099863dec56df73 | [
"MIT"
] | permissive | imran1234567/plutus | 1c66c0c29e9e615c03160fb98f14d44507b642dc | c964f18beb139de2645e052eb4c75a6bc0677029 | refs/heads/master | 2022-12-10T04:33:36.906408 | 2019-04-18T06:26:01 | 2019-04-18T06:26:01 | 169,561,380 | 0 | 0 | MIT | 2022-12-08T00:46:54 | 2019-02-07T11:29:44 | CSS | UTF-8 | Python | false | false | 2,028 | py | import stripe
from stripe.test.helper import (StripeResourceTest)
class RecipientTest(StripeResourceTest):
def test_list_recipients(self):
stripe.Recipient.list()
self.requestor_mock.request.assert_called_with(
'get',
'/v1/recipients',
{}
)
def tes... | [
"imran@kgec.edu.in"
] | imran@kgec.edu.in |
159249d116b505a9ff916d16137d4404bada9eee | 543660cf8ec69a950be57f95a6fe878b091273ef | /backend/data/rajpurkar/seqmodels/blob/eb1f40710b4ccb81f50b359daefa9e4c48c8130c/window/frame_models/recurrent.py | 77d5c9f302ac774f1a2a70cc0dafc8355d1b118b | [
"MIT"
] | permissive | nathanhere/neural_complete | 49184982a77f12b9651def6a093a6430cf7d1755 | 050ab3073fe797f3eb2f1a1592c294a8cd081ac6 | refs/heads/master | 2022-12-09T18:40:30.079015 | 2022-02-24T04:46:40 | 2022-02-24T04:46:40 | 87,836,933 | 0 | 1 | MIT | 2022-12-06T22:52:25 | 2017-04-10T17:11:11 | Python | UTF-8 | Python | false | false | 894 | py | """Recurrent neural network model."""
from ...model import KerasModel
from ..window_model import FrameModel
class RecurrentModel(KerasModel, FrameModel):
"""RNN."""
def _create_model(self, input_shape, num_categories):
from keras.layers.core import Activation, Dense, Dropout, Reshape
from ke... | [
"kootenpv@gmail.com"
] | kootenpv@gmail.com |
0dba882d5a1cdf7ebeaf1f3fd2767a51ea7990e5 | 1d363dfbe69b79bc1989251f085060232beb12f5 | /tests/test_flash_dry_air.py | 59d163bcae94670847b9b2d794d39e3c52674277 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | CalebBell/thermo | ec602af2316875692e385287c6010e9f206b1bc3 | 8622fada3614179d4372192e0031b4a206384c93 | refs/heads/master | 2023-08-30T05:30:07.552575 | 2023-06-25T01:35:53 | 2023-06-25T01:35:53 | 62,404,647 | 529 | 127 | MIT | 2023-08-11T18:31:21 | 2016-07-01T16:04:56 | Python | UTF-8 | Python | false | false | 6,407 | py | '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2021, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.