blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9b5cf2445399642b2b7c925cbf7645c8e7e2f58 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /trinity/renderjobs.py | 394ddcb28608b85b76dfb5fc0412e2471051f7de | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\trinity\renderjobs.py
import decometaclass
from . import _trinity as trinity
class RenderJobs(object):
__cid__ = 'trinity.Tr2RenderJobs'
__metaclass__ = decometaclass.BlueWrappedMetaclass
def __init__(self):
... | [
"le02005@163.com"
] | le02005@163.com |
d4a4f7cad1ae98a307e8097d46ba07924f6a4adb | 1f85142263a08d2e20080f18756059f581d524df | /chromium_extension/branches/timeline/src/build/common.gypi | 764680d3d99285d67d4b0c6a767afa03d918f377 | [] | no_license | songlibo/page-speed | 60edce572136a4b35f4d939fd11cc4d3cfd04567 | 8776e0441abd3f061da969644a9db6655fe01855 | refs/heads/master | 2021-01-22T08:27:40.145133 | 2016-02-03T15:34:40 | 2016-02-03T15:34:40 | 43,261,473 | 0 | 0 | null | 2015-09-27T19:32:17 | 2015-09-27T19:32:17 | null | UTF-8 | Python | false | false | 1,260 | gypi | # Copyright 2010 Google 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,... | [
"bmcquade@google.com"
] | bmcquade@google.com |
499899b07cb558bc9dd599794ace8b8746cee9ba | 06c9edb02884ced68c62b5527d2be0e1a2e65bf1 | /9012.py | 3ce6c980e1d0a4c7ae29f246559b2957d47c7fc6 | [] | no_license | 0x232/BOJ | 3c5d3973b62036bfe9b761c88c822cf7fe909bce | 5f135ac51b1c304eff4630798fb5c516b666a5c6 | refs/heads/master | 2021-07-03T02:56:00.132987 | 2020-10-31T02:18:19 | 2020-10-31T02:18:19 | 191,161,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | n = int(input())
for _ in range(n):
paren = input()
counter = 0
answer = True
for p in paren:
if counter < 0:
answer = False
break
if p == '(':
counter += 1
if p == ')':
counter -= 1
if counter != 0:
answer = False
i... | [
"51640066+0x232@users.noreply.github.com"
] | 51640066+0x232@users.noreply.github.com |
158391a0ca82c0639608e6f98dede3195bd12b40 | 9d862dd68f8b4ea4e7de9397fef8592824c77449 | /app/top/api/rest/FenxiaoDiscountsGetRequest.py | 2989652b695920224f032670cc2c84c122f36215 | [] | no_license | hi-noikiy/tmall-sku-outer_id | ffaca630dfb288ca33d962b8a050932d1047b9c8 | 1bcf29386a513bcb210bf5d91016e0dcb1ebc1ad | refs/heads/master | 2021-05-09T18:20:27.150316 | 2017-03-08T06:43:57 | 2017-03-08T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | '''
Created by auto_sdk on 2016.03.05
'''
from app.top.api.base import RestApi
class FenxiaoDiscountsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.discount_id = None
self.ext_fields = None
def getapiname(self):
return 'taobao.fenxiao.di... | [
"1037096435@qq.com"
] | 1037096435@qq.com |
e925cae9746d4510a5277d88ffa5e8a07c3c90e6 | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/critical_connections_in_a_network/solution.py | 7ddf628a29bc4208c9823e84011f61a218c0010c | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | class Solution:
def criticalConnections(self, n: int, connections: List[List[int]]) -> List[List[int]]:
def dfs(previous = -1, current = 0, depth = 1):
nonlocal depths, output
temp_depth = depth
depths[current] = depth
for neighbor in graph[current]:
... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
8bc175401c234330dcca0e841f43babb1b91a34e | e831c22c8834030c22c54b63034e655e395d4efe | /Strings/409-LongestPalindrome.py | a7c78ae605311f965fabd78f56853df5f5a2ed97 | [] | no_license | szhmery/leetcode | a5eb1a393422b21f9fd4304b3bdc4a9db557858c | 9fcd1ec0686db45d24e2c52a7987d58c6ef545a0 | refs/heads/master | 2023-08-16T00:27:56.866626 | 2021-10-23T07:35:37 | 2021-10-23T07:35:37 | 331,875,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from collections import Counter
class Solution:
#https://leetcode.com/problems/longest-palindrome/solution/
def longestPalindrome(self, s: str) -> int:
ans = 0
map = Counter(s)
for v in map.values():
ans += v // 2 * 2
if ans % 2 == 0 and v % 2 != 0: # aaaccc, ... | [
"szhmery@gmail.com"
] | szhmery@gmail.com |
eadd064afcb20f96f92a1dd01fffdcfba42712a5 | 24dd3c272457110b2b51bb783715d1245afcd9ce | /eth_dev/infura.py | 73181d7325cfb92aa1ccb3a2719e9daa434c82ab | [] | no_license | fubuloubu/eth-dev | 81761da7942927a97830c426cccf650046e6db74 | 383e51bba0b4471ef1c7a5d6ee2d1ff6a0562f8a | refs/heads/master | 2020-04-30T04:24:29.606074 | 2019-03-19T23:15:56 | 2019-03-19T23:15:56 | 176,610,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import os
import sys
from importlib import import_module
def get_web3(network: str, project_id: str):
# Infura websocket API requires Project ID token as of March 23rd
print("Setting Infura Project ID to", project_id, file=sys.stderr)
os.environ['WEB3_INFURA_PROJECT_ID'] = project_id
# Dynamically lo... | [
"fubuloubu@gmail.com"
] | fubuloubu@gmail.com |
b28a6e9427e27b1ccb8fa350686110b8a21e74e3 | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /venv/Lib/site-packages/numba/cuda/tests/cudapy/test_print.py | 59513d127a2aebd9b1461428f48b504cac50b75b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 1,919 | py | from __future__ import print_function
import numpy as np
from numba import cuda
from numba import unittest_support as unittest
from numba.cuda.testing import captured_cuda_stdout, SerialMixin
def cuhello():
i = cuda.grid(1)
print(i, 999)
print(-42)
def printfloat():
i = cuda.grid(1)
print(i, 2... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
4ad18edeba3a472fa88ee13931a6c5ad42d6a3dc | d7779408c44502a0cb8da4e3923e1b68492b1610 | /apps/organization/forms.py | ccfe66e97ba094e2b0233dc63e529b03fbcc07b3 | [
"MIT"
] | permissive | codelieche/moocweb | 5c4429d3ebee43452d42db63fdd364935e2d6eee | 0e25efa597a79a38066ec41559334be604388f30 | refs/heads/master | 2021-01-13T11:49:08.444658 | 2017-02-26T16:36:08 | 2017-02-26T16:36:08 | 81,343,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # _*_ coding:utf-8 _*_
import re
from django import forms
from operation.models import UserAsk
class UserAskForm(forms.ModelForm):
'''用户咨询Form'''
class Meta:
model = UserAsk
fields = ['name', 'mobile', 'course_name']
def clean_mobil(self):
'''
验证手机号码是否合法
:return:... | [
"codelieche@gmail.com"
] | codelieche@gmail.com |
bf6f236aa05ce0ae841dd0b933b1930625d39351 | a75d4e8ff5e2d0641e539af3980768c10298dfb9 | /main.py | d8058f25dc7e3b8e940ce79bf28746f3235b9492 | [] | no_license | vitvara/tk-space-1 | c70942af4c235ebabc8648d7d49efc9c31feb961 | 57f668f3137ce893d576f03c8f7c6ffc0cb794c3 | refs/heads/main | 2023-03-23T23:35:07.711907 | 2021-03-24T23:17:02 | 2021-03-24T23:17:02 | 351,682,625 | 1 | 0 | null | 2021-03-26T06:20:18 | 2021-03-26T06:20:17 | null | UTF-8 | Python | false | false | 5,424 | py | import math
from random import randint, random
import tkinter as tk
from gamelib import Sprite, GameApp, Text
from consts import *
from elements import Ship, Bullet, Enemy
from utils import random_edge_position, normalize_vector, direction_to_dxdy, vector_len, distance
class SpaceGame(GameApp):
def init_game(s... | [
"jittat@gmail.com"
] | jittat@gmail.com |
4f12b2cc59d6c1796f624bc5b10d8d35fa779390 | 22749c6a569661b2637233cc0aebdc1701033b26 | /src/python/pants/backend/codegen/protobuf/python/python_protobuf_module_mapper_test.py | d1a882ed3ab9459719226cada03e3667f28f2afd | [
"Apache-2.0"
] | permissive | akk5597/pants | 2eceb226c39b8ef7f603dfa96684b7522e1a9065 | 7ad295f71d2990eebbbe9c778bbf70f7d9e66584 | refs/heads/main | 2023-08-27T02:40:54.753545 | 2021-11-10T03:42:18 | 2021-11-10T03:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import pytest
from pants.backend.codegen.protobuf.python import additional_fields, python_protobuf_module_mapper
from pants.backend.codegen.protobuf.python.python_protobuf_module_mapper i... | [
"noreply@github.com"
] | akk5597.noreply@github.com |
7b512c468b007c8b2f336f735e4eb125dfc4082e | a03eba726a432d8ef133f2dc55894ba85cdc4a08 | /config/hostsconf/views.py | f6ec260509c9276a8b978a80bd4cf61bb22bcbaf | [
"MIT"
] | permissive | mansonul/events | 2546c9cfe076eb59fbfdb7b4ec8bcd708817d59b | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | refs/heads/master | 2021-01-15T08:53:22.442929 | 2018-01-30T16:14:20 | 2018-01-30T16:14:20 | 99,572,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from django.http import HttpResponseRedirect
from django_hosts.resolvers import reverse as host_reverse
def www_root_redirect(request, path=None):
url_ = host_reverse("home", host='www')
if path is not None:
url_ = url_ + path
return HttpResponseRedirect(host_reverse('home'))
| [
"contact@dragosnicu.com"
] | contact@dragosnicu.com |
90e783ea257a3f30cbf5ecd45264e3e1bfb0f5e5 | dc221edce0ad617aac3b9ad8f4f347ff84f56bf9 | /.history/client_20200807180109.py | 54c6da2132910d7f0425fdabfa0c1da205eccabc | [] | no_license | zlm05170/cacontroller | 310014c83ecf130643230eba87990e635fe1575f | e76d2eb5d58d6adfe7823e0dcd0059027c52b6bc | refs/heads/master | 2022-12-21T08:05:58.315017 | 2020-09-23T11:45:07 | 2020-09-23T11:45:07 | 284,527,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | import asyncio
import websockets
import time
import json
import traceback
def view_actor_data(actor, port_type, port_name):
pass
def get_port_value_by_name(port_list, name):
for port in port_list:
if port['port']['name'] == name:
return port['value']
def find_port_index_by_name(actor, por... | [
"angelxx05170@gmail.com"
] | angelxx05170@gmail.com |
769a920462f74093deebe33e6db9ca5f4ce57734 | bc6e2056500afdd5d11a28a613d6d73f5dd05447 | /moneycash/produccion/admin.py | 28741262c044e84e45e8db2088d83ef264941422 | [] | no_license | xangcastle/respaldo | d0540fabc089f947f052019431d55a9c3c85f131 | 48c5f53b2a2bce0bfa79b1fcc657aa40268e702b | refs/heads/master | 2021-01-10T01:52:48.102689 | 2015-12-16T15:42:02 | 2015-12-16T15:42:02 | 48,118,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,700 | py | from django.contrib import admin
from .models import *
from moneycash.entidad import entidad_admin
from moneycash.documento import documento_admin
from django.template.context import RequestContext
from django.shortcuts import render_to_response
class contadores_tabular(admin.TabularInline):
model = equipo_period... | [
"cesarabel@johnmay.com.ni"
] | cesarabel@johnmay.com.ni |
762c5f01dc26bf85b36b2cda337b1e05fd67f44e | 22f96e07b22e3ca89ee757badd1f35ed9efcc034 | /docs/conf.py | d4b5fe98e2c13e6412c9c4feeec2f5eaf200fdf8 | [
"MIT"
] | permissive | Duc98f/MangAdventure | 83e341ecbdb6592c947f77e32848346dcc23e861 | fe69c850f6adce1d9a8755e5aa63db358a6084f6 | refs/heads/master | 2023-06-09T23:08:25.595545 | 2021-06-13T10:55:16 | 2021-06-13T11:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | # -- Setup Django --
from os import environ as env
from os.path import dirname, join
from sys import path
path.insert(0, dirname(dirname(__file__)))
path.insert(1, join(dirname(__file__), '_ext'))
env['DJANGO_SETTINGS_MODULE'] = 'MangAdventure.tests.settings'
__import__('django').setup()
# -- Project information --... | [
"chronobserver@disroot.org"
] | chronobserver@disroot.org |
f3a43ef0015900475f2c2da760ba827c2fe933df | 923f1c7bd149d37c23c5b2f067baab3f5b95a4cf | /setup.py | 309502c9f88be647a041ae202762971497a89441 | [
"BSD-2-Clause"
] | permissive | Lokeshburade007/python-mammoth | 7467d08ad906e932fbdba720557ee5fd8d862c28 | f8eb2e1214b7ef1749f2cf73a91b09c9f3adf6a8 | refs/heads/master | 2023-08-21T00:35:06.783844 | 2021-10-12T18:52:31 | 2021-10-12T18:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mammoth',
version='1.4.17',
description='Convert Word documents from docx to simple and clean HTML and Markdown',
long_descript... | [
"mike@zwobble.org"
] | mike@zwobble.org |
452d6a1116be732f045e520d350dc705407e2c81 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/fitting/panels/offensePanel.py | 2f426e8e743c0e2dd09191bd7a22606f6464d826 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,079 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\fitting\panels\offensePanel.py
from carbonui import const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.sprite import Sprite
from eve.client.script.ui.control.eve... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
90d61a45791a4c4fca451ce3958912b1271ff667 | f71d67025b732e66e1a37c02c05392c3dd116d65 | /Lessons/ITP1/08_Character/d.py | 81a5619fd4674529f96b237cb3fef6f221b7ee12 | [] | no_license | clarinet758/aoj | 2829f92137dd1a93734445e1e92513f8e3e0b5c0 | 21787ffee1a6dd60c717d7b880b63107187e4710 | refs/heads/main | 2023-06-25T12:04:40.127040 | 2023-06-19T16:36:38 | 2023-06-19T16:36:38 | 34,978,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
xy=[(1,0),(-1,0),(0,1),(0,-1)]
bs=[(-1,-1),(-1,1),(1,1),(1,-1)]
#start = time.cl... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
262a46b28e0f81a173486d6faa14c8be88a61e79 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2738/60598/281309.py | b37b2756d6e576c77a144d36933054d39da07823 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | input()
matrix = []
while 1:
s = input().replace(" ","")
if s == "]":
break
if s[-1] == ',':
matrix.append(s[1:-2].split(","))
else:
matrix.append(s[1:-1].split(","))
row = len(matrix)
col = len(matrix[0])
result = 0
are = []
for i in range(row):
for j in range(col):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1160fe2c4176a9a8392411959eb0d17929231848 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py | ffed016aea17b6dc6eec320863498e523cbc368d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,944 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GaussDBforOpenGaussUserForList:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
af85091132f201033888c47fc10b43a4b7e8d32d | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-aircall/setup.py | 25b830a1e3cce6526bed07734eb77ef89e7f7d8b | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 628 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.1",
]
TEST_REQUIREMENTS = [
"requests-mock~=1.9.3",
"pytest~=6.2",
"pytest-mock~=3.6.1",
]
setup(
name="source_aircall",
description="Source impleme... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
f060ef31d43c3220db23ba2d5f5b9638358bec69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nitpicked.py | c24415023c45b6fa685872e33916c3f83b705177 | [
"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 | 228 | py |
#calss header
class _NITPICKED():
def __init__(self,):
self.name = "NITPICKED"
self.definitions = nitpick
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nitpick']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
98491800978764c42bde1d1d36a77b8dc13c9ef3 | 1e249067ab2dabc17cb7ebda46f9f23a5cfad552 | /tests/test_processor.py | 149ae513f1fdcfc1b09bbec275c63aac1d55b556 | [
"BSD-2-Clause"
] | permissive | STIRLIN6/indra_cogex | 6e4cba84ee1ce82a404154e7370f88fc340400cb | 552cefd71431b08b8118b2cc0428fd8681e6fc83 | refs/heads/main | 2023-08-14T01:28:14.852108 | 2021-09-14T04:18:13 | 2021-09-14T04:18:13 | 377,100,238 | 0 | 0 | BSD-2-Clause | 2021-06-15T09:01:23 | 2021-06-15T09:01:23 | null | UTF-8 | Python | false | false | 184 | py | from indra_cogex.representation import norm_id
def test_norm_id():
assert norm_id("UP", "P12345") == "uniprot:P12345"
assert norm_id("CHEBI", "CHEBI:12345") == "chebi:12345"
| [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
29689d82e65139fffd325b2517ea32a511041d38 | 9734c93c86c982b1ce046340bac9e53645b261b8 | /tests/formatters/yaml_formatters_file.py | f69655c1080aa94b6d70e50bbc0002921e12694b | [
"Apache-2.0"
] | permissive | log2timeline/plaso | cd72dd407d6c5627506c14f58cb8f6a6926aa808 | d6022f8cfebfddf2d08ab2d300a41b61f3349933 | refs/heads/main | 2023-09-02T08:43:48.241198 | 2023-08-19T07:28:12 | 2023-08-19T07:28:12 | 23,812,315 | 1,506 | 421 | Apache-2.0 | 2023-09-04T08:24:53 | 2014-09-08T23:29:28 | Python | UTF-8 | Python | false | false | 3,363 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the YAML-based formatters file."""
import io
import unittest
from plaso.formatters import yaml_formatters_file
from plaso.lib import errors
from tests import test_lib as shared_test_lib
class YAMLFormattersFileTest(shared_test_lib.BaseTestCase):
"""Test... | [
"noreply@github.com"
] | log2timeline.noreply@github.com |
0e1cdca49f5eeb7315a63e0091ae55029d0eece7 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_watch_event.py | eeac0514753ca0d2cfe0c9ba717f53e73fabf2aa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,880 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
541be20181d90c2f788955ed7c94c8e307b6d08e | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.py | 1259c1c7a0143dad30f158e310e8328d81adaa3d | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from Products.DCWorkflow.DCWorkflow import ValidationFailed
from Products.ERP5Type.Message import Message
transaction = state_change['object']
date = transaction.getStartDate()
source = transaction.getSource(None)
# check we are in an opened accounting day
transaction.Baobab_checkCounterDateOpen(site=source, date=tr... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
c4167281b5e6283bb6cd67dd447b40152c61100c | f36fc94a1ac5ffbfb6d2a78807992347a7e9f6e2 | /assignment1/cs231n/classifiers/linear_classifier.py | 844826318d20b5e2114d43a0cfb20aa6ca31046a | [] | no_license | Dipeshtamboli/CS231n-Assignments | d2f60504410499aed96da9f988fc69c239096abe | 146b3ce885867c81dd609abdbaedabeafa23f7b7 | refs/heads/master | 2020-04-11T09:10:45.563002 | 2019-01-01T20:56:18 | 2019-01-01T20:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | from __future__ import print_function
import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,
batch_size=200, verbo... | [
"dipeshtamboli@gmail.com"
] | dipeshtamboli@gmail.com |
d243c506f63f7cc1780806923f5d78de5943116b | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearrelu_5.py | efcfbec738c0a5f4fad45d439a1de52528caf7c2 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 675 | py | # -*- coding: utf-8 -*-
"""
linearrelu_5.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearReLU_5(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=70, bias=Tru... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
3603592a43f6cb57493b90f261bc46ecb00ef171 | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/generate_random_image_list.py | 8a9ca4dabc8f05852c8bdb56a7c99cb54b3732fe | [] | no_license | monarin/monatbx | 2ec342d67f1fbccb82656218ffd136f2eb7d96ab | 43f56974f811e5b2b0dcc428d4f9b36043ed9d04 | refs/heads/master | 2020-06-18T13:08:58.893701 | 2016-11-30T00:58:18 | 2016-11-30T00:58:18 | 75,136,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import os
import sys
import random
p = sys.argv[1]
n_images = int(sys.argv[2])
frame_files = []
if os.path.isdir(p):
for pickle_filename in os.listdir(p):
if pickle_filename.endswith('.pickle'):
frame_files.append(p+'/'+pickle_filename)
i_rand = random.sample(range(len(frame_files)),n_images)
frame_file... | [
"monarin@gmail.com"
] | monarin@gmail.com |
947dced367bd8dde73a91f39443a0f7b80bda3a8 | 86319aad3690906f614ac1af28b8843529e9e0da | /thwackbin/data/__init__.py | a156485bd18d0e80a766cdfa5aabbee5f290dab9 | [] | no_license | sohgoh/thwackbin | b5828783a6179e96784bed0bdb894b179e3bea07 | ba9fedc4bcec598f367aa6d4f2567d1840c65c51 | refs/heads/master | 2021-01-21T03:14:08.261732 | 2014-04-16T03:53:51 | 2014-04-16T04:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
thwackbin.data
~~~~~~~~~~~~~~
Package which contains mock results data stored on the file system.
"""
__author__ = 'Andrew Hawker <andrew@appthwack.com>'
import json
import os
RESULTS = None
ROOT = os.path.dirname(__file__)
def init():
"""
Load and cache our results.json data on startup.
... | [
"andrew.r.hawker@gmail.com"
] | andrew.r.hawker@gmail.com |
6f4f86844af5579493a6f13c1a0dcd95fafe0bd1 | c79e7e691c9fa5cc05bd227209762f735e6263e7 | /pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/Hashes.py | 92a3d2de462fdebf1fdaf1414141fd87e81bd746 | [
"Apache-2.0"
] | permissive | pyy1988/pyy_test1 | 27fd5fbd41935ba907e26f4f4d2546ca502f29a6 | 6bea878409e658aa87441384419be51aaab061e7 | refs/heads/master | 2020-04-05T07:01:58.745653 | 2018-11-08T12:51:00 | 2018-11-08T12:51:00 | 156,660,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # encoding: utf-8
# module apt_pkg
# from /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
Classes and functions wrapping the apt-pkg library.
The apt_pkg module provides several classes and functions for accessing
the functionality provided by the apt-pkg library. Typica... | [
"347003917@qq.com"
] | 347003917@qq.com |
57b977f2ae53db87282b285aa878effd453face0 | 2a46ad4e83dcd903451fb5fba8d04da266dbd49e | /Algorithm/Leetcode/Codes/ConstructBinaryTreeFromInorderAndPostorderTraversal.py | 769cc7114912f93e7e81cf26965025c23ac1cdbd | [] | no_license | chloeeekim/TIL | e248801508340cb2eb9f3cfddc486b7dd7250386 | c5a94e81aa2f2dfcc626820205ca9feaad069fad | refs/heads/master | 2022-03-02T04:05:24.439271 | 2022-02-22T01:25:14 | 2022-02-22T01:25:14 | 190,150,063 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | """
106. Construct Binary Tree from Inorder and Postorder Traversal : https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
어떤 트리의 inorder, postorder traversal 결과가 리스트로 주어졌을 때, 트리를 복원하는 문제
- 트리 내에 중복된 값은 없다고 가정한다
Example:
- Input : inorder = [9,3,15,20,7], postorder = [9,15,7,20,3... | [
"hiyaku0317@gmail.com"
] | hiyaku0317@gmail.com |
fdba2e38a7275b27bf739668f77984e9aad554b6 | d5fd936e7346844a1b7c5ea81dfa9adf5bb647d0 | /datasets/load_data.py | c547ebd91f699327cac78ca35d0dbe0f0094489e | [] | no_license | isaachenrion/graphs | 098e7098a894a3d1d9d18cf0ce1054e5910afa15 | 2ba6d50a7f61233fa8cc92ba03256691abb889de | refs/heads/master | 2021-01-02T09:10:49.686240 | 2017-09-11T19:52:48 | 2017-09-11T19:52:48 | 99,154,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import os
import pickle
from .datasets import BatchedFixedOrderGraphDataset, FixedOrderGraphDataset, GraphDataset, BatchedGraphDataset
from .add_virtual_node import add_virtual_node, add_target_nodes
from .path import DATA_DIR
def load_from_path(data_path, args):
with open(data_path, 'rb') as f:
dataset =... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
02af9acedfd8eb63a76f63c93c109e539acb1fa4 | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python2/l0064_minimum_path_sum.py | e5eed8adafa9b21abd66ed0af9541fba57e42edd | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if not grid:
return 0
m = len(grid)
n = len(grid[0])
dp = [[0 for _ in range(n)] for _ in range(m)]
# Initiali... | [
"zhoulu312@gmail.com"
] | zhoulu312@gmail.com |
ed777a2b20b0c94e0469882347bedeaacedfd55e | 876a1b7b7c898c826b94ff34f3d9a1d22ee5459b | /QUANTAXIS/QAUtil/QAWebutil.py | 8a2a75459233fd85e3744b092b8ba3babacb56ca | [
"MIT"
] | permissive | pm58/QUANTAXIS | 6db63c461d18f13f7340f7d46e42cde3bc3f40cb | 03c526f640f48f4a153e9c4e0e27f74ccd18a345 | refs/heads/master | 2020-04-27T08:17:42.227150 | 2019-03-09T05:56:05 | 2019-03-09T05:56:05 | 174,165,118 | 5 | 0 | MIT | 2019-03-09T05:56:06 | 2019-03-06T14:55:39 | Python | UTF-8 | Python | false | false | 1,967 | py | # coding:utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2018 yutiansut/QUANTAXIS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
a41ee74e0d74a2f619205675cb265d0c888b3d01 | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/235 - Lowest Common Ancestor of a Binary Search Tree/235_lowest-common-ancestor-of-a-binary-search-tree.py | 863b29d2d3d70572b919bc045ab5e6b412efb394 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,554 | py | from leezy import Solution, solution
from leezy.assists import TreeContext
class Q235(Solution):
@solution
def lowestCommonAncestor(self, root, p, q):
# 68ms
if p < root.val > q:
return self.lowestCommonAncestor(root.left, p, q)
if p > root.val < q:
return self.... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
8e990b308f624c1525603f9ab92945fda7fb8ce2 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /test/functional/wallet_implicitsegwit.py | 553ce7367502b4851bea035523dbb7026ed2072f | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet implicit segwit feature."""
import test_framework.address as address
from test_framework.te... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
bbc89e8e7645a694b405dccb4acd25b4f0cc9544 | 84cfe9b0ca7209487231e0725f7ad0d233f09544 | /smv/views.py | e0abea56ca1a13c1798a6cffabfed45f0991342d | [] | no_license | archit-dwevedi/M4Plan | 3eefc12ea447d624bae6f758c3648d7caf825c1a | d162592748ea37bc070b6217365e8601a6ccdd9a | refs/heads/master | 2021-10-26T23:22:04.456014 | 2019-04-14T20:02:17 | 2019-04-14T20:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.contrib import messages
from absenteeism.models import *
from skill_matrix.models import *
from leave_calendar.models import *
from .forms import *
from .models import *
import datetime
def smv(request):
if(req... | [
"dwevediar@gmail.com"
] | dwevediar@gmail.com |
45b49213838540d4cfa9b40c36aa8caf8d58558d | 38445323b49947266d72645ec973b02e96879eed | /harshad number.py | 8a99c9850563a0ad3ee51f2ed7074159f804f964 | [] | no_license | pooja-pichad/loop | 2d9989b472a2fbacf0a85da06d869016b2d74083 | 47dafba1253da98f98c8fa389e13283ce1e14dee | refs/heads/main | 2023-04-22T02:58:49.274211 | 2021-05-22T07:13:39 | 2021-05-22T07:13:39 | 369,741,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # harshad number :
# it is take any number and add this two digit number and check the
# addition value is divisible bye this two digit number then it is divisible then its harshad
# number then it not divisiblr then it not harshad number
# forEx; 43
# 4+3=7
# 7/43
# num=int(input("enter a num... | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
0d3b899d072571d9b6f47263ee86838fd0b208a6 | 6ecc1d05bbd9ca2c1d21322faef076c1f28454db | /chrome/browser/ui/webui/chromeos/login/DEPS | 52acfb6a38a1c062632e3dbccf09ecbcc162ff4b | [
"BSD-3-Clause"
] | permissive | pandareen/chromium | 0e3a9fb92bb9ad027d5b3482a6b03d0bb51c16a1 | 3ea799335afb5178c519f9e12db8b31390375736 | refs/heads/master | 2023-03-14T05:47:29.433132 | 2018-06-27T07:21:08 | 2018-06-27T07:21:08 | 138,843,522 | 0 | 0 | null | 2018-06-27T07:09:52 | 2018-06-27T07:09:52 | null | UTF-8 | Python | false | false | 863 | specific_include_rules = {
# TODO(mash): Fix. https://crbug.com/770866
"core_oobe_handler\.cc": [
"+ash/shell.h",
],
"oobe_display_chooser\.cc": [
"+ash/display/window_tree_host_manager.h",
"+ash/shell.h",
],
# TODO(mash): Fix. https://crbug.com/678990
"signin_screen_handler\.cc": [
"+ash/... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
1984950eeeabd376b7d534bbc788f09949c9ea71 | f3416956f9bfc7af870867e2fe8644f08d513b23 | /combine/contest_20150310a/data_prep/prepare_pgmodel.py | 18a14ff2cbcfdb41cfe5e56133323bb4b304d6ed | [] | no_license | dsjoerg/blundercheck | a71012c0d3ded929599d191d4f73dcb14f94030a | 04fb39ba0dd1591b387f573f767973518b688822 | refs/heads/master | 2021-01-18T18:35:21.992359 | 2015-03-24T18:11:11 | 2015-03-24T18:11:11 | 27,928,453 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,108 | py | #!/usr/bin/env python
from pandas import *
from numpy import *
from djeval import *
import csv, code
import cPickle as pickle
from sklearn.externals import joblib
GAMELIMIT=60000
NUM_GAMES=100000
def shell():
vars = globals()
vars.update(locals())
shell = code.InteractiveConsole(vars)
shell.intera... | [
"dsjoerg@gmail.com"
] | dsjoerg@gmail.com |
307b39b476091ab984dde86e503be570839f4667 | 77a7508c3a647711191b924959db80fb6d2bd146 | /src/gamesbyexample/countingquiz.py | 8b3131533dd87c5a56493d1814d27b3cca90f27e | [
"MIT"
] | permissive | surlydev/PythonStdioGames | ff7edb4c8c57a5eb6e2036e2b6ebc7e23ec994e0 | d54c2509c12a5b1858eda275fd07d0edd456f23f | refs/heads/master | 2021-05-22T21:01:15.529159 | 2020-03-26T07:34:10 | 2020-03-26T07:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | """Counting Quiz, by Al Sweigart al@inventwithpython.com
Use multiplication and subtraction to count the number of stars shown
as fast as possible.
Tags: short, math"""
import math, random, time
def main():
print('''Counting Quiz, by Al Sweigart al@inventwithpython.com
Use multiplication and subtraction to... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
8fd5e717b4d06d2f26535413e07fae832635769d | 72e463c26daf79b7d380db59a58849e3cd095a7e | /week7/day1_api.py | f7bcb6d95489339333501141914115cb6d9975ba | [] | no_license | tdhuynh/tiy_class_notes | dcc5454af63ca888cfdb99e85f4370cabce88f88 | a254d77f52cc438476d80ff58bfa9759de7826fa | refs/heads/master | 2020-04-15T12:19:30.045552 | 2016-11-09T14:30:06 | 2016-11-09T14:30:06 | 68,213,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import requests
# result = requests.get("http://swapi.co/api/people/")
# # print(result.text)
# json_result = result.json()
# # print(json_result)
# # print(json_result["name"])
# for person in json_result["results"]:
# print(person["name"])
# result = requests.get(json_result["next"])
# json_result = result.... | [
"tommyhuynh93@gmail.com"
] | tommyhuynh93@gmail.com |
40be0ddf55f39cfcc4482a4bd777e333af9190e2 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/distiller/CWD/pytorch/mmrazor/tests/test_models/test_losses/test_distillation_losses.py | 77233b81fce0cffa1c0bce23a3ba60bdeed31133 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 8,154 | py | # Copyright (c) OpenMMLab. All rights reserved.
from unittest import TestCase
import torch
from mmengine.structures import BaseDataElement
from mmrazor import digit_version
from mmrazor.models import (ABLoss, ActivationLoss, ATLoss, CRDLoss, DKDLoss,
FBKDLoss, FTLoss, InformationEntropyLos... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
8a8b8ba79006a28316ef9aa505f79d5b02b4b33a | 2481cde6506743565dff2b405a2396daf208ab3e | /src/ranking/management/modules/algorithm_yandex.py | 704ac764e959da19a6154d23d666eb6a1279c8cb | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
import re
from ranking.management.modules import yandex
class Statistic(yandex.Statistic):
def get_standings(self, *args, **kwargs):
standings = super().get_standings(*args, **kwargs)
if re.search(r'\bfinals?\b', self.name, re.I):
if 'medals' not in standing... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
1bf2158bc437ca181fbc66a1c3e55214a6f792ff | 7ed9b1d87012cd11ecc1625cadbea861223e82c5 | /plugins/devices/FakeCamera.py | cfad8329be69fc9640b4f45f25b6f0e84cc7df71 | [] | no_license | dsblank/pyrobot | 577bdcb1cd68777b76aaada11ff3d3c3c5231c38 | d9c19947767a97980ec31d2096ec157bafa55f0d | refs/heads/master | 2021-01-21T21:19:48.788998 | 2019-04-01T03:55:06 | 2019-04-01T03:55:06 | 94,819,207 | 2 | 2 | null | 2019-03-30T17:03:32 | 2017-06-19T20:43:18 | Python | UTF-8 | Python | false | false | 174 | py | from pyrobot.camera.fake import FakeCamera
from pyrobot.vision.cvision import VisionSystem
def INIT(robot):
return {"camera": FakeCamera(visionSystem = VisionSystem())}
| [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
aee96f6de4e6fd2ecd47ec453c188c2895fc41c9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/173/usersdata/268/81652/submittedfiles/moedas.py | b3b9d67c5c88d783592b6b36e092be5012cfea8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
c=int(input('Digite o valor da cédula: '))
w=0
x9=0
while(w<c):
duvida= a*w
comprovacao= (n-a*w)
if (comprovacao%b)==0:
print(duvida)
print(b*(comprovacao/b)
if ((comprovacao%b)!=0) :
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ff00a04615743bcd931d99ee7f9a21cade5d3410 | 3ea3f46bd4d7231c5eb5c1e1c02625f5290cac76 | /heart/migrations/0003_auto_20170317_1846.py | 0573637431da4546fd61ccdbdfb05f3edf19ea1b | [] | no_license | moonclearner/simpleDjangoProject | 0340b0a744651bcc9dbd7a52b12c4827d40a7a5f | 51fc70d4c499aa64e82a6f02c913f44c45cad323 | refs/heads/master | 2021-01-23T01:41:25.481027 | 2017-04-11T14:29:09 | 2017-04-11T14:29:09 | 85,927,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-17 10:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('heart', '0002_auto_20170317_1841'),
]
operations = [
migrations.AlterField(... | [
"718857460@qq.com"
] | 718857460@qq.com |
b5097dc639ce1b85de30e5898a505721e3bb28f1 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Deal Capture Examples/FPythonCode/MiniFutureInsDef.py | f25b228e0539ca28ceaaee4e44dc3bd4a628ca06 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,795 | py |
from __future__ import print_function
import acm, ael
def SetUpMiniFuture(definitionSetUp):
from DealCaptureSetup import AddInfoSetUp, CustomMethodSetUp
definitionSetUp.AddSetupItems(
AddInfoSetUp( recordType='Instrument',
fieldName='MiniFuture',
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
b506ffdba484cd5f343426bd1f96c751004ba9fa | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/922_Sort_Array_By_Parity_II.py | 09d03afec572e8518220ff839a03cf91f98b8253 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
ret = [0] * len(A)
pos_e = 0
pos_o = 1
for i in A:
if i % 2 == 0:
ret[pos_e] = i
pos_e += 2
else:
ret[pos_o] = i
... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
8c4e0732907c0a50c71b4fd46d7db075c8ad46a5 | 760fbdca58de7e2fb146ec60905ded7497b1812b | /ibm_whcs_sdk/insights_for_medical_literature/tests/integration/test_search_typeahead.py | ee752832dabdf1753e9150dd069ef924defa1b65 | [
"Apache-2.0"
] | permissive | dmansjur/whcs-python-sdk | c5d28742cefc65e19a7eb5de0027fe9f59b1e689 | 110a847c91d5779df91c6562394bde557ee132e5 | refs/heads/master | 2021-05-26T21:49:44.515561 | 2020-04-07T17:17:36 | 2020-04-07T17:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # coding: utf-8
# Copyright 2018 IBM 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 applicabl... | [
"dcweber@us.ibm.com"
] | dcweber@us.ibm.com |
6dbabae65ed075a12913a12e8af2019751371a24 | fdd2ed32e45ca3dcc978cf7e5af76d2afd8cb9f9 | /87.py | ecdbdd1ab3aee85a6e5da158c4511eb5ef0c7440 | [] | no_license | Narendon123/python | e5295e5b71867fd6a90d080c01e2db6930659f95 | cf0b3dd4ff4eb4d6d44f061b45d00baa25de5a38 | refs/heads/master | 2020-05-31T06:06:19.230781 | 2019-07-11T12:51:25 | 2019-07-11T12:51:25 | 190,134,515 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | w=input()
w=w.split()
a=int(w[0])
b=int(w[1])
i=1
while(i<=a and i<=b):
if(a%i==0 and b%i==0):
gcd=i
i=i+1
print(gcd)
| [
"noreply@github.com"
] | Narendon123.noreply@github.com |
8a33374b9c01ded55865a5c9464ca843e32074d6 | 37220d7b60d682eb1abf40326d061485581aab36 | /ajax/urls.py | b06af246996089bc8452ee5a25eabcdc705623a1 | [
"BSD-3-Clause"
] | permissive | lautarianoo/LautAvito | 547fba9a0bb3a65aac6132e00382a8876bca4a28 | 106dcb6f04230af2540bd3883c85713828cd051c | refs/heads/master | 2023-06-24T11:08:17.889875 | 2021-07-26T17:30:08 | 2021-07-26T17:30:08 | 377,897,865 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.urls import path
from . import views
urlpatterns = [
path('get_districts', views.get_districts, name='get_districts')
]
| [
"neonchick1"
] | neonchick1 |
49c119a4c7491a7b5b8bcf0c18b0dbbd7e0c9b34 | 19ac8aa8ee916cef99ddc85b6565c4d6fbe40749 | /FunctionsAndFunctionalProgramming/functionalFizzing.py | 953c863c737f9d99921591c2b75d1cc537db621e | [] | no_license | Darrenrodricks/IntermediatePythonNanodegree | 53570bb1b97d9d10d6e6bd19d3a1f8f654a1cfe9 | 5e597fbe147c23b694fc9b354797e443f0a87a67 | refs/heads/main | 2023-06-25T18:54:38.962503 | 2021-07-28T17:15:44 | 2021-07-28T17:15:44 | 389,006,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import helper
"""Generate an infinite stream of successively larger random lists."""
def generate_cases():
a = 0
while True:
yield helper.random_list(a)
a += 1
if __name__ == '__main__':
for case in generate_cases():
if len(case) > 10:
break
print(case) | [
"noreply@github.com"
] | Darrenrodricks.noreply@github.com |
d5f638b16f492c7594a3fcea541c45e8aae9fab2 | 2435099201902a12689621baba62f7799a260ae3 | /backend/red_frost_25038/urls.py | 990009da86771f717c4f523d324c2d500dcb88a5 | [] | no_license | crowdbotics-apps/red-frost-25038 | eab0bada99927f8f7d76f4866bbcf042be762a0d | cfb48c84f707a558d0cf6405f5057371bdcb2778 | refs/heads/master | 2023-03-30T10:07:45.116090 | 2021-03-15T15:46:25 | 2021-03-15T15:46:25 | 348,029,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | """red_frost_25038 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')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
195624fb20c54ced15a65be4c1af7cb329cc3b1c | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/contrib/staticfiles/testing.py | 754bd296574e9e20066c857e41043e1bb11bfcc3 | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.test import LiveServerTestCase
class StaticLiveServerTestCase(LiveServerTestCase):
"""
Extend django.test.LiveServerTestCase to transparently overlay at test
execution-time the assets provided by the staticfiles app2 finders. T... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
e02f4a0c5b78cca43171902e5b8212d0c9bf443a | 2fe18f4babd857381c2251f1c2437ccdae234dd8 | /bookmarks/bookmarks/settings.py | 273af7e947825b97a57cf7f7558397f12874a3f2 | [] | no_license | Akhtyrtsev/bookmarks | 62f23d87c9442aaa2f56c73dd52ddbf8e456f7e1 | c8c52f1a9d4674a7187ad2408af7c090424a9738 | refs/heads/master | 2020-07-03T23:17:44.547699 | 2019-08-15T12:27:04 | 2019-08-15T12:27:04 | 202,083,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
440d156989c7d14212ee7acec2a615fa1d0d34cc | f75f9c0e7192170a5846c0b726b10e645d5812b7 | /tests/test_models.py | 845a6eaf73b1e3765e21211184bc835c50c73de7 | [
"MIT"
] | permissive | mzbotr/betfair.py | 6feff7250fec38c31ef9c89fc15a057c935d7274 | dca804a4eaf999af54c53589e9559409fae26d6f | refs/heads/master | 2021-01-21T06:02:35.902807 | 2015-06-15T04:05:51 | 2015-06-15T04:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding: utf-8 -*-
import pytest
from enum import Enum
from schematics.types import StringType
from betfair.meta.types import EnumType
from betfair.meta.types import ModelType
from betfair.meta.models import BetfairModel
def test_field_inflection():
class FakeModel(BetfairModel):
underscore_separa... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
61511f49964ca71e6a0f6d8c8c5023828b810084 | 55909fd5282ea210f2221fc467f71f9ed41b0bef | /Aula 13/ex056.py | 5a65082bf9d2352ec7ab655f7557494215f5ccf6 | [
"MIT"
] | permissive | alaanlimaa/Python_CVM1-2-3 | 163ecd8c9145f2d332e6574d8923373b87a2e1f5 | 6d9a9bd693580fd1679a1d0b23afd26841b962a6 | refs/heads/main | 2023-06-18T16:07:59.930804 | 2021-07-20T16:22:01 | 2021-07-20T16:22:01 | 387,841,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | midade = Hmaior = nomevelho = contM20 = 0
for p in range(1, 5):
print('-=-' * 10)
print(f'{p}º pessoa ')
nome = str(input('Nome: ')).strip()
idade = int(input('Idade: '))
sexo = str(input('Sexo [F/M]: ')).strip()[0]
midade += idade
if p == 1 and sexo in 'Mm':
Hmaior = idade
n... | [
"alanlimabusiness@outlook.com"
] | alanlimabusiness@outlook.com |
169d1b34052601f7372457060040c76fbb71fe6b | 498d65615aeba1f7399344a32a23514e057fb30e | /decode_verify_jwt.py | 224caf0f4e6b9ae7531dc23017880f0ac6b66eee | [] | no_license | gautamamber/Blog-Serverless-chalice | 54fd128f76a3e918a170225bb49ded0874089a61 | e1735c5bb617bdb9720b5ecf847ea32833d7e5bc | refs/heads/master | 2020-08-04T15:17:44.405145 | 2019-10-02T14:33:32 | 2019-10-02T14:33:32 | 212,181,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | from urllib.request import urlopen
import json
import os
import time
from constant import Constants
from jose import jwk, jwt
from jose.utils import base64url_decode
region = 'us-west-2'
userpool_id = Constants.COGNITO_POOL_ID
app_client_id = Constants.COGNITO_CLIENT
keys_url = 'https://cognito-idp.{}.amazonaws.com/{}... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
f135349869cce6877593dc177603adef88a8dd07 | 8eb2e7d0b82e26b8999c1e2f14b4fe0f7dfeab65 | /scripts/run_slim_bpr_cython_baesyan.py | 8262e9aefd632f8690b346aca92562dd0f270d73 | [
"Apache-2.0"
] | permissive | edervishaj/spotify-recsys-challenge | c8d66cec51495bef85809dbbff183705e53a7bd4 | 4077201ac7e4ed9da433bd10a92c183614182437 | refs/heads/master | 2021-06-28T14:59:02.619439 | 2020-10-03T09:53:50 | 2020-10-03T09:53:50 | 150,008,507 | 0 | 0 | Apache-2.0 | 2020-10-03T09:53:51 | 2018-09-23T17:31:20 | Jupyter Notebook | UTF-8 | Python | false | false | 7,642 | py | from personal.MaurizioFramework.ParameterTuning.BayesianSearch import BayesianSearch
from personal.MaurizioFramework.ParameterTuning.AbstractClassSearch import DictionaryKeys
from utils.definitions import ROOT_DIR
import pickle
from personal.MaurizioFramework.SLIM_BPR.Cython.SLIM_BPR_Cython import SLIM_BPR_Cython
from ... | [
"scarlattitommaso@gmail.com"
] | scarlattitommaso@gmail.com |
26d7c06f88ff8b77fb6eb704335b28197ac7b3ac | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/vrep_ros_ws/build/vrep_skeleton_msg_and_srv/catkin_generated/generate_cached_setup.py | 063f8efb2e5b20ed1335dd677a45fae2675a3513 | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
9121aa7623fa31fd8cad9ac6cd3485cb1656a44d | a36501f44a09ca03dd1167e1d7965f782e159097 | /app/modules/auth/params.py | c7dd1d359b51eb056962e44c9b871c1d299d8c4b | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 2,162 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
a42609d3d57b7e0f3298e6dee88c7531e8b4df7b | 32c915adc51bdb5d2deab2a592d9f3ca7b7dc375 | /Chapter_11_programming_tasks/task_2.py | 57291c7a43269738ae347bef625ced59459b1aa2 | [] | no_license | nervig/Starting_Out_With_Python | 603c2b8c9686edcf92c1a90596d552b873fe6229 | d617ee479c7c77038331b5f262e00f59e8e90070 | refs/heads/master | 2023-02-25T07:14:12.685417 | 2021-02-02T18:45:00 | 2021-02-02T18:45:00 | 335,391,362 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import employee
def main():
name_of_employee = input('Enter a name of employee: ')
number_of_employee = input('Enter a number of employee: ')
annual_salary = input('Enter an annual salary: ')
annual_bonus = input('Enter an annual bonus: ')
data_of_shift_supervisor = employee.ShiftSupervisor(name_... | [
"solide@yandex.ru"
] | solide@yandex.ru |
23e77f8d02e5d307347f08baca5d033626e01412 | 51b7b81cce1e8943926c531ad8763af8fd4074dc | /1260.py | 8280b9c478f211dddcdc27f39f47b057c9ca1dae | [] | no_license | goodsosbva/BOJ_Graph | f65598591b07ea2f637cba2644bdc81386afb36e | 34fe8bfec0543d9884869fe5ebbb536c6fcc3fbf | refs/heads/main | 2023-03-22T08:14:53.735351 | 2021-03-07T09:22:39 | 2021-03-07T09:22:39 | 338,587,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | N, M, V = map(int, input().split())
matrix = [[0] * (N + 1) for i in range(N + 1)]
for i in range(M):
a, b = map(int, input().split())
matrix[a][b] = matrix[b][a] = 1
visit_list = [0] * (N + 1)
def dfs(V):
visit_list[V] = 1 # 방문한 점 1로 표시
print(V, end=' ')
for i in range(1, N + 1):
... | [
"noreply@github.com"
] | goodsosbva.noreply@github.com |
ed1a80133b79485d1c7d0125da7309754e321eea | d922b02070c11c19ba6104daa3a1544e27a06e40 | /DSA_Project/venv/Scripts/easy_install-3.8-script.py | d71594c04a3b333adb75b4777054c951680c802e | [] | no_license | viharivnv/DSA | 2ca393a8e304ee7b4d540ff435e832d94ee4b2a7 | 777c7281999ad99a0359c44291dddaa868a2525c | refs/heads/master | 2022-10-15T15:26:59.045698 | 2020-06-17T15:55:33 | 2020-06-17T15:55:33 | 273,020,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\vihar\PycharmProjects\DSA_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"52350934+viharivnv@users.noreply.github.com"
] | 52350934+viharivnv@users.noreply.github.com |
ef40ec48bf2a0cb2ff75da74ffa77734efd92e46 | 7e34f45c4c046f01764583b6317f85200ddf2bcf | /tests/settings.py | 6b203371768fca78fd5a3bcd4c863f83fbb1ae04 | [
"BSD-3-Clause"
] | permissive | MarkusH/django-jellyglass | 3953de9fb840320db23a8b748df089da2aeb1013 | 2b7c8fcaac76f8833f2880b10f687552530a3ccb | refs/heads/master | 2021-01-18T15:09:08.904899 | 2018-12-03T16:41:06 | 2018-12-03T16:41:06 | 49,637,243 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | ALLOWED_HOSTS = []
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ":memory:",
}
}
DEBUG = True
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
c6866ffcb6663df60970fd0041ee61d604f921a5 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Differential_Pressure_Load_Shed_Status.py | 4f44b20dc9c3108fb3505cc8f10804105b148f22 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Load_Shed_Status import Load_Shed_Status
class Differential_Pressure_Load_Shed_Status(Load_Shed_Status):
rdf... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
032be5db944974a1f32618e9395669e88e00c17e | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /old_ws/build/catkin_generated/order_packages.py | e6748be72199deb25e033f5d33a964cf1bf10700 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/bill/ros_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/bill/ros_ws/devel;/opt/ros/kinetic".split(';') if "/home/bill/ros_w... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
d57bafa6b041e14b363221f5424fcc938e2a081a | 4d21da5a3d07f4d05b997e80119cd79692ac0d25 | /Leetcode/201-300/259. 3Sum Smaller.py | fc6828a904244248c20e44b9f93c23460bea2b66 | [] | no_license | ErinC123/Algorithm | 92b2789ec3b36c49f9e65f2e7a702bb4b732e8ba | 4544fee91e811a6625000921c32ad054df550f1e | refs/heads/master | 2021-06-17T14:03:33.955233 | 2017-06-18T21:20:55 | 2017-06-18T21:20:55 | 75,894,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class Solution(object):
def threeSumSmaller(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
nums.sort()
ret = 0
for i in range(len(nums)):
j, k = i+1, len(nums)-1
while j < k:
if ... | [
"zhencao93@gmail.com"
] | zhencao93@gmail.com |
7935285b6302c1b7277f4c9d4939535c9636fe0d | 159da3fc63ccf20b80dc17bb44b53e9a5578bcfd | /arkav_is_api/arkavauth/migrations/0005_refactor_auth.py | f92058d0d724b71e6dab65b111c6f5e8e2a4a7d7 | [
"MIT"
] | permissive | arkavidia5/arkav-is | 4338829e7c0a9446393545316e46395e9df111fd | 6c6e8d091ead5bfff664d86f7903c62209800031 | refs/heads/master | 2021-07-16T03:49:15.900812 | 2019-02-08T18:08:32 | 2019-02-08T18:08:32 | 149,406,261 | 3 | 2 | MIT | 2018-11-09T16:49:17 | 2018-09-19T06:58:16 | Python | UTF-8 | Python | false | false | 2,458 | py | import arkav_is_api.arkavauth.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('arkavauth', '0004_user_email_confirmed'),
]
operations = [
migrations.RenameModel('Ema... | [
"jonathan.christopher@outlook.com"
] | jonathan.christopher@outlook.com |
32deaed41a4e6581445f42876563cf802299ebe7 | da7149f3182d2421e046828d30fc1c91c14d496d | /chapter16/coro_exc_demo.py | c9aa826582f4e4609e85504e132a7eb87f93559b | [] | no_license | tangkaiyang/fluent_python | 6db2825cfadccb70a886cb822026d69be4b03cc9 | 5f07072d8db5ddf43bfe913b3262b325a8f1ad35 | refs/heads/master | 2020-05-02T20:21:00.404872 | 2019-04-18T02:35:55 | 2019-04-18T02:35:55 | 178,188,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019/4/12 16:18
# @Author : tangky
# @Site :
# @File : coro_exc_demo.py
# @Software : PyCharm
# 示例16-8 coro_exc_demo.py:学习在协程中处理异常的测试代码
class DemoException(Exception):
"""为这次演示定义的异常类型"""
def demo_exc_handling():
print('-> coroutine star... | [
"945541696@qq.com"
] | 945541696@qq.com |
05f1381ac472766b4cd06fbd8153c99cc502c0e1 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/PO_V6/TestCases/test_login_pytest.py | 174dcfab88ddcee38ccb2eb6b5ea51c6f4e0d99d | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 2,400 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: test_login_pytest
# Author: 简
# Time: 2019/6/20
from Demo.PO_V6.PageObjects.login_page import LoginPage
from Demo.PO_V6.PageObjects.index_page import IndexPage
from Demo.PO_V6.TestDatas import login_datas as ld
from Demo.PO_V6.TestDatas import Comm_Datas as cd
import... | [
"394845369@qq.com"
] | 394845369@qq.com |
cdd5a31a1454daea675c492521e6a22eed8d06bc | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /unistream_examples/get_agent_point_info.py | 0278d0f98ae5b4b9aca91d42c4b6f9d5fe4f01f8 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
"""
Получение информации о точке предоставления услуги.
GET https://test.api.unistream.com/v1/agents/{agentId}/poses/{posId}
"""
if __name__ == '__main__':
from utils import get_today_RFC1123_date, get_authorization_header
from config ... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
fcdcbeba752542d4e128ddebf54c68d5df123be8 | 385c01f7337cf5031093147f6731251bfbf17430 | /lms/level/containers/get_by_id.py | d7e05c88e2f38349997208a7d052eb38bf54862a | [] | no_license | lucassimon/lmswebaula | 23a73d6d2d43c78a2f9e3b552113cf50a11a3587 | 671276426685968458f240faa93b313427fa32d9 | refs/heads/master | 2021-01-19T13:26:12.352308 | 2017-08-16T21:07:43 | 2017-08-16T21:07:43 | 88,088,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import six
class GetByIdRQ(object):
_level_id = None
_lms_level_id = None
def __init__(self, lms_level_id=None, level_id=None):
if lms_level_id:
if not isinstance(lms_level_id, six.integer_types):
rais... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
f68e80676e72be2e4597cabb98f6e8312c69fc60 | d9cd697f76565e8230a98909204a5c516437f977 | /tutorial/tutorial/settings.py | 7b7807db8743db25310455fe110dcac0eed68dba | [] | no_license | huazhicai/webspider | be20d0d3a248ef8cbfaab8e3d1fd0e8ac7551352 | a1defa3778956accbb7617c9a3798d02e0b175f6 | refs/heads/master | 2020-03-22T09:00:23.518744 | 2019-07-11T14:53:37 | 2019-07-11T14:53:37 | 139,807,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"936844218@qq.com"
] | 936844218@qq.com |
01d3691dce55255c364bb881f05bb97a3c770ca9 | 5982cd8db693927e83cd99f8ea1acf4fc90b8b9b | /Configurations/ControlRegions/WgS/torqueBatch/configuration1.py | 7d9ce4b429ce76b6bac43226395ae897e4ab9636 | [] | no_license | cedricpri/PlotsConfigurations | 61fc78ce9f081fd910a25f8101ea8150a7312f25 | 5cb0a87a17f89ea89003508a87487f91736e06f4 | refs/heads/master | 2021-01-17T09:46:55.026779 | 2016-09-01T09:30:09 | 2016-09-01T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # example of configuration file
tag = 'WgS'
# used by mkShape to define output directory for root files
outputDir = 'rootFile1'
# file with list of variables
variablesFile = '../variables.py'
# file with list of cuts
cutsFile = '../cuts.py'
# file with list of samples
samplesFile = 'samples1.py'
# file with l... | [
"d4space@gmail.com"
] | d4space@gmail.com |
ae734d529bcbe273e29551f3ccd8c250513c04ad | f0aba1aa9949cc6a8d3678c0b3ecb5503b470c17 | /dtc/__init__.py | d9f20e7ca90c628c2cccd70a6d6bceb53e2bd4f4 | [] | no_license | hugosenari/dtc | 788eafc1a92701332ae54e2f2d74491566d635dd | 9bb2e6f4f9180b7291a5daf6a35903e5c59e3fc4 | refs/heads/master | 2020-12-24T17:44:45.474422 | 2012-08-03T20:02:28 | 2012-08-03T20:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | '''
Created on Jun 30, 2012
@author: hugosenari
'''
import plugnplay
import logging
from os import path
from dtc.core import interfaces
from dtc.core.interfaces.module import _CoreModule
from dtc.core.interfaces.mainloop import MainLoop
from dtc import modules
class Dtc(object):
def __init__(self, dirs = []):
... | [
"hugosenari@gmail.com"
] | hugosenari@gmail.com |
6da75afc662601dd4bc0b2aaf0413dede6a4ac94 | 6df18031547b1fde808944b4c8f83d2766c95251 | /UoM_databases_with_python/assignment_2/tracks.py | 094f7bf6650220142fd1d777f5317ba3710277e3 | [] | no_license | skreynolds/UoM_data_science | 6edce9b3d3bf03b6dab6471346e40965464d6adb | 9636c0a784079445f585b830a1d093acea608d6a | refs/heads/master | 2020-05-20T23:06:36.560299 | 2019-06-01T02:30:09 | 2019-06-01T02:30:09 | 185,794,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import xml.etree.ElementTree as ET
import sqlite3
conn = sqlite3.connect('../databases/sqldb_5.sqlite')
cur = conn.cursor()
# Make some fresh tables using executescript()
cur.executescript('''
DROP TABLE IF EXISTS Artist;
DROP TABLE IF EXISTS Genre;
DROP TABLE IF EXISTS Album;
DROP TABLE IF EXISTS Track;
CREATE TABL... | [
"shane.k.reynolds@gmail.com"
] | shane.k.reynolds@gmail.com |
3e108d215330ee3c14ab7f7957e3cbc55dfcb5f9 | aecad2b0e89d72aca6c80bf63c424ee7904257ce | /pending_deletes/named_entity_recognition/NER_co_occurrence.py | deeeaa377fae611e679786374f32a94ecd4dcd2c | [] | no_license | humlab/text_analytic_tools | fdf4ba814263672b05ec188aac9a059b55d085b6 | 32fc444ed11649a948a7bf59653ec792396f06e3 | refs/heads/master | 2022-03-02T06:56:29.223039 | 2019-10-28T13:06:49 | 2019-10-28T13:06:49 | 74,679,680 | 2 | 1 | null | 2019-10-26T21:33:23 | 2016-11-24T14:19:46 | Python | UTF-8 | Python | false | false | 2,705 | py |
import pandas as pd
# %%
writer = pd.ExcelWriter('C:\\TEMP\\papacy.xlsx')
# %%
#pope = 'benedict-xvi'
#pope = 'francesco'
pope = 'john-paul-ii'
#df = pd.read_excel('./Data/' + pope + '.xlsx', 'Data')
df = pd.read_excel('C:\\Users\\roma0050\\Documents\\Projects\\papacy_scraper\\data\\' + pope + '.xlsx', 'Data', dtype=... | [
"roger.mahler@hotmail.com"
] | roger.mahler@hotmail.com |
f1b9d705860e3e5f69e290b188025d10c52789f1 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/autograph/core/unsupported_features_checker.py | 9ecab32e6c5f01db35c77233cc55c757a9f80212 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d0644b74e1e6d4d41084b1c1d32d62fc2a1adb15cd7c6141bd2a62448c182854
size 1815
| [
"github@cuba12345"
] | github@cuba12345 |
f954afca286ead0f30eadda260fb7ed77017edd1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FJZJJMM/YW_FJZJJMM_SZSJ_258.py | e1df1921dc57e77398bc293709c609467ced5724 | [] | 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,338 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
7933e38da4d9057e66aacf8c9acc9ba0b3e8b4e3 | af61c369e3550643d47fba2445d9f279e412e15c | /basicSprite.py | 2f0bfb2df06b261977e9f782873c230385348b8d | [] | no_license | Rabidza/pygame_learningpython | 45e900b5a8458a14e7df317de16a9e7cd18737fa | ef58d9ca977e2ea1406200ce04c3a32a440be66a | refs/heads/master | 2020-06-03T15:13:38.419015 | 2015-02-18T16:16:30 | 2015-02-18T16:16:30 | 30,924,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import pygame
from helpers import *
class Sprite(pygame.sprite.Sprite):
def __init__(self, centerPoint, image):
pygame.sprite.Sprite.__init__(self)
# Set the image and the rect
self.image = image
self.rect = image.get_rect()
# Move the rect into the correct positio... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
a0b40c1e4cfc595d8bc11fa49ffb5e77e2d600c3 | 238ebc43c3d54d2842de75fd8ddf0b0b0261906e | /SimulateData.py | eb704550b17512faa02f5b718ec6ed67b6f373b5 | [] | no_license | johndowen/CrossMgr | 17c114ab80382b24ce0cdd228782bd000f513ea8 | fc9eaf8ae5d4919cef3f1a3680c169be70cf356b | refs/heads/master | 2021-06-28T03:14:41.682880 | 2017-09-17T00:35:26 | 2017-09-17T00:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import random
import bisect
from Names import GetNameTeam
def SimulateData( riders=200 ):
# Generate random rider events.
random.seed( 10101021 )
raceMinutes = 8
mean = 8*60.0 / 8 # Average lap time.
var = mean/20.0 # Variance between riders.
lapsTotal = int(raceMinutes * 60 / mean + 3)
raceTime = mean * laps... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
2ef45d0901e7aa9952c147ec2d1daccaef373028 | e5d130e183b5dea1b7aad23a047c703fa0d2b3bf | /lightbus/transports/pool.py | b680ac6858890624f59a6c14e96bddbe072a9cae | [
"Apache-2.0"
] | permissive | adamcharnock/lightbus | 4a86428b8203bfe98f77a32375ac961ef398ce16 | cf892779a9a9a8f69c789ffa83c24acfb7f9a336 | refs/heads/master | 2023-08-26T04:19:39.395735 | 2023-08-23T11:07:44 | 2023-08-23T11:07:44 | 94,617,214 | 193 | 22 | Apache-2.0 | 2023-08-10T21:21:51 | 2017-06-17T10:39:23 | Python | UTF-8 | Python | false | false | 7,438 | py | import threading
from inspect import iscoroutinefunction, isasyncgenfunction
from typing import NamedTuple, List, TypeVar, Type, Generic, TYPE_CHECKING
from lightbus.exceptions import (
TransportPoolIsClosed,
CannotShrinkEmptyPool,
CannotProxySynchronousMethod,
CannotProxyPrivateMethod,
CannotProxy... | [
"adam@adamcharnock.com"
] | adam@adamcharnock.com |
563dfccd2fd271a2ae0edc1613952e7947965a62 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/global-and-local-inversions/288943653.py | 0f1c892c5fa61990ec2ad92c40c0f4af8ae7abd2 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # title: global-and-local-inversions
# detail: https://leetcode.com/submissions/detail/288943653/
# datetime: Fri Dec 27 19:09:22 2019
# runtime: 388 ms
# memory: 13.4 MB
class Solution:
def isIdealPermutation(self, A: List[int]) -> bool:
N = len(A)
k = -1
i = 0
while i < N:
... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
3cb9259d4f4214fc9346777f14b80e8f08b66957 | e34dfe70b30e584d8b1992377b1b4f8a08235824 | /cloudmesh/common/console.py | 7042af40082ed1d6fcf2d07ae6ca9ec0509d795b | [
"Python-2.0",
"Apache-2.0"
] | permissive | juaco77/cloudmesh-common | 09efd91310f1d6fc5d34f60f4c34e63e8c6fc9ae | 0bb330da363b8edb9e509a8138a3054978a8a390 | refs/heads/master | 2020-06-08T05:04:18.070674 | 2019-05-17T10:33:13 | 2019-05-17T10:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,233 | py | """
Printing messages in a console
"""
from __future__ import print_function
import textwrap
import traceback
import colorama
from colorama import Fore, Back, Style
colorama.init()
def indent(text, indent=2, width=128):
"""
indents the given text by the indent specified and wrapping to the given width
... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
6f9cd1e5b7498d442628bca6592c84f90f1d02c0 | 82f993631da2871933edf83f7648deb6c59fd7e4 | /w1/L1/12.py | 4e40656a6ec9bba93b7855da255ff4c9ddd100ee | [] | no_license | bobur554396/PPII2021Summer | 298f26ea0e74c199af7b57a5d40f65e20049ecdd | 7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2 | refs/heads/master | 2023-06-26T05:42:08.523345 | 2021-07-24T12:40:05 | 2021-07-24T12:40:05 | 380,511,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # line = input()
# print(len(line))
'''
4
4 10 -1 100
'''
n = int(input())
# [<returning iter val> for <iter> in <list> condition ]
numbers = [int(n) for n in input().split()]
print(numbers)
# nums = []
# for n in numbers:
# nums.append(int(n))
# print(nums)
s = 0
for i in numbers:
if i > 0:
s += i
# pr... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
9304946f7f5ed9562d7a3dbb6c52486fd296a7a1 | 9ef502b92bd218e919c65513e835c15c32667e8f | /samsung_load_0113.py | 75e8319216cf77777569806bc31afb952c0b80c3 | [] | no_license | YoungriKIM/samsung_stock | 034bc586440ab04531bb8d0b951747377c340966 | f15b6a3ebc3db76f960fc8f138dba7e43e345ef4 | refs/heads/main | 2023-04-14T03:20:51.169497 | 2021-03-25T08:35:48 | 2021-03-25T08:35:48 | 351,362,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import numpy as np
x_train = np.load('../data/npy/samsung_x_train.npy')
y_train = np.load('../data/npy/samsung_y_train.npy')
x_val = np.load('../data/npy/samsung_x_val.npy')
y_val = np.load('../data/npy/samsung_y_val.npy')
x_test = np.load('../data/npy/samsung_x_test.npy')
y_test = np.load('../data/npy/samsung_y_test.... | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
e6ba2e66f4df8af86c5e31215b5c3d8973ecf055 | 81302ee42c1b3c25ce1566d70a782ab5525c7892 | /nr/nr_band_matching/autocorrelation_full_chain.py | aba89bd8971c7b2b106fb1a5a0ea7d38951568ae | [] | no_license | mdanthony17/neriX | 5dd8ce673cd340888d3d5e4d992f7296702c6407 | 2c4ddbb0b64e7ca54f30333ba4fb8f601bbcc32e | refs/heads/master | 2020-04-04T06:01:25.200835 | 2018-06-05T00:37:08 | 2018-06-05T00:46:11 | 49,095,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/python
import sys, array, os
#sys.path.insert(0, '..')
import ROOT as root
from rootpy.plotting import Hist, Hist2D, Canvas, Legend
import nr_band_config
import numpy as np
import corner
import cPickle as pickle
import time, emcee
if len(sys.argv) != 5:
print 'Use is python perform_full_matching.py <filen... | [
"mda2149@columbia.edu"
] | mda2149@columbia.edu |
27f1d1e42412bfb3574bdec543ba0703469f2fce | 82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8 | /solutions/Missing Number/solution.py | 0bf89957ba6d64c0deea0d059f647ac75434429a | [
"MIT"
] | permissive | nilax97/leetcode-solutions | ca0f9545ce70975617738f053e0935fac00b04d4 | d3c12f2b289662d199510e0431e177bbf3cda121 | refs/heads/master | 2023-05-14T02:21:48.893716 | 2021-06-08T13:16:53 | 2021-06-08T13:16:53 | 374,466,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | class Solution:
def missingNumber(self, nums: List[int]) -> int:
return (len(nums) * (len(nums)+1))//2 - sum(nums)
| [
"agarwal.nilaksh@gmail.com"
] | agarwal.nilaksh@gmail.com |
173de47073bcfee2292415ce0e9b944d48e315cb | d912423117d96cd67d23bab87c0773a07d962cc1 | /backend/socket_chat/consumers/main.py | a923f06cb91d42b37282f3545803320df8b675de | [] | no_license | modekano/ChatApp | b98f9081235c976642d024d56d1531b5120a04cf | 22cca9f3d4c25a93ca255d6616f61773da757d18 | refs/heads/master | 2020-08-19T06:03:45.010063 | 2019-10-17T11:17:07 | 2019-10-17T11:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | from backend.socket_chat.consumers.base import BaseConsumer
from channels.db import database_sync_to_async
from backend.profiles.models import Profile
from backend.socket_chat.consumers.dialog import DialogConsumer
class MainConsumer(DialogConsumer, BaseConsumer):
def __init__(self, *args, **kwargs):
sup... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
4d9b59df5f0fe4ca4796d0121a12dc0208a93d3e | f5b7b87d0de1459c284b6ebf3aa21c6a96e52207 | /broadgauge/views/auth.py | 8d91aca9aa0d2097097fb9062d97b809ab2611b1 | [] | no_license | iambibhas/broadgauge | cfbce9bbebdc5337918df7b378810a53c9a68f8b | 381816cb9c288b071b44f189d662611cdc57e58b | refs/heads/master | 2021-01-18T09:01:32.155941 | 2014-08-15T11:42:58 | 2014-08-15T11:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | import web
import json
from .. import account
from .. import oauth
from .. import forms
from ..sendmail import sendmail
from ..flash import flash
from ..models import User, Organization
from ..template import render_template
urls = (
"/login", "login",
"/logout", "logout",
"/oauth/(github|google|facebook)... | [
"anandology@gmail.com"
] | anandology@gmail.com |
630c9af1fd5f87769d2cd87621e901ba2e383c7c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn13 - objektni minobot/M-17021-1547.py | e7ab6dbf8eecabc84d9990edc02404615aaba381 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | class Minobot:
def __init__(self):
self.x=0
self.y=0
self.direction=90
self.tab=[]
def koordinate(self):
return self.x,self.y
def naprej(self, d):
self.tab.append(['naprej',d])
if self.direction == 0 or self.direction == 360:
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
d4b371038a871ea6c4c51c8868534d2b5ff67817 | c333b3cfb05f4bc08a682ca5f4d70b212e9624ff | /punyty/objects.py | 45d95c22a7c1a12f50b8844fd42352e55fd3d51a | [
"MIT"
] | permissive | jsheedy/punyty | a450f7daaf9e8b2acf5d861ac258e07e762c46c6 | 34d5bffc4cf85985537e199567c5ba2aa9105a05 | refs/heads/master | 2020-05-09T19:58:37.665508 | 2019-12-25T18:22:00 | 2019-12-25T18:22:00 | 181,391,798 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | from math import sqrt
import numpy as np
from .object3d import Object3D
class Tetrahedron(Object3D):
vertices = np.array([
[1, 1, 1],
[-1, -1, 1],
[1, -1, -1],
[-1, 1, -1],
], dtype=np.float64)
edges = (
(0, 1),
(1, 2),
(2, 3),
(1, 3),
... | [
"joseph.sheedy@gmail.com"
] | joseph.sheedy@gmail.com |
8c958e900b806f0503625aae951c03d030a5cea1 | ebd6f68d47e192da7f81c528312358cfe8052c8d | /swig/Examples/test-suite/python/template_typedef_cplx4_runme.py | 25ac851fbff3855719300e610179db627047c152 | [
"Apache-2.0",
"LicenseRef-scancode-swig",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | Python | false | false | 431 | py | import string
from template_typedef_cplx4 import *
#
# this is OK
#
s = Sin()
s.get_base_value()
s.get_value()
s.get_arith_value()
my_func_r(s)
make_Multiplies_double_double_double_double(s, s)
z = CSin()
z.get_base_value()
z.get_value()
z.get_arith_value()
my_func_c(z)
make_Multiplies_complex_complex_complex_compl... | [
"inishchith@gmail.com"
] | inishchith@gmail.com |
27ccdbea81862874e0b78a77232a7d471e5f184a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Av2u6FKvzFvrtGEKS_18.py | 4e2d4cf4fdcb9ad90f1ec69e7cba9c1c762d567b | [] | 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 | 846 | py |
# Do not touch this starter code but implement the reverse function at the
# end of the LinkedList class
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self):
self.head = None
self.tail = None
def insert(self, data):
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
366e5b6c1921361a7577480414955fd30e18ee39 | 0547c3ebab814e3fdf2616ae63f8f6c87a0ff6c5 | /846.hand-of-straights.py | 1efee8792025199a30b3260fd14120bab6d55e5d | [] | no_license | livepo/lc | b8792d2b999780af5d5ef3b6050d71170a272ca6 | 605d19be15ece90aaf09b994098716f3dd84eb6a | refs/heads/master | 2020-05-15T03:57:15.367240 | 2019-07-30T03:11:46 | 2019-07-30T03:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class Solution(object):
def isNStraightHand(self, hand, W):
"""
:type hand: List[int]
:type W: int
:rtype: bool
"""
| [
"qgmfky@gmail.com"
] | qgmfky@gmail.com |
b67b5e6d66ad477d22a129a6bb6faf2a37a69867 | ad846a63f010b808a72568c00de016fbe86d6c35 | /algotradingenv/lib/python3.8/site-packages/IPython/external/decorators/_numpy_testing_noseclasses.py | 9f8f382391de958a20ccb9a35664f5c7c66ba463 | [] | no_license | krishansinghal29/algotrade | 74ee8b1c9113812b1c7c00ded95d966791cf76f5 | 756bc2e3909558e9ae8b2243bb4dabc530f12dde | refs/heads/master | 2023-06-02T01:53:24.924672 | 2021-06-10T09:17:55 | 2021-06-10T09:17:55 | 375,641,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # IPython: modified copy of numpy.testing.noseclasses, so
# IPython.external._decorators works without numpy being installed.
# These classes implement a "known failure" error class.
import os
from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
class KnownFailureTest(Exception):
"""Raise this exce... | [
"krishansinghal29@gmail.com"
] | krishansinghal29@gmail.com |
9a91b60c24903f61054fed747c3be85c66cb2793 | 256f817910dd698970fab89871c6ce66a3c416e7 | /1. solvedProblems/340. Longest Substring with At Most K Distinct Characters/340.py | e1fd7e173bc2c9b114189909699c70c7543f9303 | [] | no_license | tgaochn/leetcode | 5926c71c1555d2659f7db4eff9e8cb9054ea9b60 | 29f1bd681ae823ec6fe755c8f91bfe1ca80b6367 | refs/heads/master | 2023-02-25T16:12:42.724889 | 2021-02-04T21:05:34 | 2021-02-04T21:05:34 | 319,225,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,982 | py | # !/usr/bin/env python
# coding: utf-8
"""
Author:
Tian Gao (tgaochn@gmail.com)
CreationDate:
Sat, 11/28/2020, 20:48
# !! Description:
"""
import sys
from typing import List
sys.path.append('..')
from utils import binaryTree, nTree, singleLinkedList
from utils.utils import (
printMatrix,
printDict,
... | [
"tgaochn@gmail.com"
] | tgaochn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.