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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da23b03efa139367d54c2fcb3e57fd0f9d9631df | a06586c101a31bf6c9a7dc307cf664120ac092fd | /Trakttv.bundle/Contents/Libraries/Shared/shove/stores/bsdb.py | 0da028a82f4fcbd598ea314ed513ba07efaced6b | [] | no_license | HaKDMoDz/Plex-Trakt-Scrobbler | 22dd1d8275698761cb20a402bce4c5bef6e364f9 | 6d46cdd1bbb99a243b8628d6c3996d66bb427823 | refs/heads/master | 2021-01-22T00:10:18.699894 | 2015-05-25T23:52:45 | 2015-05-25T23:52:45 | 37,312,507 | 2 | 0 | null | 2015-06-12T09:00:54 | 2015-06-12T09:00:53 | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
'''
Berkeley Source Database Store.
shove's URI for BSDDB stores follows the form:
bsddb://<path>
Where the path is a URL path to a Berkeley database. Alternatively, the native
pathname to a Berkeley database can be passed as the 'engine' parameter.
'''
from threading import Condition
from ... | [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
957745c63aa4acbb57a1750949c8d2115760bb3c | d772869033c47a666622e9ee518bb306db5451a5 | /unified/modules/main/categories/phone_sms/clicksend_sms/util.py | 45a36a96360e84f47ec87f916ca256fc31d727b4 | [] | no_license | funny2code/unified_api | 920f1e19b2304e331b019f8a531d412b8759e725 | ffa28ba0e5c0bd8ad7dd44a468e3d1e777bba725 | refs/heads/main | 2023-08-31T16:00:17.074427 | 2021-10-04T04:09:45 | 2021-10-04T04:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import clicksend_client
from flask import Response, request
def get_clicksend_configuration(clicksend_sms_headers):
'''Authentication for Clicksend API'''
configuration = clicksend_client.Configuration()
configuration.username = clicksend_sms_headers['username']
configuration.password = clicksend_sms... | [
"baidawardipendar@gmail.com"
] | baidawardipendar@gmail.com |
a4b7456e3c8f645d193567dd9cb63fb57ebd7f6d | 729a5032e812ef85fe09d4e9682105288ab915fc | /elit/item/seed.py | 2946e57dd876c784673d1cc23f34f3c5314d8600 | [] | no_license | junhg0211/elit | d2c60f2325efd37c5c20a5160157c296c8c45d49 | b6c26f655b1d485b47483c6ef184ff6cb0c226f0 | refs/heads/main | 2023-07-18T07:20:26.519724 | 2021-08-30T01:57:08 | 2021-08-30T01:57:08 | 397,745,875 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from asyncio import TimeoutError as AsyncioTimeoutError
from typing import Tuple
from discord import Embed
from discord.ext.commands import Bot, Context
from elit.exception import ChannelError
from elit.item import Item
from util import message_author_check, irago
class Seed(Item):
name = '씨앗'
type = 3
... | [
"junhg0211@gmail.com"
] | junhg0211@gmail.com |
8fdd8520b2283971949c09761c0766c98f0e3724 | fd10bb1c3e08f429a421ea87e73939aea2187227 | /src/model/modules/feed_forward_block.py | 0bcba2db8594bdf7b66e406381a84e60e9e2198d | [] | no_license | dertilo/speech-recognition-transformer | 2b9e6336c57eafdbb0dde34c61166a0364f283f4 | f3c4ef5bae631ce6bbdd9dcc78c529e4d39994ce | refs/heads/master | 2022-12-13T06:04:56.939095 | 2020-07-07T09:39:12 | 2020-07-07T09:39:12 | 257,938,478 | 4 | 1 | null | 2022-11-28T12:48:00 | 2020-04-22T15:14:55 | Python | UTF-8 | Python | false | false | 5,394 | py | import torch as t
from src.model.modules.gelu import Gelu
import torch
from src.model.modules.low_rank_linear import LowRankLinear
class FeedForwardReZeroBlock(t.nn.Module):
"""
feed forward layer combine with add - layer norm - dropout
"""
def __init__(self, input_size, inner_size, dropout, use_low_r... | [
"lancertong@live.com"
] | lancertong@live.com |
39b67bdf6db8b2bd8a32118189359f4ca09763ca | 0cf9bb9c50c6efc1bc4a7923f42f6fad79039598 | /Homeworks/HW 11_ Playing the Game Starter Code/testgame.py | 56ad1ba84fd6cf3e17dcc8bd4907ab171d691030 | [] | no_license | AlbMej/CSE-2050-Data-Structures-and-Object-Oriented-Design | c950bada185823c70370522e0735533b41bd726b | bfbe91d698e650d78c20fd535c45108a8dba1030 | refs/heads/master | 2020-04-25T13:20:57.537243 | 2019-03-12T19:54:04 | 2019-03-12T19:54:04 | 172,806,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | from nim import Nim
from gametree import GameTree
from TicTacToe import TicTacToe
import unittest
class TestGameTree(unittest.TestCase):
"""Tests for the GameTree data structure"""
def testinit(self):
"""Test the initializer"""
n1 = Nim([2,3,4])
g1 = GameTree(n1)
n2... | [
"albertomejia295@gmail.com"
] | albertomejia295@gmail.com |
eefadf6c7a8ed64f11d537d97fad62d617be43b6 | 6f2b98bcfca2e338dba4b313f5cbca3e5ca2e1f6 | /backend/api/migrations/0034_add_image_deletehash.py | a6ea652b4581bac987436aa749d7c4db20c9a3b4 | [
"MIT"
] | permissive | Disfactory/Disfactory | c9187d73607d359a18206b42b3e7e4727f62e0ae | 54163d8c14e9b67493a0354175cfe87a0f98d823 | refs/heads/master | 2023-07-24T19:22:28.963065 | 2023-07-17T10:54:50 | 2023-07-17T10:54:50 | 209,294,385 | 50 | 22 | MIT | 2023-08-26T07:55:06 | 2019-09-18T11:43:33 | Python | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.2.13 on 2021-03-17 13:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0033_remove_factory_point'),
]
operations = [
migrations.AddField(
model_name='image',
name='deletehash',
... | [
"swind@cloudmosa.com"
] | swind@cloudmosa.com |
253eb447069949259264040ad4f04fa3c929cca0 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /playground/narcisse/vstream-client/actions.py | 2fcb4cc9c1c59b88cf51530ab7e633160d07a0a4 | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir="vstrea... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
782421c6cfd319b5bc114598b6cfb8469740d481 | ad2704933de4502ae9de91e6d915f9dbe010b446 | /kurosawa/chapter02/knock18.py | cd6c994ed7a88d77e47aa5bf1eadbd204aeae0e7 | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | with open('hightemp.txt','r') as f:
col = []
for list1 in f:
list1 = list1.split()
col.append(list1)
for i in sorted(col, key=lambda temp: temp[2]):
print("%s\t%s\t%s\t%s" %(i[0],i[1],i[2],i[3]))
# sort -k3 hightemp.txt
| [
"michiki@Michiki-no-MacBook-Pro.local"
] | michiki@Michiki-no-MacBook-Pro.local |
859c6751bcaac2d3846b424c0d80a24f60795267 | 81f2825e5bc73bcdaadb00570d8a8607974af3af | /scratch_42.py | efa6e3f7b33d10a97f8b038a9064310cf9de8fbb | [] | no_license | PrakharBansal24/Assignment-1 | 26fc316fe4bd8d2482ef34f147ba241fc2b20d80 | 927239e57309ca3ca794631eb61faf16784b9bf2 | refs/heads/master | 2022-11-23T20:28:30.628768 | 2020-07-27T05:39:30 | 2020-07-27T05:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | def printFrequency(strr):
M = {}
word = ""
for i in range(len(strr)):
if (strr[i] == ' '):
if (word not in M):
M[word] = 1
word = ""
else:
M[word] += 1
word = ""
else:
word += strr[... | [
"you@example.com"
] | you@example.com |
996906dd39fb3529cc39d2ec310d939fa819d3ed | e18222344f78f65e5a52480fa24b4720a1d4e36b | /tests/test_appsync.py | 8281801fa43e093c266aa15a27d2af81b3a9f707 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | vllrsatish/troposphere | 177c34fac39f668eda8c2baaed19ae1a6a05964b | 5ec03f329f2a91d3bb970ef0df7cf6232dccde16 | refs/heads/master | 2023-03-24T23:18:40.304921 | 2021-03-21T12:06:08 | 2021-03-21T16:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import unittest
from troposphere.appsync import Resolver, PipelineConfig
class TestAppsyncResolver(unittest.TestCase):
def test_resolver_kind_bad_value(self):
with self.assertRaisesRegex(ValueError, 'Kind must be one of'):
Resolver(
'MutationField',
DataSourceNa... | [
"mark@peek.org"
] | mark@peek.org |
675e595f5196864d3257979b47697dfddbd5e4e4 | 9e1ee20e89229869b42cd5deceeb24ce7790b721 | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/PreCheckCreateOrderForTempUpgradeRequest.py | 9f2b126d63cd827d8382f32125666a242dfb382c | [
"Apache-2.0"
] | permissive | guwenbo/aliyun-openapi-python-sdk | 7503ed8f50897ea1ad7bdb390e140a2e570e30b8 | ef4f34e7e703ef2ddfdcb1f57573b9b14be77e0d | refs/heads/master | 2020-09-23T04:44:06.134661 | 2019-12-02T12:52:51 | 2019-12-02T12:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e2ec73ce9a92cc11f091aee17aacaa3ceb1eb9c9 | 7b79deca597eee678b521b808674948fc333fd40 | /Nanodet/client2.py | c5e1ccef29b6d952475a220940624ade856836a8 | [] | no_license | GitZzw/IERCAR | bfd4481ce1d1994a36f0587876c970b60f08d1c3 | cd3115b89f4b69a9adb2c26e412c0659bfa68aa6 | refs/heads/master | 2023-02-19T03:09:16.040070 | 2021-01-23T13:44:39 | 2021-01-23T13:44:39 | 332,219,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/python
# coding: utf-8
import math
import socket
import rospy
import threading
import time
from std_msgs.msg import Float32
from geometry_msgs.msg import PoseStamped
global target_corner_msg
global t2
global flag
def callback(data):
global t2
global flag
global target_corner_msg
target_c... | [
"120137016@qq.com"
] | 120137016@qq.com |
7acee8deb1bf7f07bb324573b18412c4e2c80892 | cb8c62659f9509bbc01237a09cf8730b57f4a84f | /Webopedia/__init__.py | e27402d16322110945ef906d20fd6ce678573c79 | [] | no_license | stepnem/supybot-plugins | 5bd795319036ab21cd81b00a23e0c1f712876d3e | 6838f7ae22ad1905272cf7e003fb803e637c87d8 | refs/heads/master | 2021-01-01T18:49:44.478383 | 2012-01-05T04:14:24 | 2012-01-05T04:14:24 | 281,407 | 8 | 4 | null | 2016-11-01T20:15:17 | 2009-08-18T21:55:56 | Python | UTF-8 | Python | false | false | 1,965 | py | ###
# Copyright (c) 2004, Kevin Murphy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions,... | [
"stepnem@gmail.com"
] | stepnem@gmail.com |
b7080a3388fa6748b93fdbe2e00ad522869923bb | 5ec48e90f711c9514a6d2ee36dbb46bc1ba71b74 | /accounts/migrations/0005_alter_user_zipcode.py | ce51f2e740d31fc46683c04ef22c1913cba2642e | [] | no_license | hanieh-mav/hanieh_shop | 1ca5042fefb970459d9f48fb716a95fec6a530bb | b7cf253e11b6c167e78b245f253a8d057f435026 | refs/heads/main | 2023-06-10T16:37:26.385048 | 2021-07-07T14:19:58 | 2021-07-07T14:19:58 | 372,892,835 | 2 | 0 | null | 2021-07-07T14:19:59 | 2021-06-01T16:19:48 | CSS | UTF-8 | Python | false | false | 437 | py | # Generated by Django 3.2.4 on 2021-06-26 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_remove_user_shahr'),
]
operations = [
migrations.AlterField(
model_name='user',
name='zipcode',
... | [
"h.mehdiabadi@gmail.com"
] | h.mehdiabadi@gmail.com |
feca44382f1c83fcd137aacf6ceaefb3ddc82150 | 9795e787a54d15f2f249a17b616fec3df67d4559 | /exception/exceptions.py | f737f34a31e603fd34902bda5585322969e15d34 | [] | no_license | gebbz03/PythonProject | 377b6ccf5eafa37dd157012ce499138370ba882f | c12f939cf194a4c541ee77e1f614ba9867ef7090 | refs/heads/master | 2020-04-02T22:16:11.082863 | 2018-10-30T05:49:22 | 2018-10-30T05:49:22 | 154,827,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py |
#try and catch block
def div(x,y):
try:
result=x/y
except ZeroDivisionError:
print("Cannot divide by zero")
return None
except Exception as e:
print("Error occured",e)
return None
return result
print(div(4,2))
print(div(4,0))
print(div('1','2'))
| [
"gebb.freelancer@gmail.com"
] | gebb.freelancer@gmail.com |
41fdbe9ba825572f3d44dfbc1f9d27d1ef7a631d | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/verification_ip_flow_parameters_py3.py | dd9ba7b70c0b60664f4e70b0301a8b45e220e3c8 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 3,706 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
d72a310d68e97683a91711d371b79255141f523c | 76d4d6f4edb3216ade81ba1d1b98ef17a1b9baa9 | /transactions/views.py | c3470d056a65b14161f48f361cc74ca9705c83a5 | [] | no_license | phemmylintry/crypto | 8455c4ed6fda14bf49fdad9527cb6de4134498d6 | 390816f8152514446d063728b7428d6633739855 | refs/heads/main | 2023-03-22T07:51:35.454040 | 2021-03-10T04:25:04 | 2021-03-10T04:25:04 | 340,151,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework.authentication import TokenAuthentication
from django.contrib.auth import get_user_model... | [
"phemmylintry@gmail.com"
] | phemmylintry@gmail.com |
017385197b19ce7d53a1c71903d01f34549125f6 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/922_sort_array_by_parity_ii.py | da1ab4097aaced49495bc27465f04ae81e4854cc | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
"""Array.
Running time: O(n) where n is the length of A.
"""
even, odd = [], []
for a in A:
if a % 2 == 1:
odd.append(a)
else:
even.append(a)
... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
61698d866bd746910d1e197d4205bbdc4be3429a | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log/woals.cgi | 00aadbd636a0b7515b9ff6fd8600b2962811ba09 | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,999 | cgi | 12월 : 사비의 방어시설을 <font color=red>+11</font> 강화했습니다.(16일0시14분)
11월 : 사비의 방어시설을 <font color=red>+11</font> 강화했습니다.(15일23시17분)
10월 : 사비의 방어시설을 <font color=red>+14</font> 강화했습니다.(15일22시15분)
9월 : 사비의 방어시설을 <font color=red>+10</font> 강화했습니다.(15일21시14분)
8월 : 사비의 방어시설을 <font color=red>+12</font> 강화했습니다.(15일20시14분)
7월 : 사비의 방어시설... | [
"lu2447315@gmail.com"
] | lu2447315@gmail.com |
3f2822cf8074a1923bebb0ea6f5d14b816b76656 | dde1cf596cf5969812ecda999828baa9c73e788d | /test/test_snapshot_alias_extended.py | 6bca0e0b2c31ef9b79fad88ed829b0806416cbaa | [] | no_license | dctalbot/isilon_sdk_python3.7 | bea22c91096d80952c932d6bf406b433af7f8e21 | 4d9936cf4b9e6acbc76548167b955a7ba8e9418d | refs/heads/master | 2020-04-25T20:56:45.523351 | 2019-02-28T19:32:11 | 2019-02-28T19:32:11 | 173,065,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 6
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_1_1
from i... | [
"dctalbot@umich.edu"
] | dctalbot@umich.edu |
5f92a9568bee1058fc272d28084d6c7ad10f802b | 9b45d301869631cf464da34eadf5ddb96ce80ae2 | /annotations/subsample_json_annotations.py | 92590f3a15f62c2c1ad6db9dce734c2926bcc825 | [] | no_license | zhanght021/segment-any-moving | df6605bfee4bb9c6f76f3e09d38a493914eb5750 | a72f1afd9f52bc9151221112dbc8a8fc0891807e | refs/heads/master | 2020-12-02T15:30:12.301579 | 2019-12-22T20:24:02 | 2019-12-22T20:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | import argparse
import json
import logging
import random
from pathlib import Path
from utils.log import setup_logging
def main():
# Use first line of file docstring as description if it exists.
parser = argparse.ArgumentParser(
description=__doc__.split('\n')[0] if __doc__ else '',
formatter_... | [
"achalddave@live.com"
] | achalddave@live.com |
9fc96baae700f71e09894a414eeaf395736030fc | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/765.py | e2bb292960f894265919bae5d4515259ff95dcdb | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 1,501 | py | __________________________________________________________________________________________________
sample 28 ms submission
class Solution(object):
def minSwapsCouples(self, row):
ans = 0
for i in range(0, len(row), 2):
x = row[i]
if row[i+1] == x^1: continue
ans +... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
be8dd059ed81f4842d06142a8a046d206f83a4eb | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/basinAll/tsMapSeq.py | 5bfffb5cc94cf4e8469788d0e47b6a2dd1db36cc | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,278 | py | import importlib
from hydroDL.master import basins
from hydroDL.app import waterQuality
from hydroDL import kPath
from hydroDL.model import trainTS
from hydroDL.data import gageII, usgs
from hydroDL.post import axplot, figplot
import torch
import os
import json
import numpy as np
import pandas as pd
import matplotlib.... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
b0a7e19fb390fa57b3835fc1e4f1ca42566c3f7d | efd471380d976614667e56c92f0aed671371fc63 | /All Programs/Tuples.py | 7c2c7e039ad6d52062ffa5f8b2189cb68d4273cf | [] | no_license | anshumanairy/Hacker-Rank | 39af46e76182d34637340d1755aff4afd7820083 | 6fef4c6a415422d9379232932358e4ee7430a6af | refs/heads/master | 2021-07-04T07:41:37.769152 | 2020-10-12T05:49:24 | 2020-10-12T05:49:24 | 181,359,750 | 2 | 2 | null | 2020-10-12T05:49:25 | 2019-04-14T19:38:18 | Python | UTF-8 | Python | false | false | 201 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
def func():
N=int(input())
list1=[""]*N
c=input("")
list1=list(map(int,c.split()))
print(hash(tuple(list1)))
func()
# In[ ]:
| [
"anshuman.airy04@gmail.com"
] | anshuman.airy04@gmail.com |
85a39828733a6f7bfe8b8897c68b984eaf80db3c | 7d549faf0de691a63acae85e60b081d4b6b7ddc7 | /slowfast/datasets/__init__.py | dee63427c45337ec1e5ac384762abd5fb36e5d31 | [
"Apache-2.0"
] | permissive | billcai/SlowFast | be05f7852810d43211c4e6ab7faef27f86d035af | 778888e63351e55861801996b37c7ff9a3746587 | refs/heads/master | 2021-08-01T17:02:11.539218 | 2021-07-26T22:05:16 | 2021-07-26T22:06:15 | 248,907,066 | 0 | 0 | Apache-2.0 | 2020-03-21T04:34:41 | 2020-03-21T04:34:40 | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .ava_dataset import Ava # noqa
from .build import DATASET_REGISTRY, build_dataset # noqa
from .charades import Charades # noqa
from .imagenet import Imagenet # noqa
from .kinetics import Kinetics # noqa
from .ssv2 ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
61d9f8923dce64ff0f4801e9d15ae1d5e69c756c | 71f47bd812a420c9849ecc7609e99f9b969c4d3d | /push_endpoint/migrations/0018_pusheddata_datasource.py | 1f6ba580925a882b85b136592f91b7ce41408b7e | [] | no_license | erinspace/shareregistration | e2bd0d8086a60eac616057a225bda07a0cd385a9 | e04bfe443fda49644a12778a4826c9cb04930f5b | refs/heads/master | 2020-05-27T18:25:05.858413 | 2016-02-24T20:17:37 | 2016-02-24T20:17:37 | 30,875,095 | 0 | 1 | null | 2016-02-24T20:17:37 | 2015-02-16T15:47:22 | JavaScript | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('push_endpoint', '0017_auto_20151113_1532'),
]
operations = [
migrations.AddField(
model_name='pusheddata',
... | [
"erin.braswell@gmail.com"
] | erin.braswell@gmail.com |
85bb1583d91110edde4ea3a582c960e697bc9b4e | 0bf6ecbdebc7424a8946b29127d55c5bc1e7442e | /organization/migrations/0062_auto_20170727_2109.py | 146f45e3415b6fb573a6dc9d046e806ac30d424d | [] | no_license | dekkerlab/cLIMS | 2351a9c81f3e3ba982e073500a4a5cf2fd38ed51 | e76731032a5707027b53746a8f2cc9b01ab7c04e | refs/heads/master | 2021-03-27T06:28:49.718401 | 2017-10-10T19:22:33 | 2017-10-10T19:22:33 | 71,837,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-07-27 21:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wetLab', '0076_auto_20170727_2109'),
('organization', '0061_auto_20170426_1541'),
... | [
"nanda@ankitas-mbp.ad.umassmed.edu"
] | nanda@ankitas-mbp.ad.umassmed.edu |
e4771e45015373752e3153f63e5089990296b822 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_312/ch6_2019_02_28_19_18_08_378411.py | 51733cbb770c32be20d9f73baf7b228425fd72c1 | [] | 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 | 308 | py | def encontra_maximo(lista):
max=lista[0][0]
eixox=len(lista)-1
eixoy=len(lista[0])-1
count=0
count2=0
while count<eixox:
while count2<eixoy:
if lista[count][count2]>max:
max=lista[count][count2]
count2+=1
count+=1
return max | [
"you@example.com"
] | you@example.com |
fb3acbea24022a162db419f7994a985a3cf44ed8 | c331d0f5e3d4ae0c60dd5cc7aa3dc9c76faec88c | /WebApp/python/setup_db.py | e39937533186ae75b43b74afa11e44c1e6d8c2e7 | [] | no_license | sahahn/BPt_app | 744be29dad8710b5113a50cd12d8d250e51587d6 | f849a8bad43419b334000e57f2ce874d38a6d3d5 | refs/heads/master | 2023-03-09T01:50:44.401955 | 2020-10-19T17:59:37 | 2020-10-19T17:59:37 | 280,518,561 | 0 | 0 | null | 2020-10-19T17:59:39 | 2020-07-17T20:25:27 | JavaScript | UTF-8 | Python | false | false | 2,872 | py | import os
import json
import shutil
from Dataset import Dataset
def process_dataset(base_loc, dataset_name):
# Init dataset with locs, etc...
dataset = Dataset(base_loc=base_loc,
dataset_name=dataset_name)
# Process files (skips if not needed)
dataset.process_files()
def proc... | [
"sahahn@uvm.edu"
] | sahahn@uvm.edu |
6e82d9acc53a5eabc323bec3d2068e5365b6bdec | 42f83595d24addd3cf8be828e282b37509825b3e | /src/collective/cfgconfig/view.py | dd91876c2f239c361f74514a6c6a9a457b10ca9f | [] | no_license | datakurre/collective.cfgconfig | 825a26b7704932b5ea70f688cda8112623b42493 | 3325c6cbd5defd40c40bce7ed43814e9f77263ae | refs/heads/master | 2016-09-06T21:39:03.209274 | 2013-11-24T12:13:50 | 2013-11-24T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # -*- coding: utf-8 -*-
from Products.Five.browser import BrowserView
class HelloWorld(BrowserView):
def __call__(self):
return u"Hello world"
| [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
e45b7ab72944b666ff1639a4f0be0b3e38507d7b | 9947d1e328a3262a35a61385dc537c3dc557ab7d | /机器学习/day05/demo07_ac.py | 334d5013ba072bb2730ca8167dd3d93753dc93a3 | [] | no_license | nuass/lzh | d0a7c74a3295523d1fe15eeaa73997fc04469f06 | 3cb1cf1e448b88ade226d113a7da4eab7bbb5c09 | refs/heads/master | 2021-02-06T06:10:32.772831 | 2019-06-10T08:54:49 | 2019-06-10T08:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # coding=utf-8
"""
凝聚层次
"""
import numpy as np
import sklearn.cluster as sc
import matplotlib.pyplot as mp
x = np.loadtxt("../ml_data/multiple3.txt",delimiter=",")
model=sc.AgglomerativeClustering(n_clusters=4)
pred_y = model.fit_predict(x)
mp.figure("AgglomerativeClustering",facecolor="lightgray")
mp.title("Agglom... | [
"1581627402@qq.com"
] | 1581627402@qq.com |
e269cfa019462d7b553ac3efa865d6eca08f96e4 | 19f1dc4e728714e66af8e1e8262f2b7c47d3beb6 | /Samples/UserSamples/2017/STTConfig.py | 3e551660149292cc15d24516e961c55717591b35 | [] | no_license | samhiggie/DatacardCreator | 74cbbbea928770d3ca5669604d96ffb582416b45 | 8e838816cfb9adee8b2276adf79904da6449ca52 | refs/heads/master | 2020-09-11T19:35:48.985441 | 2019-11-18T23:51:18 | 2019-11-18T23:51:18 | 222,169,538 | 0 | 0 | null | 2019-11-16T22:56:02 | 2019-11-16T22:56:02 | null | UTF-8 | Python | false | false | 1,350 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.JES import JESUncertainty
from Samples.Uncertainties.UserUncertainties.METUES import METUESUncertainty
from Samples.Uncertainties.UserUncertainties.MuonES impo... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
e32886648d45201263ed378387cc9fab9df32a4e | d68be566e1b7dbb9c716b8165e9d546a6e294e5d | /course/models.py | 265df4287ea82f383070bffcb7676c8a7a8d5f77 | [] | no_license | NeuSovo/Neusoft-ecard | 0e5d525360522d4abf3a7f39ec4d205ec17d571d | 41138be9280fc92e98d6dce7394ac66204672b40 | refs/heads/master | 2021-03-24T09:32:55.543809 | 2018-09-12T04:48:29 | 2018-09-12T04:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | from django.db import models
# Create your models here.
class RoomModel(models.Model):
class Meta:
verbose_name = "RoomModel"
verbose_name_plural = "RoomModels"
def info(self):
result = {
'RoomID': self.RoomID,
'RoomTime': self.RoomTime,
'RoomWeek... | [
"zhangxh1997@gmail.com"
] | zhangxh1997@gmail.com |
04bd05b63a5e2c8534a1ddac43a2d5cafcb436e0 | 133dc799865134325975afeff2d1aa1ed4a1f5ca | /migrations/versions/15fd2af90843_users_table.py | fd6d349e4f08d2cc27f0e80cb3078dc01b9cf887 | [] | no_license | Serrones/microblog | 5eb72baf86ad363e607ac29775f8c1f24234a18d | 917eec12890c8485d44dbef4742dae268837c15b | refs/heads/master | 2020-03-14T16:48:47.328601 | 2018-05-07T00:01:20 | 2018-05-07T00:01:20 | 131,705,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """Users Table
Revision ID: 15fd2af90843
Revises:
Create Date: 2018-05-01 17:23:06.763488
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '15fd2af90843'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"fabioserrones@gmail.com"
] | fabioserrones@gmail.com |
37465d7be87d3f32cd3ed96223af113778b5d931 | 24d6d41989d676f3532013de3a6d847586fa3663 | /permissions_widget/settings.py | adac7edee3ac2392f01a48f2c9f39405a49144f4 | [] | no_license | diegofer/compu | 92da75e79a4f286840f127698961bd1f99edf567 | 4407896e899e057a928f63455f29bba370bf5c7a | refs/heads/master | 2021-01-22T19:54:11.588140 | 2014-04-01T05:41:59 | 2014-04-01T05:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | """
Settings for permissions_widget.
EXCLUDE_APPS
The permissions widget will exclude any permission for any model in any app
in the EXCLUDE_APPS list. It contains sensible defaults which you can
override: sessions, admin and contenttypes for example, as in most cases
users won't even have the possibil... | [
"diegofernando83@gmail.com"
] | diegofernando83@gmail.com |
84019c47c3970e23b49d08af58fa3ddfb4190e74 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /programming_computer_vision_with_python/cvbook-contrib/ch05_stereo.py | 8cfe22f5dbe6c0a38f1888e9cb984ffbc05f7bdd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 465 | py | from PIL import Image
import numpy
import stereo
im_l = numpy.array(Image.open('out_stereo1.ppm').convert('L'), 'f')
im_r = numpy.array(Image.open('out_stereo2.ppm').convert('L'), 'f')
steps = 12
start = 4
wid = 9
res = stereo.plane_sweep_ncc(im_l, im_r, start, steps, wid)
wid = 3
res_gauss = stereo.plane_sweep_gau... | [
"bb@b.om"
] | bb@b.om |
2d9b1d187eb1175b5bcb291481e18ea6d1dd82b2 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/albatrossandco/brubeck_cms/brubeck/common/geography/fields.py | a782283b0983066628ff4b3c9c3ac8bb6bd8e614 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 3,849 | py | from django import forms
from django.conf import settings
from django.db import models
from django.utils.safestring import mark_safe
class Coordinates:
def __init__(self, lat, lng):
self.lat = float(lat)
self.lng = float(lng)
def __repr__(self):
return ','.join([str(self.lat), str(self.... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
46e42a8851daf5a097db3ca58345f605faf477e9 | 67c0d7351c145d756b2a49e048500ff361f7add6 | /xpresso/ai/admin/infra/packages/package_dependency.py | da30e097a2988bd38de9035b38da48c3c253c61f | [] | no_license | Krishnaarunangsu/XpressoDataHandling | ba339ae85b52e30715f47406ddb74966350848aa | 0637a465088b468d6fdb6d1bb6f7b087547cec56 | refs/heads/master | 2020-06-27T19:58:43.358340 | 2019-08-29T16:59:08 | 2019-08-29T16:59:08 | 200,035,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | """ Package Dependency MOdule
"""
from xpresso.ai.admin.controller.exceptions.xpr_exceptions import \
PackageFailedException
__all__ = ["PackageDependency"]
__author__ = "Srijan Sharma"
import json
import os
import networkx as nx
import matplotlib.pyplot as plt
from xpresso.ai.core.utils.xpr_config_parser import... | [
"arunangsutech@gmail.com"
] | arunangsutech@gmail.com |
aed4b7492ab51ac5f0be52b4803a554e1a88e1a5 | d33d25c752aa9604ccbd3ce75a26d31e8a12151a | /models/spational_transformer_sampler_interp.py | 0e4a348dcc3db3c7a4160ae048eb387f2e289d4f | [] | no_license | yasunorikudo/sfm-learner-chainer | 78bbb080c54e6af4278f31448d7b4067492b2dce | 06d722a2a71ea9c51c4755862be7b211c35ac2b1 | refs/heads/master | 2022-07-07T12:03:10.076957 | 2019-08-07T07:39:59 | 2019-08-07T07:39:59 | 200,998,542 | 0 | 0 | null | 2022-06-21T22:28:07 | 2019-08-07T07:38:37 | Python | UTF-8 | Python | false | false | 4,722 | py | import numpy
import chainer
from chainer import function
from chainer.utils import argument
from chainer.utils import type_check
from chainer import cuda
class SpatialTransformerSamplerInterp(function.Function):
def check_type_forward(self, in_types):
n_in = in_types.size()
type_check.expect(2 ==... | [
"yukitsuji020832@gmail.com"
] | yukitsuji020832@gmail.com |
02cc57abadc1b35abd7611414ff7e4803bf5be52 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minCost_20200826170809.py | 416df3034399b192e979acb250e8e4c2b5d35bb5 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | def minCost(days,costs):
# brute force approach
# find if numbers are consecutive
# if they are past 7 then means we do a 30 day pass
# once they stop being consecutive means to opt for something different
# like [1,4,6,7,8,20]
ways = [0] * days[len(days)-1]
newDays = set(days)
for ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a0b93c64d418d2f9953bebcebd810c6e68451a2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch20_2020_09_11_22_25_42_229462.py | 9fda66b3766ee69c033f0fc481cd067588ecd032 | [] | 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 | 203 | py | distância = float(input("Digite a distância a percorrer: "))
if (distância <= 200):
total = 0.5 * distância
print("%.2f" %total)
else:
total = 0.45 * (distância)
print("%.2f" %total) | [
"you@example.com"
] | you@example.com |
16a1f15487d6a04ef8e315b7e87984f406ce40f4 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/vns/rtconntoaconninst.py | 0a35dac1b96046c398e2ffe6d152e8610f74460e | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 5,644 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
845bd92c060e393e1feb07efce537f9a3b65d67b | f3cd7727bb731e359e93e86771ed66ccc4587937 | /generic_images/managers.py | d462ed0e927ec90f5d3d9b728c53544c74c016ad | [
"MIT"
] | permissive | kmike/django-generic-images | bb8344751c27056c88abedb6a3669204f0b5b25b | 4e45068ed219ac35396758eb6b6e1fe5306147df | refs/heads/origin/master | 2023-08-18T04:12:04.668596 | 2009-12-25T15:45:13 | 2009-12-25T15:45:13 | 2,316,219 | 5 | 3 | null | 2017-11-10T15:16:30 | 2011-09-02T20:16:38 | Python | UTF-8 | Python | false | false | 2,306 | py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.db.models import get_model
from generic_utils.managers import GenericModelManager
def get_model_class_by_name(name):
app_label, model_name = name.split(".")
model = get_model(app_label, model_name, False)
... | [
"kmike84@gmail.com"
] | kmike84@gmail.com |
63456deeb37fe3d0953db49310e7b28446f990fe | f4924a0a6d1eb17f3b7dca035f7dedfe0231254a | /src/dsgrn_net_query/queries/CountStableFC_large_networks.py | be619af9d650d362d75488d495c1be52ad016a78 | [
"MIT"
] | permissive | julianfox8/dsgrn_net_query | b22f4ac3f75a6d0d21fc7b3a703389486b7a27f6 | 89df8bded9d60384864b04703ef52dfbd52632d9 | refs/heads/master | 2023-08-22T08:36:01.137658 | 2021-10-01T17:25:50 | 2021-10-01T17:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | import DSGRN
import os, json, sys,subprocess,ast,shutil
def query(network_file,params_file,resultsdir=""):
'''
:param network_file: a .txt file containing either a single DSGRN network specification or a list of network specification strings in DSGRN format
:param params_file: A json file with the keys
... | [
"breecummins@gmail.com"
] | breecummins@gmail.com |
ad41c5695cf98fe7852c8050c4ce5462a713dacf | de0d5fafb49f603ca4979d6f4c8eba52888714c2 | /applied_social_network_analysis/network_connectivity/visualizing_networks.py | fac080b713f74e529d55299dc831ae26587a0fd8 | [] | no_license | sivaneshl/python_data_analysis | 1ab42569d5cc843f79765332a30769588447d6f6 | 36af66ae9e03827f5dfe3cc64d993b84b1b31e9b | refs/heads/master | 2020-09-11T17:28:51.459573 | 2020-07-05T18:43:59 | 2020-07-05T18:43:59 | 222,137,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | import networkx as nx
import matplotlib.pyplot as plt
G = nx.read_gpickle('resources/major_us_cities')
fig = plt.figure(figsize=(10, 9))
nx.draw_networkx(G) # uses default spring layout
# using random layout
plt.figure(figsize=(10, 9))
pos = nx.random_layout(G)
nx.draw_networkx(G, pos)
# circular layour
plt.fig... | [
"sivaneshl@virtusa.com"
] | sivaneshl@virtusa.com |
496912f6a5efc1cfacb3505a445c8d08b57768e8 | 601a5ac66309608772db5a9fa65faca4a0acad4f | /spyder/plugins/completion/providers/snippets/widgets/__init__.py | 6a3215fe6b5108d8e1e1b68a4a100bb027af8530 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LGPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"CC-BY-2.5",
"CC-BY-4.0",
"MIT",
"LGPL-2.1-only",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"OF... | permissive | juanis2112/spyder | ea5e5727d4dbec5c3e40cb87aad644cc722ff27e | 0b4929cef420ba6c625566e52200e959f3566f33 | refs/heads/master | 2021-08-09T15:14:49.011489 | 2021-04-28T20:18:06 | 2021-04-28T20:18:06 | 158,863,080 | 1 | 1 | MIT | 2018-11-23T17:50:04 | 2018-11-23T17:50:04 | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Snippets related widgets."""
from .snippetsconfig import (
SnippetModelsProxy, SnippetTable, SUPPORTED_LANGUAGES_PY, PYTHON_POS)
| [
"ccordoba12@gmail.com"
] | ccordoba12@gmail.com |
075faaca072840771480c8dad744b6400d118856 | 6268655719a46c9d2b6b38ea21babd8b877724dd | /ecom/urls.py | c96fa0cafc244270befb0361102e589c71c8180a | [] | no_license | MahmudulHassan5809/Ecommerce-Django | f84b968621eed61fdf08c55cd43c7a09d8bc8ba7 | f416536a6b5ce583283139e7271f3fcd1da49739 | refs/heads/master | 2022-12-31T15:39:34.405140 | 2020-10-24T18:15:38 | 2020-10-24T18:15:38 | 292,297,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from django.urls import reverse_lazy
from django.views.generic.base import TemplateView
app_name = "ecom"
urlpatterns = [
path('', views.HomeView.as_view(), name="home"),
path('category/<str:category_slug>/<in... | [
"mahmudul.hassan240@gmail.com"
] | mahmudul.hassan240@gmail.com |
775f151f9bac97b1672a3701d47cd1066bbde102 | b23d627c04402ffaafdf6bf3af4e40ee027d015b | /viscum/scripting/exception.py | f85e17d80f46d223cc08a7da940581e59b8d6986 | [
"MIT"
] | permissive | brunosmmm/viscum | fad2e26f33eab74165633905144d6e8ccd205fb9 | a6b90ae6203998fc016ef89972a3b5d6cf441eb0 | refs/heads/master | 2021-01-17T11:16:08.725747 | 2018-03-23T13:59:44 | 2018-03-23T13:59:44 | 55,721,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """Scripting Exceptions."""
class InvalidModuleError(Exception):
"""Invalid module."""
pass
class DeferScriptLoading(Exception):
"""Defer script loading."""
pass
class ScriptSyntaxError(Exception):
"""Script syntax error."""
pass
class CancelScriptLoading(Exception):
"""Cancel scr... | [
"brunosmmm@gmail.com"
] | brunosmmm@gmail.com |
ddc9ee2417f9490178e8cb2ea3a9cf5a360d9328 | 53e2254b83ac5ac71ff390a7c77070ff97b31c0b | /max_subarray.py | 234927450cf501f40718aefbeab37a510db496a4 | [] | no_license | Ponkiruthika112/codekataset1 | 83a02b96a6b35c33ae7c5a6d6b21c34e63a7eef4 | 4f164864a59e22122b647dd62d36d24e7ace7dac | refs/heads/master | 2020-04-15T04:58:44.427824 | 2019-09-06T10:10:12 | 2019-09-06T10:10:12 | 164,404,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | def subarray(s):
l=[" "]
for i in range(0,len(s)):
for j in range(i+1,len(s)+1):
l.append(s[i:j])
return l
a=input()
b=input()
x=subarray(a)
y=subarray(b)
d=[]
for i in x:
if y.count(i)!=0:
d.append([len(i),i])
d.sort(reverse=True)
print(d[0][1])
#subarray
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
3b2c7bf4b9c033f46fa9264303c0326bb30d648c | 12c2168d1b2db8de3246f59e8f911a0a40ec0512 | /Produto/forms.py | b8a944f8220f46ce172ea1d92eea43233709754f | [] | no_license | carlafcf/BD_TADS | 1bc145aa8668f994ec45fb8dc20c0505a86cbbc5 | 72e835a281dade32072c4715d91825ed8b7483ca | refs/heads/master | 2023-04-03T07:54:48.646902 | 2021-03-30T00:06:36 | 2021-03-30T00:06:36 | 341,566,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django import forms
from django.db import connection
from django.core.exceptions import ValidationError
from .models import Produto
class ProdutoForm(forms.ModelForm):
class Meta:
model = Produto
fields = ['nome', 'descricao', 'fornecedor', 'quantidade_maxima',
'valor_uni... | [
"carlafcf@gmail.com"
] | carlafcf@gmail.com |
2c4578d7aad69ef2eb58b0b9ef7d419426c3e8b0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1393.py | 7306be9c406116a4b86b2512dbd82fc3a7f4b436 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py |
def compare_list(l1, l2):
l = []
for i,j in zip(l1,l2):
if i > j:
l.append(1)
else:
l.append(-1)
return l
def dwar(w1, w2):
w1.sort()
w2.sort()
while len(w1) > 0:
l = compare_list(w1, w2)
lset = list(set(l))
if len(lset) == 1 and lset[0] == 1:
return len(w1)
w1.pop(0)
w2.pop(-1)
re... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
143ded849c4e7c0e8ca61a4374f43a742eb7fd22 | 9c84378e88df12a83d3ca6dde5d16b76e3778a1b | /appengine/gce-backend/handlers_queues.py | a4b113c55398b459ac8e4955fe494dcd81c42646 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | eakuefner/luci-py | 681364457a43724965ee70168354e1c097e4d3df | d9a337e2fd5151eac24b3164963e086091d769a3 | refs/heads/master | 2021-01-15T14:58:37.310142 | 2015-10-06T19:08:08 | 2015-10-06T19:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | # Copyright 2015 The Swarming Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
"""Task queues for the GCE Backend."""
import json
import logging
from google.appengine.ext import ndb
import webapp2
from components import decorator... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a9af732e804394d5d2b35f5a479a30695122d13a | 46ef191ca0c170ca1d8afc5eb5134de52eba15f1 | /abc167/venv/D.py | 52607613479c21ed6d9f20b94042a0ff10aeb2a9 | [] | no_license | anthonyouch/Competitive-Programming- | 9a84cd7ff4b816d2e7ece4e4d6438dbeb23f5795 | 39109a7be1cd007bd0080a9694ac256efc10eab9 | refs/heads/master | 2023-03-04T00:49:00.688118 | 2021-02-05T13:19:46 | 2021-02-05T13:19:46 | 334,131,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # create a list that eventually goes back to 1
import sys
n, k = [int(i) for i in input().split()]
lst = [int(i) for i in input().split()]
lst.insert(0, 0)
path = [1]
curr = 1
visited = set()
while True:
if lst[curr] in visited:
path.append(lst[curr])
#print(path)
index_val = path.index(... | [
"anthonyouch.programmer@gmail.com"
] | anthonyouch.programmer@gmail.com |
96db5839bb144bc4546626c155142610d2a4061a | 87d13c3c1e4d37909a584ae5be5abd5576dafb9b | /backend/todos/migrations/0001_initial.py | 34753a9ef9bd73a7895aee22b6ad24d76e98806f | [] | no_license | Tanmoy-Sarkar/Todo-App-with-Django-Rest-Framework | 8c5a6fcf2e5d6d15bcb8acbc421aefb0b9e5519d | d8dc88968a94c74b6d3dab008abdab68088aacb6 | refs/heads/master | 2023-07-29T00:28:51.198787 | 2020-08-12T05:51:24 | 2020-08-12T05:51:24 | 278,842,084 | 0 | 0 | null | 2021-09-22T19:30:38 | 2020-07-11T10:48:24 | JavaScript | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.0.8 on 2020-07-11 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"tanmoy9920@gmail.com"
] | tanmoy9920@gmail.com |
fb845fdfab1ea433b53665abb0f88557207567d7 | 6ff4671a00db5b5b97eea71f80b30dd4ff3ca020 | /Notebooks/Stride_testing.py | 1076f13f26c8dce5fb0bff66b691279c729f93ca | [
"MIT"
] | permissive | jason-neal/equanimous-octo-tribble | 36cbe912282bb9210a8fc4e959795bbda1a5f1e4 | a8788909331034725afe38ae96c83584b17c9fbd | refs/heads/master | 2021-01-23T19:57:05.022746 | 2018-07-18T21:37:27 | 2018-07-18T21:37:27 | 46,361,899 | 1 | 1 | MIT | 2020-06-11T09:35:48 | 2015-11-17T17:00:51 | HTML | UTF-8 | Python | false | false | 6,037 | py |
# coding: utf-8
# # Testing numpy Stride
# For snr calculation windowing
# In[21]:
from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from astropy.io import fits
from numpy.lib import stride_tricks
get_ipython().magic('matplotlib inline')
... | [
"jason.neal@astro.up.pt"
] | jason.neal@astro.up.pt |
37712452ff5adaa4113178fb9c5623c3e941fee9 | d67bd00f8fe819bd3011ce154c19cbc765d59f1d | /branches/4.0_buildout/openlegis/sagl/skins/consultas/parlamentar/vereadores_atuais_json.py | aac059d617ea5f4ce9e532f0b3e6b9cfb8903a88 | [] | no_license | openlegis-br/sagl | 90f87bdbbaa8a6efe0ccb5691ea8424575288c46 | eabf7529eefe13a53ed088250d179a92218af1ed | refs/heads/master | 2023-08-31T12:29:39.382474 | 2023-08-29T16:12:01 | 2023-08-29T16:12:01 | 32,593,838 | 17 | 1 | null | 2023-08-29T06:16:55 | 2015-03-20T16:11:04 | Python | UTF-8 | Python | false | false | 1,827 | py | ## Script (Python) "vereadores_atuais"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
import simplejson as json
context.REQUEST.RESPONSE.setHeader("Access-Control-Allow-Origin", "*")
request=context.REQUEST
for item in... | [
"contato@openlegis.com.br"
] | contato@openlegis.com.br |
bf6f76dc39e4234d6a8f1eaad9548249a8dc530d | a7947a129fa5318517f35f17163840f24178d6aa | /examples/core_geometry_bspline.py | c254afdd34a3fe70426aefe3c789019e5e6cad4d | [] | no_license | fboussuge/pythonocc-demos | 993abe7634ab74fc3619fea12519c176b4e26658 | 8f9756653eaecc505238d43fa22a0057bbd14b56 | refs/heads/master | 2021-06-23T01:29:29.611505 | 2020-12-08T13:49:04 | 2020-12-08T13:49:04 | 156,134,578 | 0 | 0 | null | 2018-11-04T23:17:31 | 2018-11-04T23:17:30 | null | UTF-8 | Python | false | false | 2,743 | py | #!/usr/bin/env python
##Copyright 2009-2014 Jelle Feringa (jelleferinga@gmail.com)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 o... | [
"tpaviot@gmail.com"
] | tpaviot@gmail.com |
e08f90549f8a32c66d9622898dd5fc889d376b1d | 57c570d1b5a621158d8763f935e2069be6b8c90a | /tykj-operation/tykj-operation/MarketSearchCrawler/services/db.py | 48e2998f975d9b156c3edad34d84c9fd20d44542 | [] | no_license | liuliainio/liuli | e011decf45f7eca7009a12ad4a96f33a17055945 | 203fbf4f135efb6432c77b937633003ce2f2c9a2 | refs/heads/master | 2021-01-10T20:35:08.070770 | 2018-08-21T05:52:59 | 2018-08-21T05:52:59 | 25,625,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | #-*- coding: utf-8 -*-
'''
Created on Sep 12, 2013
@author: gmliao
'''
from crawler import settings
import MySQLdb
class MySQLdbWrapper:
conn = None
def connect(self):
self.conn = MySQLdb.connect(settings.DATABASES['default'][0], settings.DATABASES['default'][1],
... | [
"liuliainio@163.com"
] | liuliainio@163.com |
2d39f028eeabb883b01ffc250ab1059e0f677292 | 0aa2db201678205e9eccd3f4f2dcb6f95a97b5f6 | /tut_42.py | 22a41be2b48cd8deb77c4a835b8a9d4c9ca6fee1 | [] | no_license | udoy382/PyTutorial_telusko | ffa76b4b6772d289c787e4b682df2d0965a2bf62 | 5dc5f3fc331605310f7c3923d7865f55a4592e28 | refs/heads/main | 2023-06-09T11:00:41.915456 | 2021-06-30T14:29:56 | 2021-06-30T14:29:56 | 381,730,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # this is our simple functions
def square(a):
return a*a
result = square(5)
print(result)
# this is our lambda functions
f = lambda j,k : j*k
print(f(4, 5)) | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
5ce02b22a691c4e7bbbb7c9b5b276d863edba49d | 486fa0a987ab1648de91efeb4b7ba8be3dd6b016 | /TermTk/TTkCore/TTkTerm/__init__.py | 22928704063777cde14e1466e9c3a9c63600d837 | [
"MIT"
] | permissive | ceccopierangiolieugenio/pyTermTk | 9f5103d6af9e93fe2572b61486919020d2007550 | f9c2a4d97f2cd04f0b86cf10661f63a61edae48e | refs/heads/main | 2023-08-30T20:58:39.239718 | 2023-08-02T22:51:02 | 2023-08-02T22:51:02 | 339,475,110 | 414 | 16 | MIT | 2023-08-31T23:16:10 | 2021-02-16T17:23:36 | Python | UTF-8 | Python | false | false | 176 | py | from .inputkey import TTkKeyEvent
from .inputmouse import TTkMouseEvent
from .colors import TTkTermColor
from .term import TTkTerm
from .input import TTkInput
| [
"ceccopierangiolieugenio@googlemail.com"
] | ceccopierangiolieugenio@googlemail.com |
2be7fcff78fe289f0631a2d1fdca66d77e9dac22 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/safezone/PicnicBasket.py | 30d2bfbd1a1e067efa18df7add4622d6558f99b5 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,319 | py | # 2013.08.22 22:24:42 Pacific Daylight Time
# Embedded file name: toontown.safezone.PicnicBasket
from pandac.PandaModules import *
from toontown.toonbase.ToonBaseGlobal import *
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.fsm import Class... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
01dabdc5ab680e0a4c9bb2dcef1040d08b4915eb | f56a00622ea3799f25d52138ffaafc6dcad46574 | /aggtrend/aggtrends/migrations/0003_code_post_code_post.py | 45ea624a140d69851dd7bf0cd4e284f631260bcf | [] | no_license | SardarDawar/aggregate | 063b384421ef1f3b5c8d1eb1975cd8396d38f553 | b062023bc2d3e6fdeb1c17743345cb8b70f90b1c | refs/heads/master | 2022-12-29T05:09:16.438663 | 2019-12-30T22:49:56 | 2019-12-30T22:49:56 | 230,547,601 | 1 | 0 | null | 2019-12-30T10:25:30 | 2019-12-28T02:31:17 | HTML | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.2.6 on 2019-12-30 10:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aggtrends', '0002_auto_20191227_0614'),
]
operations = [
migrations.AddField(
model_name='code_post',
name='code_pos... | [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
1c51a3fc01837f6b1233b786c73615dcb572c8c7 | 624ccdaf85ebebf0a03636fbd1ff234bd89c7972 | /product/serializers.py | 75f8d0097fb3b1ce82d5f1f29e448da23a3cf786 | [] | no_license | kairat3/bella_basket | 613294985c1f71efdee9d0f43fa2557a412ca9b8 | e76f3f950957ae4051472d374ccee9350def6cd1 | refs/heads/master | 2023-07-13T00:13:18.475695 | 2021-08-25T09:51:17 | 2021-08-25T09:51:17 | 396,841,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | from rest_framework import serializers
from account.serializers import ProfileSerializer, UserSerializer
from .models import Product, Category, Favorite, Color, Size, Additional, Image
class AdditionalSerializer(serializers.ModelSerializer):
class Meta:
model = Additional
fields = ('key', 'value... | [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com |
d027b4e8adc33d04712f2639893d0e1b309d38c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02603/s199763378.py | 915ed29aa0e93fd701e5b05d825c6c1857d7be8c | [] | 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 | 264 | py | import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
dp = [0]*(N+1)
dp[0] = 1000
for i in range(1, N+1):
dp[i] = dp[i-1]
for j in range(i):
dp[i] = max(dp[i], dp[j]//A[j]*A[i-1]+dp[j]%A[j])
print(dp[N]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2059742af36092696997c24446f840d262c752a | 081ea255a45d2e0f255ebab00aea487c1bc01da2 | /OCP/tasks/task_motion.py | 01f077468501d4bcbe408f077aad8405ce9c9082 | [] | no_license | ggory15/HQP-cogimon | 8b2d906d179864c613d8741fb1997c650feedf3c | e809fcc2a421066b7c0c02ce70898ec96ba584af | refs/heads/master | 2022-07-03T01:21:47.831298 | 2020-05-10T22:21:13 | 2020-05-10T22:21:13 | 262,884,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # __author__ = "Sanghyun Kim"
# __copyright__ = "Copyright (C) 2020 Sanghyun Kim"
import numpy as np
import copy
from .task_abstract import *
class TaskMotion(TaskBase):
def __init__(self, name, robot):
TaskBase.__init__(self, name, robot)
self.mask = 0
def setMask(self, mask):
self... | [
"ggory15@snu.ac.kr"
] | ggory15@snu.ac.kr |
e50c7c7cb40e44a0cdcd058a2b011502e8d7cb21 | 93a4edf14cd2284d58fe0218cdce2eac00db66c6 | /tests/sdfg_validate_names_test.py | 51490383701f01b1caa015a7e2bb7c6e1b8da622 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gronerl/dace | f50dbeb70feb35c2afb4ee92b2dd4a9613a024ea | 886e14cfec5df4aa28ff9a5e6c0fe8150570b8c7 | refs/heads/master | 2023-07-23T12:30:20.561679 | 2020-02-24T07:25:34 | 2020-02-24T07:25:34 | 242,930,054 | 0 | 0 | BSD-3-Clause | 2020-02-25T06:45:23 | 2020-02-25T06:45:22 | null | UTF-8 | Python | false | false | 4,584 | py | import unittest
import dace
# Try to detect invalid names in SDFG
class NameValidationTests(unittest.TestCase):
# SDFG label
def test_sdfg_name1(self):
try:
sdfg = dace.SDFG(' ')
sdfg.validate()
self.fail('Failed to detect invalid SDFG')
except dace.sdfg.Inv... | [
"talbn@inf.ethz.ch"
] | talbn@inf.ethz.ch |
94125c9112a64584e17d1955f1b02efaedd6fcd0 | 2da8bcfb9a72e507812a8723e38ad6d030c300f1 | /simplify_path_71.py | ac6e8a021f9a97b8369035d457680de94b0e3a0f | [] | no_license | aditya-doshatti/Leetcode | 1a4e0f391a7d6ca2d7f8fdc35e535f4ec10fb634 | eed20da07896db471ea6582785335e52d4f04f85 | refs/heads/master | 2023-04-06T02:18:57.287263 | 2023-03-17T03:08:42 | 2023-03-17T03:08:42 | 218,408,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | '''
71. Simplify Path
Medium
Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.
In a Unix-style file system, a period '.' refers to the current directory, a double period '..' refers to the directo... | [
"aditya.doshatti@sjsu.edu"
] | aditya.doshatti@sjsu.edu |
390175f4e92c1ae351811ad85ecce0a6c1de7920 | 241cebd26fbcbd20bae804fd868722b2673328fc | /histogram_2002_r75.py | 64b8fb63166cbdb365a64badb8c95216fdfd1d5c | [] | no_license | shouldsee/golly_utils | b3339e9ba4e5213e98ec1b35755cd605e3f93df8 | 03959f0c593d4a811ba20f2372d6663d126dbab2 | refs/heads/master | 2021-01-19T11:04:25.661858 | 2018-04-01T13:19:51 | 2018-04-01T13:19:51 | 82,230,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,914 | py | # Creates a histogram plot showing the frequencies of all cell states
# in the current selection (if one exists) or the entire pattern.
# Author: Andrew Trevorrow (andrew@trevorrow.com), September 2009.
import golly as g
import math
from glife import getminbox, rect, rccw, pattern
from glife.text import make_text
from... | [
"shouldsee.gem@gmail.com"
] | shouldsee.gem@gmail.com |
19605ba78e49b3853aa764606e01d48cf28335f0 | dc940e2aa628eff693af36584cfad935990ebe7d | /v3.1.0/getBookTXT.py | 4274ac9cf37fbcba256bc4cd576bfa8e5e20c9b8 | [] | no_license | 520wsl/getXs8Novels | 865572ea488e0bf3d4e21664eb576237b6dd18be | ecf6d0bc5dfdbe4b5c3e8a9aac313bf7abce614b | refs/heads/master | 2020-04-18T00:59:56.777416 | 2019-02-15T08:52:11 | 2019-02-15T08:52:11 | 167,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = '文章抓取'
__author__ = 'Mad Dragon'
__mtime__ = '2019/1/12'
# 我不懂什么叫年少轻狂,只知道胜者为王
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━... | [
"395548460@qq.com"
] | 395548460@qq.com |
8cef065bb4c5e40d9a10b44e754dc7f3bd86eee2 | e5e9ee9e4db2e400e7f87647501ee412c13d76e5 | /python/open cv/magic_cloth.py | 36c4deda71edb9cb0519277e6e8dc032facd3f67 | [] | no_license | beingveera/whole-python | 524441eec44379c36cb1cfeccdbc65bf1c15d2f6 | 3f2b3cb7528afb9605ab6f9d4d2efc856a247af5 | refs/heads/main | 2023-05-15T06:28:03.058105 | 2021-06-05T09:37:47 | 2021-06-05T09:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | '''
import cv2
import time
import numpy as np
cap = cv2.VideoCapture(0)
time.sleep(2)
background=0
#capturing the background
for i in range(30):
ret,background=cap.read()
while(cap.isOpened()):
ret,img = cap.read()
if not ret:
break
#if the image is flipped, use image = np.flip(image, axis = 1)
hsv = cv2.... | [
"sharma.lokesh.222001@gmail.com"
] | sharma.lokesh.222001@gmail.com |
5b1cc4a6717f7b454656c18eceed3a052a2f5586 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/311.py | b83b53e1e53057ef2a8ec9616114038309e9174b | [] | 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 | 448 | py | import sys
input = sys.stdin
def solve(S,k):
S = list(S)
count = 0
for i in range(len(S)-k+1):
if S[i]=='-':
for j in range(k):
S[i+j] = '-' if S[i+j]=='+' else '+'
count+=1
for j in range(k):
if S[-j]=='-':
return 'IMPOSSIBLE'
return count
for case in range(int(input.re... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2db407d8e2e6ffc8407c3b7340d1f4b8c3f2563d | b99bbc50ab1d039948ccf853963ae044a97498fb | /src/api/com_interface/urls/live.py | 5c48f7ee8cbec7860dd179d7c5a533b6aabf7838 | [] | no_license | fan1018wen/Alpha | 26899cc0eb6761bf6bd8089e7d12716c9e7ae01e | c50def8cde58fd4663032b860eb058302cbac6da | refs/heads/master | 2021-05-12T12:54:15.747220 | 2017-10-11T10:58:51 | 2017-10-11T10:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@date: 2016-06-13
@author: Devin
"""
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from ..views import live
urlpatterns = [
url(r'^$', live.LiveViewList.as_view()),
url(r'^(?P<pk>\S+)$', live.LiveView.as_view(... | [
"mengqiang@1b2b.cn"
] | mengqiang@1b2b.cn |
e908fff3d5d94413a53b9568c9463d0369bdf469 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_11423-2311/sdB_EC_11423-2311_coadd.py | 236e5bdcb2b2d2516b7158fc1ff8a94b2e130934 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[176.209125,-23.471569], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_EC_11423-2311/sdB_EC_11423-2311_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f5a7b3700c827074a7351ba3ab12a4f25393f769 | f8a317ace8e91d5b962586953bc38ef6ff2d3a20 | /src/finanzas/authentication/serializers.py | a7ed97b3d5c459ca39609412c46d4b1f1b884296 | [
"Apache-2.0"
] | permissive | jualjiman/finanzas | e63cae335d33b773874c913d23fc54a21a7ea5e9 | a1af6f1a212a3cf172bf84eb668245dbffeb33a9 | refs/heads/master | 2020-05-18T17:15:48.246703 | 2015-08-10T02:38:08 | 2015-08-10T02:38:08 | 40,459,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from django.contrib.auth import update_session_auth_hash
from rest_framework import serializers
from finanzas.authentication.models import Account
class AccountSerializer(serializers.ModelSerializer):
password = serializers.CharField(
write_only=True,
required=False
)
confirm_password = ... | [
"jualjiman@gmail.com"
] | jualjiman@gmail.com |
546b04313b4d6e5b2d9dd2d7e686e24a9dbd28b8 | cda34a391e1d3fd96cdff8ea64d5dd73dc0e83e4 | /educa/courses/models.py | 63db5d5651ab6ae7c028bcc918bcd834624cf9b5 | [
"MIT"
] | permissive | prakharchoudhary/DjangoSpree | ee824dd44c015984a85f68105e40e1202093f757 | 20c5a1d9eb5d00288ebe16d238525ba8cc5fad09 | refs/heads/master | 2021-01-02T09:46:43.599914 | 2018-06-26T08:14:02 | 2018-06-26T08:14:02 | 99,300,583 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from .fields import OrderField
# Create your models here.
class Subject(models.Model):
title = models.CharField(max_le... | [
"prakhar2397@gmail.com"
] | prakhar2397@gmail.com |
f637b0557e6e594194bba1fd65a263d48d42cad6 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/test/test_v1_config_map_projection.py | daaae0c01f9732a6e5e977ef6d7d6d9335d2fbe3 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
e856163f7b9d175e64f44a92b7a8655da0287f5a | cf7b827958166c8569eb58deb511cc3f07567741 | /in_Python/0832 Flipping an Image.py | 78099861650cb1394f6cac05f0f76c2d739941cc | [] | no_license | YangLiyli131/Leetcode2020 | e4e36eb36b1983f73b0e733455b4a7953dfebe6d | 20623defecf65cbc35b194d8b60d8b211816ee4f | refs/heads/master | 2023-08-22T06:00:55.924112 | 2021-09-18T19:04:15 | 2021-09-18T19:04:15 | 251,426,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | class Solution(object):
def iv(self,t):
if t == 1:
return 0
else:
return 1
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
row = len(A)
col = len(A[0])
... | [
"noreply@github.com"
] | YangLiyli131.noreply@github.com |
b22d08a95310a44da7bc43077102ca35e025dda5 | dbf48e804e1792999854832e64a7dae9f42f71e2 | /Spikes/spikedetekt2/spikedetekt2/core/tests/test_script.py | 4a48caf55fc470a9bf6bde40d574f657ecf725dc | [] | no_license | sapphire008/Python | 15d3d7885ac82333654b6729c2a57ed760e796a8 | b2783eabb1987091051614b8f12a4778e158a90b | refs/heads/master | 2023-08-09T04:38:43.077285 | 2023-07-28T18:36:03 | 2023-07-28T18:36:03 | 9,880,648 | 15 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | """Main module tests."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import os
import os.path as op
import numpy as np
import tempfile
from kwiklib import (excerpts, get_params, pydict_to_pyth... | [
"cui23327@gmail.com"
] | cui23327@gmail.com |
c4560ba0e5f05479e057ca93209cfac3c81a3528 | c3ace26cd05f3dc2097b2302ff9f5078468df8b3 | /flask-app/models.py | 1edc8fe6f05a14a0b72284518d949d87002760f1 | [] | no_license | rid47/lecture4 | ccdf5ff49c99eb28c098c9169648cbcbee66207e | 398b1f1d94ad19bf9abce843e1750621297f6e4e | refs/heads/master | 2022-04-24T16:56:42.697938 | 2020-04-26T08:35:03 | 2020-04-26T08:35:03 | 258,978,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Flight(db.Model):
__tablename__ = "flights"
id = db.Column(db.Integer, primary_key=True)
origin = db.Column(db.String, nullable=False)
destination = db.Column(db.String, nullable=False)
duration = db.Column(db.Integer, nullable=Fals... | [
"ridwanmizan@gmail.com"
] | ridwanmizan@gmail.com |
1d121b81f5661077acf9d3396c2d18b2a8aafe47 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_1/Python/Caust1c/a1.py | bf1d9a842fdbb5f014850c2d3225eece06188450 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | ### Set the input and output file names
import time
import datetime
import string
import operator
filename = 'A-large'
input_filename = filename + '.in'
output_filename = filename + '.out.' + datetime.datetime.fromtimestamp(time.time()).strftime('%Y%m%d-%H%M%S') + '.txt'
def findmax(arr_int):
m = max(a... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
665fbacd18a16c4a0381bbb91ebfed9745bf12a4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02927/s950956417.py | a97f1206dbc46df6ba04a9ae44abc68733ed10d6 | [] | 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 | 355 | py | m,d = map(int,input().split())
cnt = 0
for i in range(1,m+1):
for j in range(1,d+1):
#print(i,j)
num = 1
d2 = (j-j%10)//10
d1 = j%10
if d2 >=2 and d1 >=2:
num =d1*d2
#print(i,j,num,d1,d2)
#print(i,j,num,(j-j%10),j%10)
if num == i:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
24febda16aaf84019c85d59f061b3d6ff3898bc0 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_od_mcomplex_type_definition_picture.py | 493605438a6e7cfdeebbd08be2e3907161a9123f | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import rcc
from rcc.models.od_mcomplex_type_definition_pictur... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
8bf53f137afc4728262b2316165a54280baa1e66 | acc244c97a943d8e2074339afa1bff1274ae4cfc | /scripts/cgat_build_report_page.py | 7cd893e0d601bb43ea071b7da33f5b20a3caf22d | [] | no_license | eromasko/cgat | 00114f4c95b439ba6595ddf2092d1a3307347401 | d82d197f3913b8d65b656c0b205ca48854fdb2a6 | refs/heads/master | 2021-01-17T09:37:17.168278 | 2015-02-20T09:03:31 | 2015-02-20T09:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | '''
cgat_build_report_page.py - build report page for all projects
=======================================================================
:Author:
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
This script scans all of :file:`/ifs/projects/sftp` for :file:`index.html` files
and outputs an html format... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
787e85a801a1a850d53cb69481a3ab6f9107e2b8 | c86e31e8e67ccb9a164903e394df7a444b5406de | /avg_word2vec.py | 73495851d695da43e749fa28b2040e508a22b1e8 | [] | no_license | candlewill/short_texts_sentiment_analysis | fb0e329c4c1ad6f8a72e6c2858a921913dde38b2 | 760e60e1cf430a8d0b1a313523a0c6f773a9c4c1 | refs/heads/master | 2020-04-24T15:36:51.258749 | 2015-07-14T08:28:54 | 2015-07-14T08:28:54 | 38,301,099 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | from sklearn.cross_validation import train_test_split
from gensim.models.word2vec import Word2Vec
from load_data import load_train_data, load_processed_data
import numpy as np
from sklearn.preprocessing import MinMaxScaler
# The following skills is useful
# train_test_split(np.array(texts), np.array(sentiemnt), test_s... | [
"yunchaohe@gmail.com"
] | yunchaohe@gmail.com |
b5f8821fc9ecb1f613a863bf6fbc7f174e5ca53a | 905750d3f6bf6232ffefd00ce74b4c7684d7f27e | /lmp_lib.py | b03eae6590766e65883ac744785cfa5ba362e2f7 | [] | no_license | petervanya/GeneralScripts | d1147b89defade68e68122e892e8844f7d4c0e64 | 77c0180156ceb78f08fabf7481c16be8d9aa8bfa | refs/heads/master | 2020-12-19T12:45:46.227823 | 2016-07-28T14:56:59 | 2016-07-28T14:56:59 | 40,310,828 | 0 | 2 | null | 2015-11-30T15:53:57 | 2015-08-06T14:58:49 | Python | UTF-8 | Python | false | false | 2,414 | py | #!/usr/bin/env python
"""
A collection of functions to manipulate LAMMPS files
pv278@cam.ac.uk, 11/01/16
"""
import numpy as np
# ===== print input
def header2str(N, Nbonds, atomtypes, bondtypes, L):
"""Generate LAMMPS header"""
s = "#blabla\n"
s += str(N) + " atoms\n"
s += str(Nbonds) + " bonds\n"
... | [
"peter.vanya@gmail.com"
] | peter.vanya@gmail.com |
da902d2befb4663c420a37b3b99b524787e0a04d | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /历史练习1120/host_management/utils/page.py | e26b17ffd6eb6a51666b153df1c3c5b40d4a2517 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | #!/usr/bin/python
#Author:xiaojie
# -*- coding:utf-8 -*-
class Page(object):
def __init__(self,current_page,all_count,base_url,per_page=10,pager_page_count=11):
"""
分页初始化
:param current_page: 当前页码
:param per_page: 每页显示数据条数
:param all_count: 数据库中总条数
:param pager_page_... | [
"475030894@qq.com"
] | 475030894@qq.com |
e33e9cf7982165ee7ef95e0f9d59cf8b243ce4da | 755e4e6e966433fe887f0f28f14916696b1588d7 | /code/evaluation/video/BackgroundSubtractorDummy.py | 8944c4aecc694c2070e8febb9edd136dc40f026e | [] | no_license | phildue/FingerspellingRecognition | f18518a6e2e29b769d131e5b54846f00213f3ff1 | 1b5236142734d7b50f0f4161ecc533b7d10347b8 | refs/heads/master | 2021-03-24T10:40:24.507766 | 2017-07-03T09:33:09 | 2017-07-03T09:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import cv2
from preprocessing.segmentation.BackgroundSubtractor import BackgroundSubtractor
class BackgroundSubtractorDummy(BackgroundSubtractor):
def __init__(self, diff_img, test_img):
super().__init__()
self.diff_img = diff_img
self.test_img = test_img
def get_background(self):
... | [
"phild@protonmail.com"
] | phild@protonmail.com |
4fbdf8557e5a9c34e48538a69f02f7ebb9a07e07 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_pow3/trend_linear/cycle_0/ar_/test_artificial_128_pow3_linear_0__0.py | 02a765a3634a574c09d19185e979246cdc9569dc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 0, transform = "pow3", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
fb210f7f5afaf1f68f627a6e2dcde02c698f21ca | 011a750fae8ade67f726a9749e05cc4afb8e360d | /Vivo_create case/test.py | e6a6e3b03328bade918031fabf7cb58627217543 | [] | no_license | MartinCarufel/PycharmProjects | c7e50b66a24d4a216b7a217192fcd446f5324d9f | aaa6c95b3e2e6525586fb6a03d1c9d484065899b | refs/heads/master | 2023-07-05T22:40:38.650892 | 2023-06-26T13:55:13 | 2023-06-26T13:55:13 | 150,859,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import pyautogui as pg
class Test_suite:
def __init__(self):
self.win_main = {
'win logo': 'win_logo.png',
'new case': 'new case.png'
}
pass
def test1(self):
# location = pg.locateCenterOnScreen('win_logo.png', confidence=0.9)
# print(location... | [
"maccam6@gmail.com"
] | maccam6@gmail.com |
6e5b0ee9ab79d06d5476373ffc2f7c284b0045e4 | 4c614f080633e6a4b372047191b3930f0a17c714 | /blog/views.py | 19719c7f9c1f81f3f0f3c4b208c80c72056e9356 | [] | no_license | Eimis/Blog | 963d942d1ca8bcce62c14840906d89ec16fbbca1 | 92b61f5807dd28515c22efc7e300da16d8f9e33d | refs/heads/master | 2020-04-06T05:03:38.029555 | 2014-03-09T21:35:03 | 2014-03-09T21:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from django.http import HttpResponse
from django.shortcuts import render
from blog.models import Post
from blog.forms import ContactForm
from django.core.mail import send_mail
from django.http import HttpResponseRedirect
def Main(request):
lastest_posts = Post.objects.filter(display=True).order_by("-pub_date",) [:2... | [
"eimantas.stonys@gmail.com"
] | eimantas.stonys@gmail.com |
ab8dedf977f6fb17bb98fb4a05ac19722ff1c918 | 4e5e65d7c07f1a4a85899f10a4eea4977a2ce9a9 | /scripts/clock_deblur.py | f1ec2b5bbc551fd0f1de8cafae922033946d6086 | [] | no_license | stefanv/aims2014 | 6f5545c668269c1a5db8876fcc3d0735b5225aa7 | 384b9ee8d21dce6d9092ec4b8416859a90225bfc | refs/heads/master | 2020-05-27T07:46:09.487556 | 2014-07-18T14:35:15 | 2014-07-18T14:35:15 | 21,921,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import numpy as np
import matplotlib.pyplot as plt
from skimage import io, color
from skimage.viewer import ImageViewer
from skimage.viewer.widgets import Slider
from skimage.viewer.plugins.base import Plugin
image = io.imread('../images/clock_motion.png')
M, N = image.shape
## Should pad, but doesn't make much dif... | [
"stefan@sun.ac.za"
] | stefan@sun.ac.za |
6c0ef3d70e2d5bad70f88ff429e96d14cc060b77 | 4eb4f5c834e6448782ea11b23dd724551f8988a0 | /media/documents/Cross Sections/Runway new/script.py | 17aed56b9fad07affbf77397f9b070c32ce93fe0 | [] | no_license | Mohab25/Tubra_Django | c272736c56e970a918c174307babf7aeae85af25 | 97f422c6f0645ad8e87a247edf33a49921bde451 | refs/heads/master | 2023-08-13T16:29:59.504867 | 2021-09-19T14:24:44 | 2021-09-19T14:24:44 | 340,656,691 | 1 | 0 | null | 2021-07-13T06:49:36 | 2021-02-20T13:05:48 | JavaScript | UTF-8 | Python | false | false | 151 | py | import os
from pathlib import Path
for f in os.listdir():
#print(os.path.splitext(f))
if f.endswith('pdf'):
print(os.path.abspath(f)) | [
"homab3@gmail.com"
] | homab3@gmail.com |
334291795d858fe938f874cc6ecda0da265926b5 | 7137161629a1003583744cc3bd0e5d3498e0a924 | /airflow/api_connexion/endpoints/provider_endpoint.py | 844dcd301495c6871f6f034a8d15bd189b6ef130 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jbampton/airflow | 3fca85975854eb916f16143b659a9119af143963 | dcfa14d60dade3fdefa001d10013466fe4d77f0d | refs/heads/master | 2023-05-25T22:31:49.104069 | 2021-09-18T19:18:32 | 2021-09-18T19:18:32 | 247,645,744 | 3 | 0 | Apache-2.0 | 2020-03-16T08:12:58 | 2020-03-16T08:12:57 | null | UTF-8 | Python | false | false | 1,860 | 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... | [
"noreply@github.com"
] | jbampton.noreply@github.com |
ca7bf250ae56e722ce0dc3fac6cd5b4ef5bab44a | 7357d367b0af4650ccc5b783b7a59090fdde47bb | /reviewboard/webapi/tests/test_api_token.py | 3d593bfe820b220205713483c9c685fc11ca54bf | [
"MIT"
] | permissive | BarracudaPff/code-golf-data-python | fb0cfc74d1777c4246d56a5db8525432bf37ab1a | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | refs/heads/main | 2023-05-29T05:52:22.856551 | 2020-05-23T22:12:48 | 2020-05-23T22:12:48 | 378,832,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | def _compare_item(self, item_rsp, api_token):
self.assertEqual(item_rsp["id"], api_token.pk)
self.assertEqual(item_rsp["token"], api_token.token)
self.assertEqual(item_rsp["note"], api_token.note)
self.assertEqual(item_rsp["policy"], api_token.policy)
self.assertEqual(item_rsp["extra_data"], api_token.extra_data)
... | [
"sokolov.yas@gmail.com"
] | sokolov.yas@gmail.com |
415b4b5ca762243855aa661b8bc21b3924351c99 | 47f1b125b401ac2b0d18b9ce685b5c3d13f68e3e | /stasis/events.py | 13c680790a74cff9936789e4632311b3f44d75bf | [] | no_license | fschulze/stasis | fb7473361c8be870851589e18a17682ebd06f92c | 368d82b3927d365e1ca61e11600093652520b4d8 | refs/heads/master | 2020-05-18T02:20:49.456035 | 2014-03-18T07:18:12 | 2014-03-18T07:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from stasis.interfaces import IPreBuild
from zope.interface import implementer
@implementer(IPreBuild)
class PreBuild(object):
def __init__(self, site):
self.site = site.registry
| [
"florian.schulze@gmx.net"
] | florian.schulze@gmx.net |
e6753a2fe1b15385d615ae5728f98d265dc21c09 | 5fda498ef0bfc06962ad9b864d229193c45ccb4a | /Project1_Analyzing_the_NYC_Subway_Dataset/problem_sets2to5/problem_set5_mapreduce_on_subway_data/5_2_ridership_by_weather_reducer.py | 9c13400465ec13fe64f0972326294c13776e3bbf | [] | no_license | prabhurgit/Data_Aanlyst_Nanodegree_projects | 7934869b63cae57cb2851e22a5023c6cbe3d18ba | a7a13d93c632cd1840ba3a00fff80a60a131b7f3 | refs/heads/master | 2021-05-31T18:47:48.669414 | 2016-03-30T04:08:39 | 2016-03-30T04:08:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import sys
import logging
from util import reducer_logfile
logging.basicConfig(filename=reducer_logfile, format='%(message)s',
level=logging.INFO, filemode='w')
def reducer():
'''
Given the output of the mapper for this assignment, the reducer should
print one row per weather type, alo... | [
"xiewisdom@gmail.com"
] | xiewisdom@gmail.com |
a11b54daac573504f8b596a4715a12396b6239a4 | d5a32e532fe231c16e52149604f0db34c5f4d2f9 | /binarysearch.io/balanced_brackets_II.py | 562ba59830209f53abf53bc59e7af7b3cc668ba9 | [
"MIT"
] | permissive | mishrakeshav/Competitive-Programming | 93705f63337639e8464c1d50f3394434b7422f15 | 00c1bd272646754ca4c260d57989304c8e323838 | refs/heads/master | 2023-07-06T07:32:23.042324 | 2023-06-29T15:27:24 | 2023-06-29T15:27:24 | 216,195,590 | 3 | 3 | MIT | 2020-10-03T07:55:18 | 2019-10-19T11:27:53 | Python | UTF-8 | Python | false | false | 539 | py | class Solution:
def solve(self, s):
# Write your code here
stack = []
string_open = ["(", "[", "{" ]
string_closed = [")", "]", "}"]
for i in s:
if i in string_open:
stack.append(i)
else:
if len(stack) == 0:
... | [
"mishrakeshav@users.noreply.github.com"
] | mishrakeshav@users.noreply.github.com |
3cc2d219b945557f9b170857474e1e2c2f0bce18 | 94a16dc81580ba7fb8776775e479e097ffa07a2e | /Base/string_base.py | 45835074661ad68f0cb5d0a8c28413bfbb81bb9d | [] | no_license | lixiang007666/Algorithm_LanQiao | 0cc0cf17056125c963e26cc4eb539716128410d7 | 9e70788fbab774956f61ceafb12ad98cb8d42c3a | refs/heads/master | 2022-12-31T04:45:07.110726 | 2020-10-17T05:54:32 | 2020-10-17T05:54:32 | 304,841,096 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import math
import cmath
import sys
import string
import heapq
import bisect
from queue import Queue,PriorityQueue,LifoQueue
from collections import Counter,deque
from itertools import permutations,combinations
from functools import cmp_to_key
s="rwegwe"
print(s.count("rw"))
print(s.endswith("e"))
print(s.startswith("... | [
"54010254+lixiang007666@users.noreply.github.com"
] | 54010254+lixiang007666@users.noreply.github.com |
422de43b4ef0122243bded337050617c53c4ebc2 | 8a42fc0a988ab3c03a8a74c6c75452acfe289b4d | /changing_ar.py | 62306f64242aa45ea1c080f38186d983c1560c38 | [] | no_license | rw1993/PyAr | 5c5d5fc4a90b08b9b4a6e0883141b491ccaf45da | a09bc8ba4cda11f4e4cccdc4b6575b61ae0f18e0 | refs/heads/master | 2021-01-17T17:39:30.240020 | 2017-05-04T06:51:48 | 2017-05-04T06:51:48 | 60,001,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | # -*- coding: utf-8 -*-
# author: rw
# E-mail: weiyanjie10@gmail.com
import random
import numpy
class AR(object, ):
def __init__(self, parameters, frequency, sd=0.3):
self.parameters = parameters
self.p = len(self.parameters[0])
self.frequency = frequency
self.group = len(self.par... | [
"470177412@qq.com"
] | 470177412@qq.com |
6ce9552ca184f38e6e2d9c997408e19359780a15 | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/sklearn/linear_model/omp.py | e78001aa19b4c7faf0b95c9506bd156e52f47cdb | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
# mypy error: Module X has no attribute y (typically for C extensions)
from . import _omp # type: ignore
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'sklearn.line... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.