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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e73a05ec52d0355a85842ccce3a885e97d322841 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/content/DEPS | 4bddf330a520761c8e6c930b17b4baea616679d3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 3,879 | # Do NOT add chrome to the list below. We shouldn't be including files
# from src/chrome in src/content.
include_rules = [
# The subdirectories in content/ will manually allow their own include
# directories in content/ so we disallow all of them.
"-content",
"+content/app/resources/grit/content_resources.h",
... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com | |
abe97102d879e1c25515a0ddf84ed08265a1f2ec | 9f0e740c6486bcb12f038c443b039c886124e55c | /python-study/tools/tools/keystore/GenKeySigner.py | b599bec5c615113d30e7575b518a4486d508adb7 | [] | no_license | zfanai/python-study | 373ff09bd1e6be9e098bde924c98f5277ad58a54 | de11a6c8018730bb27e26808f5cbc0c615b4468f | refs/heads/master | 2021-01-18T17:59:16.817832 | 2017-11-06T09:33:21 | 2017-11-06T09:33:21 | 86,831,175 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 668 | py | # coding=gbk
import sys
import os
if 2 == len(sys.argv):
#print os.path.join(os.getcwd(), sys.argv[1])
#print os.path.join(os.getcwd(), sys.argv[2])
strJarFileName=os.path.join(os.getcwd(), sys.argv[1]);
print "输入的签名文件是:%s" % strJarFileName
else:
print "输入文件路径"
sys.exit(0)
KEYTOOL_CMD = "keyt... | [
"zf_sch@126.com"
] | zf_sch@126.com |
cb98e681ab70cf62af45a08f37caaccf7aea6859 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/search/documents/summary.py | 0713e7288a3dd219e9d601a408bb4d70c73289b5 | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from django_elasticsearch_dsl import Document, fields as es_fields
from django_elasticsearch_dsl.registries import registry
from researchhub.settings import (
ELASTICSEARCH_AUTO_REINDEX,
TESTING
)
from search.analyzers import title_analyzer
from summary.models import Summary
import utils.sentry as sentry
@re... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
21d5caf2707d77ba6c1633641dfdcc12f72e370e | d48f5d355a721280f5fd56f67f05d414f595c251 | /pycharm/job_search/search.py | 9e7f12d33bbc5126bb9db3248e3dddb354c739e9 | [] | no_license | santokalayil/Rust_Notebooks | 7517dadda3777fd5ce130f40ad039a480fde1ba4 | b5c239079db4e7eec670aab9619405c05a235285 | refs/heads/main | 2023-04-16T01:26:56.712343 | 2021-04-30T21:31:12 | 2021-04-30T21:31:12 | 363,260,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # pip install google
import os
import urllib
from googlesearch import search as _search
def _add_to_file(item, file_name):
with open(file_name, 'a') as file_object:
file_object.write(f'{item}\n')
def _run(search_query, text_file, **kwargs):
if text_file not in os.listdir():
wi... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
24010da0c26af51dce20efea2c1be897f39ee2b1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShHBJJMM/YW_HBJJMM_SHSJ_112.py | 19a4ad0509551d89fbc177ecd4862da12462c65c | [] | 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,189 | 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 log import *
sys.path.append("/home/yhl2/workspace/xtp_test/MoneyFund/moneyfundservice")
... | [
"418033945@qq.com"
] | 418033945@qq.com |
51db0e20f3a4908cea359578f85eb0caa6fe1815 | e912af291e1457c61606642f1c7700e678c77a27 | /python/560_subarray_sum_equals_K.py | f7e77a145f8ec5f44cc38ad5b749302db0b1c447 | [] | no_license | MakrisHuang/LeetCode | 325be680f8f67b0f34527914c6bd0a5a9e62e9c9 | 7609fbd164e3dbedc11308fdc24b57b5097ade81 | refs/heads/master | 2022-08-13T12:13:35.003830 | 2022-07-31T23:03:03 | 2022-07-31T23:03:03 | 128,767,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | from collections import defaultdict
class Solution:
def subarraySum(self, nums: List[int], k: int) -> int:
count = 0
sum = 0
occurrences = defaultdict(int) # key: sum, value: occurrence times
occurrences[0] = 1
for i in nums:
sum += i
if sum - k i... | [
"vallwesture@gmail.com"
] | vallwesture@gmail.com |
0ce290b4a1ccafb29a96606116454afcb6d63098 | fb72aef4db762749f3ac4bc08da36d6accee0697 | /modules/photons_themes/collections.py | 359dbd750e637c1c9a451e1b3adffd243fb001f7 | [
"MIT"
] | permissive | xbliss/photons-core | 47698cc44ea80354e0dcabe42d8d370ab0623f4b | 3aca907ff29adffcab4fc22551511c5d25b8c2b7 | refs/heads/master | 2022-11-07T12:33:09.951104 | 2020-05-07T09:10:35 | 2020-05-07T09:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | from photons_themes.theme import ThemeColor
class ZoneColors:
"""
Representation of colors on a zone
"""
def __init__(self):
self._colors = []
def add_hsbk(self, hsbk):
"""
Add a ThemeColor instance
The idea is you use this function to add each zone in order.
... | [
"stephen@delfick.com"
] | stephen@delfick.com |
adf41d6bff071e121098205bc52eb1e19fa80e27 | 79737ef5b519c00d61d460451773cdf3dd7a086b | /yalantis/courses/dto.py | b19fd738ce21c72c426620e17b4d3eae2cc9a4ad | [] | no_license | stsh1119/Yalantis_task | ab1145c39944f2db67e4b572995cc3a4dcf39f49 | 9c8eb996021c8969f55cde3c00bbf9a8219a37d3 | refs/heads/main | 2023-04-30T21:57:43.310700 | 2021-05-02T18:30:26 | 2021-05-02T18:30:26 | 362,245,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from pydantic import BaseModel, Field, validator
from datetime import datetime
class CourseDto(BaseModel):
name: str = Field(min_length=5, max_length=100)
start_date: datetime
end_date: datetime
lectures_amount: int
@validator('end_date')
def end_date_must_be_later_than_start_date(cls, v, val... | [
"stshlaptop@gmail.com"
] | stshlaptop@gmail.com |
9f119d5b473cd71f48040280bf1fd66e8febda37 | b3b066a566618f49ae83c81e963543a9b956a00a | /Statistical Thinking in Python (Part 1)/03_Thinking probabilistically-- Discrete variables/08_Plotting the Binomial PMF.py | 517032e86b836f8eccb638e2f669e96a312f46a6 | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 2,212 | py | '''
Plotting the Binomial PMF
100xp
As mentioned in the video, plotting a nice looking PMF requires a bit of matplotlib
trickery that we will not go into here. Instead, we will plot the PMF of the Binomial
distribution as a histogram with skills you have already learned. The trick is setting
up the edges of the bins t... | [
"Your-Email"
] | Your-Email |
4e6c7bb668401577839eaef145ff5e971097f59d | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /network/remoteshell/telnet-bsd/actions.py | cf124eeb0fbaf5a1f09d4e506b956d13cf9da65f | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 499 | 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("--enable-nls")
d... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
d66780ba96a3025014dfd2f08fc6a169b08fa9a2 | 1b77f98443b885412f563355dd051acf7e9d8c9f | /archlinuxcn/android-ndk/lilac.py | 6b94e765481c7f4fa7b3e98fbd03a7f2b3be0f25 | [] | no_license | hassoon1986/repo | ee24b8c83ff8aef9630eb56bffde9bc6c8badf48 | 04766bc00c02288bee718f428b54c0915ba31a38 | refs/heads/master | 2022-12-13T04:42:06.481477 | 2020-08-30T06:45:52 | 2020-08-30T06:45:52 | 291,433,108 | 1 | 0 | null | 2020-08-30T08:45:50 | 2020-08-30T08:45:49 | null | UTF-8 | Python | false | false | 170 | py | # Trimmed lilac.py
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver)
def post_build():
git_pkgbuild_commit()
update_aur_repo()
| [
"yan12125@gmail.com"
] | yan12125@gmail.com |
a84acf62ed7b31ab50e8a1cc6f1a458871f51cb4 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py | 753621b8df94d359672a489db556e30b7488ae0a | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:09171b3ed1372b4165149e219218be4a0425d4c515f9596621e38f2043cdc2e2
size 681
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
0aa83217419c6c135c95034cbea0f9e09cf08118 | 04768a2eb1d6a76835fbc055ed88f791661656e6 | /05-day/test4/booktest/migrations/0001_initial.py | cbce3c1ca2c77c465dde99a0f86b1d1164d228a3 | [] | no_license | XUANXUANXU/5-django | 668d8b5ad4cc50996632e9474cd93e17bce36b66 | e82714b67afd39018cc31d177aa6fba0e7420daa | refs/heads/master | 2020-04-13T07:37:41.532727 | 2018-12-25T07:19:03 | 2018-12-25T07:19:03 | 163,057,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-08-12 10:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AccountI... | [
"302738630@qq.com"
] | 302738630@qq.com |
bca05d5bdfe1a1e633c08bb434c9f74e584831a7 | 4bcae7ca3aed842d647d9112547522cffa805d51 | /0045.跳跃游戏-ii.py | fd99d06fd024d0a401e38c458a6cd6618541f7ed | [] | no_license | SLKyrim/vscode-leetcode | fd5a163f801661db0dfae1d4fdfa07b79fdb82b6 | 65a271c05258f447d3e56755726f02179780eb8a | refs/heads/master | 2021-07-03T03:15:28.883786 | 2021-02-23T06:19:18 | 2021-02-23T06:19:18 | 226,062,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,989 | py | #
# @lc app=leetcode.cn id=45 lang=python3
#
# [45] 跳跃游戏 II
#
# https://leetcode-cn.com/problems/jump-game-ii/description/
#
# algorithms
# Hard (32.38%)
# Likes: 376
# Dislikes: 0
# Total Accepted: 32K
# Total Submissions: 96.2K
# Testcase Example: '[2,3,1,1,4]'
#
# 给定一个非负整数数组,你最初位于数组的第一个位置。
#
# 数组中的每个元素代表你在该位... | [
"623962644@qq.com"
] | 623962644@qq.com |
1314b88ac884f5dac03694b313caff1ba8fecba6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/3130.py | d879c4079469e55f4c67c4c5a0d14fd3a1d5600e | [] | 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,227 | py | # Google Code Jam (2013): Qualification Round
# Code Jam Utils
# Can be found on Github's Gist at:
# https://gist.github.com/Zren/5376385
from codejamutils import *
problem_id = 'B'
# problem_size = 'sample'
# problem_size = 'small'
problem_size = 'large'
opt_args = {
#'practice': True,
'log_... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ad100d93e0725e53ea4e57e5051cdc8f5988ce56 | 384813261c9e8d9ee03e141ba7270c48592064e9 | /new_project/fastsklearnfeature/declarative_automl/optuna_package/feature_preprocessing/SelectKBestOptuna.py | 16d8a38ffc19812f51bd2fd738007ec5cdf55e5d | [] | no_license | pratyushagnihotri/DFS | b99d87c085e67888b81c19629c338dae92272a3b | 3b60e574905e93c24a2b883cc251ecc286cb2263 | refs/heads/master | 2023-04-18T22:17:36.816581 | 2021-04-20T13:41:29 | 2021-04-20T13:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | from sklearn.feature_selection import SelectPercentile
from sklearn.feature_selection.from_model import _get_feature_importances
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.feature_selection import SelectKBest
import sklearn
from fastsklearnfeature.declarative_automl.optuna_package.optuna_utils impor... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
7b8259f7286d6b3a3bd76fff394fd7c861a7e0cf | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/396/usersdata/285/81060/submittedfiles/av1_programa2.py | 588440d2b0b90f5e9a964045ecf30c4ddb7c2d41 | [] | 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 | 2,163 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n1=int(input("insira o valor de n1: "))
n2=int(input("insira o valor de n2: "))
n3=int(input("insira o valor de n3: "))
n4=int(input("insira o valor de n4: "))
n5=int(input("insira o valor de n5: "))
n6=int(input("insira o valor de n6: "))
n7=int(input("insira o val... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0cf72458010aa3709542cace33734a22f867a027 | 37872e29f2025af79ed3ce48a2ef010a7e0f1a3e | /venv1/Lib/site-packages/snowflake/client/__init__.py | dbf359392b44a546a6f4370f09a145518c276fa4 | [] | no_license | leozll/Python_demo | 892de135c30144c3b8c28288b6c23b53ebc583e5 | d1b2faef52aed1e10cb9c232b8faef158410fad9 | refs/heads/master | 2020-04-04T18:09:25.945945 | 2018-12-29T03:47:06 | 2018-12-29T03:47:06 | 156,152,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import requests
import json
class SnowflakeClient(object):
def __init__(self, host, port):
self.host = host
self.port = port
self.api_uri = 'http://%s:%s/' % (self.host, self.port)
def get_guid(self):
res = requests.get(self.api_uri)
return int(res.text)
def get_s... | [
"zllong145511"
] | zllong145511 |
1425a438ff5caa905937cf7e33796d39f0fe9929 | 21b461b71b4c63f7aac341bd12ba35d211c7956e | /codes/05plot/histogram/normalized_histogram.py | 7b04a8b26163b1a15f9fd014d8c2cce8cdf0fa7f | [] | no_license | Ziaeemehr/workshop_scripting | cebdcb552720f31fd6524fd43f257ca46baf70e2 | ed5f232f6737bc9f750d704455442f239d4f0561 | refs/heads/main | 2023-08-22T23:00:36.121267 | 2023-07-19T10:53:41 | 2023-07-19T10:53:41 | 153,342,386 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.random.randn(10000)
fig = plt.figure()
ax = fig.add_subplot(111)
n, bins, rectangles = ax.hist(x, 50, density=True)
# fig.canvas.draw()
plt.show()
| [
"a.ziaeemehr@gmail.com"
] | a.ziaeemehr@gmail.com |
9f858e3de9b23839e71072bef406eaa8c2426642 | edf31957838a65e989d5eb5e8118254ac2413fc8 | /parakeet/transforms/permute_reductions.py | 56f9a4f677101c414f06752a7b3fee9a732fe156 | [
"BSD-3-Clause"
] | permissive | iskandr/parakeet | e35814f9030b9e8508a7049b62f94eee5b8c5296 | d9089f999cc4a417d121970b2a447d5e524a3d3b | refs/heads/master | 2021-07-18T19:03:05.666898 | 2019-03-13T17:20:20 | 2019-03-13T17:20:20 | 5,889,813 | 69 | 7 | NOASSERTION | 2021-07-17T21:43:03 | 2012-09-20T16:54:18 | Python | UTF-8 | Python | false | false | 1,756 | py | from ..builder import build_fn
from ..ndtypes import ArrayT, lower_rank
from ..prims import Prim
from ..syntax import Return, Map
from ..syntax.helpers import is_identity_fn, unwrap_constant
from transform import Transform
def get_nested_map(fn):
if len(fn.body) != 1:
return None
stmt = fn.body[0]
if stm... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
5636707ee445a2ffa0f842d50f036a902fbb482f | 8bb94363c45803d10b101c070ae0a569bcc66bd6 | /Educational Round 15_A.py | a80fd4d6a3e74e8897f69cfdb6409ba693e212f9 | [] | no_license | rpm1995/Codeforces | 17506dcf2f515226b2208e3e103db30b94d0d30b | 487853264145872e059a76d8bba534da264e8699 | refs/heads/master | 2021-05-23T14:35:34.879518 | 2020-09-08T01:59:05 | 2020-09-08T01:59:05 | 253,342,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | n = int(input())
arr = list(map(int, input().split()))
count = 1
ans = 1
for index in range(1, n):
if arr[index] > arr[index-1]:
count += 1
else:
count = 1
ans = max(ans, count)
print(ans)
| [
"31997276+rpm1995@users.noreply.github.com"
] | 31997276+rpm1995@users.noreply.github.com |
fa742f33ccad3f7119040a7a242fc2894a500282 | a41457257c588d2a5a9509c55257df9f702c9430 | /src/features/OOneighbors.py | 7b613f16bac2ff071c896a8875ae8319e416fc92 | [] | no_license | schwancr/water | be096962748480d57ce899fd3559dd1989abee0b | 01ab34d3c4240ea9df96a018a7b89dbbe7117a45 | refs/heads/master | 2020-04-05T23:44:06.180343 | 2014-12-28T19:46:52 | 2014-12-28T19:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import numpy as np
from .base import BaseTransformer
import mdtraj as md
from .utils import get_square_distances
import copy
import IPython
class OOneighbors(BaseTransformer):
"""
Compute the OO distances and sort them for each water molecule
Parameters
----------
n_waters : int, optional
... | [
"schwancr@stanford.edu"
] | schwancr@stanford.edu |
455b8a215483b52cd4a3d5f6fcf75b9851e8bcd7 | fd7f7e9c01344b3c3eb8d54b8713153a062eea74 | /docs/source/tutorials/src/ucs/polyline3d.py | d323ea975ec381484c468483263cf158a5fb89c4 | [
"MIT"
] | permissive | bagumondigi/ezdxf | 7843dec2d5f129d79944bc75f333fae33dd4bb11 | 85bdeefc602c070d38d99bf9f437b48bef7460aa | refs/heads/master | 2023-02-18T04:09:17.043410 | 2021-01-09T10:59:47 | 2021-01-09T10:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # Copyright (c) 2020 Manfred Moitzi
# License: MIT License
from pathlib import Path
OUT_DIR = Path('~/Desktop/Outbox').expanduser()
import math
import ezdxf
from ezdxf.math import UCS
doc = ezdxf.new('R2010')
msp = doc.modelspace()
# using an UCS simplifies 3D operations, but UCS definition can happen later
# calcul... | [
"me@mozman.at"
] | me@mozman.at |
f48fed8fbb9cb25e5b7b4bbb2cd23bc4f29ceb18 | 614ee629aadd3e12256dc4a383eccd0ddf16fe5a | /testing/wait_for_kubeflow.py | c00d1b3ca7c32f86876d52094ed223cf4319c51a | [
"Apache-2.0"
] | permissive | hmizuma/kubeflow | 06298fb7b2382ea236e2201bc18ed1e06eb8bed4 | 9647149083b7090cbe8b3d93f864d81e63b0067a | refs/heads/master | 2020-03-31T11:09:48.413632 | 2018-10-11T19:07:43 | 2018-10-11T19:11:00 | 152,165,761 | 0 | 0 | Apache-2.0 | 2018-10-09T00:50:57 | 2018-10-09T00:51:13 | null | UTF-8 | Python | false | false | 1,525 | py | """Wait for Kubeflow to be deployed."""
import argparse
import logging
from testing import deploy_utils
from kubeflow.testing import test_helper
from kubeflow.testing import util # pylint: disable=no-name-in-module
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"--namespace", defau... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
dc8a055216007f3a5d2122ad9d34bd2a358f4726 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/management_group_paged.py | 04ad8581510fc92ff23ca223e8587164cd7e0955 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 960 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
49dde84fb44327191f1a1901fbd68dfb1a948c13 | 6fdf0ad8a70cfe666ab1cae331ddf751178b0f34 | /Python/Backtracking/problem_79. Word Search.py | c39d649e910fd7555bf78b78b3b4843a11c151ac | [] | no_license | vigneshthiagarajan/Leetcode_prep | 3aa46f90af084d6100cd61af28767e811c848d4e | 1f087564e9b68f85d9974c3643538b8370ba82e3 | refs/heads/main | 2023-06-19T06:47:00.388621 | 2021-07-12T04:54:32 | 2021-07-12T04:54:32 | 356,921,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | class Solution:
def exist(self, board: List[List[str]], word: str) -> bool:
ROWS, COLS = len(board), len(board[0])
# store values (path location to avoid revisiting)
path = set()
def dfs(row, column, seek_char):
if seek_char == len(word):
return True
... | [
"vigneshthiagaraj@gmail.com"
] | vigneshthiagaraj@gmail.com |
6e1f4446d9c6e61ac3fcae638f2566546e7a6f54 | 77beefcfbccca789210364fc7fab3fc9508b1a02 | /server.py | 6622ec9e9e6f7115b3bf4c7cc4453a2114840de8 | [] | no_license | cgracedev/MVC_Python_1 | ce05e08b1b8922558ef7244921d800e4227b5ef9 | b6daae43af2d450f0013b872a7dcaaac2049f8f1 | refs/heads/master | 2023-06-05T04:42:23.181976 | 2021-06-29T16:58:05 | 2021-06-29T16:58:05 | 381,436,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from wsgiref.simple_server import make_server
import wsgi
# ===========================
#
# 0.1 Server
#
# ===========================
PORT = 8001
print("Open: http://127.0.0.1:{0}/".format(PORT))
httpd = make_server('', PORT, wsgi.application)
httpd.serve_forever()
| [
"pahaz.blinov@gmail.com"
] | pahaz.blinov@gmail.com |
57d67de0e305c902f8f682d239ceb91eb3e19f3b | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/ffmpeg/ops/gen_decode_audio_op_py.py | dffc53fd2902bcb4e8c1505c65f123abd397e8c9 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a140d778b63a774ed38be65f8577359c8b50f01eeb823b6c1fd1bc61eabf680
size 2848
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
9fccf0392ab349af10ee9f804386b1404b0fe641 | 6d25434ca8ce03f8fef3247fd4fc3a1707f380fc | /[0009][Easy][Palindrome_Number][math]/Palindrome_Number_2.py | c67fa378b0bdff4f0cf7e5ac59d195d28abc9dc0 | [] | no_license | sky-dream/LeetCodeProblemsStudy | 145f620e217f54b5b124de09624c87821a5bea1b | e0fde671cdc9e53b83a66632935f98931d729de9 | refs/heads/master | 2020-09-13T08:58:30.712604 | 2020-09-09T15:54:06 | 2020-09-09T15:54:06 | 222,716,337 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # leetcode time cost : 100 ms
# leetcode memory cost : 13.8 MB
# Time Complexity: O(N)
# Space Complexity: O(1)
# solution 2, convert int value into num list
class Solution:
def isPalindrome(self, x: int) -> bool:
if x<0:
return False
nums = []
while x>0:
num =... | [
"xxm1263476788@126.com"
] | xxm1263476788@126.com |
f51dac07cbce60b0e882b7eece1c15cb8f37d157 | 602158267284ad23bd9f7709b7f88af814b1564d | /UserProfiles/models.py | 2f05ddf1aa022b786a6c19368ab627aec953da67 | [
"MIT"
] | permissive | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 594d0676ed5a4b15f98db553f9738a0afdfbcc2b | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | refs/heads/master | 2022-03-10T04:35:30.938151 | 2022-02-24T01:19:22 | 2022-02-24T01:19:22 | 196,897,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #Non project imports
from django.db import models
from django.conf import settings
import datetime
#Project imports
# Create your models here.
class UserProfileModel(models.Model):
Id = models.AutoField(primary_key=True)
UserProfileRelation = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CAS... | [
"milogoodfellowworkemail@gmail.com"
] | milogoodfellowworkemail@gmail.com |
788fead693d37df2a18c70d02ae6be8d508695ed | be691b23dea7c96b78867e37ca8ca38e994b4afa | /qcloudapi/common/sign.py | dde954cbb2fe0ff0d6bad213bdb83d18d417f77b | [
"Apache-2.0"
] | permissive | aiden0z/qcloudapi-sdk-python | f0e43dd083569ecc3ccc29324b9654daace50838 | 80a1e560e8f4a373544c55658385d60ecb1e9285 | refs/heads/master | 2021-01-11T10:10:02.095944 | 2016-11-03T15:22:11 | 2016-11-03T15:26:55 | 72,758,701 | 2 | 1 | null | 2016-11-03T15:20:56 | 2016-11-03T15:20:56 | null | UTF-8 | Python | false | false | 637 | py | # -*- coding: utf-8 -*-
import hmac
import binascii
import hashlib
def sign(secretKey, requestHost, requestUri, params, method='GET'):
d = {}
for key in params:
if method == 'post' and str(params[key])[0:1] == '@':
continue
d[key] = params[key]
srcStr = method.upper() + reque... | [
"aiden0xz@gmail.com"
] | aiden0xz@gmail.com |
3ac43819bd70fd56b4582082d60c1b7b78e3cc46 | 41890f62e6af50205257c54cc588e18fe0b10d4e | /pontoon/sync/formats/ftl.py | 964acf7ac0da8ec10e3aef09f33ac22abb45119a | [
"BSD-3-Clause"
] | permissive | naveenjafer/pontoon | 4cc933154e9e1f80063e5c4cb7fb4004b8909c03 | 0e3a54ec80d131a5853f73529067cd8d10ced614 | refs/heads/master | 2021-01-12T12:28:52.914480 | 2016-10-31T20:24:23 | 2016-10-31T20:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,089 | py | from __future__ import absolute_import
import codecs
import copy
import logging
import os
from ftl.format.parser import FTLParser, ParseContext
from ftl.format.serializer import FTLSerializer
from pontoon.sync import SyncError
from pontoon.sync.formats.base import ParsedResource
from pontoon.sync.vcs.models import V... | [
"matjaz.horvat@gmail.com"
] | matjaz.horvat@gmail.com |
f4f450a376f97b550804d200f6f22aa87abf6379 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2391/60653/304418.py | e391f5e13131e83b305ef08178bbf1e9eeb8d30f | [] | 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 | 374 | py | n = int(input())
a = []
index = []
for i in range(0, n):
a.append(input())
index.append(1)
m = int(input())
for i in range(0, m):
s = input()
if a.count(s) == 0:
print("WRONG")
elif index[a.index(s)] == 1:
print("OK")
index[a.index(s)] = 2
elif index[a.index(s)] == 2:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c0144b9cc48ec9754cb179434848257a49a3642a | 3eecaca9c842bffe8757917bcdb5a6911a7ed157 | /strings/string_strip.py | 8e5be49dc8dba5c0de0c192a713c30b2674c7558 | [] | no_license | matamkiran/python2020 | 2c79cb16e526ea7242e976c79c5db61d97326ec7 | c86b96ed3a266245f14b26fc7e8c0c35e76d4946 | refs/heads/master | 2023-02-10T06:21:50.609567 | 2023-02-01T18:43:28 | 2023-02-01T18:43:28 | 244,181,848 | 5 | 1 | null | 2021-04-28T17:34:01 | 2020-03-01T16:18:05 | Python | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 28 08:43:01 2021
@author: Divya
"""
s1=" hello today is thursday in january 2021 "
s2=s1.strip("i")
print(len(s1))
print(len(s2)) | [
"noreply@github.com"
] | matamkiran.noreply@github.com |
f8a3d56c20af90cf2cb55b484973f80abc4e2ca3 | 38382e23bf57eab86a4114b1c1096d0fc554f255 | /hazelcast/protocol/codec/client_destroy_proxy_codec.py | e047ba77e915584754a1b52567d3cc7fac6dff13 | [
"Apache-2.0"
] | permissive | carbonblack/hazelcast-python-client | e303c98dc724233376ab54270832bfd916426cea | b39bfaad138478e9a25c8a07f56626d542854d0c | refs/heads/gevent-3.12.3.1 | 2023-04-13T09:43:30.626269 | 2020-09-18T17:37:17 | 2020-09-18T17:37:17 | 110,181,474 | 3 | 1 | Apache-2.0 | 2020-12-01T17:45:42 | 2017-11-10T00:21:55 | Python | UTF-8 | Python | false | false | 953 | py | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.codec.client_message_type import *
REQUEST_TYPE = CLIENT_DESTROYPROXY
RESPONSE_TYPE = 100
RETRYABLE = False
def calculate_size(name, service_name):
""" Calculates the request payload siz... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
27aab182b07728cb4d279da014b66bd8a2bb192b | 7296bd842936b1980b2271cff84aec831fa7dceb | /PyQt5All/PyQt521/QLabel(movie).py | e3b37362ab97ae08dc5477468e2f29dc4fdd8397 | [] | no_license | redmorningcn/PyQT5Example | dbb1400e754909092dd13c111b4b241245a70720 | 4d4c44365d5d0bf3d9fd94922a13d0b50f17a95c | refs/heads/master | 2022-08-21T09:32:44.938410 | 2020-05-26T05:26:54 | 2020-05-26T05:26:54 | 266,952,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | #coding=utf-8
'''
这是一个关于标签(QLabel)的小例子-GIF动画显示!
文章链接:http://www.xdbcb8.com/archives/460.html
'''
import sys
from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QPushButton
from PyQt5.QtGui import QMovie, QPixmap
class Example(QWidget):
'''
GIF动画显示
'''
def __init__(self):
'''
一些... | [
"redmorningcn@qq.com"
] | redmorningcn@qq.com |
4107eb9e19e746eac21afe0667bdc3910f1de0d1 | d3cf78e6397aa3d4139f46ab24afb59abb0e6536 | /prpc/request.py | 3e7d6e6a511b88b44b24d3968cd228bfa833540d | [
"MIT"
] | permissive | einsfr/cmc-storage | d84a1bca326f5c619037fe50756a7300384e72b0 | b8f806ee343accf827c78c556a6bb4023bed4556 | refs/heads/master | 2021-01-13T02:45:23.245721 | 2016-12-20T21:24:21 | 2016-12-20T21:24:21 | 76,929,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import json
class Request:
def __init__(self, func_name: str, func_args: list, func_kwargs: dict):
self._func_name = func_name
self._func_args = func_args
self._func_kwargs = func_kwargs
@property
def func_name(self) -> str:
return self._func_name
@property
def f... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
688a6b1bf21482b83c7f677b2f3e39f1559200b0 | bb0085062202bc36d2a479ac3fac00702f6b9e6e | /pylib/simplelex.py | d70168be4c7ab05b72eacc755bace9bee566aa70 | [] | no_license | morike/winterpy | 882f349700e427d62b8e55282032e5769e0bbc8a | d74bade8501fc7c596aac2650c1b070754e71818 | refs/heads/master | 2023-06-17T01:23:03.329145 | 2021-07-17T05:34:55 | 2021-07-17T05:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | # modified version, originally from 风间星魂 <fengjianxinghun AT gmail>
# BSD Lisence
import re
from collections import UserString
_RE_Pattern = re.compile('').__class__
class Token:
'''useful attributes: pattern, idtype'''
def __init__(self, pat, idtype=None, flags=0):
self.pattern = pat if isinstance(pat, _RE_... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
1e9838e66f4aaa132b3f611bc032e88b15b51fdc | bf79a856c8a9dd2d72190883dc31f5e652a3b9e7 | /codelabs/flex_and_vision/main_test.py | 78e68b1ec390ab8b5a7fd212b2472c0cf5b654f6 | [
"Apache-2.0"
] | permissive | aog5/python-docs-samples | 5630c2864ee4f141e09d6909de3a3b7ac211703a | 300527f4b12369f6b0ad59fba42cc66159853bdd | refs/heads/master | 2022-10-28T04:48:52.060095 | 2022-10-18T06:50:12 | 2022-10-18T06:50:12 | 157,914,880 | 2 | 0 | Apache-2.0 | 2018-11-16T19:55:30 | 2018-11-16T19:55:30 | null | UTF-8 | Python | false | false | 1,556 | 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 a... | [
"noreply@github.com"
] | aog5.noreply@github.com |
9e2373add2a7b61723ce663df8b290fc55216a3d | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201113172704.py | ede0818288139a19e403e1f83e9148e723028593 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_New_User(request):
errors = User.objects.basic_validator(request.POST)
if len(errors) > 0:
for key, value in errors.items(... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
e36f95ca1ef2aaf75d4cae00f88c4dd191808c99 | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/ModuloTkinter/Aula025AppTempoCores.py | 8a4e791e9d788b1117e5122b0eb3ed4b80c90b9c | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from tkinter import *
import requests
import json
cidade = qualidade = categoria = app_cor = ""
root = Tk()
root.title("Doidera")
root.geometry("400x45+200+200")
try:
api_request = requests.get("http://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=90210&distance=25&API_KEY=E896... | [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
503d7fafd2d155b4dad9e5478183af5b7f993086 | 5c00b0626b4ec2bc428e565c97b4afc355198cc4 | /torchsim/core/eval/node_accessors/sp_node_accessor.py | df3e8e0235585895635fcfba2faa54b339b3c212 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | andreofner/torchsim | 8cff778a324d4f7dc040f11a12d0dc8cd66375b7 | 81d72b82ec96948c26d292d709f18c9c77a17ba4 | refs/heads/master | 2021-10-24T05:25:33.740521 | 2019-03-22T10:20:00 | 2019-03-22T10:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import torch
from torchsim.core.nodes.spatial_pooler_node import SpatialPoolerFlockNode
class SpatialPoolerFlockNodeAccessor:
"""Adaptor for the SpatialPoolerFlockNode allowing access to the basic measurable values."""
@staticmethod
def get_output_id(node: SpatialPoolerFlockNode) -> int:
"""Get ... | [
"jan.sinkora@goodai.com"
] | jan.sinkora@goodai.com |
95dc5375c6ea9eb7bc45bd76c10ab8993f43864d | 47ff744da519c525cccfad1d8cead74f7e2cd209 | /uge4/.history/exercise_20200220122938.py | 576d31ba0a92a448bd9bacc09ab907309c9131fb | [] | no_license | Leafmight/Python | f6098395a7a13dd6afe6eb312a3eb1f3dbe78b84 | d987f22477c77f3f21305eb922ae6855be483255 | refs/heads/master | 2020-12-21T14:21:06.802341 | 2020-05-22T10:21:37 | 2020-05-22T10:21:37 | 236,457,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import numpy as np
filename = './befkbhalderstatkode.csv'
dd = np.genfromtxt(filename, delimiter=',', dtype=np.uint, skip_header=1)
neighb = {1: 'Indre By', 2: 'Østerbro', 3: 'Nørrebro', 4: 'Vesterbro/Kgs. Enghave',
5: 'Valby', 6: 'Vanløse', 7: 'Brønshøj-Husum', 8: 'Bispebjerg', 9: 'Amager Øst',
10: 'A... | [
"jacobfolke@hotmail.com"
] | jacobfolke@hotmail.com |
b054a547ad0202aad1fd12e2b4540060dd7a77c6 | b3a8baa6a89092cfac1fb9da27f5aad3a6055b52 | /tornado_http2/curl.py | 60b032ac6c509aa5f1a6466f8b94e7c2040aecef | [
"Apache-2.0"
] | permissive | bdarnell/tornado_http2 | 42869356290d0e5a617652422b3d49213ae4f084 | 2cd0a6b45d5cd1c7145ca769202104c2c656a85f | refs/heads/master | 2023-08-18T21:41:06.513241 | 2022-12-27T20:46:17 | 2022-12-27T20:46:17 | 21,544,246 | 83 | 12 | Apache-2.0 | 2023-08-14T21:39:29 | 2014-07-06T16:54:54 | Python | UTF-8 | Python | false | false | 1,072 | py | import pycurl
from tornado import curl_httpclient
try:
CURL_HTTP_VERSION_2 = pycurl.CURL_HTTP_VERSION_2
except AttributeError:
# Pycurl doesn't yet have this constant even when libcurl does.
CURL_HTTP_VERSION_2 = pycurl.CURL_HTTP_VERSION_1_1 + 1
class CurlAsyncHTTP2Client(curl_httpclient.CurlAsyncHTTPCli... | [
"ben@bendarnell.com"
] | ben@bendarnell.com |
36d05ddd8e400f84ea6b5bc8bdf10f0e350c95c0 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/kuv_07527+4113/sdB_KUV_07527+4113_lc.py | a8dd206123359c38fb487aef6b087a408f1e1151 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[119.03,41.08485], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_KUV_07527+4113 /sdB_KUV_07527+4113_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __nam... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
733b2a6a99aa508741a9f3cd4b55af2f5e475788 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614063514.py | 96ab0d212288b68fa3eb3d15272551d79c47c32c | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,642 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
7de69f387698465c1fd87bb5a52755574020c843 | 9619daf132259c31b31c9e23a15baa675ebc50c3 | /memphis.contenttype/memphis/contenttype/configlet.py | 6d36f9e48f736c487d305d9b8d87228f53dca282 | [] | no_license | fafhrd91/memphis-dev | ade93c427c1efc374e0e1266382faed2f8e7cd89 | c82aac1ad3a180ff93370b429498dbb1c2e655b8 | refs/heads/master | 2016-09-05T19:32:35.109441 | 2011-08-22T06:30:43 | 2011-08-22T06:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | """ ttw content types management """
from zope import interface, event
from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
from memphis import controlpanel, storage
from memphis.contenttype.location import LocationProxy
from memphis.contenttype.interfaces import \
IFactory, IContentType, IContentTypeSc... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
09d50602b114b6292306756519e9a360bc5f39c5 | f146cef3f2172275c8d7f526dab92951fa50eb2c | /COURSE/WEEK3/venv/bin/pip3.7 | 07460d9012ea92582a238b551da4e8f199055ce4 | [] | no_license | mehranj73/Bootcamp | fed04d3858d6d0bc1cdad94e1f05bd4f7a47c0ec | bd575cd02329ad1ce21b05350380dfbf17cbdd89 | refs/heads/master | 2023-02-09T06:50:00.590751 | 2019-08-22T18:56:02 | 2019-08-22T18:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | 7 | #!/Users/raquel/Desktop/PROPULSION_codeBootcamp/COURSE/WEEK3/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"rachovsky@gmail.com"
] | rachovsky@gmail.com |
d5d4aca03e510abe504a40d1c9b8b8dee7aef281 | b685036280331fa50fcd87f269521342ec1b437b | /src/data_mining_demo/py_practice_Data_Analy_Min/chapter/logistic_regression.py | 49743f425ea8374ffe15f868b29e5463e45483eb | [] | no_license | chenqing666/myML_DM_Test | f875cb5b2a92e81bc3de2a0070c0185b7eacac89 | 5ac38f7872d94ca7cedd4f5057bb93732b5edbad | refs/heads/master | 2022-02-26T01:52:06.293025 | 2019-09-20T06:35:25 | 2019-09-20T06:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py |
import pandas as pd
from pandas import DataFrame as df
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import RandomForestClassifier
dataFile = r'F:\pycharm_workspace\myML_DM_Test\resource\python_practice_Data_Analy_Min\chapter5\chapter5\demo\data\bankloan.xls'
data = pd.read_excel(dataFile... | [
"976185561@qq.com"
] | 976185561@qq.com |
b0c112488dd2ced68cf0f707e038b3e860c7f067 | 1872421a05f2d94ea55b5b7fcb1c1e15c4a240db | /week15/39.py | 9803b3ed813557af1db41d3a10282ae28863087a | [] | no_license | WenHui-Zhou/weekly-code-STCA | 46f360650b964ddfb0e4629b6e23bb0980c6fb5f | 3f00d4e400de5f688d6d7e51311da20cfe4be293 | refs/heads/master | 2020-12-03T05:51:02.426268 | 2020-07-22T15:45:37 | 2020-07-22T15:45:37 | 231,219,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | class Solution(object):
def combinationSum(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
if candidates == []:
return []
ans = []
def dfs(candidates,target,res,pos):
if s... | [
"765647930@qq.com"
] | 765647930@qq.com |
e294028960692090b2e8a324a787742eeaa12ffc | 552bc626603a1757cf7836401cff5f0332a91504 | /django/doit_django_AtoZ/django-tutorial/mysite/blog/migrations/0002_auto_20210929_1741.py | a357566c4e2f63c67a937eac4567daf7265d9c15 | [] | no_license | anifilm/webapp | 85f3d0aae34f46917b3c9fdf8087ec8da5303df1 | 7ef1a9a8c0dccc125a8c21b22db7db4b9d5c0cda | refs/heads/master | 2023-08-29T18:33:00.323248 | 2023-08-26T07:42:39 | 2023-08-26T07:42:39 | 186,593,754 | 1 | 0 | null | 2023-04-21T12:19:59 | 2019-05-14T09:49:56 | JavaScript | UTF-8 | Python | false | false | 741 | py | # Generated by Django 3.1.1 on 2021-09-29 17:41
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='post',
nam... | [
"anifilm02@gmail.com"
] | anifilm02@gmail.com |
bb8b706831a8ae54d13e029897a3905c48afb61e | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /pychron/media_storage/tasks/plugin.py | 460cabacf2ecaab18ef02ea6c3020bba25a4555d | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 2,026 | py | # ===============================================================================
# Copyright 2016 ross
#
# 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/LICE... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
9c1160ea895d046109b21aa014b034b4e2407294 | bbebd95ce007baf3be20ca14fc8fe696c4c7dd96 | /L8 Python Scripts/Codec_b995/__init__.py | 063c2539237aec3e8aef0e34ca3b57eed8f748a8 | [] | no_license | spiralune/monomodular | 70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3 | 862bb02067c2fbc9816795904b2537a9b5e1c7b6 | refs/heads/master | 2020-12-11T04:06:25.390424 | 2014-07-09T19:45:41 | 2014-07-09T19:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | # http://aumhaa.blogspot.com
from Codec import Codec
def create_instance(c_instance):
""" Creates and returns the Codec script """
return Codec(c_instance)
| [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
96cc28b5253d987d8c3a3d749c5709b0260a02b4 | f0da5036820e92157a9108b4b6793e757a81861c | /experiments/multiple_instance_classification/mnist_bagged.py | d5e47255001234a6fce9b864305f4e3e35a2a525 | [
"MIT"
] | permissive | BioImageInformatics/tfmodels | cb1e136407f0f148194210b1449b26c126fe5a07 | 7219eac59ba82cfa28e6af5e17f313dcc5ddd65e | refs/heads/master | 2022-01-26T16:09:32.630262 | 2019-04-25T05:09:33 | 2019-04-25T05:09:33 | 115,466,269 | 4 | 3 | null | 2018-02-06T17:46:17 | 2017-12-27T00:55:40 | Python | UTF-8 | Python | false | false | 3,615 | py | import tensorflow as tf
import numpy as np
import cv2
import sys, datetime, os, time
from tensorflow.examples.tutorials.mnist import input_data
sys.path.insert(0, '..')
import tfmodels
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
# config.log_device_placement = True
# mnist_data_path = '/Users/n... | [
"ing.nathany@gmail.com"
] | ing.nathany@gmail.com |
720b53038cba2786b0ac0b633b11a4cfcec040d9 | a59d1faced9fe7348ca7143d2a8643e0ebad2132 | /pyvisdk/do/missing_windows_cust_resources.py | 31a2c82207181901973a117c45f03922051b6f10 | [
"MIT"
] | permissive | Infinidat/pyvisdk | c55d0e363131a8f35d2b0e6faa3294c191dba964 | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | refs/heads/master | 2023-05-27T08:19:12.439645 | 2014-07-20T11:49:16 | 2014-07-20T11:49:16 | 4,072,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def MissingWindowsCustResources(vim, *args, **kwargs):
'''A usable sysprep file was not f... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
257b92c3c936ecdd1cc044e01004b323081a71f2 | 55b6bd57378204b8b567a77126312b6ca2ada693 | /src/old/name_print.py | 2f20c3c5abd598dbf13d3947aa90085c6fc71582 | [
"MIT"
] | permissive | capybaralet/TabulaRL | 9d232513ad9d1f33c2a3bafb8a5b8ac5974afabf | f9a66a85930e85475982404f389ba4651435f780 | refs/heads/master | 2020-04-05T18:59:49.427591 | 2016-12-02T03:39:22 | 2016-12-02T03:39:22 | 64,227,703 | 0 | 0 | null | 2016-07-26T14:26:18 | 2016-07-26T14:26:17 | null | UTF-8 | Python | false | false | 433 | py |
from inspect import currentframe
def name_print(name):
frame = currentframe().f_back
locs, globs = frame.f_locals, frame.f_globals
value = locs[name] if name in locs else globs.get(name, "???")
print name, "=", value
del frame
return name + "=" + str(value)
n = 42
name_print("n")
def make_sa... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
a98222928c83108ef2681b39d6dbaae2db52b5a1 | 9d39f6ec24ea355ee82adfd4487453172953dd37 | /tao_detection_release/configs/baselines/faster_rcnn_r50_fpn_1x_lvis.py | 8c51e80f770456d001ba404b19629f8b5d11c559 | [
"Apache-2.0"
] | permissive | feiaxyt/Winner_ECCV20_TAO | d69c0efdb1b09708c5d95c3f0a38460dedd0e65f | dc36c2cd589b096d27f60ed6f8c56941b750a0f9 | refs/heads/main | 2023-03-19T14:17:36.867803 | 2021-03-16T14:04:31 | 2021-03-16T14:04:31 | 334,864,331 | 82 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[25... | [
"feiaxyt@163.com"
] | feiaxyt@163.com |
3ba0dee01e64c8a85967aac018c42ecadf3e1910 | b5937928a48340569f673e237e42f32ab62cfd15 | /src/fizzBuzz/fizz.py | 4590f891e704a7530874bd6246b724d08af6d483 | [
"CC0-1.0"
] | permissive | rajitbanerjee/leetcode | 79731de57ab4b0edd765b3cbb4aac459973fb22d | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | refs/heads/master | 2021-06-13T11:19:03.905797 | 2021-06-02T14:40:08 | 2021-06-02T14:40:08 | 191,103,205 | 2 | 1 | null | 2020-02-23T23:41:45 | 2019-06-10T05:34:46 | Java | UTF-8 | Python | false | false | 470 | py | class Solution:
def fizzBuzz(self, n: int) -> list:
res = []
maps = {3: "Fizz", 5: "Buzz"}
for i in range(1, n + 1):
ans = ""
for k, v in maps.items():
if i % k == 0:
ans += v
if not ans:
ans = str(i)
... | [
"rajit.banerjee@ucdconnect.ie"
] | rajit.banerjee@ucdconnect.ie |
e3466618405b07b76db94ddf2cee72207fcba98b | fc29ccdcf9983a54ae2bbcba3c994a77282ae52e | /Leetcode_By_Topic/monostack-1019.py | a675e373fc547fbc260855f6322e41f078ce5894 | [] | no_license | linnndachen/coding-practice | d0267b197d9789ab4bcfc9eec5fb09b14c24f882 | 5e77c3d7a0632882d16dd064f0aad2667237ef37 | refs/heads/master | 2023-09-03T19:26:25.545006 | 2021-10-16T16:29:50 | 2021-10-16T16:29:50 | 299,794,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # Definition for singly-linked list.
from typing import List
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def nextLargerNodes(self, head: ListNode) -> List[int]:
stack, res = [], []
while head:
while stack and ... | [
"lchen.msc2019@ivey.ca"
] | lchen.msc2019@ivey.ca |
d8d15498018b75c3f13b8660ec4406e66a494a08 | e67d4123c10d464c91e70210d58bd4900164645b | /74/a/a.py | d98927c5a5988abced29cca18737c8d7b40d5e41 | [] | no_license | pkaleta/Codeforces | 422188d4483fbf8dd99d6b0654c8e464fb143560 | fb011f616f8db366c6aba80ff2be01692611ef81 | refs/heads/master | 2021-01-19T06:42:30.162981 | 2011-11-26T01:29:30 | 2011-11-26T01:29:30 | 2,853,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import sys
from math import ceil
r, g, b = map(int, sys.stdin.readline().split())
tr = ceil(r/2.0)
tg = ceil(g/2.0)
tb = ceil(b/2.0)
xr = 3*(tr-1)
xg = 3*(tg-1)+1
xb = 3*(tb-1)+2
print int(30+max([xr, xg, xb]))
| [
"piotrek.kaleta@gmail.com"
] | piotrek.kaleta@gmail.com |
03f04d8b9696ae2e1e9bae0d641202e81d966b84 | 4d2475135f5fc9cea73572b16f59bfdc7232e407 | /prob162_find_peak_element.py | e4b435207bb45f8bbec0eaad32c965c283bb9bba | [] | no_license | Hu-Wenchao/leetcode | 5fa0ae474aadaba372756d234bc5ec397c8dba50 | 31b2b4dc1e5c3b1c53b333fe30b98ed04b0bdacc | refs/heads/master | 2021-06-24T04:57:45.340001 | 2017-06-17T02:33:09 | 2017-06-17T02:33:09 | 45,328,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | """
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak
element and return its index.
The array may contain multiple peaks, in that case return t
he index to any one of the peaks is fine.
You may imagine that num[-1] = num[n] = -∞.
For example,... | [
"huwcbill@gmail.com"
] | huwcbill@gmail.com |
bdd9da0ae5d55149ec4bca6d4f84ad3a3e8343c7 | f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6 | /ICA_SDK/test/test_file_archive_request.py | ada9da45159a7221123309af28d2879de583a1f9 | [] | no_license | jsialar/integrated_IAP_SDK | 5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb | c9ff7685ef0a27dc4af512adcff914f55ead0edd | refs/heads/main | 2023-08-25T04:16:27.219027 | 2021-10-26T16:06:09 | 2021-10-26T16:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | # coding: utf-8
"""
IAP Services
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
... | [
"siajunren@gmail.com"
] | siajunren@gmail.com |
7fb5280581bbe99984f5da4c18fcf5bd0e67323e | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Finish/M766_Toeplitz_Matrix.py | 8f51a3754259e79675839738cce3426faef8740a | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | class Solution(object):
def isToeplitzMatrix(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: bool
"""
## Faster
for i in range(len(matrix) - 1):
for j in range(len(matrix[0]) - 1):
if matrix[i][j] != matrix[i + 1][j + 1]:
... | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
338e274803fb43c8022a8219e4aeb718df14faf4 | aa2ae30a88361b4b80ffa28c4d8a54600bbee542 | /Chapter18/hw/libhw/hw_sensors/__init__.py | 9ce4eb64a22fb6569dc367a6cb59f7a97dd23529 | [
"MIT"
] | permissive | PacktPublishing/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 6728fadb38076f6243da3d98b1cf18faf6b287af | d5a421d63c6d3ebbdfa54537fa5ce485bc2b9220 | refs/heads/master | 2023-07-05T23:08:32.621622 | 2022-01-17T12:18:54 | 2022-01-17T12:18:54 | 195,020,985 | 963 | 491 | MIT | 2023-03-25T01:00:07 | 2019-07-03T09:21:47 | Jupyter Notebook | UTF-8 | Python | false | false | 976 | py | from .. import sensors
from . import lis331dlh
from . import lis3mdl
from . import l3g4200d
SENSOR_CLASSES = (lis331dlh.Lis331DLH, lis3mdl.Lis3MDL, l3g4200d.L3G4200D)
def scan(i2c):
"""
Return list of detected sensors on the bus. Default addresses are used
:return: list of Sensors instances
"""
r... | [
"max.lapan@gmail.com"
] | max.lapan@gmail.com |
ec8198e56247f8e67b4d65c6d4e9b3625bb7cf5d | 2b912b088683e2d4d1fa51ebf61c4e53c5058847 | /.PyCharmCE2017.1/system/python_stubs/-1247971765/gi/_gi/UnresolvedInfo.py | 919c3d92c5767a92742a1387385741c4afd8e492 | [] | no_license | ChiefKeith/pycharmprojects | 1e1da8288d85a84a03678d2cae09df38ddb2f179 | 67ddcc81c289eebcfd0241d1435b28cd22a1b9e0 | refs/heads/master | 2021-07-13T00:52:19.415429 | 2017-10-08T23:04:39 | 2017-10-08T23:04:39 | 106,216,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # encoding: utf-8
# module gi._gi
# from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-arm-linux-gnueabihf.so
# by generator 1.145
# no doc
# imports
import _gobject as _gobject # <module '_gobject'>
import _glib as _glib # <module '_glib'>
import gi as __gi
import gobject as __gobject
class UnresolvedInfo(__gi.... | [
"kmarlin@dtcc.edu"
] | kmarlin@dtcc.edu |
f2f996381348351beda5614a9b20ae7c54071ccd | ea83e60e2be606813005081a9f1b9516de018c7d | /language/search_agents/muzero/grammar_lib.py | 7d8933135d028c88c787b51916b246de9f89b901 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | optimopium/language | 1562a1f150cf4374cf8d2e6a0b7ab4a44c5b8961 | bcc90d312aa355f507ed128e39b7f6ea4b709537 | refs/heads/master | 2022-04-03T03:51:28.831387 | 2022-03-16T21:41:17 | 2022-03-16T22:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,709 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
445e185baa345a6b732c120ea563a9ff30578e12 | c59194e1908bac7fc0dd4d80bef49c6afd9f91fb | /ProjectEuler/1_MultiplesOf3and5.py | 3f88c890431d0d60d3863486d6636ce18af63fc8 | [] | no_license | Bharadwaja92/CompetitiveCoding | 26e9ae81f5b62f4992ce8171b2a46597353f0c82 | d0505f28fd6e93b2f4ef23ad02c671777a3caeda | refs/heads/master | 2023-01-23T03:47:54.075433 | 2023-01-19T12:28:07 | 2023-01-19T12:28:07 | 208,804,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """ https://projecteuler.net/problem=1 """
"""
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
sum = 0
for i in range(1001):
if i % 3 == 0 or i % 5 == 0:
sum +=... | [
"saibharadwaja92@gmail.com"
] | saibharadwaja92@gmail.com |
d79aa806b9446ebf2fa3fa83ce3a7d024c10a6c0 | 35250c1ccc3a1e2ef160f1dab088c9abe0381f9f | /2020/0412/11728.py | f3297ad4220ba4673480121add1e424b531b3bef | [] | no_license | entrekid/daily_algorithm | 838ab50bd35c1bb5efd8848b9696c848473f17ad | a6df9784cec95148b6c91d804600c4ed75f33f3e | refs/heads/master | 2023-02-07T11:21:58.816085 | 2021-01-02T17:58:38 | 2021-01-02T17:58:38 | 252,633,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import sys
input = sys.stdin.readline
N, M = map(int, input().split())
A = list(map(int, input().rstrip().split()))
B = list(map(int, input().rstrip().split()))
C = A + B
C.sort()
print(*C) | [
"dat.sci.seol@gmail.com"
] | dat.sci.seol@gmail.com |
ff5e1e69b045c6d4eae542a9f77d00034e116cb5 | d6a8d7a63fc21d3b0a9c89966618ff30c6f32581 | /mathModel/Instance/guosai/B - 副本/MachineLearningNote-master/LDA/sklearn_LDA.py | 8b83738f9c14553fde5b8a72c0df34d3fdfc4ea3 | [] | no_license | WangSura/PythonLearn | 173bc43d6c2462c52292238dac1c5250ebeeb978 | 011bbd6b322b51dd811864165512d14ae77f43e5 | refs/heads/master | 2023-08-29T15:45:48.286284 | 2021-11-17T12:00:53 | 2021-11-17T12:00:53 | 357,208,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # _*_coding:utf-8_*_
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
from sklearn.linear_model import LogisticRegression
lda = LDA(n_components=2)
x_train_lda = lda.fit_transform(X_train_std,y_train)
lr = LogisticRegression()
lr = lr.fit(X_train_std,y_train)
plot_decision_region(X_train_... | [
"2739551399@qq.com"
] | 2739551399@qq.com |
fd90aa5f34aebd70f9ca3b2932b561eda70c1e13 | 61d08e23fbb62e16f7bd9d43673b1cf4e0558c37 | /miraPipeline/pipeline/preflight/check_options/maya/check_hair_yeti_same_tex_name.py | 8fe9e30a0ed0c2d44013f688dc24fd6109f4db62 | [] | no_license | jonntd/mira | 1a4b1f17a71cfefd20c96e0384af2d1fdff813e8 | 270f55ef5d4fecca7368887f489310f5e5094a92 | refs/heads/master | 2021-08-31T12:08:14.795480 | 2017-12-21T08:02:06 | 2017-12-21T08:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # -*- coding: utf-8 -*-
import os
import maya.cmds as mc
from miraLibs.mayaLibs import Yeti
from BaseCheck import BaseCheck
class Check(BaseCheck):
def __init__(self):
super(Check, self).__init__()
self.yeti_nodes = mc.ls(type="pgYetiMaya")
def run(self):
if not self.yeti_nodes:
... | [
"276575758@qq.com"
] | 276575758@qq.com |
a1fe3edeec3b8c30a7286fe17eeda7cc02b99018 | 1527398fca2fe72b5c24ebd712ffcf4b84c6eb5f | /videogram/wsgi.py | dfa29dfa6d5ffbdf3eac1254021e3ede7c71cbe8 | [] | no_license | ShipraShalini/videogram | e06978d548c9dc5fb93b06c95fc2426e41c8eef4 | 244de4175b66b41b92e8f384cc27358fd8229338 | refs/heads/master | 2021-01-16T09:35:29.659353 | 2020-02-25T18:47:52 | 2020-02-25T18:47:52 | 243,064,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for videogram project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"code.shipra@gmail.com"
] | code.shipra@gmail.com |
08a70c6996ecfc2b346c958ccfab8306df309269 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2200/60686/288758.py | 768327feb2a94cd9656380bfcd364b5fe89caac5 | [] | 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 | 388 | py | string = input()
string_num = input()
list_num = []
res_str = []
for i in range(len(string_num)):
list_num.append(int(string_num[i]))
limit = int(input())
for i in range(1, len(list_num)):
for j in range(len(list_num) - i + 1):
if list_num[j:j + i].count(0) <= limit and res_str.count(string[j:j + i]) ==... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e11b8960cbb24e034b116e0cb4b90998b1190c83 | 6fb9a194ec4f9b0f4f3b75331b79468cbce948d2 | /tgintegration/awaitableaction.py | 655ba30d7b8670d48ac54bb94e852d98a42f3ded | [
"MIT"
] | permissive | StrangeTcy/tgintegration | 1718d7860c936b1bccbfabab362d52f4643f2281 | 76d43c98b440ca4ac98c23234fa5c177fd9f8a55 | refs/heads/master | 2022-04-14T05:16:56.958120 | 2020-03-02T21:57:39 | 2020-03-02T21:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from typing import Callable, Dict, Iterable, Optional
from pyrogram.client.filters.filter import Filter
class AwaitableAction:
"""
Represents an action to be sent by the service while waiting for a response by the peer.
"""
def __init__(
self,
func: Callable,
args: Iterable =... | [
"joscha.goetzer@gmail.com"
] | joscha.goetzer@gmail.com |
a23a17c07859bb73926baad77b1938640bb22bb2 | b464f034de9fb1cd8e8a0b394aec66278cce882d | /lib/browser.py | 782856b44833715e52ba919940afcb5ec9c02583 | [] | no_license | BigRLab/inverted-index-search-engine | 47d1d050559c65c7ad818ffb7e92f2d77aa15310 | d3eed3a11c6c8bb9a2be316bb185e76f10f50a1c | refs/heads/master | 2021-05-30T14:19:05.159017 | 2015-05-15T14:36:47 | 2015-05-15T14:36:47 | 109,635,526 | 0 | 1 | null | 2017-11-06T02:01:49 | 2017-11-06T02:01:49 | null | UTF-8 | Python | false | false | 2,183 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'browser.ui'
#
# Created: Wed Feb 4 12:43:32 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attrib... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
76468640a160e797f7efbe0d6fa3379c5131eb0e | 2e60bdaf03181f1479701efebbb495f88615df4c | /nlp/ner/lstm/train.py | 787e3834c55b9a66d80f159c840e66dffc96cd7d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | whatisnull/tensorflow_nlp | dc67589ee4069f7a71baa1640d796bac3445bb5c | 0ecb1e12bbe1fc3d5a63e68d788547d0ae92aeef | refs/heads/master | 2023-04-23T08:23:55.914154 | 2019-09-15T03:47:55 | 2019-09-15T03:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | # -*- coding:utf-8 -*-
import tensorflow as tf
import os
from nlp.ner.lstm.dataset import dataset, rawdata
from nlp.ner.lstm import model as lstm_model, bilstm_model
def train_lstm(args):
if not args.data_dir:
raise ValueError("No data files found in 'data_path' folder")
if not os.path.isdir(args.ut... | [
"endymecy@sina.cn"
] | endymecy@sina.cn |
78c45265334cb28df9abd61b34cea3037fadd473 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2021/March/Swapping Nodes in a Linked List.py | 771344e1e4fce37d7fd3005ffbcf345d20ed1e49 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
# First Approach with 2 traversals
class Solution:
def swapNodes(self, head: ListNode, k: int) -> ListNode:
length = 0
curr = head
while curr:
... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
654d9736b8244a00253102a14f50ea9fde1a28e9 | 7d07c037dbd2fbfce960c7a63debe1cb3d5f1a8a | /api/settings/development.py | 5282fbf8102fb199225aa97921d41de4a2af4c88 | [] | no_license | sealevelresearch-jenkins/sea-level-api | 2fcbf309fa7388514ddf8bf9bd520f5681775939 | 382cf4d1b6981f4120d8add6d79a53493b911e24 | refs/heads/master | 2020-12-25T05:19:21.904701 | 2014-06-25T11:44:26 | 2014-06-25T11:44:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from .common import *
if DATABASES is None:
print("Using SQLite database.")
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
| [
"paul@paulfurley.com"
] | paul@paulfurley.com |
6542253bc8d82a7dd671253b76782e3b4d46403f | 6bd21a64c5fbeba1682c3e65221f6275a44c4cd5 | /vega/algorithms/nas/modnas/data_provider/dataloader/torch/image_cls.py | edb7ba08fd73734470a4338a2b8bfe3896ffe252 | [
"MIT"
] | permissive | yiziqi/vega | e68935475aa207f788c849e26c1e86db23a8a39b | 52b53582fe7df95d7aacc8425013fd18645d079f | refs/heads/master | 2023-08-28T20:29:16.393685 | 2021-11-18T07:28:22 | 2021-11-18T07:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,605 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
dc71ded9798c040921352112b957d21cdd4ff82c | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_8/models/snmp_manager.py | e46beba71d12d483675d38e4a5be3decef66ca7c | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,572 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.8, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
2d60381e59278c3f8cb22bfbfff0a4f9a2b9c553 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /19_Introduction_to_TensorFlow_in_Python/3_Neural_Networks/avoidingLocalMinima.py | fd720e8f9a6bb046155e7f68294ff8365d1e3ce1 | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # Avoiding local minima
# The previous problem showed how easy it is to get stuck in local minima. We had a simple optimization problem in one variable and gradient descent still failed to deliver the global minimum when we had to travel through local minima first. One way to avoid this problem is to use momentum, whic... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
ce32b7095264d73944ba67dcefd69bcf03aa92c3 | 1d89bf155d644e7b79708ea96b281af6d1551454 | /tests/test_effect_overlay.py | a9d8aef853ae4203330ff8e063fa9febd9d5ec41 | [
"Apache-2.0",
"LGPL-2.0-or-later"
] | permissive | bitwave-tv/brave | 24ab3be24acfa7507fb889fddc416a0cc6728827 | 506d5e9ed07123f4497e0576b197590cc60b35c2 | refs/heads/dev | 2020-09-13T22:26:21.350489 | 2020-06-27T00:03:26 | 2020-06-27T00:03:26 | 239,663,001 | 12 | 8 | Apache-2.0 | 2020-02-13T07:14:34 | 2020-02-11T02:57:14 | Python | UTF-8 | Python | false | false | 2,492 | py | import time, pytest, inspect
from utils import *
from PIL import Image
def test_effect_overlay_visible_after_creation(run_brave):
run_brave()
time.sleep(0.5)
check_brave_is_running()
add_overlay({'type': 'effect', 'source': 'mixer1', 'effect_name': 'edgetv'})
time.sleep(0.1)
assert_overlays([... | [
"matthew1000@gmail.com"
] | matthew1000@gmail.com |
0b54f01e15a2559bdf7535e34ba48bc422536d06 | 6bcfb27114e076139ebf943b31b34deaf9914463 | /main/users/apps.py | 9193cc0b0d585cb51dd2aec4d72ab5dba7e02e62 | [] | no_license | 101t/jasmin-web-panel | f09be3ebb7de132cc28bc121a186a8eba89e1c24 | d7dfe74a63663571178843d5e664b2121d4d5943 | refs/heads/master | 2023-08-02T22:22:34.421658 | 2023-07-27T20:54:49 | 2023-07-27T20:54:49 | 212,270,500 | 66 | 63 | null | 2023-07-27T20:54:50 | 2019-10-02T06:31:44 | Python | UTF-8 | Python | false | false | 262 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.apps import AuthConfig
AuthConfig.verbose_name = _("Groups")
class UsersConfig(AppConfig):
name = "main.users"
verbose_name = _("Users")
| [
"tarek.it.eng@gmail.com"
] | tarek.it.eng@gmail.com |
f1f413dbde025b326932027cb257fe6aa39756c8 | afbaa5685bf737ec7d16fee2bab54ae13caf96f9 | /geekbang/core/ch20/crawl.py | c022466d07eff3d54ba23ebd789958a6ebab2bc5 | [] | no_license | ykdsg/myPython | 9dcc9afe6f595e51b72257875d66ada1ba04bba6 | 77d2eaa2acb172664b632cc2720cef62dff8f235 | refs/heads/master | 2023-06-10T20:11:08.061075 | 2023-06-03T11:39:53 | 2023-06-03T11:39:53 | 10,655,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | import time
def crawl_page(url):
print('crawling{}'.format(url))
sleep_time = int(url.split('_')[-1])
time.sleep(sleep_time)
print('ok {}'.format(url))
def main(urls):
for url in urls:
crawl_page(url)
main(['url_1', 'url_2', 'url_3', 'url_4'])
| [
"17173as@163.com"
] | 17173as@163.com |
d7e50c5b0c76a51c12ce7d9ff3e2e2ae7cc4c5c1 | 4db29e0d5f2e050d21bbf67042c713d8fa0421b0 | /com/mason/redis/part_two/chapter05/chapter0523.py | fe893456602728640231fdb78461bc879b22d75d | [] | no_license | MasonEcnu/RedisInAction | 80e5556554c7e390264edd391042b09271cbfca4 | 710fd0316c6aee857acd350a092b657465096ed1 | refs/heads/master | 2020-07-08T17:24:39.540181 | 2019-09-30T04:14:49 | 2019-09-30T04:14:49 | 203,731,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import contextlib
import time
from urllib.request import Request
from redis import Redis
from com.mason.redis.part_two.chapter05.chapter0522 import update_status
# 使用 Redis 存储统计数据
# 将这个Python生成器用作上下文管理器
@contextlib.contextmanager
def access_time(conn: Redis, context):... | [
"364207187@qq.com"
] | 364207187@qq.com |
b368bfe24d7352e61178f3ec8182f30c134e3a11 | 1817dca14e0053f8dc22e3d528d0263c437fd5dd | /handlers/hint_handler.py | 5f2536f010e76c9d1c76dea46a20a6fa568d3dba | [
"Apache-2.0"
] | permissive | biothings/biothings_explorer_api | 6299985f680082ea34cad3ebd6f5282dfe885952 | 389f95e94e0a36a54545a33bdc7b0ec5a9c05906 | refs/heads/master | 2023-08-26T01:04:10.685981 | 2020-04-29T16:57:28 | 2020-04-29T16:57:28 | 202,216,083 | 0 | 0 | Apache-2.0 | 2023-08-14T21:50:27 | 2019-08-13T20:06:44 | Python | UTF-8 | Python | false | false | 635 | py | from biothings_explorer.hint import Hint
import json
from .base import BaseHandler
ht = Hint()
class HintHandler(BaseHandler):
def get(self):
_input = self.get_query_argument('q', None)
if _input:
try:
result = ht.query(_input)
self.set_status(200)
... | [
"kevinxin@scripps.edu"
] | kevinxin@scripps.edu |
42d48160e819cfb5671f871ed6cb68725384edb1 | cb61ba31b27b232ebc8c802d7ca40c72bcdfe152 | /Company-Based/robinhood/countKmaxOccurences.py | 562fd2c5198260500c28eea17465d754b0629f95 | [
"Apache-2.0"
] | permissive | saisankargochhayat/algo_quest | c7c48187c76b5cd7c2ec3f0557432606e9096241 | a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc | refs/heads/master | 2021-07-04T15:21:33.606174 | 2021-02-07T23:42:43 | 2021-02-07T23:42:43 | 67,831,927 | 5 | 1 | Apache-2.0 | 2019-10-28T03:51:03 | 2016-09-09T20:51:29 | Python | UTF-8 | Python | false | false | 917 | py | def counts(string, word):
if not string:
return 0, 0
count = 0
idx = 0
while idx < len(string):
if len(string[idx:]) < len(word):
break
for char_str, char_word in zip(string[idx:], word):
if char_str != char_word:
return count, idx
... | [
"saisankargochhayat@gmail.com"
] | saisankargochhayat@gmail.com |
ed61d145fa7fb88eef5cd1c145118ab1d38596b1 | b772822f8d99cce0152759ad41776c19944bff69 | /torch_geometric/datasets/gnn_benchmark_dataset.py | 39e905fc653f73a128710b6ee32f0bce91dfdc51 | [
"MIT"
] | permissive | monk1337/pytorch_geometric | 902e4e075ca7769fd7192ec53fd4191b8e519afa | 38514197a327541eb47abb69d4ab224910852605 | refs/heads/master | 2023-07-19T13:19:04.879875 | 2021-09-06T06:52:48 | 2021-09-06T06:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | from typing import Optional, Callable, List
import os
import os.path as osp
import pickle
import logging
import torch
from torch_geometric.data import (InMemoryDataset, download_url, extract_zip,
Data)
from torch_geometric.utils import remove_self_loops
class GNNBenchmarkDataset(In... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
077ae56a858cba048ea1f1a780d16d37648d7cae | ad4d927b05d3004cc5f835c84807a272ecff439f | /src/olaf/build/turtlebot3/turtlebot3_bringup/catkin_generated/pkg.installspace.context.pc.py | 34569c39aae88ce71767bdaba6432a51e1b360b4 | [] | no_license | kookmin-sw/capstone-2020-11 | 73954f8a692d3240a22ca9a81c9bede8538fabbf | 081733fb0470d83930433a61aabf9708275d64dd | refs/heads/master | 2023-03-06T23:02:14.869404 | 2022-11-09T01:44:27 | 2022-11-09T01:44:27 | 246,285,681 | 5 | 4 | null | 2023-03-04T13:53:47 | 2020-03-10T11:42:27 | C++ | UTF-8 | Python | false | false | 436 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs;diagnostic_msgs;turtlebot3_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" el... | [
"ksp2246@naver.com"
] | ksp2246@naver.com |
a800100f3b7b659be23bfd81ab576a30ce5f1f5e | 59d1fd18d9f13c70e3e069619add5a57f8ba3304 | /color_histogram/plot/window.py | 81c302c7bd31575f18d8ef107dd6442036c61600 | [
"MIT"
] | permissive | laserwave/ColorHistogram | 59501d00b075bd375321bf5dce65951a780c9b65 | b2fad52ba8e68130eaca503ac2a78c7a69852dd2 | refs/heads/master | 2020-08-08T19:29:08.845214 | 2019-10-10T02:55:58 | 2019-10-10T02:55:58 | 213,899,835 | 0 | 0 | MIT | 2019-10-09T11:27:05 | 2019-10-09T11:27:04 | null | UTF-8 | Python | false | false | 322 | py |
# -*- coding: utf-8 -*-
## @package color_histogram.plot.window
#
# Matplot window functions.
# @author tody
# @date 2015/07/29
from matplotlib import pyplot as plt
## Maximize the matplot window.
def showMaximize():
mng = plt.get_current_fig_manager()
mng.window.state('zoomed')
plt.show(... | [
"tody411@gmail.com"
] | tody411@gmail.com |
0ecf200d57de7d8e8ca8add027550304e1866c64 | f6af31f87f79119e8f3e7a06242d19d4fe17bf6a | /examples/demo/reqrep/requester.py | 1960039b3f9413311e0a39bfff6c07e1ba366c8f | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | claws/tx0mq | 122258c106bc5e52f74e41bac0ebfb5d1e7e86f2 | dcbdabc781615ab35cb5dcb45c082375d77a9b85 | refs/heads/master | 2020-12-24T09:37:20.205796 | 2013-01-14T13:35:11 | 2013-01-14T13:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | """
Example tx0mq requester.
requester.py --endpoint=ipc:///tmp/sock
"""
import sys
import time
from optparse import OptionParser
from twisted.internet import reactor, defer
try:
import tx0mq
except ImportError, ex:
import os
package_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname... | [
"clawsicus@gmail.com"
] | clawsicus@gmail.com |
5000298ca1725ddf90398511ad69af60763e2d5d | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /917/917.reverse-only-letters.234544979.Accepted.leetcode.py | b4f433d05e0347bb0f6fc363cbedba8287474f29 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class Solution:
def reverseOnlyLetters(self, S):
temp = list(S)
left = 0
right = len(temp) - 1
while left < right:
while left < right and not temp[left].isalpha():
left += 1
while left < right and not temp[right].isalpha():
righ... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
60d7f4b53270a4f1eade58446ec0acad21d6ec46 | 25040bd4e02ff9e4fbafffee0c6df158a62f0d31 | /www/htdocs/wt/lapnw/data/item_50_7.tmpl.py | 0b819e6a0e4c549385d531e59eb966da64cad855 | [] | no_license | erochest/atlas | 107a14e715a058d7add1b45922b0f8d03bd2afef | ea66b80c449e5b1141e5eddc4a5995d27c2a94ee | refs/heads/master | 2021-05-16T00:45:47.585627 | 2017-10-09T10:12:03 | 2017-10-09T10:12:03 | 104,338,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
from lap.web.templates import GlobalTemplate, SubtemplateCode
class main(GlobalTemplate):
title = 'Page.Item: 50.7'
project = 'lapnw'
class page(SubtemplateCode):
pass
| [
"eric@eric-desktop"
] | eric@eric-desktop |
1810efd247d5268bf54af6acc3516543fef3ecf6 | 5aa709245470c365d0a2831d2d5f2b5f28fa6603 | /simplesocial/simplesocial/settings.py | d9afebb77b0567d100aec26259dc5adfb67cbed4 | [] | no_license | henryfrstr/social_clone | c4c7d448f9b50e548f756c9c019ee310a069c247 | 04879e1d99cf4cdf03c0d2c622c5e94d95df4dd4 | refs/heads/master | 2023-02-01T03:51:29.624013 | 2020-12-17T17:55:44 | 2020-12-17T17:55:44 | 321,951,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | """
Django settings for simplesocial project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"63148122+henryfrstr@users.noreply.github.com"
] | 63148122+henryfrstr@users.noreply.github.com |
707a1890621fb9d1febf7d0e158fcd2b642b83c5 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/edu/link/samford.py | 1c08089fc2d48bebc3131d7551981cb6917de0ad | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import re, urlparse
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee.txtextract.pdftohtml import pdftohtml
from neekanee_solr.models import *
COMPANY = {
'name': 'Samford University',
'hq': 'Birmingham, AL',
'home_page_url'... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
43369b506b0cc4ded87bee3ff3c41be63e9dea4f | 5780a36bc8799a1703879de6012bb6bcb025720a | /Beginner/primaTest/primaTest.py3 | bca4faee34fddc178887f793f796679dabf51790 | [] | no_license | bsuverzabaek/Code-Chef-Exercises | 4da9dfcabd6c37ea94239a307ba3f6b54e2d1ae0 | a3f23dc9fa0c0a92fc2df3592473102e03b06fad | refs/heads/main | 2023-08-11T14:21:13.832378 | 2021-09-20T06:01:43 | 2021-09-20T06:01:43 | 323,809,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py3 | import math
while (1):
T = int(input())
if (T<=0 or T>20):
print("T must be 1 <= T <= 20")
else:
break
while (T>0):
while (1):
N = int(input())
if (N<=0 or N>100000):
print("N must be 1 <= N <= 100000")
else:
break
prime = 0
for i in range(1,math.trunc(N/2)+1):
if (N%i==0):
prime += 1... | [
"noreply@github.com"
] | bsuverzabaek.noreply@github.com |
e49640cf069c95e9b1d14bfe944af571d68067e0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HyLkfdagDGc99ZhbF_8.py | 3f95240414dd22a323f0744ebf91d3de75b78357 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | """
Create a function that takes a number `n` (integer greater than zero) as an
argument, and returns `2` if `n` is odd and `8` if `n` is even.
You can only use the following arithmetic operators: addition of numbers `+`,
subtraction of numbers `-`, multiplication of number `*`, division of number
`/`, and exponent... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
71b889c9d244ba7327f325e04a5697d023d8f1ce | 936054d81aa057b082e634b127110537515fa87d | /tfx_bsl/test_util/run_all_tests.py | 7085c297cb15225aed586a13d5b4293a140da1f8 | [
"Apache-2.0"
] | permissive | kamilwu/tfx-bsl | 41ae161cf64053666525b5ce8fbec91e98310f65 | 1abd2f554afb6411b966d5c7cfb79e3b29711d84 | refs/heads/master | 2020-12-23T18:43:12.837404 | 2020-01-23T06:32:14 | 2020-01-23T06:32:41 | 237,236,619 | 0 | 0 | Apache-2.0 | 2020-01-30T14:57:32 | 2020-01-30T14:57:31 | null | UTF-8 | Python | false | false | 1,328 | py | # Copyright 2019 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 agreed to in writing, ... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
c201c9dea3a62b368c132ba1d0b8b478301c76ec | a9fdace9236af6c73133fd8dddb80843697efc7d | /tests/catalyst/metrics/functional/test_r2_squared.py | a59ec1f892e58b1568cc45fa57ed445abd565da3 | [
"Apache-2.0"
] | permissive | catalyst-team/catalyst | 026c38f26dad471cd77347adbc13423b156a5d8b | e99f90655d0efcf22559a46e928f0f98c9807ebf | refs/heads/master | 2023-08-26T23:12:49.277005 | 2022-04-29T04:19:24 | 2022-04-29T04:19:24 | 145,385,156 | 3,038 | 487 | Apache-2.0 | 2023-08-12T03:40:14 | 2018-08-20T07:56:13 | Python | UTF-8 | Python | false | false | 381 | py | # flake8: noqa
import numpy as np
import torch
from catalyst.metrics.functional._r2_squared import r2_squared
def test_r2_squared():
"""
Tests for catalyst.metrics.r2_squared metric.
"""
y_true = torch.tensor([3, -0.5, 2, 7])
y_pred = torch.tensor([2.5, 0.0, 2, 8])
val = r2_squared(y_pred, y... | [
"noreply@github.com"
] | catalyst-team.noreply@github.com |
a76018548fe591e5ccbf69e213d4e4ac8eacd779 | f7574ee7a679261e758ba461cb5a5a364fdb0ed1 | /SpiralMatrix.py | ba5e95fc8c4ef265f954c6747ece04c5c3df41ef | [] | no_license | janewjy/Leetcode | 807050548c0f45704f2f0f821a7fef40ffbda0ed | b4dccd3d1c59aa1e92f10ed5c4f7a3e1d08897d8 | refs/heads/master | 2021-01-10T19:20:22.858158 | 2016-02-26T16:03:19 | 2016-02-26T16:03:19 | 40,615,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
res = []
while matrix != []:
try:
res.extend(matrix[0])
matrix.remove(matrix[0])
res.extend([i[-1... | [
"janewjy87@gmail.com"
] | janewjy87@gmail.com |
4eca5eee0ff5ec0dc38748ef92580e1495cabcd5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KQ5H9aFBZDKEJuP6C_3.py | 128b8838991f057dd382446cd4c57a56b4fc728b | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | """
Write a **regular expression** that will help us count how many bad cookies
are produced every day. You must use RegEx **negative lookbehind**.
### Example
lst = ["bad cookie", "good cookie", "bad cookie", "good cookie", "good cookie"]
pattern = "yourregularexpressionhere"
len(re.findall(patte... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.