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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
602e46c7d50c57f8cccf68cf771aa7addc4ecdd1 | 5e8d86f6ddfd516b9768e8617ced0baca8112f4c | /core-python/Core_Python/file/FileMethods.py | 06af6a48877e9ea6d2d943a52949e9e3e9a994ec | [
"MIT"
] | permissive | bharat-kadchha/tutorials | 0a96ce5a3da1a0ceb39a0d464c8f3e2ff397da7c | cd77b0373c270eab923a6db5b9f34c52543b8664 | refs/heads/master | 2022-12-23T11:49:34.042820 | 2020-10-06T03:51:20 | 2020-10-06T03:51:20 | 272,891,375 | 1 | 0 | MIT | 2020-06-17T06:04:33 | 2020-06-17T06:04:33 | null | UTF-8 | Python | false | false | 831 | py | ''' r : It opens the file to read-only. The file pointer exists at the beginning. The file
is by default open in this mode if no access mode is passed. '''
''' w : It opens the file to write only. It overwrites the file if previously exists
or creates a new one if no file exists with the same name. The... | [
"deeppatel.dd@gmail.com"
] | deeppatel.dd@gmail.com |
c97f38b9487ea7f2a081dab4e1f5b2cc6b13ed64 | 964de31a74f2e755385b5d35f53f6d7a7e4780af | /ufora/util/AssertStableThreadCount.py | b29d0ac1644c89f5fc2e5f67f8cb35004a1796e3 | [
"dtoa",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | data-processing/ufora | 8a5b9230ef800837e584e77e550c27e43c520599 | 9e9d0cb832ff6685bed93f5e5228331c6d188cc4 | refs/heads/master | 2021-01-13T11:37:40.076317 | 2016-05-07T21:07:30 | 2016-05-07T21:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"braxton.mckee@gmail.com"
] | braxton.mckee@gmail.com |
23166582bc474224b8562fb2d310c6262b2e4314 | f7a06c4b919c4ced76f260602c3835bda4c9180e | /proteus/tests/ci/poisson_3d_c0q1_n.py | d8ffbd210ab834ed43b2d13d65758bc5b22011f5 | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eelcovv/proteus | d060c7afcde4a24b119c01f507aaaacc6584314a | 80c4310d2fa43be2c70fe73914425134debd0139 | refs/heads/master | 2021-01-17T22:41:37.863572 | 2015-02-11T23:13:25 | 2015-02-11T23:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | from proteus import *
from proteus.default_n import *
from poisson_3d_p import *
#steady-state so no time integration
timeIntegration = NoIntegration
#number of output timesteps
nDTout = 1
#finite element spaces
femSpaces = {0:C0_AffineLinearOnCubeWithNodalBasis}
#numerical quadrature choices
elementQuadrature = Cube... | [
"cekees@gmail.com"
] | cekees@gmail.com |
ec5cbdadc373b011877eea26cfda3e4244c33c72 | 1d920162935fafb40a84463d487678a4d02522cc | /container-with-most-water.py | 363f69479e346b111cdef80a0e085690169b7348 | [] | no_license | dodoingdy/leetcode | 34275697e3b24c47161437711d15a91546987882 | 94462fb5491155d4d516c265bf11403dfe7fad2d | refs/heads/master | 2021-05-06T07:46:57.798813 | 2018-02-09T08:50:11 | 2018-02-09T08:50:11 | 113,969,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
left, right = 0, len(height) - 1
max_v = 0
while left < right:
if height[left] < height[right]:
max_v = max(max_v, height[left] * (right ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ae866a6228011ce0811155e3b50c681ca773d4a8 | 346cf248e94fe97ba9c0a841827ab77f0ed1ff20 | /experiments/kdd-exps/experiment_DynaQNN_Feb15_2051.py | 598394bc137618510940a2ad6d95f0ca877fc3a7 | [
"BSD-3-Clause"
] | permissive | huangxf14/deepnap | cae9c7c654223f6202df05b3c3bc5053f9bf5696 | b4627ce1b9022d4f946d9b98d8d1622965cb7968 | refs/heads/master | 2020-03-26T02:54:01.352883 | 2018-08-12T01:55:14 | 2018-08-12T01:55:14 | 144,429,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | # System built-in modules
import time
from datetime import datetime
import sys
import os
from multiprocessing import Pool
# Project dependency modules
import pandas as pd
pd.set_option('mode.chained_assignment', None) # block warnings due to DataFrame value assignment
import lasagne
# Project modules
sys.path.append('... | [
"liujingchu@gmail.com"
] | liujingchu@gmail.com |
c3a79362e492bebb39ceb25d86a7ef7837611bb5 | 777a2ff62fa01ea4309652ab2393e912ab0ab851 | /cdc/tut3.py | b6de8dd6c1499baa2ce09a2a174fbe19bc1628a6 | [
"Apache-2.0"
] | permissive | deretou/crossbarexamples | 05475ee86696c5c28b90a39a66bf45425e233637 | e392ea2708f52ba322e63808041f9fe6dcfe893e | refs/heads/master | 2021-01-21T02:56:46.236303 | 2016-09-14T06:53:25 | 2016-09-14T06:53:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from twisted.internet.defer import inlineCallbacks
import util
@inlineCallbacks
def main(session):
try:
# get all nodes in state "online"
node_ids = yield session.call(u'cdc.remote.list_nodes@1',
filter_status=u'online')
for node_id in node_ids:
... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
7258ba76d40c7642fe7f3273cdf69ef3fcf30bdb | a7b5adc5f72b9ef71c0c71691492f8af8a32c868 | /Jaeweon-Kim/baekjoon/boj_2252.py | 09f868552023b386fcf2a61bd737f4c835552d7e | [] | no_license | mintheon/Practice-Algorithm | 535ff607e36d1bfa9f800a28091a52c48748221c | 3a653a1d8cc6e1438cab47a427ccd0b421a10010 | refs/heads/master | 2023-04-10T17:43:10.434210 | 2021-04-10T18:46:26 | 2021-04-10T18:46:26 | 347,719,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # 줄 세우기
from collections import deque
n, m = map(int, input().split())
graph = [[] for _ in range(n + 1)]
in_degree = [0] * (n + 1)
queue = deque()
for i in range(m):
a, b = map(int, input().split())
in_degree[b] += 1
graph[a].append(b)
for i in range(1, n+1):
if in_degree[i] == 0:
queue.appe... | [
"noreply@github.com"
] | mintheon.noreply@github.com |
eddb248e05db31f8c33e1a9dadd4e79cbfb8886d | a34507bee8dc5502c663a71f3e98257f8ff0334d | /02_双指针/88-合并两个有序数组.py | ae0c6862f122ceb574e39352a90d933a845f92f5 | [] | no_license | michelleweii/Leetcode | 85b7876a3e283f3982dd86de01ccc5470e63388f | 0c09b5a018e7334bd49dd251834fc8e547084cc1 | refs/heads/master | 2022-05-17T07:28:23.684720 | 2022-04-28T12:40:48 | 2022-04-28T12:40:48 | 149,776,312 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | """
easy 2021-09-07 同向双指针(逆序归并)
https://leetcode-cn.com/problems/merge-sorted-array/solution/hua-jie-suan-fa-88-he-bing-liang-ge-you-xu-shu-zu-/
难死了 easy个锤子
思路:
- 标签:从后向前数组遍历
- 因为 nums1 的空间都集中在后面,所以从后向前处理排序的数据会更好,节省空间,一边遍历一边将值填充进去
- 设置指针 len1 和 len2 分别指向 nums1 和 nums2 的有数字尾部,从尾部值开始比较遍历,同时设置指针 len 指向 nums1 的最末尾,每... | [
"641052383@qq.com"
] | 641052383@qq.com |
612f2602f956e63f33d2e6d79685a07f9aa97d91 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L27/27-28_MD_NVT_rerun/set_5.py | b4e0b1199b08e5098930802fb15ac1fe036e386f | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L27/MD_NVT_rerun/ti_one-step/27_28/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
79ebed97a8217be62f1dde0610b44d3e21692454 | fae94c0dcb251ea5854e33e81369140ca75cfaf5 | /src/bloombox/schema/analytics/context/OS_pb2.py | 208a646b14fdc34836348929f680f85a7912a547 | [
"Apache-2.0"
] | permissive | fagan2888/Python | 425654b18055233949aa7e6181e0b2652975e185 | 1b125fbdf54efb390afe12aaa966f093218c4387 | refs/heads/master | 2020-12-13T14:17:59.452500 | 2018-06-18T16:16:30 | 2018-06-18T16:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 6,084 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: analytics/context/OS.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import ... | [
"sam@momentum.io"
] | sam@momentum.io |
91274a2883652984538afd1c49a72de4fbe1070d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Rep3fHbrLGKDatZ2L_2.py | d95dc82974ee6a78e64b618b06fb0948ead55805 | [] | 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 | 970 | py | """
You will be given a string that is made up of some repeated pattern of
characters. However, one of the characters in the string will be missing and
replaced by an underscore. Write a function that returns the missing
character.
### Examples
complete_pattern("ABCABCA_CAB") ➞ "B"
complete_pattern("_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b0fd0d7e50d6994d8620963b5ee0cf63fac52088 | 7ff851f9759d62b6e22355b6ab138fb1addf3e3c | /app/server/models/question.py | 53921921999830dea791588c2f03eb40e691caf2 | [] | no_license | brlala/adminhub_backend | 150c5beb31df8aa0c02b35113470a81bc68fed21 | 202fdf25b9a44abd3a94e3b6ada79554b6d05abe | refs/heads/master | 2023-08-11T13:02:43.410806 | 2021-09-25T03:30:17 | 2021-09-25T03:30:17 | 326,932,435 | 0 | 1 | null | 2021-09-24T16:20:44 | 2021-01-05T08:18:39 | Python | UTF-8 | Python | false | false | 4,511 | py | from datetime import datetime
from typing import Optional
from bson import ObjectId
from pydantic import BaseModel, Field
from app.server.models.flow import FlowSchemaDb, FlowSchemaDbOut
from app.server.utils.common import to_camel, Status
class QuestionVariationSchema(BaseModel):
id: str
text: str
lang... | [
"liheng@pand.ai"
] | liheng@pand.ai |
e261be04b60042323bc688e2a366948c497e834c | 31e00afe8f782bd214f8e32949be928a51e5de39 | /Coffee Machine/Problems/Who is who/task.py | 9aa16b533cde748c679d57d3d5fb57ac1b2e3da8 | [] | no_license | akocur/education | 65e2a0640bab5e9939c5692333fa2f500c9feb0b | d0a890861cd83dcc61ff2af6cfbb75c157fbaf02 | refs/heads/master | 2023-05-24T02:38:04.695665 | 2020-10-26T14:09:07 | 2020-10-26T14:09:07 | 269,410,671 | 0 | 0 | null | 2023-05-22T22:47:45 | 2020-06-04T16:32:11 | HTML | UTF-8 | Python | false | false | 279 | py | class Angel:
color = "white"
feature = "wings"
home = "Heaven"
class Demon:
color = "red"
feature = "horns"
home = "Hell"
objects = [Angel(), Demon()]
for object_ in objects:
print(object_.color)
print(object_.feature)
print(object_.home)
| [
"akocur@yandex.ru"
] | akocur@yandex.ru |
51c526d12a3eee559aa4a33213f330d176c58eb6 | f5c62bab2e95bb2dc6986ba271662ade8cae4da0 | /docs/PythonSAI/TriangleSet2D.py | 6e0e14b9fe839893c3c521bb238092057737d506 | [] | no_license | Has3ong/X3DViewer | d211b159c29523e61158eddc015bb320e4ba7c9d | c629305c24b5c25fd41d3a46816efbf1f74d0092 | refs/heads/master | 2021-06-25T16:36:46.278469 | 2021-01-03T11:26:02 | 2021-01-03T11:26:02 | 180,564,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | from . import *
# TriangleStripSet defines a concrete node interface that extends interface X3DComposedGeometryNode.
class CTriangleSet2D(CX3DGeometryNode):
m_strNodeName = "TriangleSet2D"
def __init__(self):
self.m_strNodeName = "TriangleSet2D"
self.m_Parent = [None]
self.children = []... | [
"khsh5592@naver.com"
] | khsh5592@naver.com |
2d8144b89cc4ede0521ae23fe6c39afbfd8fb2ca | 56ade096db1fe376ee43d38c96b43651ee07f217 | /336. Palindrome Pairs/Python/Solution.py | 737749d049903f8f853be776e35344759ccc3588 | [] | no_license | xiaole0310/leetcode | c08649c3f9a9b04579635ee7e768fe3378c04900 | 7a501cf84cfa46b677d9c9fced18deacb61de0e8 | refs/heads/master | 2020-03-17T05:46:41.102580 | 2018-04-20T13:05:32 | 2018-04-20T13:05:32 | 133,328,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | class Solution(object):
def palindromePairs(self, words):
"""
:type words: List[str]
:rtype: List[List[int]]
"""
result = []
words_set = {k: v for v, k in enumerate(words)}
for i, word in enumerate(words):
for j in range(len(word) + 1):
... | [
"zhantong1994@163.com"
] | zhantong1994@163.com |
ef66e572629d7a86720d5bc0a6e76ab61749c0f4 | 926621c29eb55046f9f59750db09bdb24ed3078e | /lib/surface/debug/snapshots/delete.py | 99c94f2ae1a7ed2c3d4351d0e16840a6284ea67d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/SDK | 525d9b29fb2e901aa79697c9dcdf5ddd852859ab | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | refs/heads/master | 2022-11-22T18:24:13.464605 | 2016-05-18T16:53:30 | 2016-05-18T16:53:30 | 282,322,505 | 0 | 0 | NOASSERTION | 2020-07-24T21:52:25 | 2020-07-24T21:52:24 | null | UTF-8 | Python | false | false | 3,200 | py | # Copyright 2016 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 ag... | [
"richarddewalhalla@gmail.com"
] | richarddewalhalla@gmail.com |
52acee007b7431893b69ec6930122d961efab8f7 | bb125d646f9bd0fe434f506cf7e9fbe4d73a9788 | /groups/managers.py | 8c9925ad84ddb44edd73f418f6a18553274d4dc2 | [] | no_license | mishaukr7/groups_api | 59f831295f2f117f231b83532ed25caf13abff99 | 665951930706d88309d6fbb9dadf5057c5deaa4a | refs/heads/master | 2020-04-01T08:01:39.063708 | 2018-10-14T20:12:11 | 2018-10-14T20:12:11 | 153,014,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
class ElementsManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(is_checked=True) | [
"mishaukr22@gmail.com"
] | mishaukr22@gmail.com |
285a8e18ad98387154f8f7f2dfa62add09f3cd98 | 4544f04da8dd6faf602af706e523f4929941ba41 | /oandapyV20/__init__.py | 03b582eb17ca871332c9e10d4e9d519bdc9f5ba5 | [
"MIT"
] | permissive | hpsilva/oanda-api-v20 | 78febf98384945ded213f517ed1bf00d696e5dcb | a8d82dff91787bde08a4d8733283a62ecd0ef7f3 | refs/heads/master | 2021-01-12T11:43:45.763974 | 2016-10-22T16:34:46 | 2016-10-22T16:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | __title__ = "OANDA REST V20 API Wrapper"
__version__ = "0.1.0"
__author__ = "Feite Brekeveld"
__license__ = "MIT"
__copyright__ = "Copyright 2016 Feite Brekeveld"
# Version synonym
VERSION = __version__
from .oandapyV20 import API
from .exceptions import V20Error
| [
"f.brekeveld@gmail.com"
] | f.brekeveld@gmail.com |
57b7cd56bdf7968a54a609aa5a691c5980aff18a | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-SpriteKit/PyObjCTest/test_skconstraint.py | e194ed297e21a6f20d5ce04bd4102b6b802a1334 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 299 | py | from PyObjCTools.TestSupport import TestCase, min_os_level
import SpriteKit
class TestSKConstraint(TestCase):
@min_os_level("10.10")
def testMethods(self):
self.assertArgIsBOOL(SpriteKit.SKConstraint.setEnabled_, 0)
self.assertResultIsBOOL(SpriteKit.SKConstraint.enabled)
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
dcbd559e2dadb109221e9645fe3db80eb8c1dbab | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/optimized_4643_sml.py | 436c502e0d139b5af6b21cee6a81211519a2c92d | [] | 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,458 | 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 |
c6670030f617d4f81bb966bf94b6e68f582478a9 | f6189ae8031fcf756cd892ed866cb937bf0e5d56 | /gcloud/gsutil/upload_files_to_bucket.py | dda977c271e74bfe76ecbe5d6ed1a7eb5a5767a4 | [] | no_license | shadhini/python_helpers | f9265ee139a9e32528b257ae1adee731d0d08d3f | d8a74fb22e6da741d9442325661b042c8c26202a | refs/heads/master | 2021-07-05T15:07:02.294986 | 2020-10-28T03:37:01 | 2020-10-28T03:37:01 | 198,464,862 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import os
local_file_path = "/gcloud/gsutil/temp.txt"
bucket_output_dir = "wrf_nfs/wrf/temp/"
# gsutil cp [OBJECT_LOCATION] gs://[DESTINATION_BUCKET_NAME]/
os.system("gsutil cp {} gs://{}".format(local_file_path, bucket_output_dir))
# OR (if the above command doesn't work and gives a "gsutil comman not found erro... | [
"jshadhiniaseka@gmail.com"
] | jshadhiniaseka@gmail.com |
b9de082c892356c9e407564aa5fe19ec040ccd33 | 9531e597cd3f865cc6b6f780498a18281c2413f8 | /profiles/migrations/0005_remove_profile_skill_set.py | 026bec01dde10abe62d6dad2441396bfa442e81c | [] | no_license | dpitkevics/DevNet | 7133b80ce5d56b9c11aa4c500d530faed7cb13f4 | 98ebc3916346e6c2bda79711a3896f7c2a8e2ac8 | refs/heads/master | 2020-04-15T12:04:00.245848 | 2015-09-14T17:45:39 | 2015-09-14T17:45:39 | 41,320,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('profiles', '0004_auto_20150831_1623'),
]
operations = [
migrations.RemoveField(
model_name='profile',
... | [
"daniels.pitkevics@gmail.com"
] | daniels.pitkevics@gmail.com |
a54987d39f9c0050cbd938e9e61588d655b7e30d | 58e952fc6513b9f3590bf541fe3fcd05ac17894c | /minuteAdder.py | 82e8c774b8f85f324455093efc277bb2219fa293 | [] | no_license | WillLuong97/MinuteAdder | 54d72438baebbc5d44f1211641577d482434b8ce | 868fb6cd0ddf9460817cbebd7982b6ee1ccfec16 | refs/heads/main | 2023-05-31T11:10:37.005865 | 2021-06-24T20:10:53 | 2021-06-24T20:10:53 | 379,740,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | #Problem statement:
'''
Without using any built-in date or time functions, write a function or method that accepts two
mandatory arguments: the first argument is a 12-hour time string with the format "[H]H:MM
{AM|PM}", and the second argument is a (signed) integer. The second argument is the number
of minute... | [
"tluong@stedwards.edu"
] | tluong@stedwards.edu |
09eb01ced793d7c8d0607871e594fbc8400a66c4 | 1afe40fa84cff44c491c7d9e068b2a63a007b15a | /{{ cookiecutter.tool_name_slug }}/{{ cookiecutter.tool_name_slug }}/__main__.py | eae8ff68b134a892f418d357fd8792cbe9dbd387 | [
"BSD-2-Clause"
] | permissive | olivierh59500/cookiecutter-security-tool | aa5efb4e2c3405d6b4bb9aa70d80110ab35f3680 | 374da3cb35681c45fb189b4ce927c8664afc712c | refs/heads/master | 2021-01-12T01:12:28.539084 | 2016-11-10T16:22:06 | 2016-11-10T16:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def main():
import os
import sys
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(1, parent_dir)
import {{ cookiecutter.tool_name_slug }}
__package__ = str("{{ cookiecutter.tool_name_slug }}")
# Run the cmd
from {{ cookiecutter.tool_... | [
"cr0hn@cr0hn.com"
] | cr0hn@cr0hn.com |
8ed8c3452cb3541195d71f7a0a57c7217dd9808f | aaa6a2fc08643139203a605b9e23abf5020dcdf3 | /actions/utils.py | f0065a1e54e93824c6af48b5dead9a35833908f6 | [] | no_license | HectorBlisS/galaxy | 2f0428f01ff5cc34b4241976eee6b02b06cf4647 | 7abe6eee155125aef8e78f0c07008e9b3a9864f7 | refs/heads/master | 2021-01-11T21:08:55.245873 | 2017-02-06T16:46:41 | 2017-02-06T16:46:41 | 79,163,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import datetime
from django.utils import timezone
from django.contrib.contenttypes.models import ContentType
from .models import Action
def create_action(user, verb, target=None):
#checamos cualquier acción similar en el ultimo minuto
now = timezone.now()
last_minute = now - datetime.timedelta(seconds=60)
simila... | [
"contacto@fixter.org"
] | contacto@fixter.org |
515d47617af89e3c6c7409ff8c66a95e42667c35 | a312bf5148945a19bb6d30c1f0e97d3edc021af2 | /RestFrameWork/models.py | 5f2d49a06424b6e10f1e30e925fe1d346c1ea9b8 | [] | no_license | Shikhar0907/Create-API | 252cdb632765f5d5b7a03213b942bfc9c5b979de | c8f13f309d0aa668091d615946b52bea66316d36 | refs/heads/master | 2020-04-03T00:51:57.367335 | 2018-10-27T01:16:00 | 2018-10-27T01:16:00 | 154,911,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from django.db import models
from django.conf import settings
# Create your models here.
def Upload_status_image(instance,filename):
return("updates/{user}/{filename}".format(user=instance.user,filename=filename))
class Statusqueryset(models.QuerySet):
pass
class Statusmanager(models.Manager):
def get_q... | [
"shikharsuman59@gmail.com"
] | shikharsuman59@gmail.com |
a04bfa151f32b8088a807aefef79806318935317 | 3922e9b41bf8bf5dd0a0d9abc8852d147a02db0f | /affixmarket/wsgi.py | 1a9aaf3aa10e0922e785df20fc16bf58135939b9 | [] | no_license | levi-p/market | 3ddd0ca20818139c96fa102256f21249d85f104f | 5deb8dbf83ddeb07415bd21703b57f3c3d54aa54 | refs/heads/master | 2020-07-10T18:03:30.316598 | 2017-01-20T15:00:39 | 2017-01-20T15:00:39 | 67,126,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for affixmarket 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"levipda@gmail.com"
] | levipda@gmail.com |
7ed52b73ffb471229fc0fbb0662ad1d6ac9334f1 | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_schizConnect/2018_analysis_2ndpart_clinic/clustering_based_on_PCs/corrected/correction_age_sex_site_100comp/3_clusters_solution/00_structural_clustering.py | ba6a4c5c99240be229998e10cbbec5cae3689b55 | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,744 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 21 12:08:33 2017
@author: ad247405
"""
import os
import numpy as np
import pandas as pd
import nibabel as nb
import shutil
import scipy.stats
import matplotlib.pyplot as plt
import seaborn as sns
import parsimony.utils.check_arrays as check_arrays... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
d28354224fbd54cc6bbad71a4280103feadae53c | 5e45f1d1d9f58aa1456777b0d75334d6efd43840 | /challenges/contests/code_forces/edu6/b.py | 855bfeea121600afbf8290a683b0df36218ae02a | [] | no_license | missingdays/nerdy.school | 604953dc9b3c38a0f71793f066ce2707aa980dae | 051673e0ebc54bc2f7e96a6477697d1d528dc45c | refs/heads/master | 2021-01-17T08:10:19.558851 | 2016-06-06T15:29:01 | 2016-06-06T15:29:01 | 59,897,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 missingdays <missingdays@missingdays>
#
# Distributed under terms of the MIT license.
"""
"""
m = {
0: 6,
1: 2,
2: 5,
3: 5,
4: 4,
5: 5,
6: 6,
7: 3,
8: 7,
9: 6
}
def get_segments(a):
globa... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
09f48f62a981b30fd95c4f675e5c33bac84de7d9 | 0fdc732fcdad1c0d76d6ec80cb6e25b6ec17d6e1 | /django_channels/chat_app/views.py | ccf59845163dec1fb09828d3454c69c435644471 | [
"MIT"
] | permissive | markbirds/Django-Code-Repo | 9b3c8bfba948dd8ea1be71e31cbfd2ef26bfa157 | b55762d2dab00640acf2e8e00ddc66716d53c6b5 | refs/heads/master | 2023-01-05T22:44:16.405853 | 2020-11-03T07:17:50 | 2020-11-03T07:17:50 | 299,615,438 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'chat_app/index.html')
def room(request, room_name):
return render(request, 'chat_app/room.html', {
'room_name': room_name
})
| [
"fowenpatrick@gmail.com"
] | fowenpatrick@gmail.com |
632c74f33c6fb10a34714197f03974eb8b89ccab | 1fe04382304ae49e05f8a58c03488be2a02fdde6 | /example_app/core/models/input.py | 1792216d154fbc647dd4be9e180629f0f92ed9ec | [
"MIT"
] | permissive | iwpnd/fastapi-aws-lambda-example | b97e999f20a9cbb144a28afe5fcc1356157ccaad | c68aef5bff12df42070be41c33b7e1d9d63344be | refs/heads/master | 2021-08-01T01:14:14.940583 | 2021-07-23T07:28:45 | 2021-07-23T07:28:45 | 234,381,180 | 132 | 20 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from pydantic import BaseModel, Field
class InputExample(BaseModel):
a: int = Field(..., title="Input value a")
b: int = Field(..., title="Input value b")
| [
"legionaerr@googlemail.com"
] | legionaerr@googlemail.com |
644756c75e13bb75dc929d02673251940aed664d | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py | 4a550f5f468284a03d5f29b050baabaddfff9910 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 2,609 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from typing import Any, Union, Optional
from ._exchange_client import ExchangeClientAuthenticationPolicy
from ._generated import ContainerRegistry
from .... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
3c72b432d919e07b20c7e5d9e985564731125f92 | 3abf176718395417e1856e25704fe8246a9ee3dc | /urlshort/views.py | c46b831d43025592b6cef35722643abba4fe2f10 | [] | no_license | majestrate/urlshort | 6b48d4074598dac62dfb559677ff9a702389b71a | 5c563aae0273c951ea3bf6509b79c1252cbe4146 | refs/heads/master | 2021-01-17T14:34:56.034303 | 2014-04-04T14:57:08 | 2014-04-04T14:57:08 | 18,440,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from urlshort import app
from urlshort import db
from urlshort import util
import flask
@app.route('/', methods=['GET','POST'])
def urlshort_index():
if flask.request.method == 'POST':
form = flask.request.form
if 'url' not in form:
flask.flash('no url provided')
else:
... | [
"ampernand@gmail.com"
] | ampernand@gmail.com |
090063bd5333614ed14a04e203132b7d42613c39 | e6a419576cae038b0d2922d3588a70c854653174 | /utils/utils.py | ae6bc3761cd4539ce7dea6d672c7052cd1e4730f | [] | no_license | memsharded/conan-ci-examples | e912b928fceb79f246fbb3b2b72f5b79e9922a34 | 9c542357e285e0a2772d141e09b2a116d957c1cc | refs/heads/master | 2023-01-13T00:09:14.635578 | 2020-11-19T00:36:34 | 2020-11-19T00:36:34 | 212,786,872 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import os
import shutil
import stat
from contextlib import contextmanager
def run(cmd):
print("RUNNING: %s" % cmd)
ret = os.system(cmd)
if ret != 0:
raise Exception("Command failed: %s" % cmd)
@contextmanager
def chdir(new_dir):
old_dir = os.getcwd()
try:
os.chdir(new_dir)
... | [
"james@conan.io"
] | james@conan.io |
dc2f46fc6be697bc4a871df1137d5e240ed96dc6 | 95b6f547270557a99c435b785b907896f62e87d1 | /result_goodness_cluster_mocking_split.py | d12e022edb71ebcd9a2d744d2922c566aa16d99b | [] | no_license | phizaz/seeding-strategy-ssl | 6b3b58c9b1f556f8cd42fea5e3dc20e623462a08 | 85655ce3297130b273d5f86075ee6bdf1f12be0a | refs/heads/master | 2021-01-10T06:18:26.618009 | 2016-04-02T14:50:08 | 2016-04-02T14:50:08 | 49,761,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,500 | py | from concurrent.futures import ProcessPoolExecutor
from dataset import *
from multipipetools import *
from ssltools import *
from wrapper import *
import numpy as np
from cache import StorageCache
'''
generate results for
cluster mocking split on many linkages
'''
datasets = [
get_iris_with_test().rescale(),
... | [
"the.akita.ta@gmail.com"
] | the.akita.ta@gmail.com |
13f11be3533d90eb492d126f56320638be79da55 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/role/role/tests/test__create_partial_role_from_id.py | a9866551c71dbad6053ef40fb04a1a7a8f75fb05 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 583 | py | import vampytest
from ..role import Role
from ..utils import create_partial_role_from_id
def test__create_partial_role_from_id():
"""
Tests whether ``create_partial_role_from_id`` works as intended.
"""
role_id = 202211050000
guild_id = 202211050001
role = create_partial_role_from_id(rol... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
038c3a05bcc319575a05555e9bc49ead2497ea6f | 6e060e9730b58e4d7819335438f915179504e72c | /purchase_report/res_partner.py | 2c28160b8e6eecb938149f9a0bb87bf2461064df | [] | no_license | missionpetroleumgit/addons_missiongit | 4dcdf1d0e79da982670c573d59574a939d1636c0 | 714514719d5d4d96f371dd529a70ac282070c43b | refs/heads/master | 2023-03-10T20:34:10.154050 | 2021-02-24T23:50:20 | 2021-02-24T23:50:20 | 342,027,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution - Ecuador
# Copyright (C) 2019 MissionPetroleum Daniel Aldaz (<daldaz@mission-petroleum.com>).
#
#####################################################################... | [
"daldaz@mission-petroleum.com"
] | daldaz@mission-petroleum.com |
3b92828420d350831d5b4a5fe7b0cf668a30833b | 8df119567feb1caffa7d90b29b081ba20fc5c481 | /dropper/drc/ec2.py | 1df9103179d77c492edeaaeec681e10a5176ecae | [] | no_license | tonicbupt/dropper | 967839494b1fbf6458b06084d3079d12433a4873 | 88a79ba05eec9be34a70efc5c13a0265793de24c | refs/heads/master | 2020-03-30T16:55:36.241009 | 2018-10-04T01:49:57 | 2018-10-04T01:49:57 | 151,433,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | import click
from tabulate import tabulate
from dropper.style import info
from dropper.style import error
from dropper.resource import get_ec2_instance_by_id
from dropper.resource import create_interface_for_ec2_instance
from dropper.resource import create_eip_for_ec2_instance
from dropper.resource import clean_eip_fo... | [
"tonicbupt@gmail.com"
] | tonicbupt@gmail.com |
f6800a95e7ecb6af6437a180df4b77ec2d8979fd | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/drawing/test_write_row_off.py | 3958c177db2a6f25924695a89d0ea0cac68551e3 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 773 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ...drawing import Drawing
class TestWriteXdrrowOff(unittest.... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
4096351c4d984813ef93abcd24b3b5b326d854f7 | c262825197088c4d3c501dc98ce87e57a42e0f1e | /tests/urls.py | 8f8e6089d58dd39054edcd1f72d8ef391756e6a7 | [] | permissive | randlet/django-listable | 3519cfbd1059e385ab39d9a69df58439d8c0417e | d67b8fa90ce7e05a9e4db2abbc6edcac227580d0 | refs/heads/master | 2023-07-07T05:09:00.726207 | 2023-04-18T13:31:39 | 2023-04-18T13:31:39 | 16,582,730 | 12 | 8 | BSD-3-Clause | 2023-04-18T13:31:40 | 2014-02-06T15:06:34 | JavaScript | UTF-8 | Python | false | false | 298 | py | from django.conf.urls import include
from django.urls import path
from django.views.generic import View
from django.contrib import admin
admin.autodiscover()
urlpatterns = [
path("foo/", View.as_view(), name="foo"),
path('', include('staff.urls')),
path("admin/", admin.site.urls),
]
| [
"randle.taylor@gmail.com"
] | randle.taylor@gmail.com |
06196fc7aa750093399e06e3cd547f8725ab94aa | 5267a42c67b8376a63373f3b3c88f17828ce4f54 | /examples/simple_brownian_cross_difference_multi.py | 9c581f7afae0d943aa7047e7174ff4c7754ecdf4 | [
"MIT"
] | permissive | arkomatej/cddm | 92034a197ecf6f7c7264f31ce02cfb676ded10e6 | c21f28360d4ccdefa6758a06c71e757abc77efaf | refs/heads/master | 2021-01-03T20:51:42.479829 | 2019-11-29T13:26:24 | 2019-11-29T13:26:24 | 240,231,936 | 0 | 0 | MIT | 2020-02-13T10:19:01 | 2020-02-13T10:19:01 | null | UTF-8 | Python | false | false | 1,791 | py | """
In this example we use a simulated dual-camera video of o brownian motion
of spherical particles and perform cross-ddm analysis.
You must first create FFTs of the videos by calling simple_brownian_fft.py
"""
from simple_brownian_video import PERIOD
from cddm import normalize, k_select, cdiff_multi, log_merge, cc... | [
"andrej.petelin@ijs.si"
] | andrej.petelin@ijs.si |
9511ffcc05590f301e4a8466093619f59be26ae6 | 9cdfe7992090fb91696eec8d0a8ae15ee12efffe | /backtracking/prob40.py | 35a50f35d3bf10395f27bb09dc0fd73feed9f333 | [] | no_license | binchen15/leet-python | e62aab19f0c48fd2f20858a6a0d0508706ae21cc | e00cf94c5b86c8cca27e3bee69ad21e727b7679b | refs/heads/master | 2022-09-01T06:56:38.471879 | 2022-08-28T05:15:42 | 2022-08-28T05:15:42 | 243,564,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # 40. Combination Sum II
# 20% in speed
class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
m = len(candidates)
mask = [True] * m # True , unvisited
re... | [
"binchen.devops@gmail.com"
] | binchen.devops@gmail.com |
bb92c78a3507437d26e8c13bf76458394bd4074d | 3428950daafacec9539a83809cf9752000508f63 | /9613.py | 25c7f72aa501d90fc4c817a8bc99fbaae4c3a433 | [] | no_license | HyunAm0225/Python_Algorithm | 759b91743abf2605dfd996ecf7791267b0b5979a | 99fb79001d4ee584a9c2d70f45644e9101317764 | refs/heads/master | 2023-05-24T05:29:12.838390 | 2021-06-15T16:36:33 | 2021-06-15T16:36:33 | 274,587,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import sys
from itertools import combinations
input = sys.stdin.readline
def GCD(a, b):
return GCD(b,a%b) if b else a # 3항연산자 b ? GCD(b,a%b)
N = int(input())
command = []
first_num = 0
_sum = 0
for _ in range(N):
commend = input().strip().split()
first_num = commend.pop(0)
ans_lst = list(combinations... | [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
4a7409646eb71bc82b2390f4d52bbf7e481fdd75 | dc65a27e40a79dadd00612e00b7c37d2d29c94cf | /pitcher/admin.py | 87e1d71fe6f9b9c4b727bf4b214eb5b05c57cd13 | [] | no_license | xmduhan/pitchersite | 8b8c52ba2d8998055600a33b403a9df66055c816 | 6299a6c2f870aca10c765a17306f477f44d12312 | refs/heads/master | 2021-01-01T05:39:46.464660 | 2018-02-03T04:41:57 | 2018-02-03T04:41:57 | 26,756,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from models import *
# Register your models here.
# class TicketCountLogAdmin(admin.ModelAdmin):
# '''
# 船票数量日志
# '''
# fields = [
# 'logTime', 'seq', 'departure', 'arrival', 'flightCode', 'departureTime', 'price', 'ticketCount', 'fligh... | [
"xmduhan@gmail.com"
] | xmduhan@gmail.com |
ed1d47f6592f2640a0f502c3748341808bca725a | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/client/script/ui/shared/info/panels/panelUsedWith.py | 8da058573daa14fd3cc36867e8d7ba55e4c457c7 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #Embedded file name: eve/client/script/ui/shared/info/panels\panelUsedWith.py
from carbonui.primitives.container import Container
from eve.client.script.ui.control.eveScroll import Scroll
import const
from utillib import KeyVal
class PanelUsedWith(Container):
def ApplyAttributes(self, attributes):
Contain... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
0405700d43670bffc1633f06a4043b24ca432749 | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/funciones_raizenesima_295.py | 2b69caa01fb20efe9d7ea18d4c6228a54fa57e6b | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 23 06:11:49 2013
@author: daniel
"""
#programa: funeciones_raizenesima_295.py
#la funcion calcula el valor: raiz enesima de un valor x, dados (n, x)
#ejercicio 295
#define funcion raiz_n_esima
def raiz_n_esima(x, n):
calculo = x**(1.0/n)
return calculo
#cue... | [
"danmery@gmail.com"
] | danmery@gmail.com |
94669405f51a3622b4e1e82064acafb48771d80f | d8c5f1d5f5b7d222834d233db26d8b03e37bdfa3 | /clients/kratos/python/test/test_self_service_registration_flow.py | 05d5a65b59f4e145b15dca92fbc0d7e4b2b921a5 | [
"Apache-2.0"
] | permissive | kolotaev/sdk | 31a9585720c3649b8830cf054fc7e404abe8e588 | 0dda1becd70be8d7b9d678321ebe780c1ba00485 | refs/heads/master | 2023-07-09T21:36:44.459798 | 2021-08-17T09:05:22 | 2021-08-17T09:05:22 | 397,220,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | """
Ory Kratos API
Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
495dc94c9cfb817ab8434a7119f003ed550c694c | 042bd40e554ac7fcd618c334ae98b4f43248a250 | /examples/python/cpu/tensors/example_05.py | 3eca81540108c21828e2e5f1191625fc20d4ed05 | [
"Apache-2.0"
] | permissive | kant/ocean-tensor-package | 8a62df968335de2057ff095f0910e5ad5fcff8e1 | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | refs/heads/master | 2020-03-29T04:01:22.064480 | 2018-09-19T19:17:19 | 2018-09-19T19:17:19 | 149,511,923 | 0 | 0 | Apache-2.0 | 2018-09-19T21:03:14 | 2018-09-19T21:03:14 | null | UTF-8 | Python | false | false | 213 | py | ## Tensor with irregular size
import pyOcean_cpu as ocean
t = ocean.tensor([2,3],[12, 3], 1, ocean.int16);
s = t.storage
s.dtype = ocean.int16
s.asTensor().fill(3)
print(t)
print(s)
print(s.size)
print(s.nelem)
| [
"evandenberg@us.ibm.com"
] | evandenberg@us.ibm.com |
58a8ac3aeb1031aee7c52aea91979f8e256f1cfd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_haziest.py | 734478d05a08f9da7053e6b7c99b1937fa26fa4c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.adjectives._hazy import _HAZY
#calss header
class _HAZIEST(_HAZY, ):
def __init__(self,):
_HAZY.__init__(self)
self.name = "HAZIEST"
self.specie = 'adjectives'
self.basic = "hazy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0b5acd1df1841635c753ede93fdd054867f5d530 | 3541de0acb7e6f624b6b01ca3cf6e8827dc79ce1 | /dfirtrack_main/views/reason_views.py | 7fadd61f4272d75b046b21eb8223c675580a7e29 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | P3t3rp4rk3r/dfirtrack | 13d4c7d185d49ac33ac166232edd53bed830a6c0 | 2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a | refs/heads/master | 2023-06-28T14:13:07.085758 | 2021-08-01T18:06:06 | 2021-08-01T18:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import DetailView, ListView
from django.views.generic.edit import CreateView, UpdateV... | [
"mathias.stuhlmacher@gmx.de"
] | mathias.stuhlmacher@gmx.de |
328ce9ad18492200d88b554a5dc76adf5e604244 | 08ad52ed4d6b33d464d245273f060bd0722029ea | /hwrt/analyze_data.py | cc84bfe57329809ffba1f51e54883f23196c1e1c | [
"MIT"
] | permissive | MartinThoma/hwrt | 8468d5fee904f54b1a925693aff76911666308e9 | f271046c64679f38fb98a2af115a92c258c5897a | refs/heads/master | 2023-02-21T16:48:51.348954 | 2022-06-22T05:22:37 | 2022-06-22T05:22:37 | 24,846,573 | 73 | 20 | MIT | 2023-02-16T02:35:36 | 2014-10-06T13:20:25 | Python | UTF-8 | Python | false | false | 4,439 | py | """
Analyze data in a pickle file by maximum time / width / height and similar
features.
"""
# Core Library modules
import logging
import pickle
import sys
# Third party modules
import numpy
# Local modules
from . import data_analyzation_metrics as dam
from . import features, handwritten_data, utils
logger = loggi... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
c8b2490cec893fb236b62ca8143b51ef35419017 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_158/1120.py | f954bb5e8fdbdf8e1f91915335edb35a95dcde07 | [] | 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 | 991 | py | #!/usr/bin/python3
def readInputFile():
l = [line.rstrip('\n') for line in open('in.in')]
return l
def putOutpinutFile(testCaseResults):
f = open('out.out', 'w')
i = 1
for row in testCaseResults:
f.write('Case #' + str(i) + ': ' + row + '\n')
i += 1
def calcWinner(g):
'''[X, R, C] := X-omino, RxC field... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a1b6ed2785929ac743135502ae64dcb1fb2694af | 8034c55f3b941d91c75f5c02286361174391d698 | /DataAnalysis/plot2.py | fc3877a31ed078707f8933c6631b9c9182590489 | [] | no_license | billy-inn/Plot | 6bb23c9419ef3b4d7a694539d3b04ad04418323d | 17537fa4ed9bd2adf691917746cfed5c3d3c1d3d | refs/heads/master | 2020-03-29T16:20:55.887599 | 2014-10-20T12:26:42 | 2014-10-20T12:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import matplotlib.pyplot as plt
import numpy as np
fig, (ax0,ax1) = plt.subplots(nrows = 2, sharex = True)
fr = open('./Fermi/naive_atomic.txt',"r")
x = []
y = []
for line in fr.readlines():
arr = line.strip().split()
x.append(eval(arr[0]))
y.append(eval(arr[1]))
ax0.plot(x,y,'o-',label='naive')
fr.close()
fr... | [
"bly930725@gmail.com"
] | bly930725@gmail.com |
b90f10964bd01b2ecf57b094f81abb2a9448e041 | 415ef6cfb37b4b072ea97a822a736bd14def2bc2 | /chapter1/section4/__init__.py | a9965af10b84f0f8beb4bd707e87e6f143bc0078 | [] | no_license | csheahan/NumberTheoryProblems | 88f84e42c2fcb205ce1ea2d2a2a175c1351c1d07 | f365715bf63752e02cef9823555b59d444889052 | refs/heads/master | 2021-01-21T12:49:54.838508 | 2016-05-14T05:19:22 | 2016-05-14T05:19:22 | 37,578,891 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from Tkinter import *
import ttk
from chapter1.section4 import problem1
from chapter1.section4 import problem2
from chapter1.section4 import problem3
def load_section(tree, frame):
tree.insert("ch1", "end", "ch1.4", text="Section 4")
problem1.load_problem(tree, frame)
problem2.load_problem(tree, frame)
problem... | [
"chris.sheahan@live.com"
] | chris.sheahan@live.com |
e2c38c6b8d5cc6321c5f7859ffd8eb9d154fc8f2 | ce9d475cebeaec9cf10c467c577cb05c3b431fad | /code/chapter_15_example_04.py | baf0b61f3bb3dd5a2c1a7fdb600caf5ee6b3e45d | [] | no_license | Sundarmax/two-scoops-of-django-2.0-code-examples | 9c8f98d145aaa5498bb558fc5125379cd39003e5 | a15b2d4c240e879c03d2facf8592a644e27eb348 | refs/heads/master | 2022-04-19T10:14:53.795688 | 2020-03-04T15:16:25 | 2020-03-04T15:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | """
Using This Code Example
=========================
The code examples provided are provided by Daniel Greenfeld and Audrey Roy of
Two Scoops Press to help you reference Two Scoops of Django: Best Practices
for Django 1.11 for Django 2.0 projects. Code Samples follow PEP-0008, with exceptions made for the
purposes o... | [
"pydanny@gmail.com"
] | pydanny@gmail.com |
c0ae830810a689c99bef8274af44f7abf7049caa | 0c65eead5b7076e042c1c4800ece7e61e99f2ba7 | /python/Python_5ch_Class_and_Module/calendar_practice.py | 25271bb7de4385a02a878d04755b8975bf0752eb | [] | no_license | LeeSM0518/TIL | 3826a432b73945ebea302eef6429a93b6baa1f4f | 463d7e056b0083047f3e33d705d77f014947f982 | refs/heads/master | 2021-06-28T07:26:20.215835 | 2020-09-25T14:16:00 | 2020-09-25T14:16:00 | 149,553,733 | 3 | 3 | null | 2019-02-14T13:16:25 | 2018-09-20T05:00:06 | Java | UTF-8 | Python | false | false | 781 | py | # calendar : 달력을 볼 수 있게 해주는 모듈 이다.
import calendar
print('calendar 모듈')
# calendar.calendar(연도) : 그 해의 전체 달력을 볼 수 있다.
print('\ncalendar.calendar(2018) = \n', calendar.calendar(2018) )
# calendar.prcal(연도) : 위와 같다.
print('\ncalendar.prcal(2015) = \n' )
calendar.prcal(2015)
# calendar.prmonth(2015, 12) : 해당되는... | [
"nalsm98@naver.com"
] | nalsm98@naver.com |
8d64c85d093b75fedf8fad09a0e4250f341d0670 | 2c9db62ddaffd77c097b3da4990021270912ea40 | /백준/1316.py | 8300773a7464790a64bd367f04b8bdaefe11aab0 | [] | no_license | nahyun119/algorithm | 9ae120fbe047819a74e06fc6879f55405bc9ea71 | 40e291305a4108266073d489e712787df1dbae4b | refs/heads/master | 2023-08-27T23:18:44.133748 | 2021-10-03T11:32:12 | 2021-10-03T11:32:12 | 326,661,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import sys
input = sys.stdin.readline
def main():
n = int(input())
words = []
for _ in range(n):
words.append(input().strip())
count = 0
for word in words:
list_word = list(word)
temp = set(list_word)
hash_map = {}
is_group = True
for t in temp:... | [
"nahyun858@gmail.com"
] | nahyun858@gmail.com |
773a5e1ddb42e79b5c28f31fef3e6b5649f29a01 | 8efe9a6c9489d798b5f5b610eb531d86924a1548 | /src/products/migrations/0009_auto_20180227_2103.py | d86752a13654ac86e388bc84980127720d29e9d5 | [] | no_license | MarekBiczysko/naklisze_public | e8e6f7e61cdb83b74ea68862b40c061c0253767b | e53c0e8fefffbcfc3a8859976eb7b81cf6270847 | refs/heads/master | 2022-12-12T02:27:09.824803 | 2019-07-23T10:54:47 | 2019-07-23T10:54:47 | 198,410,666 | 0 | 0 | null | 2022-12-08T01:03:08 | 2019-07-23T10:46:57 | Python | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-27 20:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0008_auto_20180225_1534'),
]
operations = [
migrations.AddField(
... | [
"marek.biczysko@stxnext.pl"
] | marek.biczysko@stxnext.pl |
7aad2e9979754dd93ff5acc9841ecef0bd2710fd | 3da45c63f83b5acac33da5be8d300b384721c26b | /evolution/evolution_019/integration_tests/dump.py | 822d7ccec89790e751309b2b3da940446e7d4869 | [] | no_license | lanzhiwang/japronto_evolution | f18a9fb46c12add9336838c9d716d427a7845eac | 3948c213d1465f8ad82ad8d21555cf70d9323e16 | refs/heads/master | 2021-06-28T02:20:39.589983 | 2019-11-11T11:28:16 | 2019-11-11T11:28:16 | 217,689,114 | 1 | 0 | null | 2021-02-26T03:06:20 | 2019-10-26T09:56:09 | C | UTF-8 | Python | false | false | 663 | py | import os.path
import sys
import base64
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/..'))
from app import Application
def dump(request):
body = request.body
if body is not None:
body = base64.b64encode(body).decode('ascii')
result = {
"method": request.method,
... | [
"hzhilamp@163.com"
] | hzhilamp@163.com |
2f441354ecc5e076edf034d737f6949f59b912f0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_breakdowns.py | 168fbe2e7c175a28f59bf30b45059c9cec475115 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _BREAKDOWNS():
def __init__(self,):
self.name = "BREAKDOWNS"
self.definitions = breakdown
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['breakdown']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0fb6b2de855bb54d5c6db23644b21feb2a146295 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_supervision.py | 9d9c30ecc3e1ecb8201ab3b26348b487857f092d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py |
#calss header
class _SUPERVISION():
def __init__(self,):
self.name = "SUPERVISION"
self.definitions = [u'the act of watching a person or activity and making certain that everything is done correctly, safely, etc.: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3702d842687ff1e61651a4c7ac982d1651bfc3f1 | 66231ef313035bd81573b3690bcc888cfd86776d | /mifs/models/KernelSVM.py | a9d9d449581db7c484eb48cfffe7436bcb0193cc | [
"MIT"
] | permissive | SHANK885/PKNN-MIFS | 3ae9ae6228038bfd90fb14bc55d1e3146ab470dd | ade8132d0b95b6fbdb746906c5482ba91c391407 | refs/heads/master | 2023-08-25T10:45:08.517807 | 2022-08-24T06:32:44 | 2022-08-24T06:32:44 | 203,161,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
# Kernel SVM
# Importing the libraries
import numpy as np
from sklearn.preprocessing import Imputer, LabelEncoder
from sklearn.preprocessing import OneHotEncoder, StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import confusi... | [
"shashankshekhar885@gmail.com"
] | shashankshekhar885@gmail.com |
47f57eeb0b316edba3e9777736384707db2eb9b4 | 116967cd9f326d74a83c7ce01a826e1a83265ade | /nilearn/examples/manipulating_visualizing/plot_mask_computation.py | d13722b24c16aa20b212e82c5ab13f580c15a1fe | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | bcipolli/nilearn-RSA | f73ea5e04ac94c0c2d4c7ac5f5219779a3067596 | 0ac8595c1ce3e44b6b5ec25d1906f558088ab297 | refs/heads/master | 2020-04-15T04:01:37.084977 | 2015-08-15T17:35:22 | 2015-08-15T17:35:22 | 31,421,013 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | """
Understanding NiftiMasker and mask computation
==================================================
In this example, the Nifti masker is used to automatically compute a mask.
For data that has already been masked, the default strategy works out of
the box.
However, for raw EPI, as in resting-state time series, we ... | [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
4c672c8fb992d3fe90b6a785829c57694c04088d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02796/s099351239.py | cae776a89c2f2684a1ed82c8f23258d578ac2571 | [] | 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 | 743 | py | import numpy as np
N = int(input())
X = [[] for _ in range(N)]
L = [[] for _ in range(N)]
for i in range(N):
X[i], L[i] = map(int, input().split())
def indexSort(L):
D = dict(zip(range(len(L)), L))
E = sorted(D.items(), key=lambda x: x[1])
F = [e[0] for e in E]
return F
L1 = [x-l for x,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e99c2919647110fc3f59b705d304d2c8b2ca1d10 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_LinearTrend_Seasonal_DayOfWeek_LSTM.py | f58e54b4034c5b38bf73953b9661a4e9470846ce | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 168 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['LinearTrend'] , ['Seasonal_DayOfWeek'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
7a090d467db9d938619742f49541d501cbc32f0b | 4d776c7cbf3fd7ec616da07056bd940b4c2c7732 | /app/views/base_view.py | 4c77e9ce300aa7971ead257c679d2b0692ffad6e | [] | no_license | AngelLiang/flask_oauth2_server_demo | b42772290dbedf3aebeeac37bf560904f5db7de2 | eda952a3286b8d73698a9825f642f5210c2abfd0 | refs/heads/master | 2022-12-09T02:57:40.996459 | 2019-09-20T10:08:58 | 2019-09-20T10:08:58 | 136,454,395 | 1 | 0 | null | 2022-12-08T02:12:47 | 2018-06-07T09:29:42 | Python | UTF-8 | Python | false | false | 2,455 | py | # coding=utf-8
from sqlalchemy import func
from flask import redirect, url_for, request, abort, g, current_app, render_template
from flask_user import current_user, login_required
from flask_admin import BaseView, expose, AdminIndexView
from flask_admin.contrib.sqla import ModelView
from flask_admin.model import Base... | [
"pl01665077@163.com"
] | pl01665077@163.com |
9bc0e5f1f3765c1d7550f60284aee3e4bfb968bb | 0fdf5196a64ee86a3047671563ca3b62c98bbdb3 | /data/spiders/buildings.py | 4a14bea657db568caad338ea291fa60ef9fcf0d0 | [] | no_license | alxfed/permits_old | ba032f4c83856adbe7d46db93f389c09f34713f3 | 62955058ebe2ae4abe141c3e5e7dc83cf360562e | refs/heads/master | 2021-04-19T05:24:17.006713 | 2020-03-23T21:35:28 | 2020-03-24T01:16:12 | 249,547,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,190 | py | # -*- coding: utf-8 -*-
from scrapy.spiders import CSVFeedSpider
from collections import OrderedDict
import scrapy
from data.items import InspTableLine, PermTableLine
from datetime import datetime
import re
def not_identified(response):
# //*[@id="search"]/div[2]/p
NO_MATCH_XPATH = '//*[@id="search"]/div[2]/p... | [
"alxfed@gmail.com"
] | alxfed@gmail.com |
235001135efb85f370b3f72a05c368bc30a09161 | 8fb4f83ac4e13c4c6de7f412f68c280d86ddea15 | /eon/virt/driver.py | 9bb99abf57aec72761c8472539bf1169197cf655 | [
"Apache-2.0"
] | permissive | ArdanaCLM/hpe-eon | cbd61afa0473bbd9c6953e5067dbe5a7ff42c084 | 48a4086d2ccc5ccac60385b183f0d43f247c0b97 | refs/heads/master | 2021-07-25T18:55:30.176284 | 2017-10-24T08:49:42 | 2017-10-24T08:49:42 | 103,971,673 | 0 | 1 | null | 2017-11-07T15:47:45 | 2017-09-18T17:43:45 | Python | UTF-8 | Python | false | false | 4,775 | py | #
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development Company LP
#
# 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 require... | [
"srivastava.abhishek@hp.com"
] | srivastava.abhishek@hp.com |
14e1c8684927638b76e122f57d535304d263f89e | 2036a29f8659f0364a8fd1ef3397afb8ecf67944 | /Ch02/listcomp_speed.py | ac461c87f7dcb112bd6af73f04ffeeca34e43269 | [] | no_license | it-zyk/Python_Fluent | 3e7b327fa838768378446988c37613fe06b41f7b | 9247f7cc62d57d8795ed667a49a27cb847d4f3b3 | refs/heads/master | 2020-04-10T16:29:08.127284 | 2018-12-14T03:45:21 | 2018-12-14T03:45:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import timeit
TIMES = 10000
SETUP = """
symbols = '$¢£¥€¤'
def non_ascii(c):
return c > 127
"""
def clock(label, cmd):
res = timeit.repeat(cmd, setup=SETUP, number=TIMES)
print(label, *('{:.3f}'.format(x) for x in res))
clock('listcomp :', '[ord(s) for s in symbols if ord(s) > 127]')
clock('lis... | [
"it-zyk@outlook.com"
] | it-zyk@outlook.com |
528511b86a3f4a3eafed5e64b6dff882a234b80c | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/3f/90fc1f01576a00141afa8a8ed49a3dc2 | 22093cdf73b3e02ae1a943cce518634a833440d0 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 2,315 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
dc5855fcf8080af755c381eb67cbd235c24d0dde | 47c30f754bd3ebe95306cff4a21507f2169dcf49 | /common_dibbs/clients/oma_client/models/__init__.py | 534eeed32db2b31bf33333192ba3f5d8418a6600 | [] | no_license | DIBBS-project/common-dibbs | 2f897ecd8faec7373d06731543eab37d270fbc5c | 14c261dd0bab66774a10fc08db7551a69ba408a5 | refs/heads/master | 2020-09-21T19:29:30.946209 | 2017-03-16T16:06:22 | 2017-03-16T16:06:22 | 67,717,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # coding: utf-8
"""
Operation Manager Agent API
Interact with deployed Cloud Computing resources via API.
OpenAPI spec version: 0.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this fil... | [
"jonathan.pastor@me.com"
] | jonathan.pastor@me.com |
321139cf535dbef1ad1be2d5fd5d7fc9f6370c9a | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /allergy/allerpatient16.py | 181cb5839a8a0967b38904170ad6cb7c04b4d3d8 | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter import messagebox
import os
gui=Tk()
gui.title("Enter Allergy")
gui.configure(bg='cyan')
#gui.geometry('250x200')
def get(Allpatient, entryall):
MsgBox = messagebox.askyesno('Save data', 'Data saved !')
if MsgBox == 1:
Al... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
37b83fdd91d569750db5a305c2c8228260085a28 | fe7b700cfe3c06d89d18ffad3eeeb3b8220c1759 | /pipeline/feature-validation/exp-4/pipeline_validation_patients.py | d1f10697b86b762ca9f2c92859de31c907b51d12 | [
"MIT"
] | permissive | DivyaRavindran007007/mp-mri-prostate | 928684a607cf03a2d76ea3e3e5b971bbd3a1dd01 | bd420534b4b5c464e5bbb4a07eabdc8724831f8a | refs/heads/master | 2021-06-08T21:09:15.850708 | 2016-10-20T16:08:57 | 2016-10-20T16:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | """
This pipeline is used to report the results for the ADC modality.
"""
import os
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
#sns.set(style='ticks', palette='Set2')
current_palette = sns.color_palette("Set2", 10)
from scipy import interp
from s... | [
"glemaitre@visor.udg.edu"
] | glemaitre@visor.udg.edu |
10b2891feb7c89ae7a02e0071edfa0e370b15242 | 906ea12bcdbe3ea1bf39f489ae4263b3c3cf30b8 | /04_april/26_secondLastElemList.py | ac05ff7b29a4ac9045a10adc9618475818d47fc3 | [] | no_license | dfeusse/codeWarsPython | da14802ef7986390331c5279cf3cb46eeb3fe853 | c29de0f48ab89de88106c0504f734df328982bae | refs/heads/master | 2016-08-11T11:41:34.501979 | 2015-10-25T02:30:48 | 2015-10-25T02:30:48 | 36,802,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | def penultimate(a):
# implement here
return a[-2]
'''
def penultimate(a):
# implement here
try:
return a[-2]
except:
return None
''' | [
"dfeusse@gmail.com"
] | dfeusse@gmail.com |
16e77cfe66a50dfa56dcdaa6ea6f032343e3f1dc | 07b7d6244732a3fd52d431e5d3d1ab7f651b4ab0 | /src/exemplos/03_Fluxo/02_Repeticao/00-while.py | d03d6f30a47fdcf34104e5a73cacbe0b99553680 | [] | no_license | GTaumaturgo/CIC-APC | 19832050efe94dd29a78bde8b6e121b990ccd6b9 | cc3b7b132218855ad50ddbe63bbdd6f94f273c54 | refs/heads/master | 2020-04-05T22:54:13.414180 | 2017-01-18T17:20:25 | 2017-01-18T17:20:25 | 42,275,384 | 0 | 0 | null | 2016-04-10T14:25:16 | 2015-09-10T23:05:54 | C | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
## @package: 00-while.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplo do laço de repetição WHILE. */
PICANHA = 'free(B01)'
def sirva(opcao):
'''Mostra o que está sendo servido.'''
print('Servindo %s.' % opca... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
8fa84a8d9292bb63aa643b33ac2af472b4400b75 | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/lsn/lsngroup_binding.py | ef4c5d7769f1acfdc715d702f9e68179cd5fd931 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
c7878b62d284502e225c97d58bcf28ba19a87f30 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03151/s241282840.py | 195f137ed1190a37b85bc39bda9abb8ec0812035 | [] | 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 | 370 | py | n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
if sum(a)<sum(b):
print(-1)
exit()
c=[]
ans=0
count=0
for i in range(n):
c.append(a[i]-b[i])
if c[i]<0:
ans+=1
count+=c[i]
#print(count)
c.sort(reverse=True)
#print(ans)
i=0
while count<0:
count+=c[i]
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
985397149042d0bf5a644e137d13233dad83251b | 23165420a2ced2306c1154cbd479e67006860e87 | /Algorithms/排序算法.py | 8a06be98553530a853e0fce119af4f6dd93bb52e | [] | no_license | pppineapple/LeetCode | 8a446a65f99e2f2c572696caca2550c6e3bd8acc | e41a86e9d4615079247ef3ef9a35537f4b40d338 | refs/heads/master | 2020-04-06T14:54:02.475837 | 2018-11-19T09:38:56 | 2018-11-19T09:38:56 | 157,558,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 27 22:42:08 2018
@author: pineapple
"""
'''
快排
'''
def helpquckersort(alist, first, last):
pivotvalue = alist[first]
left = first + 1
right = last
stop = False
while not stop:
while left <= right and alist[left] <=... | [
"504434414@qq.com"
] | 504434414@qq.com |
628952684958e1026f4ad1e0dc43bf935aa26d6e | dfa03a0e00719395e760399630f03d8b42ec9e4c | /yolo/vedanet/network/__init__.py | 5f06c01556b68b29cd88e1dced9729fb794c50ea | [
"MIT"
] | permissive | CuongNguyen218/ObjectDetection-OneStageDet | 2b69772975dc03ebfa680b3c0acfc7cd72316b95 | 60efe8b0ee6782b2aea20a32264b2ce1fc21901f | refs/heads/master | 2020-09-08T16:19:38.593367 | 2019-11-12T09:49:56 | 2019-11-12T09:49:56 | 221,181,969 | 0 | 0 | MIT | 2019-11-12T09:42:04 | 2019-11-12T09:42:04 | null | UTF-8 | Python | false | false | 302 | py | """
Lightnet Models Module |br|
This module contains networks that were recreated with this library.
Take a look at the code to learn how to use this library, or just use these models if that is all you need.
"""
# layer
from . import layer
# backbone
from . import backbone
# head
from . import head
| [
"xyc_sjtu@163.com"
] | xyc_sjtu@163.com |
a87d53b2d3f3bdb4312a30a393c32c88acfb71b9 | 385332aa8f704927d002e63520437690895a0425 | /20200618-selenium/tests/test_hackernews.py | f0165074a01eb5dbbafc36a48d8abb5aedbd2f92 | [] | no_license | tocodeil/webinar-live-demos | 358eaf4305fd23477eb5c454c347d1fc241df8b4 | c561eaaf95fafa0133898d81fc73722d2929a64f | refs/heads/master | 2023-03-17T10:50:16.329795 | 2022-11-17T07:58:38 | 2022-11-17T07:58:38 | 227,549,887 | 6 | 18 | null | 2023-03-04T19:20:39 | 2019-12-12T07:49:35 | JavaScript | UTF-8 | Python | false | false | 204 | py |
def test_hackernews_homepage_has_30_stories(browser):
browser.get('https://news.ycombinator.com/')
stories = browser.find_elements_by_css_selector('a.storylink')
assert len(stories) == 30
# | [
"ynonperek@gmail.com"
] | ynonperek@gmail.com |
59d0cf051e0f6d0eff0281d1e233cd9a48a6edc2 | 4421cdef9d23204d392726db4e3886b8aec3072d | /Django/SEV/MAMARA/views.py | 67ce148ce802f1fd0b0538ec92a76184ee723f92 | [] | no_license | Sanketdave12/PRACTICE | f38b8eae569ee670db55610202ef6f3e60fade87 | 0f71359cf5326be73b3d9d4b1219bea4832cc194 | refs/heads/master | 2022-12-27T08:08:45.953842 | 2020-09-18T17:31:23 | 2020-09-18T17:31:23 | 296,587,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from MAMARA.models import notice, Profile
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.db.models import Q
... | [
"sddave1998@gmail.com"
] | sddave1998@gmail.com |
0308e77b25dc4809425b55dc2ab8397b8462f90a | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /239/239.sliding-window-maximum.251781894.Accepted.leetcode.py | f207910863dd1c77d41a64c818860f3813081d4a | [] | 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 | 428 | py | from collections import deque
class Solution(object):
def maxSlidingWindow(self, nums, k):
q = deque()
max_window = []
for i, num in enumerate(nums):
while q and nums[q[-1]] < num:
q.pop()
q.append(i)
if q[0] <= i - k:
q.p... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
acd4d44746dba4cdb87a94893463dd2029d313af | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayBossBaseProcessTaskTakeModel.py | 02981c77c60c448dced40339df45c54c10e31f37 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayBossBaseProcessTaskTakeModel(object):
def __init__(self):
self._memo = None
self._node = None
self._operator_id = None
self._operator_work_no = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
a2da3a0402b81159de90a41333fe5fe888fea126 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /test/data/measurement_script.py | 70ac3cf24786d6b323556d8a68ff46eaaff8bf88 | [
"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 | 3,841 | py | # !Measurement
'''
'''
# counts
MULTICOLLECT_COUNTS = 4
# baselines
BASELINE_COUNTS = 2
BASELINE_DETECTOR = 'H1'
BASELINE_MASS = 39.5
BASELINE_BEFORE = False
BASELINE_AFTER = True
# peak center
PEAK_CENTER_BEFORE = False
PEAK_CENTER_AFTER = False
PEAK_CENTER_DETECTOR = 'H1'
PEAK_CENTER_ISOTOPE = 'Ar40'
# equilibrat... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
ca47278145b54f9801ee573eebe45eab90b05591 | 012ab15bbe72af80c91c9d7c0da7f099224a10a3 | /test/functional/sapling_malleable_sigs.py | d3679ed00011923e84fc2869c434c357805913d1 | [
"MIT"
] | permissive | gimogo/Eloncoin | 24d7dcb04553c75be69c399192c876263aacb7b9 | b19c698ac7d2c4313914f47dc43e26a7b4f323d9 | refs/heads/main | 2023-06-12T12:51:35.211011 | 2021-07-07T17:19:14 | 2021-07-07T17:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Zcash developers
# Copyright (c) 2020The PIVX developers
# Copyright (c) 2021- The ELONCOIN developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
from test_framework.test_fram... | [
"alonewolf2ksk@gmail.com"
] | alonewolf2ksk@gmail.com |
f61ccb06123de75a230c766b7db738de2a9be101 | 361e0ef132f8689dfa0890fdfcf7d5794c2b6915 | /ds_and_algos/search/find_highest_mountain_peak.py | 170411e2ef824fe82be5baa8fb2540b092c83883 | [] | no_license | BMariscal/study-notebook | 53751460d837d910b9cf286674e7739815588d9e | 0ff851359cf91519c3ee2adfd704494ed08b8d6d | refs/heads/master | 2020-08-25T05:53:45.061917 | 2020-08-12T20:15:08 | 2020-08-12T20:15:08 | 216,971,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py |
# O(Logn)
# A binary search based function
# that returns index of a peak element
def find_peak(arr, low, high, n):
# Find index of middle element
# (low + high)/2
mid = low + (high - low) // 2
# Compare middle element with its
# neighbors (if they exist)
if ((mid == 0 or arr[mid - 1] <= arr[m... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
00f17e94a2b3f7f83a4740a382a5905d599f2866 | d1969a22afb7adda791caa4edf464dad02b684c0 | /apps/edu/admin.py | 92902f1093596f646eb9a4e3cfcdda29a14ceb10 | [
"MIT"
] | permissive | local-host-club/cms | 11d4ea1105dabc6d0a60b935484b5f9eb2ec1da9 | 136fb075f11011ea77672b3468f69262a43eb500 | refs/heads/master | 2020-07-02T17:09:36.135855 | 2016-11-28T13:31:11 | 2016-11-28T13:31:11 | 74,293,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.contrib import admin
from apps.edu.models import *
admin.site.register(CompetenciaArea)
admin.site.register(Competencia)
admin.site.register(Nivel)
admin.site.register(Indicador)
admin.site.register(Evaluacion)
admin.site.register(Nota)
| [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
0ff44db4b53c4793eb6e5446c2e4dabf810f57ef | a60135e0a647722fb52d41c58f04326b20cd4b3e | /blog/migrations/0001_initial.py | c97d8bc92d658913ff66fa2cdc6b7e8403ae2ac6 | [] | no_license | Kyeza/Django-Blog-Web-App | 961116a7ccd7fefae8d12def9dfac534731b4cd5 | 8b275b3712c110bfff1efcb23e90182d9b4ba860 | refs/heads/master | 2020-04-25T13:22:18.414056 | 2019-02-26T23:25:12 | 2019-02-26T23:25:12 | 157,757,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Generated by Django 2.1.7 on 2019-02-26 12:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"kyezaarnold63@gmail.com"
] | kyezaarnold63@gmail.com |
e038281f40a9cbb0e2a85f96c0aca7d4126a645d | ac1fdf53359b53e183fb9b2602328595b07cf427 | /ParlAI/parlai/tasks/empathetic_dialogues/build.py | e54db417092e94b274ccb80e0d2aa6b2da650693 | [] | no_license | Ufukdogann/MasterThesis | 780410c5df85b789136b525bce86ba0831409233 | b09ede1e3c88c4ac3047800f5187c671eeda18be | refs/heads/main | 2023-01-24T18:09:52.285718 | 2020-11-27T16:14:29 | 2020-11-27T16:14:29 | 312,416,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:557592977a2506b79d232d0c9318c59a298878bd33fa98e91dc6f059dd9af303
size 1216
| [
"134679852Ufuk*"
] | 134679852Ufuk* |
6d13bb100b65fc7b120099b6a04eaa8ccdd1e0cd | 79f92bc98960a361f4dffba2199027847463ddd7 | /word_frequency_api/apps.py | 3c428fc3141cffd206fac07dfe8ef17a56abe4f8 | [] | no_license | msadour/word_frequency | 61d1eb3cdc0f5e6dfc4110ca5238e097c0cd3764 | a9754ffbf6bc52eda707160ca509768bef08833a | refs/heads/master | 2023-02-13T12:39:30.388878 | 2021-01-10T11:25:34 | 2021-01-10T11:25:34 | 328,226,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | """Apps module."""
from django.apps import AppConfig
class WordFrequencyApiConfig(AppConfig):
"""Class WordFrequencyApiConfig."""
name = "word_frequency_api"
| [
"sadour.mehdi@gmail.com"
] | sadour.mehdi@gmail.com |
489f33e3d0f51df31730a02ee45d3df9ea2e54aa | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/part/python_game_woman/air_team_eye.py | b092a59c17e3ff180b96f97c5199b3d9231b53b5 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Linq;
/* in this repo */
using dfbStartup;
namespace cog_console
{
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
04e01661aa2d540993e644027e1791859de1016e | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /Array Problems/Sort Array By Parity II.py | 62e1786e3d654a214b2f0c9c2f9700cbcc95aa13 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | class Solution(object):
def sortArrayByParityII(self, A):
n = len(A)
odd = []
even = []
for each in A:
if each % 2 == 0:
even.append(each)
else:
odd.append(each)
final = [0]*n
... | [
"spondoncsebuet@gmail.com"
] | spondoncsebuet@gmail.com |
15dc0a0a400ffee7117c7c0a7c7cd5941726679d | d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e | /Codes/antman/agent/framework/actions/reporter.py | 79cd08c782df9e6cf63080d8620605fd8f0e8c2a | [] | no_license | lengxu/YouYun | e20c4d8f553ccb245e96de177a67f776666e986f | b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815 | refs/heads/master | 2020-09-13T22:30:49.642980 | 2017-11-27T03:13:34 | 2017-11-27T03:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # coding: utf-8
import os
from tornado import gen
from framework.task.logger import TaskLogger, EngineType
class Reporter(object):
def __init__(self, task_id, logger, tenant=None, asynchronous=True):
self.logger = logger
self.task_id = task_id
if asynchronous:
self.log_ok = s... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
1c381c134e4baa796353877c4b8843b5d3cb0380 | 45f75e4ec6a8880d12707c1887d3b6f0c1630546 | /howtolens/chapter_2_lens_modeling/scripts/tutorial_8_results.py | 63d3741071ad4d0957460d505cf18fe3cfde439c | [
"MIT"
] | permissive | carlosRmelo/PyAutoLens | 45861eb31f5b9cd50d133a29f279ed0b3c4eaaf3 | 8c3d59cb990d8a1ddc6ed4008893ab312bd07b97 | refs/heads/master | 2022-12-07T23:31:07.618110 | 2020-08-25T18:10:31 | 2020-08-25T18:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,024 | py | # %%
"""
Tutorial 8: Results
===================
Once a phase has completed running, it results a 'Result' object, which in the previous tutorials we used to plot
the maximum log likelihood fit of the modoel-fits. Lets take a more detailed look at what else the results contains.
"""
# %%
from autoconf import conf
imp... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
3049138ba74ea34577278c06c9661481eed0cbda | 96e5dff6045fb7f9280a2e273116d7d7e29fa93d | /myproj/imageTagging/scripts/interfaceUtils.py | ce833eebd07f6b80e7944b799f98dc337e767094 | [] | no_license | ljh1324/PythonImageTaggingServer | e10fff818792141cf7484ce1d34cbe15f1211e34 | 7ccf06c4bb49283a1c8eb975d13eabe0b6143a93 | refs/heads/master | 2020-03-27T08:10:26.359408 | 2018-11-10T11:51:21 | 2018-11-10T11:51:21 | 146,227,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | ''' -------------------------------------------
interfaces, etc
------------------------------------------- '''
import tensorflow as tf
import sys
DIVISION_LINE_LENGTH = 62
def showDivision():
print('=' * DIVISION_LINE_LENGTH)
def showDivisionSingle():
print('-' * DIVISION_LINE_LENGTH)
def showError(msg)... | [
"leejeonghwan1324@gmail.com"
] | leejeonghwan1324@gmail.com |
23ea11d5ddf184da4a81595e4ae76df5e61307dc | 329132ae16449417e959cd7bf5a638e9fd155067 | /爬虫4day/tenxunzhaopingSpider/tenxunzhaopingSpider/spiders/tencent.py | c3d065af0c0c80a14879b72a3aadf46b45c0cc18 | [] | no_license | rj8928/Spider | c9e635d8b46dbc5d26a4b13128c277b3ff2f2f80 | 2e4fb691637a542452028fa92ac490129d0eebba | refs/heads/master | 2021-01-16T19:36:18.902753 | 2017-08-14T12:28:03 | 2017-08-14T12:28:03 | 100,179,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # -*- coding: utf-8 -*-
import scrapy
from tenxunzhaopingSpider.items import TenxunzhaopingspiderItem
class TencentSpider(scrapy.Spider):
name = 'tencent'
allowed_domains = ['tencent.com']
url = "http://hr.tencent.com/position.php?&start="
offset = 0
start_urls = [url + str(offset)]
def parse... | [
"rj8928@gmail.com"
] | rj8928@gmail.com |
83a2f0c13bee2bc5cb39dd0c5c334d662da33f00 | 9fb1c85a6d39c08e2a3cc235335bc482ad909b71 | /tests/providers/aws/services/ecs/ecs_task_definitions_no_environment_secrets/ecs_task_definitions_no_environment_secrets_test.py | 40f3c4fe46cbc4fe6200382e132ece68a6eb4b60 | [
"Apache-2.0"
] | permissive | muharihar/prowler | 06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a | 25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b | refs/heads/master | 2023-02-18T01:26:54.161003 | 2023-02-10T11:38:13 | 2023-02-10T11:38:13 | 238,623,868 | 0 | 0 | null | 2020-02-06T06:36:36 | 2020-02-06T06:36:35 | null | UTF-8 | Python | false | false | 4,321 | py | from unittest import mock
from prowler.providers.aws.services.ecs.ecs_service import (
ContainerEnvVariable,
TaskDefinition,
)
AWS_REGION = "eu-west-1"
AWS_ACCOUNT_NUMBER = "123456789012"
task_name = "test-task"
task_revision = "1"
env_var_name_no_secrets = "host"
env_var_value_no_secrets = "localhost:1234"
e... | [
"noreply@github.com"
] | muharihar.noreply@github.com |
eb07c9f35a3b3237f2b143eec667664075c3b6de | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_239/ch73_2019_03_29_13_35_33_791622.py | 8ed5b35a63f94283bcc32a6db3d34684225af8e3 | [] | 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 | 178 | py | def remove_vogais(x):
i=0
s=''
while i<len(x):
if x[i]!='a' or x[i]!='e' or x[i]!='i' or x[i]!='o' or x[i]!='u':
s+=x[i]
i+=1
return s | [
"you@example.com"
] | you@example.com |
189c44baeb17740fc08566a6d78011def3618a44 | 87cabec126acb99572ed4832f6c9a7c55309417a | /interference_recognition/spectral_scan/scatter.py | 12f9a508029d07a1f84acedfc6ddd83b62660c77 | [] | no_license | ECOAP/examples | a996a9762ffe429b1f7faba3ac0adfb0e93bac97 | 8f67b9334c7c21f7cd1443afd54c4c12ee260be5 | refs/heads/master | 2021-05-02T11:23:54.175327 | 2018-05-23T15:53:04 | 2018-05-23T15:53:04 | 120,776,617 | 0 | 1 | null | 2018-03-07T12:05:07 | 2018-02-08T15:06:32 | Python | UTF-8 | Python | false | false | 1,279 | py | from spectral_acquire import spectral_recorder
import numpy as np
import time
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
sr = spectral_recorder.SpectralRecorder(load=False)
time.sleep(1)
#sr.acquire("/tmp/data.tlv")
#out=sr.extract_samples("nodezotacc1.tlv","out.json")
#print len(out)... | [
"domenico.garlisi@dieet.unipa.it"
] | domenico.garlisi@dieet.unipa.it |
258e0ff3494ff61a868ad200f109eef6d1d31445 | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/1932.py | 35cca8374a2a69b33da1429701c785d1c62c041f | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import sys
def findMax(n):
answer = []
for i in range(n):
k = list(map(int, input().split()))
if i == 0:
answer = k
continue
elif i == 1:
k[0] += answer[0]
k[1] += answer[0]
answer = k
elif i >= 2:
k[0] += a... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.