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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2337b079f445c7b808ef0ef98557f64a72f60385 | 28b405b8a538187367e019e45dd7fff3c5f4f296 | /src/rocks-pylib/rocks/commands/set/host/interface/ip/__init__.py | 0d32ba3c98962558e03437da5e8d2d4275171a7e | [] | no_license | rocksclusters/core | 95c84cbe4d9f998eea123177e43b25fa0475c823 | 7fb7208aa4a532e64db83e04759d941be9b96d91 | refs/heads/master | 2023-04-08T16:30:45.931720 | 2023-03-23T17:18:54 | 2023-03-23T17:18:54 | 58,084,820 | 21 | 11 | null | 2019-08-22T21:17:23 | 2016-05-04T21:21:17 | Python | UTF-8 | Python | false | false | 6,507 | py | # $Id: __init__.py,v 1.16 2012/12/21 17:52:10 clem Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWinder)
# version 7.0 (Manzanita)
#
# Copyright (c) 2000 - 2017 The Regents of the University of California.
# All rights reserved.
#
# Redistribution... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
1f95ebd23ce80076bb3ee433cf0263f278430888 | 80efa0b81c8b94187e5e31fd8cc1a49dea1bf9f5 | /returns/_generated/pointfree/unify.pyi | 131ea4ee39ca810089a5d4f6f2ef05ba2d429f36 | [
"BSD-2-Clause"
] | permissive | orsinium-forks/returns | 3958dd085207819d2d456c5ad9fe3be5b182fe36 | d3a24e0ccd73b5a9d06a071b5e026dfbe70f7d23 | refs/heads/master | 2022-09-28T20:40:43.368647 | 2020-04-21T21:14:00 | 2020-04-21T21:14:00 | 257,868,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | pyi | from typing import Callable, TypeVar, Union, overload
from returns.io import IOResult
from returns.result import Result
_ValueType = TypeVar('_ValueType')
_ErrorType = TypeVar('_ErrorType')
_NewValueType = TypeVar('_NewValueType')
_NewErrorType = TypeVar('_NewErrorType')
# Bind:
@overload
def _unify(
function:... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
958224618ebebc8a8c7df9328ff5ce2953f3a4b3 | eba3644b3eb66932aec7dbcf69eb034475c582e1 | /waiter/users/apps.py | 0defa08218a486f2852eeb911861f7185ed50740 | [
"MIT"
] | permissive | ivanistheone/waiter | d8528b9b67150b50aa2eccba56d01eb48499389a | b4a36632e8fe16aa406594a5a3a371578e3268e9 | refs/heads/master | 2021-01-23T15:59:20.845681 | 2017-07-06T19:35:23 | 2017-07-06T19:35:23 | 93,280,147 | 1 | 1 | null | 2017-06-29T15:46:17 | 2017-06-03T23:58:37 | Python | UTF-8 | Python | false | false | 272 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'waiter.users'
verbose_name = "Users"
def ready(self):
"""Override this to put in:
Users system checks
Users signal registration
"""
pass
| [
"ivan.savov@gmail.com"
] | ivan.savov@gmail.com |
075f56c48b813ac998f87853b2c6b9fc9efbae2e | d437914461b775a21ced89300d39893d1bc11c53 | /apps/healers/south_migrations/0085_auto__add_wellnesscentertreatmenttype.py | b3ff620169e1da5a39bea03a696491ad764e006f | [] | no_license | RumorIO/healersource | 86975107da02a18eac89bc65c72dd06f71ac2d72 | 681ef09e4044879840f7f0c8bccc836c3cffec3c | refs/heads/master | 2020-12-03T02:18:56.378837 | 2016-02-19T15:32:52 | 2016-02-19T15:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,096 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'WellnessCenterTreatmentType'
db.create_table(u'healers_wellnesscentertreatmenttype', (
... | [
"yg1008@outlook.com"
] | yg1008@outlook.com |
a80bf119152a078988b2e44b99248fb0af1bb798 | 5533b221b59665e7b933f29f5113bb91cb194c96 | /LocalNews/downloadPic.py | 46f28eb4b327bf9122bd63e4383e2ed234c7a390 | [] | no_license | realzhengyiming/LocalNews | 841a868447a95c3eaca32a2ebb1a25ada52018a8 | 77bba475b13c2cede55692242648007d87ae90a0 | refs/heads/master | 2020-05-09T15:55:16.954356 | 2019-10-07T08:00:18 | 2019-10-07T08:00:18 | 181,250,122 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | #下载到的一个路径中去,把图片下载下来,并且把新闻里面的
import os
import time
import requests ##导入requests
# url = '//www.jb51.net/images/logo.gif'
# filename = os.path.basename(url)
# print(filename)
#这儿是python 3 的一个下载没有防止盗链的东西的一个小demo
# for page in range(1, int(max_span) + 1): ##不知道为什么这么用的小哥儿去看看基础教程吧
# page_url = href + '/' + str(page) ##同... | [
"realzhengyiming@outlook.com"
] | realzhengyiming@outlook.com |
0c3b8d127ad4eb36e2bcedc6238a7cf46d1fafad | 3c1c447bb1de89094dcd3cb2e85b227d3d6aa2fb | /lesson28part2/mysite/urls.py | 8d2498788ef0e62229dcc3f1c5c7f36583357e1d | [] | no_license | kirigaikabuto/Python13Lessons | ebd9431314fc4ab8bd470cfe137dfc60000b90a0 | 6ab8390fd1cc0aac87d373cb1a50d2c9b4405391 | refs/heads/main | 2023-06-03T00:29:36.791865 | 2021-06-15T15:17:29 | 2021-06-15T15:17:29 | 314,754,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path("", include("todos.urls")),
]
| [
"tleugazy98@gmail.com"
] | tleugazy98@gmail.com |
f1440456899cfebadd8165b15e032b6053eac003 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/p0062 - Unique Paths.py | 758c67fc4bcd53c2e29803e588d343dd47c8a7a8 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | class Solution:
""" dfs: slow, but with details
def uniquePaths(self, m, n):
self.paths = 0
def dfs(i=0, j=0,path=[]):
#print(i,j)
if i==m-1 and j==n-1:
#paths.append(path)
self.paths += 1
else:
... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
bd1feb3ab758aa609dc4166a4007f56be95736d4 | 0d52e1f243c08937a081613e2f8c340aa8ffe46f | /dit/other/renyi_entropy.py | 8242f3b2819cf2503f752282b0427dfcea8cc675 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mpeaton37/dit | b7a2ff96588e791231f55cb91cc1a2336febcd9d | d2c2bb566257dff86d60184868b05e4d8e3cba90 | refs/heads/master | 2021-09-02T13:03:24.242861 | 2018-01-02T22:02:42 | 2018-01-02T22:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | """
Renyi Entropy
"""
from __future__ import division
import numpy as np
from ..helpers import normalize_rvs
from ..utils import flatten
from ..multivariate import entropy
__all__ = ('renyi_entropy',
)
def renyi_entropy(dist, order, rvs=None, rv_mode=None):
"""
Compute the Renyi entropy of order ... | [
"ryangregoryjames@gmail.com"
] | ryangregoryjames@gmail.com |
1bf57db0a191fd84ff11ddd327d95f06daa47489 | b9360389f3345c550250a1bd5a5fe58bd7410a71 | /wlct/migrations/0010_auto_20190423_1427.py | e4ba429f1fce5752a43018153c99f018769275f9 | [] | no_license | JustinR17/wzclot | d6f4bd8b46240abbeaa51837c1de1f3115554f17 | 4fa29666eb72aafee28bf57898fecc679fb3d4bb | refs/heads/master | 2023-02-07T22:43:13.827383 | 2021-12-30T22:34:39 | 2021-12-30T22:34:39 | 241,187,417 | 0 | 0 | null | 2020-02-17T19:14:01 | 2020-02-17T19:14:00 | null | UTF-8 | Python | false | false | 1,399 | py | # Generated by Django 2.1.4 on 2019-04-23 21:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wlct', '0009_tournament_game_creation_allowed'),
]
operations = [
migrations.CreateModel(
name=... | [
"brendanflynn@outlook.com"
] | brendanflynn@outlook.com |
debca0c7f70235d76cebd29fe326ce850bc62a47 | b03328359460c7859e6c0f690f0f6b2569edbeb1 | /tf_agents/bandits/environments/drifting_linear_environment.py | b1f05dfaa7367002fdb4ad732f8be13cad68db52 | [
"Apache-2.0"
] | permissive | jbedorf/agents | 52ab010cd53f96c50f5076066d9a41309947c183 | e4601621ce0771d0d10d3617c194efdc73fb548a | refs/heads/master | 2022-12-18T00:51:12.102797 | 2020-09-29T23:27:17 | 2020-09-29T23:27:41 | 299,869,513 | 1 | 0 | Apache-2.0 | 2020-09-30T09:23:49 | 2020-09-30T09:23:48 | null | UTF-8 | Python | false | false | 10,370 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
bfe36febdce53a7ba2c4d5dfa2a2dd571fe4e3f7 | c537d58577d5766d9d05752a5e0b8ad409af6be2 | /2019/Day_12/day12p1.py | 336c0769c89a66eae323c17344ed14528f2e3b59 | [] | no_license | Whitie/AdventOfCode | c642fdeb16624144d5b575e8883a11f77e06931f | 525e7aa923fc55f749ce800e18e1f685a8b433ee | refs/heads/master | 2022-12-08T15:10:39.733380 | 2022-12-08T10:06:28 | 2022-12-08T10:06:28 | 226,948,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from itertools import combinations
MOONS = ('Io', 'Europa', 'Ganymede', 'Callisto')
STEPS = 1000
POS_RE = re.compile(r'<x=(-?\d+).+?y=(-?\d+).+?z=(-?\d+)>')
class Position:
def __init__(self, x=0, y=0, z=0):
self.x = x
self.y ... | [
"weimann.th@yahoo.com"
] | weimann.th@yahoo.com |
8d62fce9edf139de8309a349e860d434cfa25538 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nntiici.py | e97b44cca6916a840af0a261eaefe2924aeb2f34 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 64 | py | ii = [('MarrFDI2.py', 1), ('GodwWLN.py', 1), ('MereHHB3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
55fee205a51523c9de8cf6ac37eb4711684c7257 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/zoofIO_flexx/flexx-master/flexx/util/minify.py | 57003eee3deb2041fc77b3a7e115e0b531cd3179 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,433 | py | """
JavaScript minification tools.
"""
def minify(code, remove_whitespace=False):
""" Very basic minification of JavaScript code. Will likely support
more advanced minifcation in the future.
Parameters:
code (str) : the JavaScript code to minify.
remove_whitespace (bool) : if True, rem... | [
"659338505@qq.com"
] | 659338505@qq.com |
c54cafb303601a6f0965f1d6850b9f73b8c106fb | c0631f0c4f02f2ed750ec4c48341f87885fbe4ff | /GRACE_Loading/parse_configfile.py | ff80a09103bb3c79f0239971c6ced5d393938356 | [] | no_license | whigg/GRACE_loading | bdac4ee5a0087d219ef47813f87170d90bde446d | a5ef26c35854d30a3a0e61fd471675ac519d2e3d | refs/heads/master | 2023-03-21T11:00:34.187732 | 2021-03-11T23:00:46 | 2021-03-11T23:00:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,991 | py | # Read the config file
import os
import configparser
import collections
Params = collections.namedtuple("Params", ["input_file", "output_dir", "grace_dir",
"datafile", "scalefile", "grace_dates_file", "gracetype", "max_distance",
"d... | [
"kathrynmaterna@gmail.com"
] | kathrynmaterna@gmail.com |
b1e16e926baa5d753f1ae181f8d730dd8388c1fb | 1d1a21b37e1591c5b825299de338d18917715fec | /Mathematics/Data science/Mathmatics/06/Pgmpy_package.py | fc622493dae1b9221d42e0c658b617193ba9bc27 | [] | no_license | brunoleej/study_git | 46279c3521f090ebf63ee0e1852aa0b6bed11b01 | 0c5c9e490140144caf1149e2e1d9fe5f68cf6294 | refs/heads/main | 2023-08-19T01:07:42.236110 | 2021-08-29T16:20:59 | 2021-08-29T16:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | import pgmpy
import numpy as np
from pgmpy.factors.discrete import JointProbabilityDistribution as JPD
px = JPD(['X'], [2], np.array([12, 8]) / 20)
print(px) | [
"jk04059@naver.com"
] | jk04059@naver.com |
1c55fa0f616bcb4814c49ec336397c511987c1d5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03623/s773120734.py | ba660e328a9a37552eee26aa8bb55766b1773586 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import sys
input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
x,a,b=MI()
if abs(x-a)<abs(x-b):
print("A")
else:
print("B")
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c74a3de331b5669ac200063b094a07350e00c196 | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_EO_20210606125704.py | 8fc43117a1e21b347a17dcc9f95cac652c5546ec | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 22,313 | py | # # lectura de los xlsx del procesamiento de imagenes
# y la informacion obtenida de los registros por pozo
# %%
import numpy as np
import pandas as pd
import os
import os.path
import matplotlib.pyplot as plt # GRAPHS
from mlxtend.plotting import scatterplotmatrix
import glob
import seaborn as sns
import missingno a... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
d77d031d5fbc46cbba04d2a8783edd00a3e969d8 | aacd5b8e2174a09b2ee2b933338a4c52063386c7 | /tests/integration/test_concurrent_ttl_merges/test.py | 1ca303a6dcc1b730c064f521abb7095f4067cb13 | [
"Apache-2.0"
] | permissive | mcheshkov/ClickHouse | 1cdeb2445149c4743ac92284a92fad17a9d760ed | 0a0f79487412a7c9a3c39655c541551d742495bb | refs/heads/master | 2022-12-10T07:04:20.431800 | 2020-09-09T14:08:06 | 2020-09-09T14:08:06 | 294,139,420 | 0 | 0 | Apache-2.0 | 2020-09-09T14:35:59 | 2020-09-09T14:35:59 | null | UTF-8 | Python | false | false | 6,832 | py | import time
import pytest
import helpers.client as client
from helpers.cluster import ClickHouseCluster
from helpers.test_tools import TSV
from helpers.test_tools import assert_eq_with_retry
cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance('node1', main_configs=['configs/fast_background_pool.xml'],... | [
"alesapin@gmail.com"
] | alesapin@gmail.com |
972d7ed7cb10c00c20acd8f983d516517eb23cb2 | fbcf396625e2e07ea0d9cbadf8b65abd055acdc0 | /2019/day_6.py | 47851260620d9e3720704fffa01e7b025d52f1c3 | [] | no_license | XinnuoXu/AdventofCode | 8a1cbcb94f2c540ccf3f42ed343d47317aafaa99 | a5e32d3ff31da9f46e7a947420dffefe05a53d48 | refs/heads/master | 2021-06-21T09:22:33.244345 | 2020-12-27T13:03:09 | 2020-12-27T13:03:09 | 160,044,653 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | #coding=utf8
def read_orbit(filename):
orbits = {}
for line in open(filename):
flist = line.strip().split(')')
left = flist[0]
right = flist[1]
if left not in orbits:
orbits[left] = []
orbits[left].append(right)
return orbits
def part_1(orbits):
core... | [
"xuxinnuo@yahoo.com"
] | xuxinnuo@yahoo.com |
1314e2450897f0b2532bdfa02cbde1322d007826 | 6097c67f364f8fb2cfc6afb693512eba35a9d1a6 | /Project 4 Sudoku/wrapper_driver.py | 25358b6c15f3d15ca0b4d86208dae0627d0681f0 | [] | no_license | asheeshcric/ai-columbiax-edx | e23054588372bfbdabd58edd85a71bb8b09af0b0 | 7cc1b2d8392e604f2b6d321d47d90e71f1c421d9 | refs/heads/master | 2021-09-12T21:47:10.267045 | 2018-04-21T08:37:42 | 2018-04-21T08:37:42 | 129,256,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import os
path_for_script = os.path.abspath('driver_3.py')
file = open('sudokus_start.txt', 'r')
for line in file:
os.system("python3 driver_3.py " + line)
| [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
63a25673eae0879eac0e36be00158c94fe8cf596 | 7bc8807c261adccb2e71c97e01ce48b8c13d529d | /Lecture_Nlp/Day_21_01_CnnFirst.py | 231da9eb5b6b37030cfb4ebe915eee1739d8ff3f | [] | no_license | yunhui21/CB_AI_3_NLP | 4e090f028123621978164ad29d9789767c1ec0b0 | 20485ce5bae472d1b63b58adf69207a2837bb96a | refs/heads/main | 2023-01-30T11:10:41.385293 | 2020-12-17T03:56:53 | 2020-12-17T03:56:53 | 309,216,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | # Day_21_01_CnnFirst.py
import tensorflow.compat.v1 as tf
tf.disable_eager_execution()
import numpy as np
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
print(x_train.shape, x_test.shape) # (60000, 28, 28) (10000, 28, 28)
print(y_train.shape, y_test.shape) # (60000,) (10000,)
pr... | [
"yunhui21@gmail.com"
] | yunhui21@gmail.com |
16d2019c15f3d026f815a93fa3ab6c9b12a2e717 | 97240370ffad2552c350cb7bee0227c0fba30e6d | /usuarios/apps.py | 78c5ce51c265549b5aa0ffd466fad27511644b30 | [
"Apache-2.0"
] | permissive | ypicoleal/Citas | 59d181333acfcd5997bf491d350bb5ba5fd1eb50 | 9535e57616e2af460a3dab1ebc585090d7184bb6 | refs/heads/master | 2021-07-20T18:51:05.482956 | 2017-10-25T04:07:02 | 2017-10-25T04:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class UsuariosConfig(AppConfig):
name = 'usuarios'
icon = '<i class="material-icons">account_circle</i>'
#def ready(self):
# import signals
| [
"mariobarrpach@gmail.com"
] | mariobarrpach@gmail.com |
cd342fb6dad32204f04b1c8f71f65d5faa5eb650 | b56eaf7a603cbb850be11dbbed2c33b954dedbcb | /ctools/pysc2/lib/renderer_ascii.py | 6f1b1bfd9197b62229ad1dee2c5f986d2ebde865 | [
"Apache-2.0"
] | permissive | LFhase/DI-star | 2887d9c5dd8bfaa629e0171504b05ac70fdc356f | 09d507c412235a2f0cf9c0b3485ec9ed15fb6421 | refs/heads/main | 2023-06-20T20:05:01.378611 | 2021-07-09T16:26:18 | 2021-07-09T16:26:18 | 384,499,311 | 1 | 0 | Apache-2.0 | 2021-07-09T16:50:29 | 2021-07-09T16:50:28 | null | UTF-8 | Python | false | false | 3,697 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"opendilab@gmail.com"
] | opendilab@gmail.com |
8a1ea493838ab85196be20e5ab2b0623e14668c8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/jl.py | 5a6914e26a97505113b76bf6e4d555da71d6cfe1 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 684 | py | ii = [('CookGHP3.py', 2), ('ProuWCM.py', 4), ('WilkJMC3.py', 2), ('LeakWTI3.py', 1), ('BailJD2.py', 1), ('FitzRNS3.py', 1), ('ClarGE2.py', 1), ('WilkJMC2.py', 4), ('SeniNSP.py', 1), ('CookGHP2.py', 1), ('CoolWHM.py', 1), ('ClarGE.py', 1), ('LyelCPG.py', 2), ('GilmCRS.py', 1), ('WestJIT2.py', 3), ('DibdTRL2.py', 2), ('F... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ba2efb53277970af5ed2563b74c364e719c448cf | 424869278db62cbb9e1505edb44b57ce845608db | /example/ui/dw_containers_tabs_qtpy_ui.py | 7f10e4e85d3be130a01202ec11a83058af7152e3 | [
"MIT",
"CC-BY-3.0",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | coolsnake/QDarkStyleSheet | e91ebc9684e212f56b3aa9ef80c4b773010f9af3 | b2fc2e0bfbc3b7af42f1bd80162ddc326e9ce58b | refs/heads/master | 2020-04-09T16:45:07.413740 | 2018-11-14T13:56:21 | 2018-11-14T13:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,712 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dw_containers_tabs.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from qtpy import QtCore, QtGui, QtWidgets
class Ui_DockWidget(object):
def setupUi(self, DockWidget):
... | [
"daniel.pizetta@usp.br"
] | daniel.pizetta@usp.br |
d710618260efbbad78d861529968e93798e97488 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SHXJ_106_1.py | 8f6b7dfce93e96a25b42fb476d783e25bb59d638 | [] | 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,031 | 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 |
f6e3adabb0d907c6a66ec6ec140d19d03814d984 | 8d8437138900d30012b0aa293c220228b039e979 | /twitter.py | 96e2d1ba9058dd6e65dc8412a2a7bd343ba89f4e | [
"MIT"
] | permissive | justinhachemeister/tweet-transcriber | 6b0f7f0ebf7c637fab594926b907ed36424be957 | eb47a66c0d032baeb5d420bc211c5a301b496173 | refs/heads/master | 2020-07-12T05:42:15.406950 | 2019-08-27T14:20:50 | 2019-08-27T14:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | """
This script has 2 functions, one is used to extract the values we need from
a Tweet HTML source.
The other one creates a Markdown text with the previous generated values and
mirrors the tweet's images to Imgur.
"""
from datetime import datetime
import requests
from bs4 import BeautifulSoup
from imgur import upl... | [
"phantom@phantom.im"
] | phantom@phantom.im |
4c7d7a5c5ee3fef47ebf07decba6c832d0487548 | f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c | /13-introduction-to-databases-in-python/05-putting-it-all-together/05-build-a-query-to-determine-the-average-age-by-population.py | ce3af3f3f521e1900026e79be5416b799e7a51ca | [] | no_license | ariscon/DataCamp_Files | a21f1265b6ad5aed04d9724be78b08634f81312e | f7e496391b1d4649bf1186b9a1c9b83fa9a50044 | refs/heads/master | 2020-04-13T04:27:01.650215 | 2018-12-30T22:51:43 | 2018-12-30T22:51:43 | 162,962,035 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | '''
Build a Query to Determine the Average Age by Population
In this exercise, you will use the func.sum() and group_by() methods to first determine the average age weighted by the population in 2008, and then group by sex.
As Jason discussed in the video, a weighted average is calculated as the sum of the product of... | [
"noreply@github.com"
] | ariscon.noreply@github.com |
00961b4406c68bc02aee79a80bc623c9b4c449de | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /_Arturia/SessionComponent.py | 721e6cd8b2a8d19fadd1e353d3e949ffaad0f6ac | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 2,326 | py | # uncompyle6 version 3.6.7
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Arturia/Se... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
3368daf49f5a741e0d8ba0d4f17c9f8931e210fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bout.py | a4fc852816a1ae2be5fb22ffa1b82e277a5f6b0e | [
"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 | 367 | py |
#calss header
class _BOUT():
def __init__(self,):
self.name = "BOUT"
self.definitions = [u'a short period of illness or involvement in an activity: ', u'a boxing or wrestling match: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self,... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
98d01f197eb6937be226c67016c6767c2adb3e84 | e2834071bdb39650c9395e6c4edf8c95b8cd3c20 | /examples/voc/infer.py | dab775bf7592694ed2234615a3493b985b03a441 | [
"MIT"
] | permissive | mjiansun/fcn | 5c9b5798889282f8484d35bdb352909fd99f2a6e | b4929e1e8ff2d53af7326f77409480262988d175 | refs/heads/master | 2020-12-02T22:55:23.570778 | 2017-06-29T14:03:51 | 2017-06-29T14:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/env python
import argparse
import os
import os.path as osp
import re
import chainer
import numpy as np
import skimage.io
import fcn
def infer(n_class):
parser = argparse.ArgumentParser()
parser.add_argument('-g', '--gpu', default=0, type=int)
parser.add_argument('-m', '--model-file')
par... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
ab47cbf8ff5a573f6d9276d3b39a924850d65fc4 | ed7cf93b4f8e0fc7f979966146959de7636e6674 | /src/main/python/buffbot/ui/generated/main_window.py | 865fa833fa848bb0bad21934d96ee919eb46f50c | [
"Apache-2.0"
] | permissive | dstufft/buffbot | f9f5ebade89bf16c8bbb549edbe74fcd8d367adc | 80c26ee8ac6d91c1af2ea2565cbe7acad6ecc252 | refs/heads/main | 2022-12-30T03:16:39.325440 | 2020-10-24T03:34:26 | 2020-10-24T03:34:26 | 306,798,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,347 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCor... | [
"donald@stufft.io"
] | donald@stufft.io |
70c4f5eb8587136882c4445e0c034be6670cc4ce | ffc2818fa31da3ee52134a1a32305f17943870d0 | /local/lib/python2.7/site-packages/filterpy/kalman/kalman_filter.py | fb2d77b90ed4336c94672ba4eeaa04fe9955332d | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | SippieCup/usr | 1f264b57bee4cb168051fa014da08c7e60819fe1 | 51e752f38731a395e625a40de122c075dcead87a | refs/heads/master | 2020-06-03T17:35:17.518826 | 2019-06-13T01:25:41 | 2019-06-13T01:25:41 | 191,668,192 | 0 | 0 | null | 2019-06-13T01:24:22 | 2019-06-13T01:24:22 | null | UTF-8 | Python | false | false | 47,854 | py | # -*- coding: utf-8 -*-
"""
This module implements the linear Kalman filter in both an object
oriented and procedural form. The KalmanFilter class implements
the filter by storing the various matrices in instance variables,
minimizing the amount of bookkeeping you have to do.
All Kalman filters operate with a... | [
"george@comma.ai"
] | george@comma.ai |
5b4a5911ee91a7a2de2dbe980d5c4e8ee070dc93 | b0c391ecf351e2317ac61c257dd6bfa5b10d4015 | /pymotifs/core/__init__.py | f7e18dc2a739eaca3e97affc75ca093e0fea9744 | [] | no_license | BGSU-RNA/RNA-3D-Hub-core | 57db94bfff9b338b3a751f545699f4117150b921 | 1982e10a56885e56d79aac69365b9ff78c0e3d92 | refs/heads/master | 2023-05-26T09:41:38.397152 | 2023-05-23T05:50:10 | 2023-05-23T05:50:10 | 6,049,336 | 3 | 1 | null | 2022-06-21T21:27:52 | 2012-10-02T18:26:11 | Python | UTF-8 | Python | false | false | 648 | py | """This is the base module that contains the core and essential classes for the
pipeline. This is basic module that all other stages and modules inhert from.
It contains:
base
The most basic classes for the pipeline.
exceptions
Exceptions common across the pipeline.
db
Common tools for interacting with the... | [
"blakes.85@gmail.com"
] | blakes.85@gmail.com |
bc26b205bec8e1ae6dd8a202e260455eebe2070a | 523fb785bda41e33546c929a5c2de6c93f98b434 | /LeetCode/213.HouseRobberII.py | 72ea19b8465b3e01a932ee0cd66fd0bb69f5f131 | [] | no_license | lizhe960118/TowardOffer | afd2029f8f9a1e782fe56ca0ff1fa8fb37892d0e | a0608d34c6ed96c9071cc3b9bdf70c95cef8fcbd | refs/heads/master | 2020-04-27T10:33:21.452707 | 2019-05-02T10:47:01 | 2019-05-02T10:47:01 | 174,259,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | class Solution:
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
length = len(nums)
if length == 0:
return 0
elif length == 1:
return nums[0]
else:
return max(self.rob_no_circle(nums[:-1]), self.rob_no_... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
1fc89415376aab37e1de865a3540dfc85fd28090 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/288/68031/submittedfiles/testes.py | 8880e25df2b353cfb9b08f341db0a6fe158949e2 | [] | 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 | 94 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
idade=float(input("digite sua idade"))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c5ceb755dfb284e55b670ffcdccc1bf152da4192 | 90ab0e6878ff58cd20794f1b4a32a460567940ae | /venv/Scripts/player.py | a5b2a19f416f5142208be356b8fefc6aa7a1ddf6 | [] | no_license | Deanwinger/django_project | e6208574b59c612bf14a5ab1cf0768eb86c909e6 | 8b990abb83558d0742ee1d17e7c4ee6dbb6bf756 | refs/heads/master | 2022-11-02T01:02:20.270010 | 2017-11-29T02:58:11 | 2017-11-29T02:58:11 | 107,872,700 | 0 | 1 | null | 2022-10-21T10:49:20 | 2017-10-22T14:22:30 | Python | UTF-8 | Python | false | false | 2,052 | py | #!d:\django_application\venv\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter
from PIL import Image, ImageTk
# -------------------------------------------------------------... | [
"a541203951@163.com"
] | a541203951@163.com |
dc1141704a7647cef213815c91c04397099da290 | 17c280ade4159d4d8d5a48d16ba3989470eb3f46 | /16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM2000_R_0-5.py | e826ad4e57ede4e18d883cd64ee9a755a750c34a | [] | no_license | chengchen1993/run2_ntuple | 798ff18489ff5185dadf3d1456a4462e1dbff429 | c16c2b203c05a3eb77c769f63a0bcdf8b583708d | refs/heads/master | 2021-06-25T18:27:08.534795 | 2021-03-15T06:08:01 | 2021-03-15T06:08:01 | 212,079,804 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'M2000_R0-5'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName='Analysis'
config.JobType.sendExternalFolder=True# = 'Analysis'
config.JobType.inputFil... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
69584b563b927f23da52c207d1e8dd3bd0bd5ff7 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/greynoise/icon_greynoise/actions/__init__.py | 39469776ab43c9978976a4cd3ab1e4e00ea05dfc | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 321 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
from .community_lookup.action import CommunityLookup
from .context_lookup.action import ContextLookup
from .get_tag_details.action import GetTagDetails
from .gnql_query.action import GnqlQuery
from .quick_lookup.action import QuickLookup
from .riot_lookup.action import RiotLookup... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
9bcff948fb44b732a0ab2c633419b392ab200b12 | 773dc03117f8b0d51f7a10e2a4577229c8be6ba3 | /migrations/models/47_20230219145958_update.py | 8f7a6d6eb7d3af259fd97abadb55ba92be05703f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tcprescott/sahasrahbot | 382cdff058d63feb5f42dbbd7729eb4b08c4d1bd | 64a125d948873d0faa5ea3f2d306075ad9e013be | refs/heads/master | 2023-08-31T15:33:01.533206 | 2023-08-31T01:58:48 | 2023-08-31T01:58:48 | 178,310,225 | 22 | 43 | MIT | 2023-09-01T08:45:52 | 2019-03-29T01:34:45 | Python | UTF-8 | Python | false | false | 339 | py | from tortoise import BaseDBAsyncClient
async def upgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE `asynctournamentrace` ADD `status` VARCHAR(45) NOT NULL DEFAULT 'pending';"""
async def downgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE `asynctournamentrace` DROP C... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
7d1f97043c50fe77b4bcd8be661bbe1df61fc5ba | 5d61565651b7ba5fa8fade3313a5e82fca8b6686 | /videocockpit/views.py | dc690240f50dbf3870b8c7d0f2bc23dc805abc9d | [] | no_license | lonelyxmas/ISMS | d597b00072bfa77907875f575b866fbb1fb53295 | 08c5e2f3518fc639cf1a1f2869f4b2f3ae58e306 | refs/heads/master | 2023-08-14T12:02:59.001215 | 2021-03-22T03:34:58 | 2021-03-22T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,212 | py | from django.shortcuts import render
import urllib.parse
import urllib.request
import hmac
import base64
import hashlib
from hashlib import sha256
from django.shortcuts import render
from django.shortcuts import HttpResponse
from django.http import HttpRequest
from django.db.models import Q, Sum, Count
from basedata.mod... | [
"11325818@qq.com"
] | 11325818@qq.com |
17078f54497146ec0f19c217e4a886b0cdc7f005 | cd1a6ce76271e1ef532a5b0432d8408157c03d30 | /ver-1.4/serial_receive.py | 60b47c5e56cede51ee5a0cc7bbdae4cb4bda10dd | [] | no_license | edgecollective/lora-image | 03e3cae5424113a442c47a63e2881346fe7240e7 | 17cdc9421762a5957e4c7b06b13b05dd383b920d | refs/heads/main | 2023-04-07T05:21:10.860828 | 2021-04-16T13:05:14 | 2021-04-16T13:05:14 | 356,066,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | import serial
import time
import subprocess
#chunk_file=open('chunkfile_receive.png','wb+')
#serialPort = '/dev/ttyUSB0'
serialPort = '/dev/ttyACM0'
filenum = 0
#chunk_file=open('image_in.bmp','wb+')
with serial.Serial(serialPort, 115200, timeout=1) as ser:
while True:
ser.reset_input_buffer()
s... | [
"donblair@gmail.com"
] | donblair@gmail.com |
b0facbe326cebac8c89689619f2e5fe41a86a266 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/debug/lib/debug_events_reader.py | 915c65f75944f61ced79176fe396b9b8b9028acf | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 49,468 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d3abaf0d12fa65eedd41e0b28fc0b004a5dbb347 | 648e5ea6722db2f29806e24f11cf169257dfc1c7 | /doorsadmin/migrations/0072_auto__chg_field_spamlink_url__chg_field_spamlink_anchor.py | cc1dfc549e74a03a9411540211c6efc35a1bd1b1 | [] | no_license | cash2one/doorscenter | 30d4f65e3fb57c417df3f09d7feab721d8425faa | d2771bf04aa187dda6d468883a5a167237589369 | refs/heads/master | 2021-05-27T15:38:56.219907 | 2012-06-20T05:38:15 | 2012-06-20T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,842 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'SpamLink.url'
db.alter_column('doorsadmin_spamlink', 'url', self.gf('django.db.models.fi... | [
"alex@altstone.com"
] | alex@altstone.com |
e4acddc031fd0fe26f8a44a973fdb65f78c611f6 | 471479fd33215ffd088e09940c78cc8b2f65ffcd | /docs/source/01-AWS/01-All-AWS-Services-Root/24-Analytics/06-AWS-Glue-Root/AWS-Glue-Job/debug-best-practice/create_test_data.py | dcc78b51e2de06d5a7c3f9e49874acd8b4075660 | [
"MIT"
] | permissive | MacHu-GWU/Dev-Exp-Share | a25ec59f9402e56c3bd9d98269634894fa452537 | 0b659c62bf795374ea981953b25119ca30007e7d | refs/heads/master | 2023-08-22T05:28:52.536090 | 2023-08-14T13:37:31 | 2023-08-14T13:37:31 | 84,245,070 | 3 | 1 | MIT | 2023-02-13T23:44:03 | 2017-03-07T20:53:18 | Shell | UTF-8 | Python | false | false | 1,126 | py | # -*- coding: utf-8 -*-
from pathlib_mate import Path
import numpy as np
import pandas as pd
from datetime import datetime, timedelta
here = Path(__file__).parent
dir_events = Path(here, "datalake", "events")
n_file = 10
n_row_per_file = 1000 * 1000
bad_file_index = [2, 6]
bad_row_index = [3, 7]
for ith_file in ra... | [
"MacHu-GWU@users.noreply.github.com"
] | MacHu-GWU@users.noreply.github.com |
169097b99c51df6b23ddc186edc1b2a25a461417 | edc591edd7eb670d4f34f485239ddb588d6510d4 | /tiebacommon/tiebacommon/spiders/tieba.py | 95a28416383a64df32608cc9fb05eaf20feee719 | [] | no_license | renxil/scrapy | 7d4c94fefee07b8ab3a014ed0c11d2e088c613c4 | 52d339620534dff89dd8b800583a61ae87ca4759 | refs/heads/master | 2021-06-17T20:40:50.301463 | 2017-06-11T07:54:54 | 2017-06-11T07:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | # -*- coding: utf-8 -*-
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import HtmlXPathSelector
from tiebacommon.items import SubjectItem
from tiebacommon.items import CommentItem
from tiebacommo... | [
"root"
] | root |
8fe939e30b21cc8a880ea86b9d9929f795bcd584 | eb1a2e24ecdbe9be8a6aac153fe1980b19dcbe4a | /rangeprime.py | 0ccb01326fee7730ddd37b65342b2fd19d853706 | [] | no_license | sushmithasushi/playerlevel | 1e7363e63bd75deba79b96a659db7736c93ed6a2 | 612ea4483a5c5d7c3c3a8564e0b7ce0df08a686a | refs/heads/master | 2020-06-19T07:03:06.457910 | 2019-07-24T04:28:31 | 2019-07-24T04:28:31 | 196,608,802 | 0 | 0 | null | 2019-07-12T16:08:51 | 2019-07-12T16:08:51 | null | UTF-8 | Python | false | false | 211 | py | lower,upper=input().split()
lower=int(lower)
upper=int(upper)
count = 0
for num in range (lower, upper+1):
if num>1:
for i in range (2,num):
if num % i==0:
break
else:
count += 1
print (count )
| [
"noreply@github.com"
] | sushmithasushi.noreply@github.com |
5e015b36ab34a9c83ff4637c0f7943df738c7d80 | a44a9279258ace54be0ea6d410e6ddb5a2d72bcb | /project-addons/stock_transfer_only_available/models/stock.py | ba22116290b0d6ab4713f2193cb5be3a85eb1f13 | [] | no_license | athlontado/PXGO_00064_2014_PHA | 346f33185a07c2e1766a7cc79cd300252d9b2480 | 3086baba490e47a5dcc7942c7c5fee9fc047ddcd | refs/heads/master | 2020-04-06T03:56:15.828784 | 2016-04-18T12:24:53 | 2016-04-18T12:24:53 | 59,216,028 | 0 | 0 | null | 2016-05-19T14:50:54 | 2016-05-19T14:50:54 | null | UTF-8 | Python | false | false | 2,175 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2016 Comunitea All Rights Reserved
# $Jesús Ventosinos Mayor <jesus@comunitea.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | [
"jesus@comunitea.com"
] | jesus@comunitea.com |
6b2684b65aba86336ab877743807c2c308b6a15a | 201aa2c55b40897e87dd548251363f67800a56bf | /django_pjt4/accounts/models.py | ccc5bb549ecf97f7f8173fe04c6cf4710dd9b7b9 | [] | no_license | Jeonseoghyeon/Django_PJT4 | 3f69edf05f298ac247f70729c1ba7c057991faa7 | 3021035b8b83e743341f88fa2e950a9798a12885 | refs/heads/master | 2022-07-12T04:31:22.793867 | 2020-05-15T09:43:54 | 2020-05-15T09:43:54 | 263,517,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.conf import settings
from movies.models import Review
# Create your models here.
class User(AbstractUser):
profile_picture = models.ImageField(blank=True)
followers = models.ManyToManyField(settings.AUTH_USER_MODEL, re... | [
"jsh28592@gmail.com"
] | jsh28592@gmail.com |
2eab15bda78fd2ea49a48537c6379d72fe39a2e5 | e5d030d76b6cf448fe7dcbdd5fcc1ee0e8b5cf20 | /tumbler/actions.py | 90a6403946fce999207d69d14bfc70bbd39c6153 | [] | no_license | suvari/suvari | c41eadb4f9244fe84420a251f7ca099a627715b5 | 5bedeb75930aeab55fde5d5dea0badca615ce75c | refs/heads/master | 2021-01-25T03:54:56.816402 | 2013-11-01T18:21:21 | 2013-11-01T18:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--disable-depende... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
c9dda9f37b588b4f0c4a28a672eb837ef111dba3 | e5e489e404c8755c031588f3484fd819dbb3fb0c | /tests/test_readme.py | 9a1cedeb484bb99d85531cca334b204cb55c96e7 | [
"BSD-3-Clause"
] | permissive | 2017JTM2023/pyecore | 72ac0871e180ed3adaa437f87bcb06039d4ecafb | 1ca956de8ba36c67762a5e8016824d8ead7903c6 | refs/heads/master | 2021-06-28T07:39:46.259145 | 2017-07-27T08:24:31 | 2017-07-27T08:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import pytest
from pyecore.ecore import *
def test_intro():
A = EClass('A') # We create metaclass named 'A'
A.eStructuralFeatures.append(EAttribute('myname', EString,
default_value='new_name'))
a1 = A() # We create an instance
assert a1.myname == 'new_name... | [
"vincent.aranega@gmail.com"
] | vincent.aranega@gmail.com |
5343aaba13ea4ef11eedde2e13ea1112eafe987c | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ead/boxes.py | 34b8c85c1ca5dec3d05265d7329690b224ed5afb | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 917 | py | import sys,os
from EadRecord import EadRecord
## def getBoxes (collection):
def foo (ead):
best = ead.getCollection ("ref59")
best.report()
box = best.getBox("4")
for folder_key in box.keys():
print "FOLDER: ", folder_key
folder = box[folder_key]
for item in folder.getItems():
item.report()
def ... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
ee490ed80de9508ea747093506f10c236fabff2a | eb2ebaf1c53cfeb5a1abbc05e6423c5fdc27ca8a | /.history/ship_20200118115235.py | 813b2783e394fddf2bbc752012a4bc4ba976b47d | [] | no_license | HeperW/VSCO | 8120bde36c73601e5b956955c0b68b599c9a663d | 4c3ee4aa45424313e335ff05934fbb6df7950304 | refs/heads/master | 2022-05-08T00:51:44.618385 | 2022-03-16T03:18:34 | 2022-03-16T03:18:34 | 233,367,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import pygame
class Ship():
def __init__(self,screen):
"""初始化飞船并设置其初始位置"""
self.screen = screen
# | [
"hgym300400@126.com"
] | hgym300400@126.com |
ada4ab1ee90c31e866aa5f3a397978a11d7f5b5f | a6ef13387c24c719a0dcfeb173521cd70beac282 | /devweb/day4/venv/bin/easy_install-3.6 | f4c9c5f38b7ad41d8e92928d93047d19372d0616 | [] | no_license | youjiahe/python | f60472d61daf58b7f5bb6aa557949de4babf8c9c | 74eb4c5ba211ae5ffed2040576e5eead75d16e7d | refs/heads/master | 2020-03-31T02:35:55.787809 | 2019-12-02T16:32:54 | 2019-12-02T16:32:54 | 151,831,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | 6 | #!/root/git/python/devweb/day4/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"youjiahe@163.com"
] | youjiahe@163.com |
f6288cbea9dcd5d96ed305135afa0539b6ca0f82 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_79/24.py | 63fc62a79b8dc3a047824a5364269204e9186c0a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | def pattern(s,c):
pl=[(c if x==c else '_') for x in s]
return ''.join(pl)
T=int(input())
for i in range(T):
N,M=[int(x) for x in input().split()]
di=[input() for j in range(N)]
orders = [input() for j in range(M)]
ans = []
maxl = max([len(x) for x in di])
for order in orders:
value=[1]*N
state=... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
eecfd80e2b68163fc9aa706f9c6d458063b92561 | 19ab1499f904fc7065cf76eb518a457d1cad08c9 | /companies/models.py | 0c369a5ad7b81c41ec76b02b4f9f72e7fd58f352 | [] | no_license | mathemartins/moli | 5a2637c94ec8953b42fba369b2fed5bdd3a83be6 | c945b90920659025013fe6133dfd5a0abac61788 | refs/heads/master | 2021-05-03T06:27:21.472267 | 2018-03-04T18:50:18 | 2018-03-04T18:50:18 | 120,595,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,492 | py | from django.db import models
from django.db.models.signals import pre_save, post_save
from django.contrib.auth import get_user_model
from django.utils.text import slugify
from accounts.models import Profile
from accounts.utils import user_code_generator
from imagekit.models import ProcessedImageField
from imagekit.pr... | [
"mathegeniuse@gmail.com"
] | mathegeniuse@gmail.com |
c688ba0761422c853c9c1ffebc62ce0e349def57 | 435a1ad7f073008f303668b68645c137e06d49ab | /rx/concurrency/mainloopscheduler/tkinterscheduler.py | c4472af843073f99ac56b7b9942af9ed472f0873 | [
"Apache-2.0"
] | permissive | tanwanirahul/RxPY | cf9f447006a5a74c515080f470d4ef1b85ae8731 | e5e8d80c77e03601bf5fe167b747e9ff3ea0afa8 | refs/heads/master | 2020-12-11T05:51:36.627984 | 2014-09-30T18:52:40 | 2014-09-30T18:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | import logging
from datetime import datetime, timedelta
from rx.disposables import Disposable, SingleAssignmentDisposable, \
CompositeDisposable
from rx.concurrency.scheduler import Scheduler
log = logging.getLogger("Rx")
class TkinterScheduler(Scheduler):
"""A scheduler that schedules work via the Tkinter m... | [
"dag@brattli.net"
] | dag@brattli.net |
ea9e32f89a9c6376f5c486590da0e573e9d905e0 | 01822d2ae38a95edcd188a51c377bb07b0a0c57d | /Assignments/Sprint3/bt_inOrderTraversal.py | f65e4f8705ad0aae9b7f6256ff6846fa01b99d6c | [
"MIT"
] | permissive | mark-morelos/CS_Notes | bc298137971295023e5e3caf964fe7d3f8cf1af9 | 339c47ae5d7e678b7ac98d6d78857d016c611e38 | refs/heads/main | 2023-03-10T11:56:52.691282 | 2021-03-02T15:09:31 | 2021-03-02T15:09:31 | 338,211,631 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | """
You are given a binary tree. Write a function that returns the binary tree's node values using an in-order traversal.
Example:
Input: [2,None,3,4]
2
\
3
/
4
Output: [2,4,3]
[execution time limit] 4 seconds (py3)
[input] tree.integer root
[output] array.integer
[Python 3] Syntax Tips
"""
# ... | [
"makoimorelos@gmail.com"
] | makoimorelos@gmail.com |
2ee7d9a00222d83ecd62b1eea0e63f63c871043f | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_path.py | b9d402a493b6050e6f9631c908fce009081dcfce | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 420 | py | from ramda import path
from ramda.private.asserts import assert_equal
test_dict = {"a": {"b": {"c": "foo"}}}
def test_path_nocurry():
assert_equal(path(["a", "b", "c"], test_dict), "foo")
def test_path_curry():
get_abc = path(["a", "b", "c"])
assert_equal(get_abc(test_dict), "foo")
def test_path_thr... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
da43139bfce7f48fb9c284661286731b9da35d3c | 7bc529b7c074f14fd2f726d285f6453f2be4f07e | /PycharmProjects/python/venv/Lib/site-packages/atx/cmds/doctor.py | 619b726871237c1e1b1671a561eb8dbc983e9b0a | [] | no_license | bopopescu/test-for-life | 52bc2bcb05c9f12c34311c5d8c7d69fac769fc20 | c65a13e16dcdcd1f9d91659b32a8b82794f40985 | refs/heads/master | 2022-11-17T17:45:47.382185 | 2020-04-01T08:31:47 | 2020-04-01T08:53:13 | 281,324,697 | 0 | 0 | null | 2020-07-21T07:17:22 | 2020-07-21T07:17:22 | null | UTF-8 | Python | false | false | 782 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# check symbols are from:
# http://www.i2symbol.com/symbols/check
import os
import subprocess
from colorama import init, Fore, Back, Style
init()
def print_info(message, success):
fore_color = Fore.GREEN
symbol = '✔' if os.name != 'nt' else '[GOOD]'
if no... | [
"3176832432@qq.com"
] | 3176832432@qq.com |
12e0e2b3f513743d2ab8f98786710ca7bdfc0fcd | 887c436e86c8e5d8e63f4b3018c57988d00fb074 | /src/oictest/provider.py | 14e71025da42b00e8b88d761aa93d74c6c963495 | [] | no_license | calh/oictest | 0f7da976d960c95e7c70c6c33097de9d2deb0bc7 | b1055203bc86a6d3f5b46edc9032998ae2e2c3d2 | refs/heads/master | 2021-01-15T11:03:23.580579 | 2015-04-06T14:25:08 | 2015-04-06T14:25:08 | 33,488,373 | 0 | 0 | null | 2015-04-06T15:12:53 | 2015-04-06T15:12:53 | null | UTF-8 | Python | false | false | 4,774 | py | from oic import oic
from oic.oauth2 import Message, rndstr
from oic.oic import provider, ProviderConfigurationResponse
__author__ = 'roland'
def sort_string(string):
_l = list(string)
_l.sort()
return "".join(_l)
class Server(oic.Server):
def __init__(self, keyjar=None, ca_certs=None, verify_ssl=Tr... | [
"roland.hedberg@adm.umu.se"
] | roland.hedberg@adm.umu.se |
02ee62d3300684c7d997b0c4e04c52bb92cdaa07 | 685038d4be188fa72e9dba1d2213a47ee3aa00a2 | /ECOS2021/Demands/Results/Plots/S7/plots.py | dc9a2c61c1be1ba5527db6de877da08af3038c84 | [] | no_license | CIE-UMSS/Tradeoff-between-Installed-Capacity-and-Unserved-Energy | e5599e4e4ac60b97f0c4c57c5de95e493b1b5ac4 | 459f31552e3ab57a2e52167ab82f8f48558e173c | refs/heads/master | 2023-06-01T18:09:29.839747 | 2021-06-19T15:56:26 | 2021-06-19T15:56:26 | 343,720,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,727 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 1 13:58:01 2021
@author: alejandrosoto
"""
import pandas as pd
Jan=pd.read_csv('Jan_S7_o.csv', sep=',', decimal=',', encoding='latin1', error_bad_lines=False)
Feb=pd.read_csv('Feb_S7_o.csv', sep=',', decimal=',', encoding='latin1', error_bad_lines... | [
"asm19971997@gmail.com"
] | asm19971997@gmail.com |
04324d82333af7550ed27e95a14fec26fdd9d0fd | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/leetcode/datastructure/array/15. 3Sum.py | 73637a527d38d45823e2accee1472dda02f44ba1 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 832 | py | from collections import deque
def threeSum(nums):
# 빈 리스트 또는 3개 이하
if len(nums) < 3:
return []
nums.sort()
ans = []
for ti in range(len(nums)-2):
if ti > 0 and nums[ti] == nums[ti-1]:
continue
L, R = ti+1, len(nums)-1
while L < R:
sums = n... | [
"galid1@naver.com"
] | galid1@naver.com |
d236ffbbd7693e8137cdc65330e107f484734dd7 | 4e91623e15d3d348259bb08993526e640eb5cba5 | /pyramid_signup/tests/__init__.py | 029d1c80c69c5df66961917c0237707e11ca2b2e | [] | no_license | whitmo/pyramid_signup | e38f8459068204c54411cce6aa03406d12fb8bdf | 2d0fa31b37d901054b4260018a2fe7e7ca6450f4 | refs/heads/master | 2020-04-02T20:49:06.971432 | 2012-03-06T03:04:56 | 2012-03-06T03:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | import unittest
from webtest import TestApp
from sqlalchemy import engine_from_config
from pyramid import testing
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid_beaker import session_factory_from_settings
from pyramid.response import ... | [
"sontek@gmail.com"
] | sontek@gmail.com |
40f91a42dd6dc1f82ba0529cdf229634bfd7e423 | 1cb5abf0814b028b3ac996d39033a74dbf85753b | /studying_codes/q_num_1904.py | c44df312ca85b3445f18a9007e23da771d845573 | [] | no_license | kimsehwan96/studying_python | fd7310204a75b94d95497f1ddb3ad39763340fde | 5b22926230f936abbddccb10401d53d6e1bb9934 | refs/heads/master | 2023-02-09T07:27:39.999164 | 2021-01-02T09:18:13 | 2021-01-02T09:18:13 | 242,378,529 | 1 | 0 | null | 2020-04-22T15:10:14 | 2020-02-22T17:02:02 | Python | UTF-8 | Python | false | false | 592 | py | n = int(input())
dp = [0] * 1000001
#타일은 오직 1, 00 이 두개다.
#a[i] = 수열의 길이가 i 일 때의 경우의 수라고 해보자.
#a[1] = 1, a[2] = 2
#a[3] = 3 , a[4] = 5
#생각해보면 길이가 i인 수열을 만드는 방법.
#i-1 길이의 수열 경우의수 + 1 타일
#i-2 길이의 수열 경우의수 + 00 타일
#즉 a[i] = a[i-1] + a[i-2]
dp[1] = 1
dp[2] = 2
for i in range(3, n+1): # 자꾸 햇갈리는데 range(n, m): 하면 n+1, n+2... | [
"sktpghks138@gmail.com"
] | sktpghks138@gmail.com |
d0fa566865fce4bc80b5468cb024c91fd0144439 | 76a8ea60480331f0f61aeb61de55be9a6270e733 | /downloadable-site-packages/Bio/GenBank/utils.py | a5d2a43af43584c9bfad6c3a342c161c97f7f2e7 | [
"MIT"
] | permissive | bhagyas/Pyto | cd2ec3f35bec703db4ac29b56d17abc4bf03e375 | 907024a9b3e04a2a9de54976778c0e1a56b7b83c | refs/heads/master | 2022-11-19T13:05:07.392454 | 2020-07-21T17:33:39 | 2020-07-21T17:33:39 | 281,886,535 | 2 | 0 | MIT | 2020-07-23T07:48:03 | 2020-07-23T07:48:02 | null | UTF-8 | Python | false | false | 1,905 | py | # This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
"""Useful utilities for helping in parsing GenBank files."""
class FeatureValueCleaner(object):
r"""Provide specialized capabilities for cleani... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
56524c96d567c03a469432502f9d5fcc78fdd0a8 | c085578abc19db18ee0766e1f9598d79a3acdbe1 | /240-Search-a-2D-Matrix-II/solution.py | 9327caa14c736ad71b3e48c684e47c990747e1b8 | [
"MIT"
] | permissive | Tanych/CodeTracking | efb6245edc036d7edf85e960972c34d03b8c707a | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | refs/heads/master | 2020-05-21T17:40:10.105759 | 2016-10-09T18:20:42 | 2016-10-09T18:20:42 | 60,616,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | class Solution(object):
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
m=len(matrix)
n=len(matrix[0])
return self.helper(matrix,0,n-1,0,m-1,target)
def helper(... | [
"ychtan@email.gwu.edu"
] | ychtan@email.gwu.edu |
9c4d5c37f4079c406cc0df9155b47f03718b9066 | d623b8fe1b7e5d49d1c2623fc6ff0356bda50d5d | /homeassistant/components/repairs/issue_handler.py | 1201497f0c1586eec30863b7009f7a528f3599f5 | [
"Apache-2.0"
] | permissive | piotr-kubiak/home-assistant | 02f1ab8195d9111c6d4c96a55715e67de6b103d9 | d32f3e359f1fabe2d79b0e07e375b3723b7cb07c | refs/heads/dev | 2023-03-03T11:08:25.871531 | 2022-08-26T19:41:41 | 2022-08-26T19:41:41 | 198,906,482 | 1 | 0 | Apache-2.0 | 2023-02-22T06:23:51 | 2019-07-25T22:00:44 | Python | UTF-8 | Python | false | false | 4,037 | py | """The repairs integration."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant import data_entry_flow
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.integration_platform im... | [
"noreply@github.com"
] | piotr-kubiak.noreply@github.com |
9769660e3a6d0458ce84f4c0defe17313609457b | 546976b3643e5acb9b263598a0e9a1e6ea499c6c | /fast_bss_eval/torch/hungarian.py | 25caf2e00f9db0e984700013b0e3066a48536726 | [
"MIT",
"BSD-3-Clause"
] | permissive | YongyuG/fast_bss_eval | a12179717b17f1b7bece8735ded74c7f3db9cc58 | 2b8afcbd6fd9136ce8d272f8682b5846af788b00 | refs/heads/main | 2023-08-20T23:04:24.630520 | 2021-10-28T05:51:28 | 2021-10-28T05:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,508 | py | # Hungarian algorithm (Kuhn-Munkres) for solving the linear sum assignment
# problem. Taken from scikit-learn. Based on original code by Brian Clapper,
# adapted to NumPy by Gael Varoquaux.
# Further improvements by Ben Root, Vlad Niculae and Lars Buitinck.
# 2021 - adapted to pytorch by Robin Scheibler
#
# Copyright (... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
46a85ee4f542364d2e5a623403db06be0b661817 | 5dd190725aaaeb7287d935b3c99c20480b208816 | /official/nlp/data/create_xlnet_pretraining_data_test.py | b7993f364bd4511496961c7ec21141495afd845f | [
"Apache-2.0",
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,285 | py | # Copyright 2021 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... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
c1a08ef0795a86a8a7a66706882db963d0924eff | c42e9a0f8db81aeaffa2d13471fb4c949a6e113d | /src/utils/elmo/modules/scalar_mix.py | af7a1fccf08a27f3cc1d46e6dca617c625f85b4c | [
"MIT",
"Apache-2.0"
] | permissive | square/MimicAndRephrase | 13c0beac6b6ea691718a8ed54e3e7ee85a17ad84 | bd29a995b211cb4f7933fa990b0bba1564c22450 | refs/heads/master | 2023-06-15T10:04:50.411232 | 2019-05-24T06:14:01 | 2019-05-24T06:14:01 | 174,596,052 | 12 | 5 | MIT | 2023-03-19T08:31:16 | 2019-03-08T19:23:24 | Python | UTF-8 | Python | false | false | 3,265 | py | from typing import List
import torch
from torch.nn import ParameterList, Parameter
from elmo.common.checks import ConfigurationError
class ScalarMix(torch.nn.Module):
"""
Computes a parameterised scalar mixture of N tensors, ``mixture = gamma * sum(s_k * tensor_k)``
where ``s = softmax(w)``, with ``w`` a... | [
"="
] | = |
c2b36365c71f7fcacff6c001d469158d47cbcbdb | 667147b88ec297d648addb26540be07fd06d2fc0 | /sudokulib/solvers/naked_singleton.py | 23f08897483d016f9529c6b1ce069c1cf4a681cd | [] | no_license | Fantomas42/sudoku-solver | 97f76879e613722141f941f13296812c73fd51f2 | 8d5e55984480abc30874ad763106d2bff41d9ee2 | refs/heads/develop | 2021-01-25T08:48:26.185805 | 2017-03-20T20:53:27 | 2017-03-20T20:53:27 | 2,557,016 | 7 | 2 | null | 2017-03-20T20:49:42 | 2011-10-11T17:50:26 | Python | UTF-8 | Python | false | false | 366 | py | """Naked Singleton solver for sudokulib"""
from sudokulib.solvers import BaseSolver
class NakedSingletonSolver(BaseSolver):
"""Naked Singleton Solver
alias: Sole Candidate"""
name = 'Naked Singleton'
def _solve(self, layer, index):
candidates = layer._candidates[index]
if len(candidat... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
556ad2319af38b153209f918a202c793a646ed55 | 496d2f4e71950269e9aba98f56c62f5c4fc52a99 | /binary_tree_preorder_traversal.py | 4c1c609e0668eda2cad680e32df5f0024acdaeea | [] | no_license | XBOOS/leetcode-solutions | 044ddad93f116cd71e11df34120392e06b5cf50b | cd1f1138e85ed69f3ae87b0bd49a1f6b6f343527 | refs/heads/master | 2020-12-28T20:53:54.408330 | 2017-01-06T06:04:03 | 2017-01-06T06:04:03 | 44,537,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
\
2
/
3
return [1,2,3].
Note: Recursive solution is trivial, could you do it iteratively?"""
""" Method 1 using recursion.
adding anothe... | [
"xubinghku@gmail.com"
] | xubinghku@gmail.com |
191bd11809060ba58fcf451a0f7958bb36bdc60b | da50dec980964cdfb5143eb42e0078445813a8b7 | /IP_proxy/t.py | df99370e21cec45a355bc8b430ab278b9eb1184c | [] | no_license | kidword/spider | cc842bee57f61fc87eefe63a339bff39d2428e93 | 51613e98dc8229c9b414ed99a69c961007548125 | refs/heads/master | 2020-04-12T08:32:45.116909 | 2020-01-13T03:04:18 | 2020-01-13T03:04:18 | 162,388,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import random
st = "07:30:00"
et = "09:30:33"
def time2seconds(t):
h,m,s = t.strip().split(":")
print(h,m,s)
return int(h) * 3600 + int(m) * 60 + int(s)
def seconds2time(sec):
m,s = divmod(sec,60)
h,m = divmod(m,60)
return "%02d:%02d:%02d" % (h,m,s)
sts = time2seconds(st) #sts==27000
ets = ... | [
"xie@123"
] | xie@123 |
a74bde0893a5302682653398958b04c90b41cb37 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901020006/d09/main.py | 42592508b51512ae670f96763788b31a6785b3da | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 380 | py |
from mymodule import stats_word
import json
from os import path
file_path = path.join(path.dirname(path.abspath(__file__)),'tang300.json')
with open(file_path,'r',encoding='utf-8') as f:
text = f.read()
#print(type(text))
print(stats_word.stats_text_cn(text, 100))
#(text,100)
try:
text
except V... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
fdae1e83226e5788a9a2ec92bb2849240717e865 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03238/s789739973.py | bc41be8dca3f0131a037109cdd2108d71eb26a8c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | N = int(input())
if N == 1:
print('Hello World')
else:
A, B = (int(input()) for i in range(2))
print(A + B) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bd30a84a6bb91b917876f5bb84df79132e38f25d | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok_to_Cxy_focus/Pyr_3UNet/pyr_0s/L3/step10_a.py | 7555d178d947c31f0513120a9c845dfda6874925 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,844 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
1b7d4ebbcbcd6c71b0ece204a71490b6d0ff6eee | 54bc239124576563c1f0c72e381fb2a4fcaa6a9e | /pi_radio/rfm69_check.py | 31f5ae921c40cf198b267a1633a9b3c0be8346e3 | [
"MIT"
] | permissive | jonsampson/Adafruit_Learning_System_Guides | 79359154e26e710b088e0c1cbc9969a26a938a25 | b941d8209cec42e3dce5f5e6b533584e3e99ac73 | refs/heads/master | 2020-07-29T17:43:53.439741 | 2019-10-14T01:53:01 | 2019-10-14T01:53:01 | 209,904,940 | 3 | 1 | MIT | 2019-09-21T01:04:35 | 2019-09-21T01:04:34 | null | UTF-8 | Python | false | false | 1,901 | py | """
Wiring Check, Pi Radio w/RFM69
Learn Guide: https://learn.adafruit.com/lora-and-lorawan-for-raspberry-pi
Author: Brent Rubell for Adafruit Industries
"""
import time
import busio
from digitalio import DigitalInOut, Direction, Pull
import board
# Import the SSD1306 module.
import adafruit_ssd1306
# Import the RFM69... | [
"robots199@me.com"
] | robots199@me.com |
20188289723574f65674d61a6ae6b41fb7ee1fbe | 23af1e2b1f29be62926ed6a8e39b4462f07f5f2b | /atcoder.jp/abc083/abc083_b/Main.py | 2ff9f3b5baf786a9cda4cec8ef642757cc3f9a95 | [] | no_license | IKDrocket/Atcoder | 8ef382577a377a8f35890b24a49f681f00f2f047 | fc19379de2ddf62a61b67eda33bf8aa29d503685 | refs/heads/main | 2023-02-09T11:58:00.353304 | 2021-01-02T12:06:20 | 2021-01-02T12:06:20 | 318,876,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | n, a, b = map(int, input().split())
sum_all = 0
for i in range(1,n+1):
sum = 0
i_ = i
while i_ > 0:
sum += i_ % 10
i_ //= 10
if a <= sum <= b:
sum_all += i
print(sum_all) | [
"ikdrocket@IKDrocket.local"
] | ikdrocket@IKDrocket.local |
57a6817901465d91a6e6d6f0af55ec0f8352a4a4 | 94328dfc739d210ebe6eaf3bb6bfb3ce2edaa3e2 | /apps/jobbrowser/src/jobbrowser/yarn_models.py | a936b454e79504f99851537a6bec8c57a8f4eed5 | [
"Apache-2.0"
] | permissive | anandaverma/hue | edf06a914b76ac96a75f879d8df1710a578375f7 | 3d6c013e63e844b840189785bec8bd7853936a7d | refs/heads/master | 2021-01-18T18:18:09.978337 | 2013-04-13T00:37:56 | 2013-04-13T00:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,956 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain@cloudera.com"
] | romain@cloudera.com |
c76f1886c0e0adbf7a92a50249fc2c981ca83355 | cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3 | /k2/addons/k2-consolerunner/consolerunner/consolerunner.py | 801d65cee50c7c8e4a58c9cb249ac9b2a1f14ce1 | [
"Apache-2.0"
] | permissive | Zenterio/opensourcelib | f005174c049df0f5deddc1269d7c343a8e219ca5 | 07f0dabffaceb7b6202b5f691cbad46dac5868a8 | refs/heads/master | 2022-12-09T02:53:36.444094 | 2021-04-28T18:03:24 | 2021-05-27T13:14:58 | 186,092,997 | 5 | 6 | NOASSERTION | 2022-12-07T23:37:26 | 2019-05-11T05:44:37 | Groovy | UTF-8 | Python | false | false | 5,274 | py | """
Runs shell commands and parses the console output.
Patterns may be provided for which output lines constitute a test failure and
what lines constitute a success. Multiple patterns may be provided.
If a pattern provides a match-group called 'name', that match group will be
used when generating the test report. Oth... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
4187d2bccab4d53a24c5b3006e87206d36d13e4e | 42fbeb5277b5c10a93ea974df4eb78ec73c5d336 | /EMBRACE/modules/unrotate_pole.py | aadf48c72699c134da926254725a009598b67dfc | [
"MIT"
] | permissive | peterwilletts24/Python-Scripts | 608351959bde26af7e1a9dbe52bff9a976db4991 | 975d6b2e2923cbde40d2760eb9574acee2e10388 | refs/heads/master | 2016-09-06T19:42:20.359943 | 2015-04-15T14:50:29 | 2015-04-15T14:50:29 | 21,125,908 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | def unrotate_pole(rotated_lons, rotated_lats, pole_lon, pole_lat):
import cartopy.crs as ccrs
"""
Convert rotated-pole lons and lats to unrotated ones.
Example::
lons, lats = unrotate_pole(grid_lons, grid_lats, pole_lon, pole_lat)
.. note:: Uses proj.4 to perform the conversion.
... | [
"peterwilletts24@gmail.com"
] | peterwilletts24@gmail.com |
0a8a864670fb4f4707f1e3a457e47ff5028da0ad | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_026/ch38_2020_04_09_22_44_27_271414.py | 2838560040c5198efb615044be44677c63852f38 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | def quantos_uns(numero):
i=0
n=0
numero = str(numero)
while i<len(numero):
if numero[n]==1:
n+=1
i+=1
print( n) | [
"you@example.com"
] | you@example.com |
9bfc215d4cfdf3e1112493da15132d541959da86 | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/services/services/feed_item_service/transports/grpc.py | 267d8ad0334b02eea97528066aac5dd202e0b78a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 12,389 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
03f369ef32d51060f4ef394889f4839108c53da3 | 4855a73f552c79f9123990a66b4fd29f829cd07d | /JZOffer/JZOffer39.py | 36b212adaaffe1457169f4300605618e75ed8402 | [] | no_license | EmlynQuan/Programming-Python | e2d47de71c4d5981b79bba3b4bf9ac9cf7115484 | 11bbc8aa58b5f16d7cfadd30c7eea241e6dd7bdd | refs/heads/master | 2023-06-24T06:50:27.255834 | 2021-07-29T15:47:50 | 2021-07-29T15:47:50 | 362,500,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # coding=utf-8
import collections
def majorityElement(nums):
"""
:type nums: List[int]
:rtype: int
"""
# 哈希表统计
# 将数组 nums 排序,数组中点的元素 一定为半数以上的数
# 摩尔投票法
n = len(nums)
myDict = collections.Counter(nums)
for key in myDict.keys():
if myDict[key] > n // 2:
return k... | [
"2569627904@qq.com"
] | 2569627904@qq.com |
c5d212685cdcdabaf9664218cdbcc844d1181ef3 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /University/w3school/1.py | 543afd863937048d609046c7004ae068c18623c8 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | if 5 > 2:
print ("5 is greater than 2")
print ("Hello, World!")
#comment:
#hjhjdhfjdhjh
#jfkdjkdjf
""" fddjfkjdkfdif
jjfjojg
kkrekej"""
| [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
2eeffdd8c3020e37afbc8d10c78ce45a43dcaedc | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Sansa and XOR/test.py | 0acd8aa3d243d22b0bb3960e90776737e4c2f308 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 414 | py | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.sansaXor([1, 2, 3]), 2)
self.assertEqual(solution.sansaXor([4, 5, 7, 5]), 0)
def test_case_1(self):
self.assertEqual(solution.sansaXor([98, 74, 12]), 110)
self.ass... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
bc6409d0e34de0d45a0418c21d256f6a2c8d974a | 94f5bae62a2ed5bf5bd69995d9604c191b6333a0 | /Projects/GAE/src/lib/django/django/core/handlers/wsgi.py | 7de39edbf7140313155fd2abf85c79229f74ac9c | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sethc23/BD_Scripts | 5eef664af935fb38ad28581faaedb51075338553 | 989d62b77ca70d239ae3cf99149c5215f6e6119e | refs/heads/master | 2020-04-12T17:36:17.600971 | 2017-02-22T09:46:27 | 2017-02-22T09:46:27 | 30,630,547 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,025 | py | from django.core.handlers.base import BaseHandler
from django.core import signals
from django.dispatch import dispatcher
from django.utils import datastructures
from django import http
from pprint import pformat
from shutil import copyfileobj
try:
from cStringIO import StringIO
except ImportError:
from StringIO... | [
"ub2@SERVER2.local"
] | ub2@SERVER2.local |
1a435a6353df4d2cdd46951b75bba2167209852b | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/unsignedShort/Schema+Instance/NISTXML-SV-IV-atomic-unsignedShort-enumeration-5-1.py | f6a8a0805c472994db4b6ddcc5b59b64cc19dcd2 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 589 | py | from output.models.nist_data.atomic.unsigned_short.schema_instance.nistschema_sv_iv_atomic_unsigned_short_enumeration_5_xsd.nistschema_sv_iv_atomic_unsigned_short_enumeration_5 import NistschemaSvIvAtomicUnsignedShortEnumeration5
from output.models.nist_data.atomic.unsigned_short.schema_instance.nistschema_sv_iv_atomic... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
0ee7ed54c0ee20becb3aac6b32eb9b1e4fa7f9f6 | c2f7566a917be17be73cae0fb949a24d6908d1f9 | /tests/tests_algorithms/test_baseline.py | 27c62b14d6df094c4963172ae91f64861a986160 | [
"MIT"
] | permissive | jeisc/mljar-supervised | 12a70a8e658e7dfdc8ddf06f9526e163a9bc62f2 | aaa34592745433d1531bcef43598865c81ef8bae | refs/heads/master | 2022-11-13T19:47:12.774939 | 2020-07-10T07:15:46 | 2020-07-10T07:15:46 | 278,840,661 | 1 | 0 | MIT | 2020-07-11T10:38:49 | 2020-07-11T10:38:49 | null | UTF-8 | Python | false | false | 2,455 | py | import unittest
import tempfile
import json
import numpy as np
import pandas as pd
from numpy.testing import assert_almost_equal
from sklearn import datasets
from supervised.algorithms.baseline import (
BaselineClassifierAlgorithm,
BaselineRegressorAlgorithm,
)
from supervised.utils.metric import Metric
impo... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
be4958600f59d45a52c317b203f36744286231a0 | 6005185e6ed7e1329d8973b78a112bbe17dc5f32 | /users/models.py | 1464dbe20c874089c1314e15dc0d9cdac586b715 | [] | no_license | emetowinner/blog_app | 126de438d2824a4323f19c3d4e0dc930c7f1c370 | 8519c57513240d69fc8a5e507c2a6605edd088db | refs/heads/master | 2022-08-11T12:46:45.607542 | 2020-05-21T09:55:31 | 2020-05-21T09:55:31 | 265,810,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class Profile(models.Model):
age = models.IntegerField(blank=True, null=True)
country = models.CharField(blank=True, max_length=100)
state = models.CharField(blank=True, max_length=100)
city = models.CharFiel... | [
"emetowinner@gmail.com"
] | emetowinner@gmail.com |
e23c0c3420a20840605ce6cab2cb4c1cb8a123b6 | 450054d8b92303ed7b9ba3fd133bb2f18e49d0c9 | /swagger_client/api/analysis_api.py | d3d7490dc89d23f388cc38e537b1c2adef476ece | [] | no_license | adelavega/pyns-auto-swagger | 57fd11bd7b3b701857ddf3fc407e4645ead060a1 | 447cc2256ac3186800234a60cef68adfe22b2ad0 | refs/heads/master | 2020-03-25T05:55:09.221219 | 2018-08-03T20:55:06 | 2018-08-03T20:55:06 | 143,472,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,024 | py | # coding: utf-8
"""
neuroscout
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # ... | [
"delavega@utexas.edu"
] | delavega@utexas.edu |
aad64141da6d68c5afc538319875d84dc9b83c5b | b72d355d84eb9bf41b58e3fdfcfeaf7ac1b0b15d | /001_plot_from_matrices.py | 1b72d09516434f052bce6067b2f73e3fa097b6fd | [] | no_license | lmether/CoupledBunchAnalysis | 3a53819c30b025d5f5fc0a052b8be05484bc10d2 | dfe1ec82faf767ca085a319699029e131be2f057 | refs/heads/master | 2020-05-13T22:32:17.038588 | 2018-12-09T18:46:04 | 2018-12-09T18:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | import sys, os
import numpy as np
import matplotlib.pyplot as plt
import myfilemanager as mfm
tag = 'test3_on_HPC_25ns'
tag = 'test9_on_HPC_25ns_correct'
tag = 'test11_on_HPC_25ns_more_slices'
tag = 'test12_onHPC_288b'
ob = mfm.myloadmat_to_obj(tag+'_matrices.mat')
x_mat = ob.x_mat
y_mat = ob.y_mat
n_mat = ob.n_m... | [
"giovanni.iadarola@cern.ch"
] | giovanni.iadarola@cern.ch |
40b5be076ad0458e8fd6327d23d4b799d0787c44 | f60b0c051d8ba5088dc4246679b870f577646bb0 | /146 Mon, 23 Apr 2012 13:15:26.py | 6fdcd57c1811c4c3e04019979990ded18c2a44ea | [] | no_license | joopeed/lp1 | bbd11fe7749356828a16fc45703e010db5d35464 | 117bf769a048ec1dff53f779b26c9e7adec052ba | refs/heads/master | 2021-01-02T22:50:08.600553 | 2014-04-03T21:15:40 | 2014-04-03T21:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Date: Mon, 23 Apr 2012 13:15:26 +0000
# Question 146
# JOAO PEDRO FERREIRA - 21211940
## PROGRAMACAO1 - UFCG 2012.1 - JORGE ABRANTES
### QUESTAO 146
def num_espacos(labirinto):
conta=0
for i in range(len(labirinto)):
for j in range(len(labirinto[0])):
... | [
"joopeeds@gmail.com"
] | joopeeds@gmail.com |
50b6152c6cd68b015eec65191ff7ecdcc3901a61 | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/TestScript/UI/suite_UI_53/tst_UI_53_DeviceTypeBox_NewDevices/test.py | c4a944169ef67e16b04f2b44e9be62ea1f48d3c1 | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | ######################
#@author: Pamela Vinco
######################
from API.ComponentBox import ComponentBoxConst
from API.Utility.Util import Util
from API.Device.Hub.Hub import Hub
from API.Device.EndDevice.TV.TV import TV
from API.Device.EndDevice.PC.PC import PC
from API.Device.EndDevice.VoIP.VoIP import VoIP
fr... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
990ffe710c092da93d93a6e4c124f78eb639a504 | c247bf9c750a3198a7433892ed75890840544447 | /main.py | 47eb9981ff42817ca0bd2af13c7b9dbfdb72e6ca | [] | no_license | johnkerl/python-package-skeleton | 10484a8627a3e0df44ef625c1e75797163c5169e | 8260ed5ff76a59ba546490da429ed0ed9bc15fb6 | refs/heads/main | 2023-04-10T03:17:33.702822 | 2020-08-02T21:11:51 | 2020-08-02T21:11:51 | 283,578,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/env python
import foopkg.foofile
for n in range(1, 11):
print("%4d %4d %4d" % (n, foopkg.foofile.square(n), foopkg.foofile.cube(n)))
| [
"kerl.john.r@gmail.com"
] | kerl.john.r@gmail.com |
27ba49e7d85475e810ec5211ee3b4325df7687b8 | 7a67a87b56d4f394409a8162428c14e3fe63b3bd | /02-web-starter/final_2_blue_yellow_app/setup.py | 49f681c4f44541aa7e6019acca66a7195ce7d026 | [
"MIT"
] | permissive | rvsp/python-for-entrepreneurs-course-demos | 8a80710742ff5da0cc7a779a140bf549c744f37b | c3d9222e20ceade92f4bdd80ec2cb89c55898be0 | refs/heads/master | 2023-02-17T22:44:48.281254 | 2021-01-06T04:25:06 | 2021-01-06T04:25:06 | 117,702,387 | 0 | 0 | MIT | 2021-01-06T04:25:07 | 2018-01-16T15:33:30 | Python | UTF-8 | Python | false | false | 1,211 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_d... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
60af3165a17fc48fc31e0b4eb357fba889ece125 | 0f2043278815dc4dd8e1e0b7b48adc7def7799a0 | /src/python/pants/backend/python/lint/pylint/rules_integration_test.py | 5f5cc56e1139e65384a927e397f2acf61a71d959 | [
"Apache-2.0"
] | permissive | patricklaw/pants | ac3cdd391f4c11ef427457425ea12480a0d8aeed | 906099f5c0d2f9e6adcac23e030270c64ca519ae | refs/heads/main | 2021-11-19T02:24:08.328260 | 2021-09-26T17:20:32 | 2021-09-26T17:20:32 | 350,130,454 | 0 | 0 | Apache-2.0 | 2021-03-21T22:01:26 | 2021-03-21T22:01:25 | null | UTF-8 | Python | false | false | 15,499 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
import pytest
from pants.backend.python import target_types_rules
from pants.backend.python.lint.pylint import subsystem
f... | [
"noreply@github.com"
] | patricklaw.noreply@github.com |
28382fe7674ffa9caadf66bfdd4f4abb7387cc91 | 73dc6b3fdb07592f10b8e02b7ca053deb61a2dc9 | /msof_api/comments/models.py | 9916e16a93b312f954bc6a513a019cb6ccb5c5e9 | [] | no_license | likelion-kookmin/msof_api | 4143c09f93b68d219aa20de3bd57ec544c2bdf32 | f9fec7d31ebdb465a8935711da715db6d87c0fce | refs/heads/develop | 2023-06-28T15:35:45.240871 | 2021-07-31T16:38:35 | 2021-07-31T16:38:35 | 347,298,658 | 3 | 1 | null | 2021-07-31T16:38:36 | 2021-03-13T07:02:56 | Python | UTF-8 | Python | false | false | 2,217 | py | """# comments models
- Comment: 답변/댓글
"""
from django.db import models
from accounts.models import User
from msof_api.base_model import BaseModel
from msof_api.questions.models import Question
class Comment(BaseModel):
"""## Comment
- 답변 클래스
"""
STATUS_CHOICES = (
('T', 'Trash'), # ... | [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
68fe7a20ad47914159c5bc40182bebdf45b51434 | e111233b264eb57467ca12562a3f1d91155f0d18 | /일분배.py | 747205091e8c55a3f7fe61a4fc1ad2dce383c0d8 | [] | no_license | 01090841589/ATM | d440a112a47937d11f4c4d8df6817a76971c0888 | 44fa856a033d15c9281d2597f1b67ee5cec09934 | refs/heads/master | 2020-07-05T13:24:35.080738 | 2019-08-29T08:33:24 | 2019-08-29T08:33:24 | 202,659,466 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | def search_num(N, cnt, gone, total):
global result
if total < result:
return False
if cnt >= N:
result = max(result, total)
return False
for i in range(N):
if gone[i] == 1:
continue
gone[i] = 1
search_num(N, cnt+1 , gone, total*mat[cnt][i])
... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.