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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d2af27c7b63e8f21fc7c713d6004cfdb8063ea9 | 820a8e7ec541299f315ac43ddb3b41236e11cd33 | /demo/streaming/message_based_client.py | 8bba3e3493dd7f6aadd1d443706b2ee614e2f6f3 | [
"Apache-2.0"
] | permissive | hpsaturn/Autobahn | 5caba163ee976e8ddedadfb1a79139ba6014861b | f7bd44433f227130901440e768073e2afbf410bf | refs/heads/master | 2021-01-17T22:09:02.484645 | 2011-11-01T18:27:57 | 2011-11-01T18:27:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | ###############################################################################
##
## Copyright 2011 Tavendo GmbH
##
## 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
##
## ht... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
a8a95539dac6b0b456a25ccbafca9321dd5c8b20 | 5e8832e7a49e121c4db1f57d036fe39b4250246a | /347_top_k_frequent_elements.py | f3f54cdd069c2acf438ed7c5694b526627821a0d | [] | no_license | shaniavina/Leetcode_Python | 9e80477794cd80e00a399d65b76088eea41d80d1 | 185bf1542265f5f4feca2e937d1d36a7bb4a5d2b | refs/heads/master | 2022-10-12T10:56:23.476219 | 2022-09-21T01:53:40 | 2022-09-21T01:53:40 | 52,979,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import collections
class Solution(object):
def topKFrequent(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
frq = collections.defaultdict(list)
for key, cnt in collections.Counter(nums).items():
frq[cnt].append(key)
... | [
"noreply@github.com"
] | shaniavina.noreply@github.com |
097321d7ebb305770869f9fd631a4837eeeec702 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/mayavi/enthought/mayavi/tools/sources.py | 2dcd4601cae2528189b5d19a6fb7ba72ba533b83 | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,570 | py | """
Data sources classes and their associated functions for mlab.
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Prabhu Ramachandran
# Copyright (c) 2007-2010, Enthought, Inc.
# License: BSD Style.
import operator
import numpy as np
from enthought.traits.api import (HasTraits, Instance, CAr... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
ddf31aa0247b5bd2963cdb3c8159a26bb33c77e0 | fe039f62337b210061bfd7291000c5fa406fd0ff | /list/webapp/models.py | 4a9bf3ad037982d3daaeb33bc2a410482cb276bf | [] | no_license | Erlan1998/python_group_7_homework_45_Erlan_Kurbanaliev | a5f5956490d778341e4958fe6740ab6e1a395f45 | 4f860b561f046413bbc9ab8f587b8f7c40b8c23a | refs/heads/main | 2023-05-07T00:16:28.530637 | 2021-03-04T12:32:36 | 2021-03-04T12:32:36 | 342,240,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from django.db import models
status_choices = [('new', 'Новая'), ('in_progress', 'В процессе'), ('done', 'Сделано')]
class List(models.Model):
description = models.TextField(max_length=200, null=False, blank=False)
detailed_description = models.TextField(max_length=3000, null=True, blank=True)
status = m... | [
"kurbanalieverlan@gmail.com"
] | kurbanalieverlan@gmail.com |
f53ac3f6c538688800be418ff966c4e0919f43ec | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch81_2020_04_12_22_18_46_334181.py | 8e1cf83d9390b88d1079f2c7a2e6970a6b74812b | [] | 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 | 142 | py | def interseccao_valores(dic1,dic2):
v=dic1.values
v2=dic2.values
lista=[]
if v1==v2:
lista.append(v1)
return lista | [
"you@example.com"
] | you@example.com |
505e5e0ce0cb191a5ec404f1e81be10da0578bf5 | 268d9c21243e12609462ebbd6bf6859d981d2356 | /Python/python_stack/Django/Dojo_ninjas/main/apps/dojo_ninjas/migrations/0002_dojo_desc.py | 58a3322cbefd8d01f3ac70e8cbe91f35e5cc03d2 | [] | no_license | dkang417/cdj | f840962c3fa8e14146588eeb49ce7dbd08b8ff4c | 9966b04af1ac8a799421d97a9231bf0a0a0d8745 | refs/heads/master | 2020-03-10T03:29:05.053821 | 2018-05-23T02:02:07 | 2018-05-23T02:02:07 | 129,166,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-05-08 14:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojo_ninjas', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"dkang417@gmail.com"
] | dkang417@gmail.com |
ef52298f256957366a62065c6bbda48bbbfa0568 | 8efd8bcd3945d88370f6203e92b0376ca6b41c87 | /problems100_200/131_Palindrome_Partitioning.py | 4fd4acc10c6135bdd9be20744a848feda4634b56 | [] | no_license | Provinm/leetcode_archive | 732ad1ef5dcdfdde6dd5a33522e86f7e24ae2db5 | 3e72dcaa579f4ae6f587898dd316fce8189b3d6a | refs/heads/master | 2021-09-21T08:03:31.427465 | 2018-08-22T15:58:30 | 2018-08-22T15:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #coding=utf-8
'''
131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","b"],
["a","a","b"]
]
'''
class Solution:
def partition(self, s):
... | [
"zhouxin@gmail.com"
] | zhouxin@gmail.com |
22082fac0984c7728a7ac71f5666b9a60a1c7171 | 15cace5f904c5c2389ca3cc02b5ff1fc029c7651 | /parsing/management/commands/scraper/test.py | cc3b4a7431673dd5f8c4b261fd80953be86ccffa | [] | no_license | ghostnoop/django-youtube-parser-asyncio | fb7146e788dfe5986ad31a45a5d5b1da918583c6 | 631bc4ddc0eed0407f09a810c334a0e9d8d0ed7a | refs/heads/main | 2023-03-26T12:57:32.248097 | 2021-03-25T11:02:54 | 2021-03-25T11:02:54 | 341,303,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | main_list = [i for i in range(100)]
size = len(main_list) // 4
a = main_list[:size]
b = (main_list[size:size * 2])
c = (main_list[size * 2:size * 3])
d = (main_list[size * 3:])
| [
"giliyazovmarat@gmail.com"
] | giliyazovmarat@gmail.com |
fbf8ce4a8f1a8fa531b08275055edceb9aa982a6 | bad44a92fb338260f9c077689d7fa5472526c3fe | /src/python/nnfusion/jit.py | 6fd2745e160f063b2ff9cf6c47e345239698423f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/nnfusion | ebc4c06331b8e93dbf5e176e5ecd3382e322ff21 | bd4f6feed217a43c9ee9be16f02fa8529953579a | refs/heads/main | 2023-08-25T17:41:37.517769 | 2022-09-16T05:59:01 | 2022-09-16T05:59:01 | 252,069,995 | 872 | 157 | MIT | 2023-07-19T03:06:21 | 2020-04-01T04:15:38 | C++ | UTF-8 | Python | false | false | 6,923 | py | import copy
import functools
from inspect import isfunction, ismethod, isclass
import torch
from .jit_utils import TorchModule, get_signature
from .runtime import NNFusionRT
from .config import Config
def is_method_of_instance(obj, cls):
return ismethod(obj) and isinstance(obj.__self__, cls)
def is_subclass_o... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
3d27cf4f50a9cc4bd469bd18977762b572f062a1 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /company/new_problem/look_week_into_different_child/woman.py | adf36b9a017251053bd4003aaba072a84a85d48d | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
#! /usr/bin/env python
def right_week_or_little_person(str_arg):
seem_work_for_next_man(str_arg)
print('eye')
def seem_work_for_next_man(str_arg):
print(str_arg)
if __name__ == '__main__':
right_week_or_little_person('place')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
419801dc9b41a351205b81a2536848b549bcdca3 | 67a48a7a2db56247fdd84474efa35124565fd8b9 | /Codeforces/1567/1567a.py | d8ac3e266bff074dc1c8d5d2ab0d617f691e4d6f | [] | no_license | qazz625/Competitive-Programming-Codes | e3de31f9276f84e919a6017b2cf781c946809862 | e5df9cdc4714d78b7b6a7535ed7a45e07d3781c3 | refs/heads/master | 2022-08-30T07:57:55.172867 | 2022-08-10T08:02:07 | 2022-08-10T08:02:07 | 242,182,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = []
s = input()
for x in s:
if x == 'L' or x == 'R':
arr += [x]
elif x == 'D':
arr += ['U']
else:
arr += ['D']
print(*arr, sep='')
| [
"arun49804@gmail.com"
] | arun49804@gmail.com |
f95eb6c548d33fdfb4e4c5bca3aec825ebb08bec | 8957fd60446378ba77d5920c883935bac9275933 | /btools/building/customobj.py | f74c400d927c3004785f0cf10d68d480f9d7714c | [
"MIT"
] | permissive | ranjian0/building_tools | 37f647608873288db3346bc7d2d9e2c97fbefabe | 4a5950ed712b41fa3b953ea4ac3e1b1db8d5f489 | refs/heads/master | 2023-09-04T01:53:35.926031 | 2023-03-12T09:58:05 | 2023-03-12T09:58:05 | 123,632,239 | 831 | 94 | MIT | 2021-02-08T12:58:09 | 2018-03-02T21:22:22 | Python | UTF-8 | Python | false | false | 10,758 | py | """
Tools to allow users to place custom meshes on a building
"""
import bpy
import bmesh
from mathutils import Matrix, Vector
from bpy.props import PointerProperty
from .facemap import (
FaceMap,
add_faces_to_map,
add_facemap_for_groups
)
from ..utils import (
select,
local_xyz,
... | [
"karanjaichungwa@gmail.com"
] | karanjaichungwa@gmail.com |
d9defe5ad47eb503e1e8834bad3974c9f76ea1ae | 33fc4f5b3b92fc5d84be6c4872094264be5c2192 | /108numpy-copy-deepcopy.py | c41df93204747de028547d6883e0e74eb2590112 | [] | no_license | greenmac/python-morvan-numpy-pandas | 2ee9f572b910f65b44fe76316774fa9f604e9eb2 | 77fe010b15074e7ecabaefc07bc80bf667575d89 | refs/heads/master | 2020-04-12T14:54:47.317643 | 2018-12-22T07:18:19 | 2018-12-22T07:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-8-np-copy/
import numpy as np
# a = np.arange(4)
# b = a
# c = a
# d = b
# a[0] = 11
# print(a)
# print(b)
# print(c)
# print(d)
# print(b is a)
# print(d is a)
# a = np.arange(4)
# b = a
# c = a
# d = b
# a[0] = 11
# d[1:3] = [22, 33]
# print(a)
# pr... | [
"alwaysmac@msn.com"
] | alwaysmac@msn.com |
1344db5d293e0d52eb43ae1b44c466eb59437167 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02380/s484509438.py | 102ce45748de53d8af54b0469dd1cd39937af871 | [] | 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 | 216 | py | import math
a,b,C=map(int,input().split())
radC=math.radians(C)
S=a*b*math.sin(radC)*(1/2)
c=a**2+b**2-2*a*b*math.cos(radC)
L=a+b+math.sqrt(c)
h=2*S/a
list=[S,L,h]
for i in list:
print('{:.08f}'.format(i))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fd2f9e40af42009d2df03ad31acbf7115cfbdb22 | ec0e202ba914a1d9318c449130eee74223af6c98 | /rememerme/users/client.py | c79c6d6be62bb75e649fba4b1b42f040d57849c3 | [
"Apache-2.0"
] | permissive | rememerme/users-model | 0f07c76bdbabf803fc6b8f6fe4aabcde42fe0e34 | 6b62af077ae93f073e9bb831a82ca8f011697277 | refs/heads/master | 2020-05-17T00:27:01.990149 | 2014-01-18T05:54:46 | 2014-01-18T05:54:46 | 15,694,812 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import requests
from rememerme.users.models import User
class UserClientError(Exception):
pass
def strip_trailing_slash(url):
if url[-1] == '/':
return url[:-1]
return url
class UserClient:
DEFAULT_URL = 'http://134.53.148.103'
def __init__(self, session_id, url=DEFAULT_URL):
sel... | [
"andyoberlin@gmail.com"
] | andyoberlin@gmail.com |
5d1e42d4fcbfa344f5d00f5f5bbb49288f53b5ac | 559995c23c13f67ee6f342389d0db81081207d87 | /prjforinfcreditvilfw/vig/estisimurand/sall_aws_sandbox/template_onefile/esr_s1357_submit_job.py | 9640ff2bd0dc0bdddbcce8ae8bbcf6bb9621c9c1 | [] | no_license | MacroFinanceHub/PrjForInfCreditVilFW | 06a6c475d0c846c1578205e062acb0190bcce1c2 | d2a863656962691f8dc13d205a82c81823040c8b | refs/heads/main | 2023-07-19T05:31:15.992847 | 2021-08-30T14:44:14 | 2021-08-30T14:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | """
Assume that:
1. Container on ECR has been updated to contain latest pyfan and thaijmp code
2. A task with the task name below has been submitted.
Note that for different invokations, can adjust the default command and compute
size of registered tasks.
Submit two separate tasks, representing two different regions... | [
"wangfanbsg75@live.com"
] | wangfanbsg75@live.com |
93b7f21504d58d63e17f2a7e1435cb78ca6999d6 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009324.py | cbdf2c82d8e24b917f93048ece6a2aa7d84ec418 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
ff3f576564a64698fd39d488aee3b2df3873b01e | 9d8e2dd4441c50b443390f76c899ad1f46c42c0e | /mit_intro_algos/max_heap.py | 13d0a325af33fa82b8c19924971ba9c0b20d5f14 | [] | no_license | vikramjit-sidhu/algorithms | 186ec32de471386ce0fd6b469403199a5e3bbc6d | cace332fc8e952db76c19e200cc91ec8485ef14f | refs/heads/master | 2021-01-01T16:20:52.071495 | 2015-08-03T17:42:29 | 2015-08-03T17:42:29 | 29,119,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | """
Creates a max heap, can also use heap sort algorithm on a pre created array
Uses an array to implement array
My implementation of python heapq module
"""
class MaxHeap:
def __init__(self, ar=[None]):
self.A = ar
if len(self.A) > 1:
self.__create_maxheap()
def __ma... | [
"vikram.sidhu.007@gmail.com"
] | vikram.sidhu.007@gmail.com |
f583736aeb98af156de12d7ff928aca9a305b7c8 | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst_tags/initial_7607.py | f3e10cc911458956f628b86bc422c72bf2469275 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
9fe14f76ed7f167080c56d6ae5377451ea028db9 | 607241e619ca499121106b218a5e00ac5244bda3 | /analysis/zeldovich_enzo_mass.py | 808a1269774d71bef4bd037a05e3c33e5614d2a5 | [] | no_license | bvillasen/cosmo_sims | 37caea950c7be0626a5170333bfe734071c58124 | 8b20dc05842a22ea50ceb3d646037d2e66fc8c9b | refs/heads/master | 2020-04-22T23:22:28.670894 | 2020-01-02T23:32:39 | 2020-01-02T23:32:39 | 114,167,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
import h5py as h5
import yt
dev_dir = '/home/bruno/Desktop/Dropbox/Developer/'
cosmo_dir = dev_dir + 'cosmo_sims/'
toolsDirectory = cosmo_dir + "tools/"
sys.path.extend([toolsDirectory ] )
from load_data_cholla import load_snapshot_data
from internal_energy... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
1f4b6688675f5b730dc3dd73a877fc56530df03b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/W_w_Mgt_to_C_focus_div/ch032/Tcrop_s255_p20_j15/pyr_6s/L3/step09_6side_L3.py | bb36cd8c779761d81788e6554c71dce596961f80 | [] | 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 | 50,455 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
00c84dfe665dbb738ca50b70040e7c837c595038 | 4f9930e15c02cb9a09af70d66b794480b8c9bd57 | /hail/python/hailtop/pipeline/task.py | a2472c4ff18e3f5de5f9d7a3a7b3edab693c4253 | [
"MIT"
] | permissive | gsarma/hail | d76aa16d718618c1915b629077fd80cbc4d3b526 | 6aa2d945bb7d57c463d5ab9afb686f18c2941b25 | refs/heads/master | 2020-06-20T06:09:43.408615 | 2019-10-29T21:40:23 | 2019-10-29T21:40:23 | 196,250,453 | 0 | 0 | MIT | 2019-07-10T17:44:48 | 2019-07-10T17:44:47 | null | UTF-8 | Python | false | false | 12,654 | py | import re
from .resource import ResourceFile, ResourceGroup
from .utils import PipelineException
def _add_resource_to_set(resource_set, resource, include_rg=True):
if isinstance(resource, ResourceGroup):
rg = resource
if include_rg:
resource_set.add(resource)
else:
resourc... | [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
921a1439c4b41746c803c1027e09f0d1502c2b93 | 55dc6e337e634acb852c570274a1d0358b7300a5 | /tests/core/intz/intz.py | 32ff67f7a362dffe3e6e8699ccb651f1b494c791 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fifoteam/veriloggen | 97ad45671f053c85f495b08a030f735fd9822146 | 23cb7251c0f126d40d249982cad33ef37902afef | refs/heads/master | 2020-05-27T00:28:37.575411 | 2017-02-20T01:47:00 | 2017-02-20T01:47:00 | 82,518,602 | 2 | 0 | null | 2017-02-20T05:02:37 | 2017-02-20T05:02:37 | null | UTF-8 | Python | false | false | 989 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
from veriloggen import *
def mkLed():
m = Module('b... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
daf504ddb048bd9ff53c1be218bdef13eb0e3612 | 978d8f24f4985c61c2dce534a279abe6ffeff433 | /custom_components/blueprint/__init__.py | 7f90a41bded995d9a9e736289b3e45a104db0064 | [
"MIT"
] | permissive | JiriKursky/blueprint | 3c1ad02c4726539ab07fc407b6c53ef4c903448b | 92ae97dc5fec3a9a6e6e14031c32bbf2f1953ff6 | refs/heads/master | 2022-01-27T16:24:27.521422 | 2019-07-20T10:52:46 | 2019-07-20T10:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | """
Component to integrate with blueprint.
For more details about this component, please refer to
https://github.com/custom-components/blueprint
"""
import os
from datetime import timedelta
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helper... | [
"joasoe@gmail.com"
] | joasoe@gmail.com |
e7b1a107e606889f4d2ea63f1cc95c913cd2cef3 | 13800b7827598e76428a335559b7bf11867ec2f0 | /python/ccxt/async_support/binancecoinm.py | 62ca72174bcc92699c5987d6f42bca5163a236e1 | [
"MIT"
] | permissive | ccxt/ccxt | b40a0466f5c430a3c0c6026552ae697aa80ba6c6 | e4065f6a490e6fc4dd7a72b375428b2faa570668 | refs/heads/master | 2023-09-04T03:41:29.787733 | 2023-09-03T19:25:57 | 2023-09-03T19:25:57 | 91,253,698 | 30,798 | 8,190 | MIT | 2023-09-14T21:59:09 | 2017-05-14T15:41:56 | Python | UTF-8 | Python | false | false | 1,683 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.binance import binance
from ccxt.abstract.binancecoinm import ImplicitAPI
class binancecoinm(binance, ImplicitAPI... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
7163f816dfd5db84ab30220ee8fb101ce0b68c6c | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5173 Pulse Timing/Pion_108538.py | e53460495e0c5366f4f533ec68de84b6c0a8447d | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("EventDisplay")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108538.root"),
streams = cms.untracked.vstring('Chun... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
ddb0511c7da10557a74469f32fdf621eef3c6942 | 3a093f6a40e8fb24957d277ad8f4b097d08c6d04 | /result_scons/tools/cards.py | 289cbf4c6c50e49e16d0902fa369f486a474e093 | [] | no_license | dlont/FourTops2016 | ab9e953760e93b0e777b23478938efd30d640286 | 88c929bf98625735a92a31210f7233f799c5a10c | refs/heads/master | 2021-01-18T22:23:52.796080 | 2019-07-31T12:34:03 | 2019-07-31T12:34:03 | 72,439,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,985 | py | #!/usr/bin/env python
"""
Script for Higgs Combine cards creation
"""
import os
import sys
import time
import argparse
import logging
import json
from datetime import datetime
import pandas as pd
import numpy as np
import ROOT
from cards_proc_list import proc_id
from cards_syst_list import systtypelist
from cards_... | [
"denys.lontkovskyi@cern.ch"
] | denys.lontkovskyi@cern.ch |
1f1529473302b02d543365662b5ea486c153d200 | 0cf7dd2c3c0b28b52f1273e8fe2ea0a87cacc6af | /ToLeftandRight.py | b17d2c4f0c6445bb843c71a099e74b7f273f481e | [] | no_license | EngrDevDom/Everyday-Coding-in-Python | 61b0e4fcbc6c7f399587deab2fa55763c9d519b5 | 93329ad485a25e7c6afa81d7229147044344736c | refs/heads/master | 2023-02-25T05:04:50.051111 | 2021-01-30T02:43:40 | 2021-01-30T02:43:40 | 274,971,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # ToLeftandRight.py
nums = []
num_of_space = 0
current_num = int(input("Enter a number: "))
nums.append(current_num)
while True:
num = int(input("Enter a number: "))
if num > current_num: num_of_space += 1
elif num == current_num: continue
else: num_of_space -= 1
current_num = num
nums.a... | [
"60880034+EngrDevDom@users.noreply.github.com"
] | 60880034+EngrDevDom@users.noreply.github.com |
3cc3eff0e75bc844fb12fcaa253b0afbd4c3e476 | 1a6d5f58a5aaf478e3af1a880f155a2bcbd06aff | /PX4/MAVSDK-Python/offboard_velocity_body.py | d14407e6d1504bb49547099d1e336c087e9f2eaa | [
"MIT"
] | permissive | yingshaoxo/suicide-squad | 5b8858376bffe9d80e66debbd75e83b6fb6f5b6e | cadbd0d48e860a8747b59190fc67a5a114c3462b | refs/heads/master | 2020-11-24T02:46:38.604339 | 2019-10-29T05:47:44 | 2019-10-29T05:47:44 | 227,932,669 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | #!/usr/bin/env python3
"""
Some caveats when attempting to run the examples in non-gps environments:
- `drone.action.arm()` will return a `COMMAND_DENIED` result because the action requires switching
to LOITER mode first, something that is currently not supported in a non-gps environment. You will
need to tempora... | [
"yingshaoxo@gmail.com"
] | yingshaoxo@gmail.com |
37448d7967ed493b56ddd9b94af1582157f26f15 | 3d016301728a4428ec466653587f0f80c4f7eb11 | /plugin/lighthouse/metadata.py | ea0afcf3dc444279943f34cbf0dc8925b321eb9b | [
"MIT"
] | permissive | MosheWagner/lighthouse | bcb16e24612645cdcf441011b430d6b8408b0687 | ca1454b2680b31d882339ff56efd34b546ba908d | refs/heads/master | 2020-04-26T23:50:43.001011 | 2019-03-05T09:32:30 | 2019-03-05T09:32:30 | 173,915,816 | 2 | 0 | MIT | 2019-03-05T09:26:59 | 2019-03-05T09:26:55 | Python | UTF-8 | Python | false | false | 35,794 | py | import time
import Queue
import bisect
import logging
import weakref
import threading
import collections
from lighthouse.util.misc import *
from lighthouse.util.disassembler import disassembler
logger = logging.getLogger("Lighthouse.Metadata")
#------------------------------------------------------------------------... | [
"markus.gaasedelen@gmail.com"
] | markus.gaasedelen@gmail.com |
6c78fccd11b2ca769683b6527aa888e158fea647 | d9e26e516ab3863b6e7d00c4e3cdecf1af7028eb | /src/oaklib/io/streaming_nl_writer.py | ecde169932c3e55baa59bfdfd1aef1e274f6109a | [
"Apache-2.0"
] | permissive | INCATools/ontology-access-kit | 2f08a64b7308e8307d1aaac2a81764e7d98b5928 | 8d2a124f7af66fe2e796f9e0ece55585438796a5 | refs/heads/main | 2023-08-30T14:28:57.201198 | 2023-08-29T17:40:19 | 2023-08-29T17:40:19 | 475,072,415 | 67 | 15 | Apache-2.0 | 2023-09-07T01:06:04 | 2022-03-28T15:50:45 | Jupyter Notebook | UTF-8 | Python | false | false | 1,152 | py | from dataclasses import dataclass
from linkml_runtime.utils.yamlutils import YAMLRoot
from oaklib.datamodels import obograph
from oaklib.io.streaming_writer import StreamingWriter
from oaklib.utilities.nlp.natual_language_generation import NaturalLanguageGenerator
@dataclass
class StreamingNaturalLanguageWriter(Str... | [
"noreply@github.com"
] | INCATools.noreply@github.com |
3cc7c17ee582aaba4ab4d5771286ac2e1ae8b9e8 | 1b45d1162bd60a356844fc4dced068da2e6cc438 | /Arrays/Merge.py | 8ee66ae39f1687b433e476fa1b9e3be1d2e31015 | [
"MIT"
] | permissive | AnkitAvi11/Data-Structures-And-Algorithms | de9584e439861254cdce265af789c8b484c01c69 | 703f78819a41d4dd88caf71156a4a515651edc1b | refs/heads/master | 2023-02-19T21:53:39.405934 | 2021-01-24T17:27:21 | 2021-01-24T17:27:21 | 297,752,655 | 6 | 3 | MIT | 2021-01-24T17:27:22 | 2020-09-22T19:33:55 | Python | UTF-8 | Python | false | false | 669 | py | """
QUESTION STATEMENT : MERGE TWO SORTED ARRAYS WITHOUT USING ANY EXTRA SPACE
example :
arr1 = {1,3,5,7,9} size = n
arr2 = {2,4,6,8,10} size = m
arr1 after merging = {1,2,3,4,5,6,7,8,9,10}
"""
def mergeArrays(arr : list, arr2 : list) :
i = 0;j = 0;
while i < len(arr) : # O(n)
if arr[i] > arr2[... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
aa27042ddeb0ddff82f1c8f4312778d7feb8da3e | cee65c4806593554662330368c799c14ec943454 | /src/sqlvm-preview/azext_sqlvm_preview/vendored_sdks/sqlvirtualmachine/models/wsfc_domain_profile_py3.py | 0d7864768ad80fab17f0ea7f8ca57ea27cec3b41 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 3,274 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
d905ee37aa6ecea6a752fbc54249897a44a54d0e | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5223 All Charges/ExportCharge.py | 0256e8dcc77eb233c47742a482097e9b389b68a6 | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PrintCharges")
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(50000))
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring('file:/tmp/chenyi/HTB_.root'),
streams = cms.untracked.vstring('HCAL_Trigge... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
c477af6c57995ecddcbfdc254fe373d15f3999c8 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /252/252.meeting-rooms.234346443.Runtime-Error.leetcode.py | 92868ca8e540837d3283eb90122ea37aa2b82d4d | [] | 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 | 316 | py | class Solution:
def canAttendMeetings(self, intervals):
overlap = []
for interval in sorted(intervals, key=lambda x: x.start):
if overlap and overlap[-1].end > interval.start:
return False
else:
overlap.append(interval)
return True
| [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
fc02fda54534594dd3a8358ecf562fc2cbd36a7e | 0a1716384ac3425b0f457e210e43c0a499bd66d2 | /process_files/_old/fix_processed_names.py | 27e83d345283a04bd753cafb4edbf2a7f9b3850a | [] | no_license | ilbarlow/process-rig-data | d54d0489ad42ef92e422915d01ac43feeb62bed3 | 89fc296628eb7f9260b099ee3cb2f25680905686 | refs/heads/master | 2020-03-18T21:50:05.775230 | 2018-03-28T20:13:41 | 2018-03-28T20:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 27 16:15:39 2016
@author: worm_rig
"""
import os
import shutil
import glob
import numpy as np
import pandas as pd
import warnings
from functools import partial
if __name__ == '__main__':
output_root = '/Volumes/behavgenom_archive$/Avelino/Worm_Rig_Tests/short_movies... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
148ea8e659b1f395932dd56bb4319bd9d6022474 | 9ec58308459dc95405d1a32fcf8fae7f687a207b | /test/test_k_bank.py | 71dc290f6f4630d2eaa7649866a90201a40f7e18 | [
"MIT"
] | permissive | ivanlyon/exercises | 067aed812486dbd7a3d7de6e47a692c8b9383163 | 0792976ae2acb85187b26a52812f9ebdd119b5e8 | refs/heads/master | 2021-05-24T04:17:29.012329 | 2021-05-11T17:26:50 | 2021-05-11T17:26:50 | 65,584,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import io
import unittest
from unittest.mock import patch
from kattis import k_bank
###############################################################################
class SampleInput(unittest.TestCase):
'''Problem statement sample inputs and outputs'''
def test_sample_input_1(self):
'''Run and assert ... | [
"roblyon00@gmail.com"
] | roblyon00@gmail.com |
dcdfd17496925a85400ab2e195a3c8e50d5401e6 | d7f486eebaa164bf3274c843e1932c7eef596e5e | /importer/facebook.py | 352a80e06ffca4048160d7b028cf173373aa9667 | [
"MIT"
] | permissive | Galaxyvintage/journal-1 | aafe107645a6dde038b0010496c041ac635e966d | f666a3b38f0eeb2cc1f5576e0668f174bf1cbd8d | refs/heads/master | 2020-03-20T09:15:09.269993 | 2018-07-05T16:31:17 | 2018-07-05T16:31:17 | 137,332,462 | 0 | 0 | null | 2018-06-14T08:54:38 | 2018-06-14T08:54:37 | null | UTF-8 | Python | false | false | 7,091 | py | import events
from database import db
import json
import datetime
import os
def load_to_json(filename):
json_data = open(filename).read()
return json.loads(json_data)
def read_app_posts(directory):
data = load_to_json(directory + "apps/posts_from_apps.json")
for post in data["app_posts"]:
attachment_data = post... | [
"mail@marian42.de"
] | mail@marian42.de |
9088845ee4cd9fc4f784727bc6f020bc4213b6a6 | 786de89be635eb21295070a6a3452f3a7fe6712c | /Detector/tags/V00-00-05/SConscript | d6fb3976c08526bf2e9adb925905a3b3a1b85635 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package Detector
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
3bb4b250c9e481e8342d3d85a655fadd62014d8a | 82c7adb0bfaa667c50ac7b336bb815863b378fa9 | /finace/items.py | 60984524386545327a13568ee270fe67c087fc4d | [
"Apache-2.0"
] | permissive | pythonyhd/finace | c8a7dca65dfe33cabcb90630d8791d3a5b942bc9 | 614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688 | refs/heads/master | 2022-11-30T17:53:40.947747 | 2020-08-14T03:47:26 | 2020-08-14T03:47:26 | 287,253,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class FinaceItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"18353626676@163.com"
] | 18353626676@163.com |
5da193ab8f0e2efa5b0645b1029e0314fd56b029 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_011/ch92_2019_10_02_17_54_14_425785.py | 043154a806fa8650cc4d1a71882bef7df3c5440f | [] | 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 | 292 | py | def simplifica_dict(dicionario):
lista = []
for chave in dicionario:
if chave not in lista:
lista.append(chave)
for valor in dicionario[chave]:
if dicionario[chave] not in lista:
lista.append(dicionario[chave])
return lista | [
"you@example.com"
] | you@example.com |
ba8c4775490031f4b1abd9541e76e7d99773e96c | 44845df9198ae8c80fabecb6ed3ae6a44e43f38c | /modo/admin.py | 4aa582f42f92bbc0b441d3019c6b6fb02550a96f | [] | no_license | CarlosSanz81/cima | 570da404bddd0a813a025163a9e94676b9d0b4a9 | 3ad9b37af4a2d8a5789915208afffec7b6af3c0e | refs/heads/master | 2021-01-23T08:00:04.964713 | 2017-03-28T14:33:09 | 2017-03-28T14:33:09 | 72,184,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.contrib import admin
from .models import Modo
@admin.register(Modo)
class AdminModo(admin.ModelAdmin):
list_display = ('nombre',) | [
"carlossanzgarcia81@gmail.com"
] | carlossanzgarcia81@gmail.com |
fcb878a2819bc83a0ed79bdb5b844916fa3fbdbe | 794e14945c0521b4eab03e8b9a3f93b8fa14e021 | /src/compas_rhino/utilities/constructors.py | e71275fa0d0e525a4bf92e58e2154310209ae1c9 | [
"MIT"
] | permissive | KEERTHANAUDAY/compas | 5e8ada865bc87ee48ba77b3f6fd03661a9b9c17d | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | refs/heads/master | 2021-07-11T16:26:19.452926 | 2020-09-10T14:27:11 | 2020-09-10T14:27:11 | 294,453,684 | 0 | 0 | MIT | 2020-09-10T15:47:31 | 2020-09-10T15:47:30 | null | UTF-8 | Python | false | false | 2,494 | py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from compas.utilities import geometric_key
import Rhino
import scriptcontext as sc
__all__ = ['volmesh_from_polysurfaces']
def volmesh_from_polysurfaces(cls, guids):
"""Construct a volumetric mesh from... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
ff9d5d5e5194ae62f6f8a2888b5e8c36abe265af | 8cb6d50076c527b4c81d21b992fc93f77263adc5 | /orden/models.py | f0b736f5697c7219518a2d729725177f23df2fa5 | [] | no_license | alrvivas/CrevenApp | 6b9fefc4661a32cdf00ebb4a3eb869bf778f67e7 | 190291cfc798cbc52ba4cdbfa258ef0b983f7249 | refs/heads/master | 2020-06-04T20:24:03.685451 | 2015-02-12T17:36:01 | 2015-02-12T17:36:01 | 30,713,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,473 | py | from django.db import models
from distutils.version import LooseVersion
from django.contrib.auth.models import User
from cliente.models import Cliente
from producto.models import Product
from orden.managers import OrderManager
from util.fields import CurrencyField
from jsonfield.fields import JSONField
from django.db.m... | [
"alr.vivas@gmail.com"
] | alr.vivas@gmail.com |
339f9df0dd568b0dac0574b4653c263cc9d9af76 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /come_old_problem_to_point/ask_thing/see_day/seem_problem/time/find_few_week_over_point.py | b79ee7a454f58433209a2c9c27edba7f4f38079b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
#! /usr/bin/env python
def government(str_arg):
use_public_day(str_arg)
print('small_man_and_long_world')
def use_public_day(str_arg):
print(str_arg)
if __name__ == '__main__':
government('ask_day_from_year')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
a30686b6eabb2cac56f288acadb5c196580ebf70 | e6947a8ecc14ddb3c078321958856f888953f4fa | /my_project.py | d96f10703e7f2af3f045b4ee516f87f077c77cb7 | [] | no_license | raja073/SimpleMovieDB | a5dd4b924f1ecb8d04a61c9884e25e6a51af5c3c | 4d28dba684ea0ebf6ad4b78af4c2bdd13b072406 | refs/heads/master | 2021-09-05T13:59:35.372062 | 2018-01-28T14:06:57 | 2018-01-28T14:06:57 | 118,252,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py |
from flask import Flask, render_template, request, redirect, url_for
app = Flask(__name__) ### Instance of the Flask with name of the running application as an argument
#################################################################################################
# Adding database to Flask application
fro... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
9fd2adff33eb37163fba31027204557321194233 | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/pygments/formatters/irc.py | 49f8b3d13114e627e86ef8bdd693496bd155fd7f | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | """
pygments.formatters.irc
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for IRC output
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import sys
from pygments.formatter import Formatter
from pygments.token import Keyword, Name, C... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
874faf954ae174bedcfe8ce4f42f219ac04bd355 | 14449108de18a8e956830cd7d5107bb38de41c5d | /workshopvenues/venues/migrations/0009_auto__del_field_venue_address.py | 45329577f0f1c85666401d3a4ba848f7477f2436 | [
"BSD-3-Clause"
] | permissive | andreagrandi/workshopvenues | 736e53ccb6ff0b15503e92a5246b945f615d2ff8 | 21978de36f443296788727d709f7f42676b24484 | refs/heads/master | 2021-05-16T03:00:23.879925 | 2014-03-18T15:10:00 | 2014-03-18T15:10:00 | 8,843,235 | 1 | 3 | null | 2015-10-26T11:11:20 | 2013-03-17T23:19:33 | Python | UTF-8 | Python | false | false | 3,698 | 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):
# Deleting field 'Venue.address'
db.delete_column(u'venues_venue', 'address_id')
def backwards(self, o... | [
"a.grandi@gmail.com"
] | a.grandi@gmail.com |
d3813671c7b96dd94e66342390d4574c412700a3 | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/functions/search_user_by_phone_number.py | 218f9710f017f0467ab39dc7429e7841c3300db5 | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 751 | py |
from ..utils import Object
class SearchUserByPhoneNumber(Object):
"""
Searches a user by their phone number. Returns a 404 error if the user can't be found
Attributes:
ID (:obj:`str`): ``SearchUserByPhoneNumber``
Args:
phone_number (:obj:`str`):
Phone number to search ... | [
"arshshia@gmail.com"
] | arshshia@gmail.com |
1c23cd9bec50756f3a2bea2745a173ac45cdc882 | c278b06f77cac0a2942fa2ca0636f2dc72b52505 | /4.blog_project/mydjangoproject/blog/migrations/0004_auto_20190320_0504.py | f8a4d492ef89b65190cfc991db5c4e1a9cab6c16 | [] | no_license | hooong/Django_study | 2d27bc7d5b2ad53fa4c9e1bcd808437af98cbe09 | b760ace8f562d538ad18d552388e48ed52cc78d1 | refs/heads/master | 2022-12-02T15:51:24.510596 | 2019-11-02T07:38:37 | 2019-11-02T07:38:37 | 165,012,883 | 5 | 1 | null | 2022-11-22T03:26:18 | 2019-01-10T07:35:07 | Python | UTF-8 | Python | false | false | 318 | py | # Generated by Django 2.1.5 on 2019-03-20 05:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_blog_blog_hit'),
]
operations = [
migrations.AlterModelOptions(
name='comment',
options={},
),
]
| [
"tjrwns0529@gmail.com"
] | tjrwns0529@gmail.com |
81d70837b62ed7c9dbad2ad8927c5d723e1d4953 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/test/test_performance_metrics_settings.py | 5471c91fa1f10ac623252fd1733b391f5e288962 | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
... | [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
2e56f5cdcb6487d4631e61f2dd8ee8baa69b504c | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /Web-UI/scrapyproject/migrations/0010_auto_20170406_1835.py | 28afbaa4d39615071f49bc6050e0d270de3e4686 | [
"MIT"
] | permissive | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scrapyproject', '0009_auto_20170215_0657'),
]
operations = [
migrations.RemoveField(
model_name='mongopass',
... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
716b77deb7f8f935eada888a20f2b54d08a47dd3 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/services/services/hotel_group_view_service/client.py | b9c83f2d85aa2f2fdc21c12add578c9da910ff31 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 18,873 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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"
] | GerhardusM.noreply@github.com |
6fcc525132976c116ea70511282befacca492375 | 573a516233447c8384f26ed56ae4e356e3995153 | /ques6.py | c06b87f3ab0dae128a898dd372ba780d807a5d97 | [] | no_license | BhagyashreeKarale/if-else | 437b0867247f827c44f469a90efeecbf9444803d | 1224fca2bdda389b22897f17b22f21320260e75f | refs/heads/main | 2023-07-19T15:03:03.351825 | 2021-09-11T19:16:07 | 2021-09-11T19:16:07 | 397,150,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Question 6
# Draw a flowchart for this question and write the program.
# Take two numbers as input from the user in variables varx and vary.
# Check whether varx is divisible by vary.
# If yes, print Divisible else print Not Divisible.
varx=int(input("Enter dividend:\n"))
vary=int(input("Enter divisor:\n"))
if varx %... | [
"noreply@github.com"
] | BhagyashreeKarale.noreply@github.com |
3ddc20aebdc144d9693019af06524d5ea4513712 | 78a28bd6b95041bfe67d8aa6a3a3c111911afaab | /18.Web Scraping with Python Scrapy - RM/03_Advanced_Techniques/news_scraper/news_scraper/settings.py | dec217105fcd124cbb665b4076642b6d93bf5eb9 | [
"MIT"
] | permissive | jailukanna/Python-Projects-Dojo | 8200a60ab925bf796bd39cb1977e6f0e0a575c23 | 98c7234b84f0afea99a091c7198342d66bbdff5b | refs/heads/master | 2023-03-15T06:54:38.141189 | 2021-03-11T08:17:02 | 2021-03-11T08:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | # Scrapy settings for news_scraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middl... | [
"ptyadana@users.noreply.github.com"
] | ptyadana@users.noreply.github.com |
d5f34735f201edeb1130c4cb2a9efc396cbf184e | 1ec8734beba25739979cbd4a9414a95273cce6aa | /10.9/移除元素.py | f3a3c26997d12fbc85a770412e56ce40c9f3a40b | [] | no_license | MATATAxD/untitled1 | 4431e4bc504e74d9a96f54fd6065ce46d5d9de40 | 18463f88ce60036959aabedabf721e9d938bacfb | refs/heads/master | 2023-01-01T23:16:30.140947 | 2020-10-23T04:32:38 | 2020-10-23T04:32:38 | 306,529,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from typing import List
def removeElement(nums:List[int],val:int)->int:
fast = 0
slow = 0
while fast < len(nums):
if nums[fast]== val:
fast +=1
else:
nums[slow] = nums [fast]
slow +=1
fast +=1
return slow
a = [1,2,3,4,5,6]
print(removeElem... | [
"502513072@qq.com"
] | 502513072@qq.com |
a7438ca02484cd42c1d46f32f2b6415efa83040e | cadb25b610777d1a91404c7dcfe3d29ca1ddd542 | /apps/localidades/migrations/0010_alter_localidade_nomelocalidade.py | cb9f7aeb7196267ac6b6462739e16d51937b8d84 | [] | no_license | luanaAlm/sistema_ebd | 851b8d98979e33187ec68b301910fe0c309a1ce2 | ec6a97ddf413e5b10ddff20a781e37ddce77794d | refs/heads/main | 2023-08-28T01:10:27.381064 | 2021-10-18T23:11:25 | 2021-10-18T23:11:25 | 415,992,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.2.7 on 2021-10-06 18:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('localidades', '0009_alter_localidade_nomelocalidade'),
]
operations = [
migrations.AlterField(
model_name='localidade',
... | [
"luanarodrigues3211@gmail.com"
] | luanarodrigues3211@gmail.com |
c45e8e0400ff9d0a80d3861ee9d4f16481928447 | 845e3c428e18232777f17b701212dcbb1b72acc1 | /lib/fast_rcnn/test_upper_body.py | a0d72a59ea4af92083ed2328b831359d2c136799 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | chuanxinlan/ohem-1 | dd10b2f5ff15e81ab9e42e936bb44d98e01c6795 | b7552ceb8ed1e9768e0d522258caa64b79834b54 | refs/heads/master | 2021-09-16T18:31:25.651432 | 2018-06-23T10:09:24 | 2018-06-23T10:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,043 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Test a Fast R-CNN network on an imdb (image database)."""
from fast... | [
"cg@example.com"
] | cg@example.com |
13279672b8c47331a37e9052b40787fc939702ac | 5b85703aa0dd5a6944d99370a5dde2b6844517ec | /03.Python/15.ZerosandOnes.py | 4d5e2053608bce9ef159ceccd2e274087611e083 | [] | no_license | alda07/hackerrank | 255329196e6a4b9d598c3f51790caf4a99a755bc | a09091f859e87462c95ee856cbbd0ad9b5992159 | refs/heads/master | 2021-10-24T07:38:34.795632 | 2019-03-23T17:29:32 | 2019-03-23T17:29:32 | 90,329,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # zeros
# import numpy
# print (numpy.zeros((1, 2)))
# print (numpy.zeros((1, 2), dtype = numpy.int))
# ones
# import numpy
# print (numpy.ones((1, 2)))
# print (numpy.ones((1, 2), dtype = numpy.int))
import numpy
list_i = list(map(int,input().split()))
print(numpy.zeros(list_i, dtype = numpy.int))
print(numpy.o... | [
"hanh.vo.programmer@gmail.com"
] | hanh.vo.programmer@gmail.com |
dd7c42bf3677ff4d5c0535593c8a3d205b5bbb4f | 9404a8593ff2d82133897c9e187523d301df7888 | /0x09-Unittests_and_integration_tests/client.py | 09fe617f4bf9b728195056ec7874888a22e52d18 | [] | no_license | emna7/holbertonschool-web_back_end | ac2bc16e47f464530c4dee23497488c77377977e | 744e6cb3bb67b2caa30f967708243b5474046961 | refs/heads/main | 2023-03-06T17:56:10.699982 | 2021-02-12T21:24:04 | 2021-02-12T21:24:04 | 305,394,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py |
#!/usr/bin/env python3
"""A github org client
"""
from typing import (
List,
Dict,
)
from utils import (
get_json,
access_nested_map,
memoize,
)
class GithubOrgClient:
"""A Githib org client
"""
ORG_URL = "https://api.github.com/orgs/{org}"
def __init__(self, org_name: str) -> N... | [
"bhmemna7@gmail.com"
] | bhmemna7@gmail.com |
ac60830bcb8ab8d05d3b4a995a1b9e7f2e93a2fa | 2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b | /665.非递减数列.py | 69ccfdcba89fb3679104b70233a147b4b5ee3c0d | [] | no_license | mqinbin/python_leetcode | 77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3 | 73e0c81867f38fdf4051d8f58d0d3dc245be081e | refs/heads/main | 2023-03-10T18:27:36.421262 | 2021-02-25T07:24:10 | 2021-02-25T07:24:10 | 314,410,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #
# @lc app=leetcode.cn id=665 lang=python3
#
# [665] 非递减数列
#
# @lc code=start
class Solution:
def checkPossibility(self, nums: List[int]) -> bool:
c = 0
for i in range(len(nums) -1):
if nums[i] > nums[i+1]:
c +=1
if i > 0 :
... | [
"mqinbin@gmail.com"
] | mqinbin@gmail.com |
27d214b5b033cb21e812b5568854396b459d8ab9 | bdd40ea113fdf2f04ef7d61a096a575322928d1d | /Rupesh/DjangoTutorial/TOdo/TOdo/Task/migrations/0002_auto_20200219_0600.py | 56b743b8b63b2342fd7f88303c0256f187fcae5f | [] | no_license | rupesh7399/rupesh | 3eebf924d33790c29636ad59433e10444b74bc2f | 9b746acf37ab357c147cdada1de5458c5fc64f53 | refs/heads/master | 2020-12-22T05:01:29.176696 | 2020-03-03T10:32:36 | 2020-03-03T10:32:36 | 202,111,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # Generated by Django 2.2 on 2020-02-19 06:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Task', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='lastDate',
field=... | [
"rupesh7399@gmail.com"
] | rupesh7399@gmail.com |
93218602b7a30997b8ff0defd0e336e8bd93427c | 07acf11fadb7fbbf342e1f5005c9197d36b79f56 | /aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/DescribeUserAvgTimeByDayRequest.py | 9a798b69525f04e4ccee97970a5bb855ed2ec093 | [
"Apache-2.0"
] | permissive | ccflying/aliyun-openapi-python-sdk | 9ce8d43a39b8fa10a78fdf4f4831befbfc48ad4e | 2ddb938c366c06526deeec0ec46f8266235e52f6 | refs/heads/master | 2020-04-19T09:18:02.597601 | 2019-01-29T05:02:01 | 2019-01-29T05:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
adbedc8206330810c70cdc570b3140a5f632e51e | f7e5a206c5ca75043b662c8f9905a070b7e37060 | /cart/views.py | 54f1f59dc1f21f1a4b7c6b04e842911c7f358e15 | [] | no_license | sweetmentor/Str4-eCommerce-App | 4d22945f7b5dc0a40b577b8ed45caf22c9e644d4 | e50edff9183a207c8e7daff16136059fcb5f9002 | refs/heads/master | 2020-03-22T00:26:36.973580 | 2019-01-29T01:13:56 | 2019-01-29T01:13:56 | 139,244,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from django.shortcuts import render, redirect, get_object_or_404, HttpResponse
from product.models import Product
from .utils import get_cart_items_and_total
# Create your views here.
def view_cart(request):
cart = request.session.get('cart', {})
context = get_cart_items_and_total(cart)
return render(requ... | [
"stephenafolabi@gmail.com"
] | stephenafolabi@gmail.com |
42d2ccd0a08c1520cae02783637eee771aedda4f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_196/ch31_2020_03_14_15_42_06_957078.py | 7229a92343174b1d0b472e5e5af883e664d7d8d9 | [] | 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 | 163 | py | def eh_primo(a):
if a == 2:
return True
x=1
elif (a%2 == 0) or (a%x == 0):
x+=2
return False
elif (a==0) or (a==1):
return False
else:
return True | [
"you@example.com"
] | you@example.com |
91ad79fe802f8441997c7574f787866330f8fdaf | 7a0334693cd31fe4fdef06324ede0d72c6530c40 | /event_crud/migrations/0001_initial.py | 414c9f942def602edac8017b35088131a4404944 | [] | no_license | lilitotaryan/eventnet-back-end | 7949668a4108b36a6e1a2f6439d6e966991d64ba | 5828b1520b8feeb363fdac0b85b08e001572991e | refs/heads/main | 2023-02-18T02:24:45.475978 | 2021-01-22T18:15:42 | 2021-01-22T18:15:42 | 332,027,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # Generated by Django 2.2.5 on 2020-02-26 19:01
import authentication.utils
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH... | [
"lilit_otaryan@edu.aua.am"
] | lilit_otaryan@edu.aua.am |
122a05dc3115f6ed66c2747d3dc1e78c44cd4955 | 52e0e1ef7675d8bac51899f23b2722e7e7f58992 | /core/data/base_collector.py | 972479bf987185887d7e79d61ee4b166286f1b46 | [
"Apache-2.0"
] | permissive | knowmefly/DI-drive | 2c8963a04d00aa8b3c3354630b6df9e3e6a6770e | ade3c9dadca29530f20ab49b526ba32818ea804b | refs/heads/main | 2023-07-08T14:40:39.625522 | 2021-07-21T15:54:48 | 2021-07-21T15:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import copy
from abc import abstractmethod
from typing import Any, Dict
from easydict import EasyDict
from ding.utils import EasyTimer
class BaseCollector(object):
config = dict()
def __init__(
self,
cfg: Dict,
env: Any = None,
policy: Any = None,
) -> No... | [
"sissure@qq.com"
] | sissure@qq.com |
7b2f3ffb266a6b73b251aa0bed91d044d1201bd4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03162/s990109089.py | 40f2258c0867493398fd6c13585706e99574813b | [] | 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 | 363 | py | n=int(input())
happines=[list(map(int,input().split())) for _ in range(n)]
solution=[[0,0,0] for _ in range(n)]
solution[0][0]=happines[0][0]
solution[0][1]=happines[0][1]
solution[0][2]=happines[0][2]
for i in range(1,n):
for j in range(3):
solution[i][j]=happines[i][j]+max(solution[i-1][(j+1)%3],soluti... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e3b3126e6676609e20aa10a8b485b3a059b0fd77 | 8787b2fbb5017b61dcf6075a5261071b403847bf | /Programmers/N으로 표현.py | 21d160641aee1be033211795680b2a0e5c76564b | [] | no_license | khw5123/Algorithm | a6fe0009e33289813959553c2366d77c93d7b4b9 | 323a829f17a10276ab6f1aec719c496a3e76b974 | refs/heads/master | 2023-01-02T00:12:21.848924 | 2020-10-23T06:37:41 | 2020-10-23T06:37:41 | 282,162,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | def calc(s, N, number):
result = 0
start = 0
tmp = ''
for i in range(len(s)):
if s[i] != str(N):
start = i
result = int(tmp)
break
else:
tmp += s[i]
tmp = ''
operator = []
for i in range(start, len(s)):
if ... | [
"5123khw@hknu.ac.kr"
] | 5123khw@hknu.ac.kr |
2edda813a68b94ffdf1c3d6201c1cff73d0ddad3 | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/asyncio/base_events.py | 32b4f0adcd1093409fe44dc22121f8affc046568 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "23f1c44c157099ef5d66c87ba91eb7128afa4867"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
2ad7f8907bd282c066e9db3e2553e053f204e9a8 | a70778e730f6d3e3be04ba449e6ed0a9ff7d7e6d | /classifier_5b_rough_fine_tune_from3z.py | 4e132cf8513dd1cd901bd4a0c5a2f1a6c88b44fc | [] | no_license | previtus/two_classes_ml | 0351e62544cc46f9c09847de641fd84aac94d38b | 0f780e2e3736e6280dddd25540911d60c9d721d8 | refs/heads/master | 2021-05-10T10:05:38.526602 | 2018-08-06T19:59:26 | 2018-08-06T19:59:26 | 118,946,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py |
img_size = None #(20,20)
img_size = (150,150)
epochs_first = 10
epochs_second = 40
batch_size = 16
validation_split = 0.3
RESCALE = 1. / 255 # put data from 0-255 into 0-1
# GET ALL DATA
# define the classes in here directly
from data_handling import LOAD_DATASET, LOAD_DATASET_VAL_LONGER_THR2, sample_random_subset_fr... | [
"previtus@gmail.com"
] | previtus@gmail.com |
8871896d5379ec5750e6fb6433622c846811c30b | b8fed8222b41e447cd5ce83513eb4d014c01742b | /ad_report_salesadmin/po/po_form.py | ae2a831ae88665d254b25eafbddb16d0e61cf761 | [] | no_license | lajayuhniyarsyah/ERP-Supra | e993d8face6e022b6f863d1dff7cb51cda36be8d | 5a64dbb57ee40070354926700091fb9025c1350c | refs/heads/master | 2021-01-25T22:09:46.306990 | 2017-11-08T05:32:04 | 2017-11-08T05:32:04 | 23,605,825 | 0 | 10 | null | 2017-11-08T05:32:05 | 2014-09-03T03:58:28 | Python | UTF-8 | Python | false | false | 2,035 | py | import time
from report import report_sxw
from osv import osv,fields
from report.render import render
#from ad_num2word_id import num2word
import pooler
#from report_tools import pdf_fill,pdf_merge
from tools.translate import _
import tools
from tools.translate import _
import decimal_precision as dp
#from ad_amount2te... | [
"lajayuhni@gmail.com"
] | lajayuhni@gmail.com |
f040cc2c3bcc0b27174802337d61601ed34c13a6 | 38c1e589388752100c4afcbe0b445bfff033bab2 | /friend/migrations/0003_auto_20200819_1444.py | 0bf415da2081910e1e2d42a9465ac80b351f2e6a | [] | no_license | ruhullahil/Codingwithmitch-Chat | 02c83f17fd51329fb3e4c0af74f1890ffd7ac012 | dd854e6357e98684c3fe7c87da028de1f356030b | refs/heads/master | 2023-01-03T00:38:38.225127 | 2020-10-29T21:09:37 | 2020-10-29T21:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.15 on 2020-08-19 21:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('friend', '0002_auto_20200819_1443'),
]
operations = [
migrations.AlterFie... | [
"mitch@tabian.ca"
] | mitch@tabian.ca |
7c3de6ac23a5796d7675e6ed3bf8151de5a1c8c6 | a6b6294dd573e7a8429f6e1817a0598c7b315c5e | /examples/finance_vix.py | d0a1e8139e68366c05b1e389003532561c2be261 | [
"MIT"
] | permissive | openknowledge-archive/datapackage-bigquery-py | 4bef9c960c4efc9131d4673fab1f999f5ae09221 | f1d822a1846eac4cfcdfd0f9e94bc27d2458f00b | refs/heads/master | 2021-05-31T09:52:09.884572 | 2016-01-30T16:23:02 | 2016-01-30T16:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import sys
from pprint import pprint
sys.path.insert(0, '.')
from examples.base import run
# Fixtures
dataset = 'datapackage'
prefix = 'finance... | [
"roll@post.agency"
] | roll@post.agency |
8a7d55caa81a5c81fa616f5f2ed3c6f0142efd0a | 69bc23a7baf65b276496d76d02645b5a76cfe083 | /thu_python_16/program3.py | f3332c8639d67bd315206d183acabe04cb6c234d | [] | no_license | pylinx64/thu_python_16 | a12e4ec8f82e6470b496116342b777e0a6676be1 | 617e75618a5a3117ec34278c41dadb38aa39fdb8 | refs/heads/main | 2023-04-23T03:17:31.347867 | 2021-05-05T10:09:57 | 2021-05-05T10:09:57 | 336,022,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #x=10
#print(x)
#y=10
#print(x+y)
#print('x+y')
#x=20
#z = 10
#print(x+y+z)
#x='Яготинское'
#k='молоко'
#print(x+' '+k)
#print('Яготинское'+' молоко')
#print(k * 143543543)
#print(11 > 10)
#print(8 > 9)
#print(9 != 9)
#print(9 == 9)
#x = 8
#y = 9
#print(x >= y)
#print('a' == 'a')
#p... | [
"noreply@github.com"
] | pylinx64.noreply@github.com |
d073cf0e510babb4c2329508f3b0d549e0cf3cec | 0bc2a2963cb72c09c0ec0b3e3b10911c7bc31342 | /examples/manila/script.py | a5f6b5d55011b15a3bcca5fbe09c09f48968cb7b | [] | no_license | cloudify-cosmo/cloudify-openstack-plugin | eb5730d0b75442e6a49069164fde03020dcca1de | 7d2cd4162897333adcaab4bd83361bbd369fcf17 | refs/heads/master | 2023-09-06T09:10:53.372638 | 2023-03-06T15:02:59 | 2023-03-06T15:02:59 | 18,327,738 | 19 | 75 | null | 2023-03-06T15:03:01 | 2014-04-01T11:52:24 | Python | UTF-8 | Python | false | false | 391 | py | # For development help:
from manilaclient import client
# Fill in with real values.
manila = client.Client(
client_version='2',
username='admin',
password='openstack',
project_name='demo',
auth_url='http://10.11.12.2/identity',
user_domain_name='Default',
project_domain_name='default')
share... | [
"noreply@github.com"
] | cloudify-cosmo.noreply@github.com |
dd30c5254405af64ce994ba786c148924ddf521c | fd0194543a142c63812352e79c417e54a19d0cd5 | /Auxiliary_Scripts/Plot_Relocate.py | 7633b63d02c80b1e30093bd97aeca0eb93c5d1b2 | [] | no_license | mwilensky768/MJW-MWA | 2ac85b8f07577e3112c418595bf62902d720c3c2 | ebda1e273a401c88f014bc698743547ec86a6f35 | refs/heads/master | 2021-05-02T00:51:48.591198 | 2021-03-31T22:34:06 | 2021-03-31T22:34:06 | 78,403,875 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import glob
import shutil
import os
plot_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/unflagged/'
target_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/frac_diff/'
plots = glob.glob('%s*__INS_frac_diff.png' % (plot_dir))
print(plots)
for plot in plots:
shutil.copy(plot, target_d... | [
"mjw768@uw.edu"
] | mjw768@uw.edu |
344513f40b84e70156a271a556a0a7afa60bb84b | 6febc1719503d0f9dbc97f6b1202116370391b10 | /public_holiday/models/hr_holidays_inherited_model.py | fa5c2a57f2e8a69880f076eb808b1dbb72e214ac | [] | no_license | arshakil/Odoo-Development | 5c6a1795cd64a8ebef5abfdf7d6245804594bcd8 | df37f6e8c2f7d89cdbdb36d0a8fd501ef8bfe563 | refs/heads/master | 2022-12-11T05:17:12.123339 | 2020-07-28T07:38:58 | 2020-07-28T07:38:58 | 248,154,189 | 0 | 2 | null | 2022-12-08T03:51:50 | 2020-03-18T06:20:59 | Python | UTF-8 | Python | false | false | 3,029 | py | from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from datetime import date, datetime
from datetime import datetime, timedelta
class Hr_Holidays_inherited_Model(models.Model):
_inherit = 'hr.holidays'
public_holiday=fields.Float(string='Public Holiday In Between',compute='chec... | [
"azizur.rahman363410@gmail.com"
] | azizur.rahman363410@gmail.com |
e938435982e4bca35a3bbaf1e7c4c35be18545a9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/182/usersdata/265/105453/submittedfiles/diagonaldominante.py | 2a3603de9bfd26bb77e24473ed3f5a3d2574df4e | [] | 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 | 500 | py | # -*- coding: utf-8 -*-
import numpy as np
def soma(A):
somalinhas=[]
for i in range (0,A.shape[0],1):
cont=0
for j in range (0,A,shape[1],1):
cont=cont+a[i,j]
somalinhas.append(cont)
return(somalinhas)
linhas=int(input('digite a quantidade de linhas: '))
a=np.zeros(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7e1ccc3c0c0d628fe5629e0ba6ef33d3b0101291 | bf0ecad5f2d9853944e6bbc1ab6160359e9a6803 | /blog/migrations/0001_initial.py | d30bdf5599f3883def76510678e4cb1d43d9f3c0 | [] | no_license | NiteshPidiparars/icoder-blog-post | 9addc53a83ec916c421ee16de7b04b8035be5d6b | 19c5a333faf520b4133a0fa5d5ccf37320ed4181 | refs/heads/master | 2023-05-28T01:41:11.114065 | 2021-06-16T07:05:48 | 2021-06-16T07:05:48 | 374,288,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 3.2.4 on 2021-06-04 06:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('sno', models.AutoField(pr... | [
"niteshpidiparas76@gmail.com"
] | niteshpidiparas76@gmail.com |
dde36e2eae98fd6ebba3dc430abdd47affdd0f65 | a3e7583b70584f62554c5969a9963ba79afd7ac3 | /check.py | b7630edc09bab8c7a639472f47604386f4a53a32 | [
"MIT"
] | permissive | foamliu/DeepRankIQA | 4f677a2fe1912b16cf4bbcc05c8571d46260711f | 7801cb4ff2c934a9d954ace9ad52600f96396125 | refs/heads/master | 2020-09-03T06:02:05.896210 | 2019-11-05T01:30:27 | 2019-11-05T01:30:27 | 219,402,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import os
import pickle
import cv2 as cv
from tqdm import tqdm
from config import data_file, image_folder
if __name__ == "__main__":
with open(data_file, 'rb') as f:
samples = pickle.load(f)
filenames = set()
for sample in tqdm(samples):
before = sample['before']
fullpath = os.p... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
fbcf5b7d508ad8a33e8e303f73759b7d5782c4e0 | 30a6975de792d613db836346ff758a7c0797d400 | /lldb/test/API/lang/swift/parseable_interfaces/shared/TestSwiftInterfaceNoDebugInfo.py | 075df0dd1fb74f689568a004da5f267648814dee | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | WYK15/swift-Ollvm11 | 0a2aa1b216c8e3f38829ae16db846039e8de149e | b28dba1ebe1186790650c72d5e97d8b46f1bc6e0 | refs/heads/main | 2023-06-27T18:14:47.652175 | 2021-06-10T12:47:56 | 2021-06-10T12:47:56 | 367,350,198 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,467 | py | # TestSwiftInterfaceNoDebugInfo.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | [
"wangyankun@ishumei.com"
] | wangyankun@ishumei.com |
478dec05c29f554e8d1effc63ad7264f99e95538 | c236e0c3b34a81e75acb9591423b6aad9d6a22dd | /unitTestRunner.py | 451a956edaed0cee0386f60f3b60470f1b9a6a7c | [] | no_license | abhijeetdtu/heimcharge | 2cd68c9eaaf5b94206d310c8b8348133b5d4e77b | 569a9d22916808ba8b67169a2822a91e05a051e9 | refs/heads/master | 2021-06-06T02:55:29.913134 | 2019-06-11T03:07:20 | 2019-06-11T03:07:20 | 131,433,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import unittest
from UnitTests.ChartPlotTest import *
from UnitTests.GeoOpsTest import *
from UnitTests.FileOpsTest import *
if __name__ == '__main__':
unittest.main(exit=False) | [
"abhijeetdtu@gmail.com"
] | abhijeetdtu@gmail.com |
b23143408eae95819c6760c853c06db075ea9987 | d62e01ee1b50b8228d25736daceae0e822f3a0a0 | /examples/user_guide/add_tasks.py | e323c771d0a918d6b08a4f1fc852134d93c6e40d | [
"MIT"
] | permissive | dalg24/radical.entk | b6f34ae1b2075f638fbdfd5fc397ea4c0d87cb93 | 4aa68d8de7804e09ca64629035ccda0b79ac0b76 | refs/heads/master | 2020-04-03T17:25:37.548618 | 2018-10-16T12:06:30 | 2018-10-16T12:06:30 | 155,444,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from radical.entk import Pipeline, Stage, Task, AppManager
import os
# ------------------------------------------------------------------------------
# Set default verbosity
if os.environ.get('RADICAL_ENTK_VERBOSE') == None:
os.environ['RADICAL_ENTK_REPORT'] = 'True'
# Description of how the RabbitMQ process is ... | [
"b.vivek91@gmail.com"
] | b.vivek91@gmail.com |
190402e6dd636bf2f4fa9578042f043ce51c8530 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /wtBko8Bc8o8Tmra3q_11.py | 93df75889df3f71ae56c4f1e24530b81e184ba11 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
def halflife_calculator(mass, hlife, n):
mass_left = mass/(2**n)
years = hlife * n
return [round(mass_left,3),years]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
008880df49eaa648acea8a9abf9ffaa149112098 | 85c0813d837b0e0f189020a52348db1deffb0b11 | /public/db/coupon_db.py | 80daaa213acc609f25eb27d5f2237e1696469652 | [] | no_license | reb00t2018/flask-reptiles | 2d49fb27e718e305a7127e05047d865a1e7a6157 | ac3832340219f922e3b9451c2e2b1e18773938c1 | refs/heads/master | 2020-07-03T03:05:56.991764 | 2019-06-11T01:19:14 | 2019-06-11T01:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # -*- coding: utf-8 -*-
__author__ = 'Apple'
from public.db.participle_db import DataBase_PD
class CouponDB(DataBase_PD):
def __init__(self):
super(CouponDB, self).__init__()
def save_coupon(self, coupon):
'''
保存一条商品信息到数据库
:param coupon:
:return:
... | [
"1991585851@qq.com"
] | 1991585851@qq.com |
44c569b36803775a0c36187b8503777aef16b0ec | fa7790c45dbc1ee804011e9dff2d4ff424b9f3d6 | /Searching and Sorting/Counting sort/Implementation.py | 63a5b8f34c85215b5c59e2ea21c34fde374752dc | [] | no_license | KuroKousuii/Algorithms | bcdf75e58e20287e3162ef3302f8051604d7b7d6 | 3bf0250780c9d11c69546ca0da130fbbcada7e40 | refs/heads/main | 2023-05-31T07:41:07.399881 | 2021-06-16T09:32:16 | 2021-06-16T09:32:16 | 368,274,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # Python program for counting sort
# The main function that sort the given string arr[] in
# alphabetical order
def countSort(arr):
# The output character array that will have sorted arr
output = [0 for i in range(len(arr))]
# Create a count array to store count of inidividul
# characters and initiali... | [
"84732337+KuroKousuii@users.noreply.github.com"
] | 84732337+KuroKousuii@users.noreply.github.com |
11c74340ab82e472305fd10a2cd5370c1dea9ffb | fb1a7534356941e763755838e9b06fede7a7d116 | /tests/test_metrics.py | 46fe3e1aeab2e0aed220e08069a18e20c0547717 | [
"Apache-2.0"
] | permissive | torkelo/graphite-api | e2417f0bddae9bcd0581272dc270bbe08a78d653 | 0fd1904b462c1cbbe99f531a365839647a01a7e1 | refs/heads/master | 2020-12-02T15:08:56.573796 | 2014-03-17T21:59:38 | 2014-03-17T21:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import os.path
import whisper
from . import TestCase, WHISPER_DIR
class MetricsTests(TestCase):
def _create_dbs(self):
for db in (
('test', 'foo.wsp'),
('test', 'bar', 'baz.wsp'),
):
db_path = os.path.join(WHISPER_DIR, *db)
os.makedirs(os.path.dirna... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
8afec5a7c9748873c1dbc65e7e67f6d025f33a9e | 51d098e7ac392556a6365fcf7d283546d1bc86cb | /pysswords/db/credential.py | 651901a52f61b2811503c8e9363f048ac638b221 | [
"MIT"
] | permissive | mauriciomelo/pysswords | 7dd632577b261aa198a618ca1d6d0faa825cb5e7 | e845475a2a37f6e5ac4fadbc821d89dad6971f1c | refs/heads/master | 2021-01-13T11:41:44.568197 | 2014-12-04T19:32:57 | 2014-12-04T19:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from collections import namedtuple
Credential = namedtuple(
"Credential",
["name", "login", "password", "login_url", "description"]
)
| [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
403e6aea999f4b8b857e6ebb24ff679f68a607af | 46e50a1bd93569a0f945b65b6e84c927fb256f53 | /mtpy/utils/modemMakeModel.py | 36128ecdce8a38fc29194a3dd6cc3fa86d367988 | [] | no_license | lucasc15/mt3py | d3afed2527b1bc49e4e4cd4ec1d24b5083a5942d | 734fc551e87cd30261e7d648d79d6d0e5885b85d | refs/heads/master | 2021-01-19T00:35:44.069960 | 2016-07-03T14:03:54 | 2016-07-03T14:03:54 | 62,498,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,929 | py | #!/usr/bin/env python
#build ModEM input Model from ModEM data file
import numpy as np
import sys,os
#==============================================================================
#plot model geometry
plot = True
# parameters:
n_xpadding = 10
n_ypadding = 6
#number of vertical padding layers is set to 3 !
#facto... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
53e93f962e07335199743cfd2031f7866c6928b6 | f891828ffe9c8501d276560c8c52d319f284056f | /205_isomorphic_m/index_map.py | 0f5f7ccd9a02480277885e72dd81ce413e922721 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
return map(s.find, s) == map(t.find, t)
# From OJ discussion | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
a44f223635db7b358b49ccb6ca7923250c316bad | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /Exams/2-apr-2020/skeleton/tests/test_magic_card.py | 75d8d74d391b2baf58d8a14b44e8e5b922aabf4f | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import unittest
from project.card.magic_card import MagicCard
class TestMagicCard(unittest.TestCase):
def setUp(self) -> None:
self.magic_card = MagicCard('Card')
def test_init_attrs_set(self) -> None:
self.assertEqual(self.magic_card.name, 'Card')
self.assertEqual(self.magic_card.dam... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
426d534ea1ee13cc690136f8ee33d913fa161456 | fd90b8efa1daaec44b54797e549e0f738f4a5897 | /shuxue/3的幂.py | 648fe8a17fac9249b54026f7347281ef036e3e5e | [] | no_license | ddz-mark/LeetCode | 2a622eeb655398ca9ebd9feee93a52cd114a77c4 | d557faf87374ad8c65634ee9d9e572b88a54913a | refs/heads/master | 2021-07-12T06:58:57.162657 | 2021-04-18T13:25:03 | 2021-04-18T13:25:03 | 244,403,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # 给定一个整数,写一个函数来判断它是否是 3 的幂次方。
class Solution(object):
def isPowerOfThree(self, n):
"""
:type n: int
:rtype: bool
"""
if n == 0 :
return False
while n % 3 == 0:
n /= 3
if n == 1:
return True
else:
return... | [
"dudaizhong@126.com"
] | dudaizhong@126.com |
37ad995aa7d1d0d0fc4db7476eed8c5d9fcb4d47 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase1_008_0.py | 34135d8ab0a3e138c9938ad9ce244b9bbea57ae9 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,965 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
ee0c0439bc8653fcafc1eda4272bc03c2c60a56f | fafee9d79beb7433633d59dce865efb437d608f6 | /__init__.py | 89ba90efec4b90e8c130bf0cd0c31e76b9df484d | [
"MIT",
"BSD-3-Clause"
] | permissive | PabloRomanH/cihaidata-unihan | 65830d945e50518895ce3f06a211a117cd502b84 | c408b57f61b5b13926f42c3647cc0bc61da758be | refs/heads/master | 2021-01-12T22:33:15.289066 | 2016-06-03T17:37:40 | 2016-06-03T17:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
# -*- coding: utf8 - *-
"""Tool to build `Unihan`_ dataset into datapackage / simple data format."""
from __future__ import absolute_import, division, print_function, \
with_statement, unicode_literals
__title__ = 'cihaidata-python'
__package_name__ = 'cihaidata_python'
__description__ = 'To... | [
"tony@git-pull.com"
] | tony@git-pull.com |
dba9cbb205056e92cf377392703f257eafae100a | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1400-1499/1486.xor.in.array.py | 9f93fdedc92c4d84e1a7f4947d3adae6aec16ebd | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Solution:
def xorOperation(self, n: int, start: int) -> int:
# TC: O(N), SC: O(1), note it is possible but difficult to complete this in O(1)..
ans = 0
for i in range(n):
ans ^= (start + 2 * i)
return ans
| [
"gyang274@gmail.com"
] | gyang274@gmail.com |
7cb4b4d3b8da5d4f881a238fd2bb87a15a3dbb29 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /d3pm/text/main_test.py | ddcfcfad48bbd428ea167bea70a1e48d197f9795 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,725 | py | # coding=utf-8
# Copyright 2023 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
15af76b56f23169ecae06276f96acb2561d4c1b9 | 6480db97bf64fe5020bca084c38b7728ba9a1b9a | /pursuit/src/mvp_landing/urls.py | e10ed7a8489bdc075f57077b42c3bc7754100fd9 | [] | no_license | masterfung/mvp_landing-Django | 056727d3c7107f18ea5203b98816bad9bb94edaa | 4ae2d9128e13616ca2e4e82e36927a352f515858 | refs/heads/master | 2021-01-13T02:35:57.392427 | 2014-06-02T14:30:37 | 2014-06-02T14:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples: #has to be in order when it comes to views
url(r'^$', 'signups.views.home', name='home')... | [
"hungmasterj@gmail.com"
] | hungmasterj@gmail.com |
1575804de3dd437ba9e8b545b69edced761183fd | 78d425c98f093e01dd78c15ffa76cf50f7e4fe1e | /tests/tier1/tc_1087_check_vdc_virtual_pool_revoked_in_guest_after_host_unattached.py | c2f7f74a50aa84f8b13159dec95faef8625f8fe0 | [] | no_license | Junefen/virtwho-ci | 57ef8637a78605fd3f2b1d3eb31031ba2b0de480 | 23e144171d2cc6ee87edfefdace8a25eb3e7bc65 | refs/heads/master | 2023-03-19T04:16:08.055779 | 2021-09-29T03:52:08 | 2021-09-29T03:52:08 | 194,606,208 | 0 | 0 | null | 2019-07-01T05:35:22 | 2019-07-01T05:35:22 | null | UTF-8 | Python | false | false | 2,453 | py | # coding:utf-8
from virt_who import *
from virt_who.base import Base
from virt_who.register import Register
from virt_who.testing import Testing
class Testcase(Testing):
def test_run(self):
self.vw_case_info(os.path.basename(__file__), case_id='RHEL-134064')
self.vw_case_init()
# case conf... | [
"hsun@redhat.com"
] | hsun@redhat.com |
ada54b21eb805ba13403e644e467913924e72667 | d56828f1f7ae8fbb1fc2e79f84c82c4be1d13651 | /google/cloud/datacatalog_v1/types/schema.py | 4a51a1226512ae2416ba971f949dedc02bb6bb30 | [
"Apache-2.0"
] | permissive | isabella232/python-datacatalog | 940d7664d55ae01524f7fe89f8a295e9190ec23c | d16420640ec97c17e4c63516b8375b41df82de9c | refs/heads/master | 2022-12-19T23:03:49.561389 | 2020-10-16T19:58:42 | 2020-10-16T19:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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 o... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.