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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
99152c525e224ec0a365e21d77b3ebc4c22869d4 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/platform/_anonymize_subscription.py | 556651d3616d6ab2c798987dcb97a5bca11c71d0 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,178 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Platform Service (4.32.1)
# pylint: disable=duplicate-code
#... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
aed3c3dee24a3b469803135f19b9e7d540ed0040 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/send_more_money_any_base.py | 0a301f379ecfc9bc8758bc64492faf87ba6b7502 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 2,291 | py | """
Send more money in any base problem in cpmpy.
Send More Money
SEND
+ MORE
------
MONEY
using any base.
Examples:
Base 10 has one solution:
{9, 5, 6, 7, 1, 0, 8, 2}
Base 11 has three soltutions:
{10, 5, 6, 8, 1, 0, 9, 2}
{10, 6, 7, 8, 1, 0, 9, 3}
{10, 7, 8, 6, 1, 0, 9, 2}
Model cre... | [
"hakank@gmail.com"
] | hakank@gmail.com |
05d6b26ebd7a5f04611f8d54877b900714b3c030 | cd073757b17465635da3fd30f770bbd8df0dff99 | /tests/pytests/unit/beacons/test_swapusage.py | 35b5ce28cdcad2d140bfeea54240048ddca33b61 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | marmarek/salt | cadc939ecbda915e2f4246f198d72f507c9c1960 | 974497174252ab46ee7dc31332ffb5b2f8395813 | refs/heads/master | 2022-11-19T14:05:28.778983 | 2021-03-12T00:30:45 | 2021-05-06T16:45:38 | 160,296,073 | 0 | 1 | Apache-2.0 | 2018-12-04T04:19:43 | 2018-12-04T04:19:41 | null | UTF-8 | Python | false | false | 1,571 | py | """
tests.pytests.unit.beacons.test_swapusage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Swap usage beacon test cases
"""
from collections import namedtuple
import pytest
import salt.beacons.swapusage as swapusage
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_module... | [
"megan.wilhite@gmail.com"
] | megan.wilhite@gmail.com |
69dc9b2fe646f35c01edb5ff5eb318b3291f0fa9 | f125a883dbcc1912dacb3bf13e0f9263a42e57fe | /tsis5/part1/21.py | 1fc47ed9b0a9a65ab42e5e8b5dd618f9a234fcfe | [] | no_license | AruzhanBazarbai/pp2 | 1f28b9439d1b55499dec4158e8906954b507f04a | 9d7f1203b6735b27bb54dfda73b3d2c6b90524c3 | refs/heads/master | 2023-07-13T05:26:02.154105 | 2021-08-27T10:20:34 | 2021-08-27T10:20:34 | 335,332,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | #Write a Python program to create a file where all letters of English alphabet are listed by specified number of letters on each line
import string
def letters_file_line(n):
with open("words1.txt", "w") as f:
alphabet = string.ascii_uppercase
letters = [alphabet[i:i + n] + "\n" for i in range(0, len(al... | [
"aruzhanart2003@mail.ru"
] | aruzhanart2003@mail.ru |
04c4f07bd5698c3866128a445148f52291cad0de | eef9afdc9ab5ee6ebbfa23c3162b978f137951a8 | /oops_concept/encapsulation/encapsul3.py | 0804609b0c00d8bb1f7947f4a6266df30c65c544 | [] | no_license | krishnadhara/programs-venky | 2b679dca2a6158ecd6a5c28e86c8ed0c3bab43d4 | 0f4fd0972dec47e273b6677bbd32e2d0742789ae | refs/heads/master | 2020-06-05T04:48:45.792427 | 2019-06-17T09:59:45 | 2019-06-17T09:59:45 | 192,318,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | class SeeMee:
def youcanseemee(self):
return "you can see mee"
def __youcantseemee(self):
return "you cant see mee"
p = SeeMee()
print(p.youcanseemee())
print(p._SeeMee__youcantseemee()) | [
"49470138+krishnadhara@users.noreply.github.com"
] | 49470138+krishnadhara@users.noreply.github.com |
3ff2138e33c5184658a9ea4eb2200b7f23f05ad5 | df01d62513cd03c0b794dcebcd5d3de28084e909 | /djbShop/djbShop/urls.py | 8005492bfc9e6511dbaa843d4b98e9dc8374289a | [] | no_license | codingEzio/code_py_bookreview_django2_by_example | 32206fc30b7aab6f0a613d481089bf8bffd1380c | 9c2d022364e1b69063bd7a0b741ebeeb5b7d4e13 | refs/heads/master | 2022-12-23T20:32:42.899128 | 2022-12-20T07:40:11 | 2022-12-20T07:40:11 | 207,786,302 | 1 | 0 | null | 2019-12-28T04:59:41 | 2019-09-11T10:35:44 | Python | UTF-8 | Python | false | false | 644 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('cart/', include('cart.urls', namespace='cart')),
path('orders/', include('orders.urls', namespace='orders... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
69370efa4a456f47d0ca107e5eee7219d752893c | b641e56db0f49dee6d27bea933255bff5caa6058 | /app/__init__.py | 2e99a6f67bb73c23a1950f7a7efd484e4990a7b7 | [
"BSD-2-Clause"
] | permissive | uniphil/kibera-school-project | ed2bffdc938878f2370ff458aef0582b48c1ba1f | 4e77538af66065ea00d7a7559129026a72aa4353 | refs/heads/master | 2016-09-03T01:44:43.809992 | 2014-05-20T21:23:15 | 2014-05-20T21:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
"""
app
~~~
Static site generator for the Kibera School Project by Feedback Labs
This file initializes the app and manages configuration before importing
the other modules to do all the work.
"""
# from flask import Flask
# app = Flask('app')
# app.config['FREEZER_DESTI... | [
"uniphil@gmail.com"
] | uniphil@gmail.com |
30ce2874708c452ce8a921d0df7df203cd619871 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /w3resource/List_/Q058.py | 02e569e86ae9c120564deb6898a1645490b175de | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 285 | py | # -*- coding: UTF-8 -*-
# Q058
# Created by JKChang
# Thu, 31/08/2017, 16:35
# Tag:
# Description: 58. Write a Python program to replace the last element in a list with another list.
# Sample data : [1, 3, 5, 7, 9, 10], [2, 4, 6, 8]
# Expected Output: [1, 3, 5, 7, 9, 2, 4, 6, 8]
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
98aac32f8002f1242c4200d8fc88f6918443821c | 3560a70fefb3f32a85206b66704e473e1dec8761 | /docs/conf.py | 42236bc483f2519db436abdd4f9966ec17483ca0 | [
"MIT"
] | permissive | francispoulin/hankel | 626c0e7e38934217ff274ea5a012023bb3b983d8 | 0dc05b37df16ac3ff1df5ebdd87b9107bf0197b0 | refs/heads/master | 2021-01-11T14:37:12.944019 | 2017-02-13T08:07:42 | 2017-02-13T08:07:42 | 80,174,672 | 0 | 0 | null | 2017-01-27T02:13:41 | 2017-01-27T02:13:41 | null | UTF-8 | Python | false | false | 5,915 | py | # -*- coding: utf-8 -*-
#
# hankel documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 13 10:17:24 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"steven.murray@curtin.edu.au"
] | steven.murray@curtin.edu.au |
ae01ef1517dbf0dea633d118236da9dfb2265530 | 69a327a2af65d7252b624fe7cadd537eb51ca6d6 | /String/BOJ_1259.py | d717f4cfec4f6568eee7fb4837c2ffb29c2ca38d | [] | no_license | enriver/algorithm_python | 45b742bd17c6a2991ac8095d13272ec4f88d9bf5 | 77897f2bf0241756ba6fd07c052424a6f4991090 | refs/heads/master | 2023-09-03T23:28:23.975609 | 2021-10-29T09:25:32 | 2021-10-29T09:25:32 | 278,907,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # 팰린드롬수
import sys
for _ in range(100):
n=sys.stdin.readline()
isP=True
if int(n)==0:
break
else:
val=list()
re_val=list()
for i in n:
val.append(i)
re_val.append(i)
re_val.reverse()
val.pop(-1)
re_val.pop(0)
... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
018beb2cab77071fe797d905f21a3473c8bffbd0 | 4e07727db834a45b2d77f0d9e54ed57796dc986d | /demo/picoalu.py | fc9ba7c3281dbd67618b12758831aa03c88c67b5 | [] | no_license | phanrahan/pico40 | 278447961d9d115f94b02e5322ba452442808e30 | 26cf9f6130666cc981ca27324bc4c1137eaf3252 | refs/heads/master | 2021-01-22T08:05:56.855776 | 2017-10-20T20:03:52 | 2017-10-20T20:03:52 | 81,874,575 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | import sys
from magma import *
from mantle import *
from parts.lattice.ice40.primitives.RAMB import ROMB
from pico.asm import *
from pico.cpu.seq import Sequencer
from pico.cpu.alu import Arith, Logic
from pico.cpu.ram import DualRAM
from boards.icestick import IceStick
icestick = IceStick()
icestick.Clock.on()
for... | [
"hanrahan@cs.stanford.edu"
] | hanrahan@cs.stanford.edu |
f7b6b12562a778214d8a22df2c85123c9eb66bad | 53edf6b0f4262ee76bb4e3b943394cfeafe54865 | /simulation_codes/_archived/PREDCORR_1D_TSC/py2/save_routines.py | 266faaaf7eebc39daea92fce756fa412c992f8b1 | [] | no_license | Yoshi2112/hybrid | f86265a2d35cb0a402ba6ab5f718717d8eeb740c | 85f3051be9368bced41af7d73b4ede9c3e15ff16 | refs/heads/master | 2023-07-07T21:47:59.791167 | 2023-06-27T23:09:23 | 2023-06-27T23:09:23 | 82,878,960 | 0 | 1 | null | 2020-04-16T18:03:59 | 2017-02-23T03:14:49 | Python | UTF-8 | Python | false | false | 4,135 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 22 10:44:46 2017
@author: iarey
"""
import numpy as np
import pickle
import os
import sys
from shutil import rmtree
import simulation_parameters_1D as const
from simulation_parameters_1D import generate_data, generate_plots, drive, save_path, NX, ne, density
from sim... | [
"joshua.s.williams@uon.edu.au"
] | joshua.s.williams@uon.edu.au |
1ea83f90ea8db170062f45f51f1716794d7d0fc5 | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/sheets_20191128120456.py | 54667dc8f469a984db42e907ae4f73a38cf6d539 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import numpy as np
# import gspread
def insertPlanMiddleware(rows):
# If modifying these scopes... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
9b1b03442cc1fc5f738453149dd093c7e29e3127 | 3f5c0e166f8d88ce9aa9170dc4a80a5b64c64c6a | /melange-testing/tests/app/soc/modules/gsoc/views/test_accepted_orgs.py | aad371c70d5f7d5208def2a91af8f8303e948b7e | [] | no_license | praveen97uma/GSoC-Docs | a006538b1d05ecab1a105139e4eb2f2cff36b07f | 40c97239887a5c430be28a76cc2cd7a968511ce0 | refs/heads/master | 2021-01-23T16:26:56.949299 | 2012-06-14T19:31:30 | 2012-06-14T19:31:30 | 1,505,012 | 1 | 1 | null | 2020-02-08T05:17:26 | 2011-03-21T01:39:34 | Python | UTF-8 | Python | false | false | 3,478 | py | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"praveen97uma@gmail.com"
] | praveen97uma@gmail.com |
89fda3fd3aa06a78e69f6ff23728534a1850dea0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nb836onw9bek4FPDt_4.py | 00c57b5b188d38dbf5b5076fa134b394a85da9e9 | [] | 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 | 765 | py | """
Given a sentence, return the number of words which have the **same first and
last letter**.
### Examples
count_same_ends("Pop! goes the balloon") ➞ 1
count_same_ends("And the crowd goes wild!") ➞ 0
count_same_ends("No I am not in a gang.") ➞ 1
### Notes
* Don't count single character ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5003a32bcda2bbd12438f4b9346f880068dfb407 | bc108434d5f485a5ca593942b0fbe2f4d044ebda | /pp/grpc/helloworld_protobuf.py | f7a1dedccb7a472def9fed97b93e26e7b8db1fb7 | [] | no_license | js-ts/AI | 746a34493a772fb88aee296f463122b68f3b299d | 353e7abfa7b02b45d2b7fec096b58e07651eb71d | refs/heads/master | 2023-05-29T16:19:03.463999 | 2021-06-22T05:49:44 | 2021-06-22T05:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import numpy as np
import base64
import json
import helloworld_pb2
data = np.random.rand(2, 2)
tmp = helloworld_pb2.ModelRequest()
tmp.a = 1
tmp.b = 2
tmp.data = base64.b64encode(data)
print(str(tmp))
tmp1 = helloworld_pb2.ModelRequest()
tmp1.ParseFromString(tmp.SerializeToString())
print('tmp1... | [
"wenyu.lyu@gmail.com"
] | wenyu.lyu@gmail.com |
8017fb462a269f73fa8c9ffa3fee73675aa70275 | d37a19ab3bcaba6e808a18df411c653c644d27db | /Year1/ca117/Lab11.1/triathlon_v3_111.py | 448776ad2f5a0f4641f48466df4f272a8bdccb60 | [] | no_license | Andrew-Finn/DCU | 9e7009dac9a543aaade17e9e94116259dcc1de20 | 013789e8150d80d3b3ce2c0c7ba968b2c69a7ce0 | refs/heads/master | 2023-02-21T05:13:42.731828 | 2022-02-14T12:39:20 | 2022-02-14T12:39:20 | 157,438,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | class Triathlete:
def __init__(self, name, tid):
self.name = name
self.tid = tid
self.times = {}
def __str__(self):
return "Name: {}\nID: {}\nRace time: {}".format(
self.name, self.tid, self.race_time())
def add_time(self, sport, time):
self.times[sport]... | [
"git@afinn.me"
] | git@afinn.me |
194840074149cc1c77f461d43ac7f0f971bea662 | 7698a74a06e10dd5e1f27e6bd9f9b2a5cda1c5fb | /pdb_search/quire_pdb_2014_mw70to250_tversky/postprocess_uniprot_pdb_lig_links_lists_max_num.py | e4cdbb9594d067e9ee24a33569e8d5f303c8e0d5 | [] | no_license | kingbo2008/teb_scripts_programs | ef20b24fe8982046397d3659b68f0ad70e9b6b8b | 5fd9d60c28ceb5c7827f1bd94b1b8fdecf74944e | refs/heads/master | 2023-02-11T00:57:59.347144 | 2021-01-07T17:42:11 | 2021-01-07T17:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,580 | py | ## Trent Balius, Shoichet group, UCSF, 2014.08.08
import urllib, urllib2, math
import scrape_pdb_for_uniprot as spfu
import scrape_pdb_for_lig_mod as spfl
import scrape_zinc_zincid as szzi
import tanimoto_cal_axon as tancal
def find_linked_list_count(lines):
list = []
sublist = []
#sublist.appen... | [
"tbalius@gimel.cluster.ucsf.bkslab.org"
] | tbalius@gimel.cluster.ucsf.bkslab.org |
8daa3a2822a6f1ca6fea3e85851a2bdb5803592e | c053101986b0c9884c2003ec1c86bdf69c41d225 | /normal-tips/WordCloud/CN_cloud.py | 9bb43bd4f2992c1810594970824ab5e29931011d | [] | no_license | JZDBB/Python-ZeroToAll | 4c32a43044a581941943f822e81fa37df6ef8dd4 | 67a1e9db0775d897dcc5c0d90f663de9788221a3 | refs/heads/master | 2021-05-09T18:36:45.358508 | 2019-11-01T08:15:54 | 2019-11-01T08:15:54 | 119,166,874 | 0 | 0 | null | 2019-10-29T20:59:04 | 2018-01-27T13:29:59 | HTML | UTF-8 | Python | false | false | 4,430 | py | # # -*- coding: utf-8 -*-
# import jieba
# import os
# import codecs
# from scipy.misc import imread
# import matplotlib as mpl
# import matplotlib.pyplot as plt
# from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
#
#
# class GetWords(object):
# def __init__(self, dict_name, file_list, dic_list):
# ... | [
"oxuyining@gmail.com"
] | oxuyining@gmail.com |
6e56f5fe3ef0c5ddaeeabc6fa8213b24e7c6e253 | 6b7ff6d09f1da2793f4cc2d3f319256580fbae0c | /astroquery/vo_conesearch/async.py | 571c6d6d91008c9db5a4f15c4ef5f22b917ec926 | [] | no_license | AyushYadav/astroquery | 39e4e696441fdfe84e9e66cf905f6febde3080a3 | 4645d11f56f96404870d284603c024a3de0d8198 | refs/heads/master | 2020-05-18T13:02:06.068072 | 2017-05-21T17:16:15 | 2017-05-21T17:16:15 | 86,921,243 | 1 | 0 | null | 2017-04-01T15:05:25 | 2017-04-01T15:05:25 | null | UTF-8 | Python | false | false | 2,323 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Asynchronous VO service requests."""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
# ASTROPY
from astropy.utils.compat.futures import ThreadPoolExecutor
__all__ = ['AsyncBase']
class Asy... | [
"lim@stsci.edu"
] | lim@stsci.edu |
72e68a94ce144b60b07b3ec9392dddb8e4c927c4 | 3a02ec695af95e5d5f5c4f14ab393cd2ad709be3 | /kochat/model/fallback/__init__.py | 748d571c72c6d0720a72f9bead1e08855a573784 | [
"Apache-2.0"
] | permissive | seunghyunmoon2/kochat | 50f0db168ca5163e6926331d8d81ebf3a26e4f7e | f5a5df38c7c24080855f9279450195bc0a8eae74 | refs/heads/master | 2022-12-23T17:07:49.856243 | 2020-10-02T06:01:06 | 2020-10-02T06:01:06 | 278,004,648 | 0 | 0 | Apache-2.0 | 2020-07-08T06:08:38 | 2020-07-08T06:08:38 | null | UTF-8 | Python | false | false | 183 | py | """
@auther Hyunwoong
@since 6/28/2020
@see https://github.com/gusdnd852
"""
from kochat.model.intent.cnn import CNN
from kochat.model.intent.lstm import LSTM
__ALL__ = [CNN, LSTM]
| [
"gusdnd852@naver.com"
] | gusdnd852@naver.com |
33ea27c8dee8244bf11dc728aa76c3f6757fe576 | b1aa3c599c5d831444e0ae4e434f35f57b4c6c45 | /month1/week4/python_class11/main_operate.py | 984d84fa3373dc4dd1f9d5a380f1fe28a39feca9 | [] | no_license | yunyusha/xunxibiji | 2346d7f2406312363216c5bddbf97f35c1e2c238 | f6c3ffb4df2387b8359b67d5e15e5e33e81e3f7d | refs/heads/master | 2020-03-28T12:31:17.429159 | 2018-09-11T11:35:19 | 2018-09-11T11:35:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | """Main Operate
Usage:
main_operate.py [-gkdtz] <from> <to> <time>
main_operate.py [-GDKTZ] <from> <to> <time>
Options:
"""
from docopt import docopt
from tickets import Ticket
import time
if __name__ == "__main__":
arguments = docopt(__doc__)
# 根据用户输入的选择项完成对应类别列车的信息查询
kinds = []
if arguments.... | [
"576462286@qq.com"
] | 576462286@qq.com |
a8266a0805a71be951a9468186ac375deefcf2a6 | ce6f8510f6a2fd48b7037c1c8448f719fd54f8b4 | /piecrust/admin/scm/git.py | b5ae5a0695d49f6903c42acf33f94be881e9eef4 | [
"Apache-2.0"
] | permissive | ludovicchabant/PieCrust2 | bd014f8aa880ec2b2360a298263d2de279d4252f | ebb567b577cbd2efb018183b73eff05c7a12c318 | refs/heads/master | 2023-01-09T17:09:56.991209 | 2022-12-31T00:48:04 | 2022-12-31T00:48:04 | 23,298,052 | 46 | 9 | NOASSERTION | 2022-12-31T01:05:07 | 2014-08-25T01:29:18 | Python | UTF-8 | Python | false | false | 1,872 | py | import os
import logging
import tempfile
import subprocess
from .base import SourceControl, RepoStatus, _s
logger = logging.getLogger(__name__)
class GitSourceControl(SourceControl):
def __init__(self, root_dir, cfg):
super(GitSourceControl, self).__init__(root_dir, cfg)
self.git = cfg.get('exe'... | [
"ludovic@chabant.com"
] | ludovic@chabant.com |
e5ec008185718edf0ec86d4b41829b57366e0471 | e75751f44e1f38eede027143fd43b83606e4cb13 | /proyecto_final/apps/tasks/models.py | 51a4cd65c5845e55b67bf2ac51b036137c6e9f52 | [] | no_license | stephfz/exam_prep_cd-django | 8fef23c4ae1639c213b2d4a143fe1f5996d3b315 | 4633d65b4d86e29fff3f1c9fd09d690d9416f2f2 | refs/heads/master | 2023-05-10T14:55:15.249503 | 2021-05-25T16:11:38 | 2021-05-25T16:11:38 | 369,047,889 | 0 | 1 | null | 2021-06-15T00:31:31 | 2021-05-20T01:42:26 | Python | UTF-8 | Python | false | false | 2,168 | py | from django.db import models
import re
from django.core import validators
from django.core.exceptions import ValidationError
from django.contrib.auth.hashers import check_password, make_password
MIN_FIELD_LENGHT = 4
def ValidarLongitudMinima(cadena):
if len(cadena) < MIN_FIELD_LENGHT:
raise ValidationE... | [
"stephfz@gmail.com"
] | stephfz@gmail.com |
4ad5a935680d32c5f47db945400a93b5d7813a54 | 7235051c8def972f3403bf10155e246c9c291c58 | /angola_erp/oficinas/doctype/ordem_de_reparacao/test_ordem_de_reparacao.py | 961f28830c5549ca52ea27afe99aed3a83b82258 | [
"MIT"
] | permissive | proenterprise/angola_erp | 8e79500ce7bcf499fc344948958ae8e8ab12f897 | 1c171362b132e567390cf702e6ebd72577297cdf | refs/heads/master | 2020-06-03T08:51:34.467041 | 2019-06-07T01:35:54 | 2019-06-07T01:35:54 | 191,514,859 | 1 | 0 | NOASSERTION | 2019-06-12T06:53:41 | 2019-06-12T06:53:41 | null | UTF-8 | Python | false | false | 221 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Helio de Jesus and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestOrdemdeReparacao(unittest.TestCase):
pass
| [
"hcesar@gmail.com"
] | hcesar@gmail.com |
6bf991a763e479c7e1cf1405735bd5a5b5bd5e30 | 14f455693213cae4506a01b7d0591e542c38de79 | /vendor/python-munin/plugins/aws_elb_requests | b846f9ba72903b7127b9edce58997a3bb6785c5e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"X11-distribute-modifications-variant"
] | permissive | Cvalladares/Newsblur_Instrumented | f0b14d063759973330f202108a7eed3a29bcc033 | 4d6ee6aa9713879b1e2550ea5f2dbd819c73af12 | refs/heads/master | 2022-12-29T15:19:29.726455 | 2019-09-03T17:09:04 | 2019-09-03T17:09:04 | 206,130,022 | 0 | 0 | MIT | 2022-12-10T06:00:26 | 2019-09-03T17:07:04 | Python | UTF-8 | Python | false | false | 1,411 | #!/usr/bin/env python
import datetime
import os
import sys
import boto
from boto.ec2.cloudwatch import CloudWatchConnection
from vendor.munin import MuninPlugin
class AWSCloudWatchELBRequestsPlugin(MuninPlugin):
category = "AWS"
args = "-l 0 --base 1000"
vlabel = "Requests/sec"
info =... | [
"Cvalladares4837@gmail.com"
] | Cvalladares4837@gmail.com | |
56912e1ee6caa7808dea0ddd13b2516f89961713 | 1c751c001357d23fe10e7a42490e3b76434dfa18 | /tools/py/ss.py | 06e26a8a47b602d63c9c69c1a72b29e584944444 | [] | no_license | pie-crust/etl | 995925199a71b299544bfac1ed8f504f16fbadc2 | 14b19b542eaa69b8679ce7df4d9a5d2720b3c5c7 | refs/heads/master | 2022-12-12T18:40:31.866907 | 2019-10-14T15:46:16 | 2019-10-14T15:46:16 | 215,082,544 | 0 | 0 | null | 2022-12-08T05:22:54 | 2019-10-14T15:43:04 | Python | UTF-8 | Python | false | false | 5,942 | py | import os, sys, io, csv, time, boto, gzip, math
import pyodbc
e=sys.exit
from pprint import pprint as pp
try:
from io import BytesIO as cStringIO
except:
try:
import cStringIO
except ImportError:
import io as cStringIO
def setKeytabCache(keyTabFile, keyTabPrincipal='',isVertica=True):
DEFAULT_DO... | [
"olek.buzu@gmail.com"
] | olek.buzu@gmail.com |
de2c57db3df051e2c71ce0c65bb11785838de827 | 51f6443116ef09aa91cca0ac91387c1ce9cb445a | /Curso_de_Python_ Curso_em_Video/PythonTeste/tuplasEx006.py | 7390994256a02018fcb186b5a803af55fff0bb07 | [
"MIT"
] | permissive | DanilooSilva/Cursos_de_Python | f449f75bc586f7cb5a7e43000583a83fff942e53 | 8f167a4c6e16f01601e23b6f107578aa1454472d | refs/heads/main | 2023-07-30T02:11:27.002831 | 2021-10-01T21:52:15 | 2021-10-01T21:52:15 | 331,683,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | nomes = ('Danilo', 'Maria', 'Scarlett', 'Ohara', 'Allanys', 'Mel', 'Ze Russo')
for nome in nomes:
print(f'No nome {nome.upper()} temos as vogais', end=' ')
for vogais in nome:
if vogais in 'aAeEiIoOuU':
print(vogais, end=' ')
print() | [
"dno.gomesps@gmail.com"
] | dno.gomesps@gmail.com |
16a554411b6c2550251a1231746f75bf6f984b71 | 7e806feae66ff77601a9f19dad4d4a4a8d774c88 | /server/api/migrations/0018_auto_20191110_1617.py | 4f9ad449149555622bb9070600a9cfa16d1eae8f | [] | no_license | admiralbolt/lorebook | bfc71fa39285a51bce70e0544aceca55db1132f4 | 6e5614796d4eccc696908053c5bc22950a8e6a8c | refs/heads/master | 2022-12-28T20:12:31.229136 | 2021-01-24T22:02:13 | 2021-01-24T22:02:13 | 215,921,497 | 1 | 0 | null | 2022-12-11T09:51:53 | 2019-10-18T02:03:34 | JavaScript | UTF-8 | Python | false | false | 588 | py | # Generated by Django 2.2.7 on 2019-11-10 16:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0017_auto_20191110_1610'),
]
operations = [
migrations.AlterField(
model_name='lore',
name='date_received',
... | [
"aviknecht@gmail.com"
] | aviknecht@gmail.com |
ca8506bd95dca5bde283c3376e5c95788a982b55 | b7fab13642988c0e6535fb75ef6cb3548671d338 | /tools/ydk-py-master/openconfig/ydk/models/openconfig/ietf_diffserv_action.py | 293a2b138c9c7712e56f8bfd4726376e73af48fb | [
"Apache-2.0"
] | permissive | juancsosap/yangtraining | 6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824 | 09d8bcc3827575a45cb8d5d27186042bf13ea451 | refs/heads/master | 2022-08-05T01:59:22.007845 | 2019-08-01T15:53:08 | 2019-08-01T15:53:08 | 200,079,665 | 0 | 1 | null | 2021-12-13T20:06:17 | 2019-08-01T15:54:15 | Python | UTF-8 | Python | false | false | 5,114 | py | """ ietf_diffserv_action
This module contains a collection of YANG definitions for configuring
diffserv specification implementations. Copyright (c) 2014 IETF
Trust and the persons identified as authors of the code. All rights
reserved. Redistribution and use in source and binary forms, with
or without modification, ... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
bbb370b912be9dd1d301c91a2df51194eab247b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s288463755.py | 23233f7ddad32a580359992f962a8751dd84649d | [] | 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 | 458 | py | n, k = map(int, input().split())
alst = list(map(int, input().split()))
for _ in range(k):
tmp = [0 for _ in range(n + 1)]
for i, num in enumerate(alst):
min_ind = max(i - num, 0)
max_ind = min(i + num + 1, n)
tmp[min_ind] += 1
tmp[max_ind] -= 1
next_num = 0
for i, num i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
93c1cfcec3bc7b70190f5138f4b8fa6e97a0ff16 | 2c989707a10e65c115eff8bbab0f51e510ccf096 | /PythonAdvance/1004pyad.py | 549187a006765355fd624a4fc305df2d8a6dfbba | [] | no_license | qiwsir/LearningWithLaoqi | 42041eccb40788f573485209c82aa5e00549408a | 4c5df8d6f7638ba2ef5ea68b3b169aa4065b43c2 | refs/heads/master | 2021-05-01T19:13:28.686452 | 2018-04-03T11:45:21 | 2018-04-03T11:45:21 | 121,016,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #coding:utf-8
class CountWord(dict):
def add(self, item, increment=1):
self[item] = increment + self.get(item, 0)
def sorts(self, reverse=False):
lst = [ (self[k], k) for k in self ]
lst.sort()
if reverse:
lst.reverse()
return [(v, k) for k, v in lst]
if __n... | [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
11815ae3e42c0042d8086fa2b5a0924fcb8f1998 | c29de305e7923acfa6a49a852d730ac607198446 | /ng_opcserver/ng_opcserver.py | 92a6b315f3ab0d29c4a9d2d8c3db8fd92811e7c7 | [
"MIT"
] | permissive | jmosbacher/ng-opcua | 712009cf50e2292abacbe4da269b934c5cfb3bcf | 3a3030a4230a4807b603262f19f66c99a27f75cc | refs/heads/master | 2022-12-16T21:18:02.518113 | 2020-09-24T14:18:31 | 2020-09-24T14:18:31 | 298,301,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | # -*- coding: utf-8 -*-
from asyncua import ua, Server
from asyncua.common import node
from asyncua.common.methods import uamethod
from enum import IntEnum
import asyncio
import random
import logging
import time
# Not required just for convenience
# Because this example is based on EnumStrings, the values should start... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
1825d7f8f1f9e66ba3b9c2f500fc015db148d39c | d60e74dae2c4bcef6bc7c8faea51dc6b245de42f | /package/inference/gauss/__init__.py | 06c798718238f04663af5ea96ccdbc202152a445 | [] | no_license | tloredo/inference | 37664ef62317f32ad5ab25c56ead1c49bfc91045 | 215de4e93b5cf79a1e9f380047b4db92bfeaf45c | refs/heads/master | 2021-09-09T06:24:16.690338 | 2021-09-01T21:03:52 | 2021-09-01T21:03:52 | 142,254,094 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | """
gauss: Modules for inference tasks using the Gaussian (normal) distribution.
"""
from . import vecba
__all__ = ['vecba']
| [
"loredo@astro.cornell.edu"
] | loredo@astro.cornell.edu |
9fbf579ea2337d37e373d71d47d4ef7a48cbef9a | c385cc6c6d69cadfe23664368e592f62e1e2d390 | /Tree/剑指 Offer 26. 树的子结构.py | 69ec6412c750ce3ed8248740308e3370c5da163a | [] | no_license | baketbek/AlgorithmPractice | c5801a374491a2d813fb7504a84aff6a50fc11ab | 5a412bef8602097af43a9134389d334e6f5fa671 | refs/heads/master | 2023-05-23T23:50:25.798825 | 2021-06-19T13:58:45 | 2021-06-19T13:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
这么写有问题,因为recur函数里,如果AB值相等就继续对比,进入下一层后如果不相等,就跳过这层,
在下层对比A.left.left和B.left,是不对的,应该有一个不等了就从头开始,我这个写法跳了一层依然在对比当前的点而非回到头部
class Solution:
def isSubStructure(s... | [
"noreply@github.com"
] | baketbek.noreply@github.com |
eeba4aace767cd3308d15373a9beb81f35f19740 | 40195e6f86bf8620850f0c56e98eae5693e88277 | /coremltools/converters/mil/frontend/tensorflow/dialect_ops.py | 010408b706010866823ce1f7b6e8f10534350d69 | [
"MIT",
"BSD-3-Clause"
] | permissive | apple/coremltools | 009dfa7154d34cab8edcafa618e689e407521f50 | feed174188f7773631a3d574e1ff9889a135c986 | refs/heads/main | 2023-09-01T23:26:13.491955 | 2023-08-31T18:44:31 | 2023-08-31T18:44:31 | 95,862,535 | 3,742 | 705 | BSD-3-Clause | 2023-09-14T17:33:58 | 2017-06-30T07:39:02 | Python | UTF-8 | Python | false | false | 6,346 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.converters.mil.mil import Operation, types
from coremltools.converters.mil.mil.input... | [
"noreply@github.com"
] | apple.noreply@github.com |
e5dc0ac3c5d8a27863f7618f82a43abfc0a2d5f0 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/series/methods/test_sort_index.py | 6fa4eeaee34c0360b902671615b82294e3eea970 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 6,013 | py | import random
import numpy as np
import pytest
from pandas import IntervalIndex, MultiIndex, Series
import pandas._testing as tm
class TestSeriesSortIndex:
def test_sort_index(self, datetime_series):
rindex = list(datetime_series.index)
random.shuffle(rindex)
random_order = datetime_ser... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
e25b321b40b2d26cad85048d4c5e8ef0c54588b3 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Maths/Polynomials_Functions/Fast Fourier Transform.py | 3667f91c4d5ebbe4681f2f971d13bc638492912a | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # Created by Bogdan Trif on 12-02-2018 , 11:31 AM.
import numpy as np
import matplotlib.pyplot as plt
import scipy.fftpack
N = 100
x = np.linspace(0,2*np.pi,100)
y = np.sin(x) + np.random.random(100) * 0.8
def smooth(y, box_pts):
box = np.ones(box_pts)/box_pts
y_smooth = np.convolve(y, box, mode='same')
... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
f2816e0ff2de1b5a3f38f5624c01e9a11ee49dbe | edbb7a53633cba3b17aad4501d532d92159a1041 | /DirtyBits/wsgi.py | 455df86e3f0091903fefcae922e2e33c885fa158 | [] | no_license | himdhiman/DirtyBitsFinal | b5be2b87f85d15a7dce490692df9b6086aadbb74 | f3bd541426af7633a51ab36579cf61fe28a289dc | refs/heads/master | 2023-06-19T13:05:53.755343 | 2021-07-19T14:46:29 | 2021-07-19T14:46:29 | 385,284,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DirtyBits.settings')
application = get_wsgi_application()
| [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
b9837e4481aada40e2b6e49cb7aa361f626d1e68 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180811/example_wsgiref/00hello.py | 5f59790ba629fefc3066cf9fc505d9309baaa971 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 421 | py | import json
from wsgiref.simple_server import make_server
def app(environ, start_response):
status = '200 OK'
headers = [('Content-type', 'application/json')]
start_response(status, headers)
data = {
"msg": "hello world",
}
return [json.dumps(data).encode("utf-8")]
if __name__ == "__... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
7fce08c60328e65c1c9c8a5d15b2b979c59657a4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch34_2020_03_30_12_51_14_514066.py | b02ea9ff387824b0e5bcc10b0ac45bf455ddf9a1 | [] | 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 | 367 | py | def eh_primo(x):
if x%2==0:
return False
elif x%2!=0:
y=3
if x%y==0:
y+=2
return False
elif x==1 or x==0:
return False
elif x==2:
return True
else:
return True
def maior_primo_menor_que(n):
while x<=n:
if n%x==0:
re... | [
"you@example.com"
] | you@example.com |
1884af8f4634d7ebb0c4640f69361692cd0c7867 | 2ba46d8b7ac3538619b074b50bad126867a2c27c | /src/zojax/messaging/browser/breadcrumb.py | df1c4095fb87a19689e3695a70458dccbadea7d9 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.messaging | 2baca5eb4d2d8b3bd23462f6d216925b9ff4cc23 | 7d6c4216763a93ae41251d7d4224c83654806339 | refs/heads/master | 2016-09-06T11:41:41.037505 | 2011-12-16T07:18:52 | 2011-12-16T07:18:52 | 2,026,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
455590a886a1e5acccb85548fbd3af500d74f358 | 73abb3e522c93f1d0d0b93035b034a9f5b8e9867 | /kevlar/cli/localize.py | e451ae7003db0e55ac891f9dba10c131e49506aa | [
"MIT"
] | permissive | jchow32/kevlar | 4caa3fae43857e30a527871b33bce4b30941e265 | 59bb409407b08011e86fd0a1198584cb4d3d5998 | refs/heads/master | 2021-05-05T15:14:23.071710 | 2018-01-11T20:52:54 | 2018-01-11T20:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | #!/usr/bin/env python
#
# -----------------------------------------------------------------------------
# Copyright (c) 2017 The Regents of the University of California
#
# This file is part of kevlar (http://github.com/dib-lab/kevlar) and is
# licensed under the MIT license: see LICENSE.
# ----------------------------... | [
"daniel.standage@gmail.com"
] | daniel.standage@gmail.com |
cb91a4068110a5c6fd0628653fcaba5ac636754d | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /linked_list/python/nth_from_last.py | 314466ee9a99cf03f7eff6af1b33c26300b7d3ec | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | class Node:
def __init__(self, val):
self.val = val
self.next = None
def nth_from_last(head, n):
slow = fast = head
while n > 0 and fast:
fast = fast.next
n -= 1
if n > 0 and not fast:
return "List ni hai bhai"
if not fast:
return head.val
whi... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
2e786f5af1ea5a3664be4e996d7a6b8e922d57c1 | 6c6f439b6777ba08f50de3a84cb236b9506a3216 | /Chapitre_5/tkinter_3.py | 74465851f2c1d2fff4858135861b6ba802f5f1dc | [] | no_license | badiskasmi/py-rasp-2e-edition | 2b87fcd4c3df4ae7ddbb3012c961d7c4fec1450c | c83fe620b6c61e7697af1b4e67a0fc71c5b99a9d | refs/heads/master | 2023-04-09T09:05:22.054570 | 2018-12-27T19:40:46 | 2018-12-27T19:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!/usr/bin/env python3
from tkinter import Tk
LARGEUR = 400
HAUTEUR = 300
def main():
fenetre = Tk()
largeur_div = (fenetre.winfo_screenwidth() - LARGEUR) // 2
hauteur_div = (fenetre.winfo_screenheight() - HAUTEUR) // 2
dimensions = '{f_x}x{f_y}+{p_x}+{p_y}'.format(
f_x=LARGEUR,
f_y=... | [
"monsieurp@gentoo.org"
] | monsieurp@gentoo.org |
16a912b2fce7051d68803fddfac2d2466e9eec03 | 2a4cdd62600c95b9a52e198801a042ad77163077 | /forward/common/validate/validate_code.py | 7e52b250ca0530fd242be2afc6be7bcbdec1406b | [] | no_license | thm-tech/forward | 2c0bb004d14ea6ab807e526a1fa88c61e80c80e4 | 01ca49387754d38717f8cc07fd27127edb035b87 | refs/heads/master | 2021-01-10T02:34:35.098761 | 2015-12-08T03:29:47 | 2015-12-08T03:29:47 | 46,783,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | # -*- encoding: utf-8 -*-
import random
import tempfile
import os
pp = os.path.dirname(os.path.realpath(__file__))
from PIL import Image, ImageDraw, ImageFont, ImageFilter
from forward.common.tools import pathin
_letter_cases = "abcdefghjkmnpqrstuvwxy" # 小写字母,去除可能干扰的i,l,o,z
_upper_cases = _letter_cases.upper() ... | [
"mohanson@163.com"
] | mohanson@163.com |
90e1cd44b44697565e0e3671ecef51463c51e0e1 | 93d43b915b3853eac80975b6692ffed3b146c89f | /network/udp_client.py | d8c1ea926d68997d6e835ad861a700f808eecdb2 | [] | no_license | Killsan/python | 32ca8b4f1fa4a8a5d70ce6949d764938c37ff14d | 0c79a482ade3396309cbd055e996438b82dcd3b1 | refs/heads/master | 2023-06-14T21:44:29.933776 | 2021-07-13T18:28:39 | 2021-07-13T18:28:39 | 220,499,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(b'connected', ('127.0.0.1', 8888))
#(<ip>, <port>); (unix.sock)
| [
"reversflash47@gmail.com"
] | reversflash47@gmail.com |
e3f392121a9ec6d09d8a3f65d4276958197c78ce | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/6717daf4a6e92aa49da486c4ffc06201b9fa4611-<test_realm_filter_events>-bug.py | 9fab8c660152c9383eb365c715984d751f7b4342 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py |
def test_realm_filter_events(self) -> None:
schema_checker = self.check_events_dict([('type', equals('realm_filters')), ('realm_filters', check_list(None))])
events = self.do_test((lambda : do_add_realm_filter(self.user_profile.realm, '#(?P<id>[123])', 'https://realm.com/my_realm_filter/%(id)s')))
error =... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
06ae6fcfbeaf3ef19671198d81850f9474d6b46b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch76_2020_04_12_20_54_45_523952.py | 3764fea605aa8ea89077073aeb44632ac15ffc01 | [] | 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 | 200 | py | def aniversariantes_de_setembro(dicionario):
dicionario={}
for k,v in dicionario.items():
if v[3]=="0" and v[4]=="9":
dicionario[k]=v
i+=1
return dicionario | [
"you@example.com"
] | you@example.com |
4e436d01a7d9d68d3c34894ae9851687f1de4c6f | 700577285824a21df647aba584d51420db59c598 | /OpenColibri/allauth/account/app_settings.py | c7f23b95cd0a2fdd70cdb71e42de82fc305f924b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | epu-ntua/opencolibri | 2c05acc43ef1b1c86608f6e729a4f83773b01b73 | 78e2411f78a0213b3961145cfe67cd52398cea70 | refs/heads/master | 2016-09-11T02:39:43.798777 | 2014-04-06T11:30:39 | 2014-04-06T11:30:39 | 15,764,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | py | class AppSettings(object):
class AuthenticationMethod:
USERNAME = 'username'
EMAIL = 'email'
USERNAME_EMAIL = 'username_email'
class EmailVerificationMethod:
# After signing up, keep the user account inactive until the email
# address is verified
MANDATORY = 'man... | [
"smouzakitis@epu.ntua.gr"
] | smouzakitis@epu.ntua.gr |
a7d91e08aac4a3cbc8c9e57421d6606d8a90881f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/waterfall/_name.py | 608e0ac1ba031e5709a5828581f3e4766451e155 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 390 | py | import _plotly_utils.basevalidators
class NameValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="name", parent_name="waterfall", **kwargs):
super(NameValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
0377cbc8e9ba2d59e28b08a5a1ce0f5fa8ca1010 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /fact/next_government/own_group/call_case_up_problem/large_point/little_life.py | b2b99d6c9740a5162e0e6a7470cbb95876144f50 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#! /usr/bin/env python
def early_eye(str_arg):
last_company_or_right_company(str_arg)
print('work_world')
def last_company_or_right_company(str_arg):
print(str_arg)
if __name__ == '__main__':
early_eye('place_or_woman')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
9e25c636f9da9596f495b991c9608fe75b4649d3 | e3d447a81c5462d2d14201f2bc6b82cdcbbca51a | /chapter11/c11_2_city_functions.py | e4ca3478294a70d075558e1ec889a6b75ce34d05 | [] | no_license | barcern/python-crash-course | f6026f13f75ecddc7806711d65bc53cb88e24496 | 8b55775c9f0ed49444becb35b8d529620537fa54 | refs/heads/master | 2023-04-19T17:28:44.342022 | 2021-02-07T23:51:06 | 2021-02-07T23:51:06 | 257,201,280 | 2 | 3 | null | 2021-05-12T17:35:56 | 2020-04-20T07:14:28 | Python | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 31 21:29:14 2020
@author: barbora
Store functions for 11-1.
"""
def return_formatted_city_country(city, country, population=''):
"""Return a string formatted as City, Country - population xxx
when population data available. Otherwise return as City, Country.
... | [
"bcernakova01@gmail.com"
] | bcernakova01@gmail.com |
16edaa237e253f240e580d3cce27529f3a7004c9 | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/TrapSRH/TrapSRHParserLib.py | 4c71b1d4270cf5a60be099655815429e5c8b8c61 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 3,700 | py |
try:
import coloramaDISABLED as colors
except ImportError:
class stubColors:
"subs for colors when colors doesn't exist on system"
def __init__(self):
self.Fore = colorClass()
self.Back = colorClass()
self.Style = styleClass()
class colorClass()... | [
"juan@tcad.com"
] | juan@tcad.com |
c5cdf70a00c21b9e801db37dcf16fc563db36592 | 6e4702fa7ff89c59871148e8007b769506fffe5b | /SmartClass/teacher/migrations/0010_cauhoi_dinh_kem.py | 012736603018a2929917ba9730924c58cc1dd535 | [] | no_license | vuvandang1995/hvan | 3a7bd8892bed30c6c6f4062bcf7a2c2804f34b0d | 003d9362739944cb3bcd8d1b11dd5b7481d7bd81 | refs/heads/master | 2020-05-02T02:31:51.121181 | 2019-03-27T02:32:29 | 2019-03-27T02:32:29 | 177,706,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.1 on 2018-09-24 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teacher', '0009_auto_20180919_1601'),
]
operations = [
migrations.AddField(
model_name='cauhoi',
name='dinh_kem',
... | [
"dangdiendao@gmail.com"
] | dangdiendao@gmail.com |
b58921544b80556ce223763f385799d172a1203f | 9d6218ca6c75a0e1ec1674fe410100d93d6852cb | /app/supervisor/venvs/supervisor/bin/pidproxy | 067992ca6ce7b31e95969cd766069a5c66c5e897 | [] | no_license | bopopescu/uceo-2015 | 164694268969dd884904f51b00bd3dc034695be8 | 5abcbfc4ff32bca6ca237d71cbb68fab4b9f9f91 | refs/heads/master | 2021-05-28T21:12:05.120484 | 2015-08-05T06:46:36 | 2015-08-05T06:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | #!/edx/app/supervisor/venvs/supervisor/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.1.3','console_scripts','pidproxy'
__requires__ = 'supervisor==3.1.3'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('supervisor==3.1.3', 'console_script... | [
"root@uceociputra.com"
] | root@uceociputra.com | |
1fcab6195234c0ee9d1fc17fd7ef16750b34d793 | ede0935c59217973665bc7bef2337f413e5a8c92 | /my_configs/_base_/models/cascade_mask_rcnn_r50_fpn.py | 163f7584fa7ed4e72444fa5786d0073890ffdf7b | [
"Apache-2.0"
] | permissive | Daniel-xsy/MMDet_VisDrone2021 | 6da6d23c324afb7be9056bb6628b25f5d688af2a | 668d10b61a4b99dda0163b67b093cad2e699ee3b | refs/heads/master | 2023-07-10T02:42:06.474341 | 2021-08-14T09:36:12 | 2021-08-14T09:36:12 | 376,227,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,410 | py | # model settings
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | [
"1491387884@qq.com"
] | 1491387884@qq.com |
8b99bee6c2a0fa65a0e918224fb7fad1370fa83c | 9b80999a1bdd3595022c9abf8743a029fde3a207 | /26-Cluster Analysis in Python /K-Means Clustering /Uniform clustering patterns.py | f00c65cb93f72b60f9ab38a41377633cb2f30563 | [] | no_license | vaibhavkrishna-bhosle/DataCamp-Data_Scientist_with_python | 26fc3a89605f26ac3b77c15dbe45af965080115a | 47d9d2c8c93e1db53154a1642b6281c9149af769 | refs/heads/master | 2022-12-22T14:01:18.140426 | 2020-09-23T11:30:53 | 2020-09-23T11:30:53 | 256,755,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | '''Now that you are familiar with the impact of seeds, let us look at the bias in k-means clustering towards the formation of uniform clusters.
Let us use a mouse-like dataset for our next exercise. A mouse-like dataset is a group of points that resemble the head of a mouse: it has three clusters of points arranged in... | [
"vaibhavkrishna.bhosle@gmail.com"
] | vaibhavkrishna.bhosle@gmail.com |
286d6d8c03a680b5b4551b125a0cded889f6916f | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/Trees/SubtreeofAnotherTree.py | c6b61d426d4a645e799a145aaf8d9876fe7dbaec | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | """
iven two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with
a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants.
The tree s could also be considered as a subtree of itself.
Example 1:
Given tree s:
3
/ \... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
283836fff8c95f37f06a4335b71842bfc59315df | 385f0577d98fbf81dd6310b6d826e54f76ae39e7 | /tests/test_param_vasicek.py | 8728a4530f5f14be3f505d5f1c9d7407b5a82ce4 | [
"MIT"
] | permissive | afcarl/diffusions | 4cd5bf32332e64a2352b398eeb69167e98ea35f9 | 87a85b636cc5b78b9a89a8fd1c0c7e7426385952 | refs/heads/master | 2021-05-17T16:02:43.873818 | 2017-09-05T10:14:07 | 2017-09-05T10:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test suite for Vasicek parameter class.
"""
from __future__ import print_function, division
import unittest as ut
import numpy as np
import numpy.testing as npt
from diffusions import VasicekParam
class SDEParameterTestCase(ut.TestCase):
"""Test parameter class... | [
"khrapovs@gmail.com"
] | khrapovs@gmail.com |
937354f7eaee10d293189248aea1dcf827bd1511 | 3c1639bccf3fc0abc9c82c00ab92ac3f25cf105e | /Python3网络爬虫/section3-基本库使用/06-正则/01-match/04-贪婪与非贪婪.py | 52ca63fa3326f58611c3db3505765dcc9288a9be | [
"Apache-2.0"
] | permissive | LiuJunb/PythonStudy | 783318a64496c2db41442ad66e0cc9253b392734 | 3386b9e3ccb398bfcfcd1a3402182811f9bb37ca | refs/heads/master | 2022-12-11T05:22:53.725166 | 2018-11-15T01:34:37 | 2018-11-15T01:34:37 | 143,956,065 | 1 | 0 | Apache-2.0 | 2022-11-22T01:58:23 | 2018-08-08T03:26:26 | JavaScript | UTF-8 | Python | false | false | 978 | py | import re
# .*? (点星) 可以匹配任意字符(除换行符,例如节点会有换行)
# .? (点) 可以匹配任意字符(除换行符)
# * (星) 又代表匹配前面的字符无限次
content = 'Hello 1234567 World_This is a Regex Demo'
# 1.贪婪匹配(.*)尽量匹配最多的字符: ^He .* (\d+) .* Demo$
result = re.match('^He.*(\d+).*Demo$', content)
print(result) # <re.Match object; span=(0, 40), 01-match='Hello 1234567 ... | [
"liujun@520it.com"
] | liujun@520it.com |
a8bc57e7b9636358a469235f83d9e06dd7c1bf0e | 3f18a27cfea243d24be2d9428afad3bbd0ad6ec2 | /gcamp_analysis_files_finished/180222-08-bottom-experiment/src/delta_video_config.py | 989e334e7465dcf08bc26f105263ad6a24c65454 | [
"MIT"
] | permissive | riffelllab/Mosquito-larvae-analyses-1 | a4d7e8cd29b6481438798ed7b455a931f1f8c2b5 | 2701b1b2055d6ee1722898f0fa4e64a9b12e7b24 | refs/heads/master | 2023-01-19T04:18:56.894245 | 2020-10-16T19:01:08 | 2020-10-16T19:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Config:
def __init__(self):
self.basename = 'delta_video'
self.directory = '/home/eleanor/Documents/gcamp_analysis_files_temp/180222-08-bottom-experiment/data'
self.topics = ['/multi_tracker/1/delta_video',]
self.record_length_hours = 1 | [
"tabletopwhale@outlook.com"
] | tabletopwhale@outlook.com |
20544d415fefef5a3cdeef196113798818d32e24 | 1588a1d601d29c18942d220657185d3bf7b17160 | /programmers/level3/pro12979.py | 9eedf137f30657867380e7152b1ebc68e0008148 | [] | no_license | geonwoomun/AlgorithmStudy | 1f8148e981beebd2e6f70e65193ce445fa59df96 | d43b624aad80f10d687a8f4b37cc79d88fc772b3 | refs/heads/master | 2020-08-01T05:24:26.980370 | 2020-07-15T05:04:35 | 2020-07-15T05:04:35 | 210,878,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | # 프로그래머스 기지국 설치
# 풀다가 50점 정도는 나오는데 더 이상 풀기 어려워서... 블로그 참고 했습니다.
# 좀 더 단순하고 효율적으로 생각하는 방법을 길러야겠다..
import math
def solution(n, stations, w):
result = 0
distance = []
for i in range(1, len(stations)):
distance.append((stations[i] -w -1) - (stations[i-1] +w))
# 뒤의 기지국과 앞의 기지국 사이의 거리를 잰다.
d... | [
"ansejrrhkd@naver.com"
] | ansejrrhkd@naver.com |
9d3ed49cac3834d5be43d76726bc795f44e0a3c5 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbon/common/lib/aiming.py | 0091bdb2195110fac1d6ee59e5cdd282d592b617 | [] | 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,536 | py | #Embedded file name: carbon/common/lib\aiming.py
"""
Constants for the AI aiming system.
"""
AIMING_VALID_TARGET_GAZE_ID = 1
AIMING_VALID_TARGET_COMBAT_ID = 2
AIMING_CLIENTSERVER_FLAG_CLIENT = 1
AIMING_CLIENTSERVER_FLAG_SERVER = 2
AIMING_CLIENTSERVER_FLAG_BOTH = AIMING_CLIENTSERVER_FLAG_CLIENT | AIMING_CLIENTSERVER_FLA... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
fc9e43bf3077454377017ccba304ace293c1bc05 | 214e67e48b5f9c24bd64d9c04c94db86ee0c85e0 | /arcerojas/Propietario/urls.py | 98ae012e41de1138d6b45a94c070f8f795612e75 | [] | no_license | efnaranjo6/arcerojas | 238542f11a91958cf5d3221781c8425c23a8a1c1 | ace90508d2a95f837c255f9245af3d1bff0d8f02 | refs/heads/main | 2023-08-11T10:40:07.196737 | 2021-09-17T21:20:46 | 2021-09-17T21:20:46 | 407,409,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.urls import path
from .views import Propietarioview,Propietarioinsertar,Propietarioeditar,Propietarioeliminar
urlpatterns = [
path('', Propietarioview.as_view(), name='propietarios'),
path('propietario/new/', Propietarioinsertar.as_view(), name='Insertar'),
path('propietario/Editar/<int:pk>', P... | [
"efnaranjo6@misena.edu.co"
] | efnaranjo6@misena.edu.co |
5b8e8640194cc124752bcf19faabd9197a61a886 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase2_008_2.py | 7697a7118f975926627a9d91d9819390182e2f4e | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,859 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
b6008a92acebeb1a4b43cc9e053f074773796fb9 | 00b0cf3d93b7033e1f419b49a0278f5d463733b0 | /script1.py | 4f5b757d7c19b4eb20f0bd6b2e4b5a1aebbcf2d4 | [] | no_license | aramidetosin/Nornir-BGP-OSPF | df46364b439fbfaa53542eeffbc39eba415fa950 | c6837d109c8ce33053af3b1c023952b2cd315c9c | refs/heads/master | 2022-12-10T06:11:18.312519 | 2020-09-13T08:37:18 | 2020-09-13T08:37:18 | 288,286,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | from pyats.async_ import pcall
from genie.conf import Genie
from genie.utils import Dq
from genie.testbed import load
from rich import print
def get_ospf(hostname, dev):
#get show output from routing table
parsed = dev.parse('show ip route')
# use DQ to parse the OSPF routes from the routing table
get_... | [
"aoluwatosin10@gmail.com"
] | aoluwatosin10@gmail.com |
fd01446c2f4d6707e0f766fe7bd1160a36c15b5b | 358519772669c73092f625f630722c38e1d33783 | /mccetools/examples/titrateHEWL_e8.py | cc186c9419106ff7bf6afa5e57a1598f9ca8d378 | [] | no_license | minghao2016/mmtools | e7e61aca084498408ceae965dd6c9450ad89eafa | 3ade988afb51cd54ee5a4067d8deaad88afbb0fe | refs/heads/master | 2021-09-21T01:02:22.522187 | 2014-09-19T03:40:03 | 2014-09-19T03:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import mmtools.mccetools.mcce as mcce
import os, sys
### INPUT LINES ####
#
# Specify the input and output PDB filenames
# NOTE: pdbfile and outpdbfile should be local (not absolute) paths for this project
pdbfile = '1e8l_model1.pdb'
outfile = os.path.join(os.curdir,'titrateHEWL_e8_pK.out')
# Specify the course of ... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
4f3dc08a6a651f2e44d73ffb4fad06cf5da0274d | 3453fc365a2f2e24aaf9b9770d94560440aedc4c | /settings.py | 80abdc05ac5b330ad2d2737b6b010880904d5a50 | [] | no_license | star1986xk/LOL_DB | 6cd97e8f14fead69f0eac522d49be3cc3b19596a | 5431e965f67c17e26152b842420ec292b79ab73e | refs/heads/master | 2022-08-22T16:33:28.809745 | 2020-05-23T13:13:27 | 2020-05-23T13:13:27 | 266,339,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | SQL = {
'host': 'xxxx',
'user': 'xxxx',
'password': 'xxxxxx',
'database': 'lol',
'charset': 'utf8'
}
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
}
| [
"173013905@qq.com"
] | 173013905@qq.com |
2dcb3f7173cb22ab12265f533657a71a52f75d7b | 8226d4d618b524bfe958232d9e7dff09378acaec | /cowrie/ssh/userauth.py | 922be4a236cf9d621a03c5826e03103f692b64f3 | [
"BSD-2-Clause"
] | permissive | sergey-pronin/cowrie | 4bb9d20a4a38fb338f1da8317f312bd61b777ffe | 772cb2e41ea380a05e3d900fab4422f2583ec287 | refs/heads/master | 2021-05-14T06:38:08.606324 | 2018-01-03T04:49:57 | 2018-01-03T04:49:57 | 116,247,402 | 1 | 0 | null | 2018-01-04T10:34:00 | 2018-01-04T10:33:59 | null | UTF-8 | Python | false | false | 6,132 | py | # Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>
# See the COPYRIGHT file for more information
"""
This module contains ...
"""
from __future__ import division, absolute_import
import struct
from twisted.python import log
from twisted.python.compat import _bytesChr as chr
from twisted.internet import def... | [
"michel@oosterhof.net"
] | michel@oosterhof.net |
8d1dcfdf120fab339b7e7a0c1a0a455b6cfa8730 | 8911d294dbdc2c1b415804ec36112db11ca56148 | /Best_Buy/App_Best_Buy/urls.py | eae0c5b9dcc63d349485ff10c69706ba788a620c | [] | no_license | generateintel/BestBuy_Scraper | 8ab596fd0dd98bd4f57d3024f4e5862af67b0899 | c6ffba85537250e41b0d450be8fafa4c96d004f7 | refs/heads/master | 2022-12-10T14:06:58.131437 | 2020-08-28T15:19:11 | 2020-08-28T15:19:11 | 291,078,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # import Views as Views
from django.conf.urls import url, include
from django.urls import path,include
from rest_framework import routers
from . import views
from .views import *
# urlpatterns = [
# ]
router=routers.DefaultRouter()
router.register(r'bestbuy(?:/(?P<id>[0-9]+))?', Best_Buy, 'bestbuy')#User apis
url... | [
"frazmirza58@gmail.com"
] | frazmirza58@gmail.com |
6992e6208c0a2fe642723a1efe1d37f8798929dd | bb8838e3eec624fd35a61d6d646f941eac1b266a | /saga/adaptors/cpi/filesystem/__init__.py | 6eb35fd84bb36b6735f61432bc6f9c3a4a067591 | [
"MIT"
] | permissive | agrill/saga-python | 55087c03e72635ffbb2fe1ca56b5cc02b7ff2094 | 35101e3a40d3cfcb39cb9f0d0c5f64c6f8de5930 | refs/heads/master | 2021-01-22T10:14:11.922145 | 2013-11-19T14:38:50 | 2013-11-19T14:38:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py |
__author__ = "Andre Merzky"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__ = "MIT"
from saga.adaptors.cpi.filesystem.file import File
from saga.adaptors.cpi.filesystem.directory import Directory
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
| [
"andre@merzky.net"
] | andre@merzky.net |
d59f6584aa265e16f758ceaa9eaaa52f77180d65 | 602bdbd1d8ef4d36ccfdcae5756bc8e448d30584 | /share/pollen/yamlutil.py | a827b5412580893d319067869fc0182c3328adcc | [] | no_license | timparkin/timparkingallery | 1136027bf9cfbad31319958f20771a6fdc9f5fc4 | 6e6c02684a701817a2efae27e21b77765daa2c33 | refs/heads/master | 2016-09-06T00:28:16.965416 | 2008-11-25T21:15:45 | 2008-11-25T21:15:45 | 12,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | """
Extension of PySyck that treats all scalars (implicit typing is switched off)
as UTF-8 encoded strings.
To convert scalars to specific types use the standard YAML syntax, i.e.
"!int 1".
"""
import syck
class Loader(syck.Loader):
def construct(self, node):
# Implicit typing is always disabled but ... | [
"info@timparkin.co.uk"
] | info@timparkin.co.uk |
ebca3fd3419746cb6ce74eb0a9f19695c7d634ac | b1c7a768f38e2e987a112da6170f49503b9db05f | /userprofile/migrations/0023_auto_20190315_1624.py | 3deeef30d6004cff0aecc2b7f825b79a7f5bed21 | [] | no_license | Niladrykar/bracketerp | 8b7491aa319f60ec3dcb5077258d75b0394db374 | ca4ee60c2254c6c132a38ce52410059cc6b19cae | refs/heads/master | 2022-12-11T04:23:07.504966 | 2019-03-18T06:58:13 | 2019-03-18T06:58:13 | 176,218,029 | 1 | 0 | null | 2022-12-08T03:01:46 | 2019-03-18T06:27:37 | JavaScript | UTF-8 | Python | false | false | 1,776 | py | # Generated by Django 2.0.6 on 2019-03-15 10:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userprofile', '0022_serv... | [
"niladry.kar85@gmail.com"
] | niladry.kar85@gmail.com |
ea506e927f56df9e77c165cbf17c39260478d62d | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/build/make_bioassembly.py | ace9b6f3a60d45deaeeb2648f73cdfcb64aea9d5 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 1,897 | py | from molsysmt._private.digestion import digest
import numpy as np
@digest()
def make_bioassembly(molecular_system, bioassembly=None, structure_indices=0, to_form=None):
"""
To be written soon...
"""
from molsysmt.basic import extract, merge, get
from molsysmt.structure import rotate, translate
... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
2161519984d316cb7df0e9c4a0aaf36ad2336703 | d93a9c5e63612e26ce6d42b055caecac61f9e8f1 | /src/analyse/cost_assumptions.py | 2a7dfdfa8ebe97f09b9cb699dadcd36c0ab2b8d4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | timtroendle/geographic-scale | 525bd9820128cd8340750cab59815555e1ed6520 | 81ec940e10b8e692429797e6a066a177e1508a89 | refs/heads/master | 2023-04-18T21:27:11.533352 | 2021-08-04T15:05:55 | 2021-08-04T15:05:55 | 170,466,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | import math
import calliope
import pandas as pd
import xarray as xr
EUR_PER_KW = 1 / 1e3 # from €/MW(h) to €/kW(h)
CT_PER_KW = 1e2 / 1e3 # from €/MW(h) to €ct/kW(h)
M_TO_1000KM = 1e-6
EPSILON = 1e-12
TECHS = {
"open_field_pv": "Utility-scale PV",
"roof_mounted_pv": "Rooftop PV",
"wind_onshore_monopoly": "... | [
"tim.troendle@usys.ethz.ch"
] | tim.troendle@usys.ethz.ch |
75e594d130d4bb87a04ccd13b6cc04528faf8c26 | e267c91f23055397201c3d9c23d7583b269d51b8 | /backend/pugorugh/tests/test_serializers.py | 9985fdce7df4cae83ff5caa706f06c94f6628da4 | [] | no_license | mcintoshsg/pug_or_ugh_v1 | 8678213b4b4ea09a70f369aa08002ff4a8194a29 | 3e735cd840ffc5a85497eab48518800f0757d9f3 | refs/heads/master | 2020-03-19T15:26:41.152968 | 2018-06-14T01:30:49 | 2018-06-14T01:30:49 | 136,670,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | from django.contrib.auth.models import User
from rest_framework.test import APITestCase
from pugorugh.serializers import (DogSerializer, UserPrefSerializer)
class DogSerializerTests(APITestCase):
'''SETUP '''
def setUp(self):
''' setup up dummy data for the Dog serializer '''
self.dog_1_dat... | [
"s.g.mcintosh@gmail.com"
] | s.g.mcintosh@gmail.com |
c6f51cdc9597157d6863008f9a3144495adc25ba | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/download_and_save_csv.py | e075d5dfd7ffc58315af83cc1b7b33371336e92f | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 324 | py | """
download_and_save_csv.py
From:
http://wiki.cmci.info/documents/120206pyip_cooking/python_imagej_cookbook
"""
from ij import IJ
from java.io import PrintWriter
content = IJ.openUrlAsString('http://cmci.info/imgdata/tenFrameResults.csv')
out = PrintWriter('/Users/jrminter/tmp/test1.csv')
out.print(content)
out.clo... | [
"jrminter@gmail.com"
] | jrminter@gmail.com |
f514aae0d2c12d93b9d619bb80ff773cf0f9e077 | 7c67952f1c18d42f283f395d02294e148f3dd349 | /export/tracking/apps.py | 148b73edaf24675007991d8d3903bdb8ad3ae9cb | [] | no_license | 314casso/cportal | cfb4cc9e53819950177728bc5d42e47f2aa3d45e | a0a2043616241429571ec1b99302dada49af1485 | refs/heads/master | 2022-12-11T07:19:14.209367 | 2021-10-05T21:27:00 | 2021-10-05T21:27:00 | 110,969,703 | 0 | 0 | null | 2022-12-07T23:47:26 | 2017-11-16T12:37:59 | HTML | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class TrackingConfig(AppConfig):
name = 'tracking'
| [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
6db0fa2b73fdd334a453684a88261ba4cf2ee1cd | e1a71cc2773d94d1f6788f7ec830d3723b827745 | /mayan/apps/redactions/tests/literals.py | d2c41f241b83003725ddd7d148d2aa308274f042 | [
"Apache-2.0"
] | permissive | azees-math/Mayan-EDMS | e6ddcee6f188b87e6d64990a85c5af7ad9b95b0c | 4be3496b233f77d33e16376cb715a80286a50da2 | refs/heads/master | 2023-08-06T05:09:57.788757 | 2021-10-07T08:06:51 | 2021-10-07T08:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import os
from django.conf import settings
TEST_REDACTION_ARGUMENT = "{'left': 10, 'top': 10, 'right': 10, 'bottom': 10}"
TEST_REDACTION_ARGUMENT_EDITED = "{'left': 20, 'top': 20, 'right': 20, 'bottom': 20}"
TEST_REDACTION_DOCUMENT_FILENAME = 'black_upper_left_corner.png'
TEST_REDACTION_DOCUMENT_PATH = os.path.join(... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
530588e4198ab812971feb9aac12ecfb9442af61 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_two_20180701105942.py | 7866626da6dfd8ef1f5122844411c56107d23daa | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 7,212 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import random
import numpy as np
import graph_tool.all as gt
from... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
cb8a337f99df522db71f2b13b2ef15b38319466d | d7753137a13c068cb0484bdc9a8237a36378db1b | /lintcode/array/search_in_rorated_sorted_array.py | 52d5fbb376999b01e306bea3efa03460129f419d | [] | no_license | alexkie007/offer | 740b1e41b9d87de3b31df961c33371a5e3430133 | 85ceaf8f3da0efd66b4394ef16669ea673218265 | refs/heads/master | 2021-04-12T11:56:49.779558 | 2018-11-03T05:26:51 | 2018-11-03T05:26:51 | 126,163,525 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | class Solution:
@staticmethod
def search_in_rorated_sorted_array(nums, target):
if len(nums) < 1:
return -1
start = 0
end = len(nums) - 1
while start + 1 < end:
mid = start + (end - start) // 2
if nums[mid] == target:
return mid... | [
"alexkie@yeah.net"
] | alexkie@yeah.net |
ea4ee80048587bafcca6e3c883d30179a89772a6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /eAnhzXPeGbobqk2P2_10.py | f3ba2d9fb2d0797b24386f1f2080ef7df5d01f84 | [] | 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 | 1,152 | py | """
Create a function that takes in a year and returns the correct century.
### Examples
century(1756) ➞ "18th century"
century(1555) ➞ "16th century"
century(1000) ➞ "10th century"
century(1001) ➞ "11th century"
century(2005) ➞ "21st century"
### Notes
* All years will ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
810266a72fa8a60275fcde3efd5f40941c1a6a9b | 779a603f16a13c3cfc14f9923fae00b95430d041 | /sentry.conf.py | 4ff55b11ffacaa19364dcea51db814a33f8f66c2 | [] | no_license | ImmaculateObsession/sentry-server | ee4b8e3b54e8b220efd479ba74486891cbbd68bd | f23a7098565d166200e2ee90b5db12555fff31ea | refs/heads/master | 2021-01-25T04:01:57.710957 | 2013-10-12T01:13:41 | 2013-10-12T01:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py |
# This file is just Python, with a touch of Django which means you
# you can inherit and tweak settings to your hearts content.
from sentry.conf.server import *
import os
from django.core.exceptions import ImproperlyConfigured
from unipath import Path
def get_env_variable(var_name):
""" Get the environment varia... | [
"pjj@philipjohnjames.com"
] | pjj@philipjohnjames.com |
13faf6f38fe17b5382a1c81a9664af97121e9db8 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/tod/const.py | 3b6f8c23e17435323c275b6e9c860f138def77d0 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 207 | py | """Constants for the Times of the Day integration."""
DOMAIN = "tod"
CONF_AFTER_TIME = "after_time"
CONF_AFTER_OFFSET = "after_offset"
CONF_BEFORE_TIME = "before_time"
CONF_BEFORE_OFFSET = "before_offset"
| [
"noreply@github.com"
] | home-assistant.noreply@github.com |
b3018f21a87b0c01ed7dde5c583582ff0924abff | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/mulq_r64/instructions/mulq_r64/mulq_r64.gen.vex.py | f053dc5ee41260d5e4a5978c50a17d898231afb4 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import angr
proj = angr.Project('./instructions/mulq_r64/mulq_r64.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
30844235afba20a859c1af14b83712062e315731 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Control/AthenaExamples/AthExThinning/share/ReadNonSlimmedData_jobOptions.py | 38f99092450c5b1a4e3e2f5c68191d7da6279a5f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | ###############################################################
#
# Job options file
#
#==============================================================
#
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.Constants import VERBOSE,DEBUG,INFO,WARNING,ERROR
from AthenaCommon.AlgSequence import A... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
aa760ca3f7d7c9e12b8ef69e0da9c1b134bc975e | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /chrome/installer/linux/debian/package_version_interval.py | b386fb69728bdb3c6f0077166773d44d2f2e85a1 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 4,844 | py | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import sys
import deb_version
class PackageVersionIntervalEndpoint:
def __init__(self, is_open, is_inclusive, version):
... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
88c81e959b5d2d8b8108c70ef1ae00c46a5f20a4 | 7ff333dd18ebea4159160b07c2e281461e021e25 | /parsers/linux_software_parser.py | bab26705bf0a9b28917c545ee615ac75f91acce5 | [
"Apache-2.0",
"DOC"
] | permissive | defaultnamehere/grr | d768240ea8ffc9d557f5fe2e272937b83398b6e3 | ba1648b97a76f844ffb8e1891cc9e2680f9b1c6e | refs/heads/master | 2021-01-21T19:09:18.863900 | 2014-12-07T01:49:53 | 2014-12-07T01:49:53 | 27,655,857 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | #!/usr/bin/env python
"""Simple parsers for Linux files."""
import re
from debian_bundle import deb822
from grr.lib import parsers
from grr.lib import rdfvalue
class DebianPackagesStatusParser(parsers.FileParser):
"""Parser for /var/lib/dpkg/status. Yields SoftwarePackage semantic values."""
output_types = ["So... | [
"amoser@google.com"
] | amoser@google.com |
1f83f61dfa9497557e6936eb982a70d2efc4f3d7 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j05369+3955/sdB_galex_j05369+3955_coadd.py | 491e3294e315021e4dbeb2b572fa220d4d65db96 | [] | 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 | 453 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[84.234625,39.921497], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_galex_j05369+3955/sdB_galex_j05369+3955_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCUR... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
e5ea45b50f4220f2ee941a580567bfd3619b7a03 | 55c1218bdd3f87554b3e462ab3609d34442a427e | /ch06/codeListing06-8.py | a85ed3c9ddbee9cc137d4e073bdec128d50112b4 | [] | no_license | oilmcut2019/Teaching_material_python | b0b0706ea14c9ef70ddabb3ec705e4be7f7783aa | 28fd3c344c49d004e20322e8d33b1f0bfec38e0c | refs/heads/master | 2020-05-18T16:43:40.805479 | 2019-05-02T06:47:36 | 2019-05-02T06:47:36 | 184,533,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def get_vowels_in_word(word):
"""Return vowels in string word--include repeats."""
vowel_str = "aeiou"
vowels_in_word = ""
for char in word:
if char in vowel_str:
vowels_in_word += char
return vowels_in_word
| [
"m07158031@o365.mcut.edu.tw"
] | m07158031@o365.mcut.edu.tw |
823128508170e7b6f582e87466c71dc6f760b04d | cf7d96bdd34205ede987f0985dfc9e3ab415ee06 | /visual_export/spreadsheet/base.py | c910b70539f3680f0a48fb6616e889e1eccc7a93 | [] | no_license | hendrasaputra0501/btxjalan | afc93467d54a6f20ef6ac46f7359e964ad5d42a0 | d02bc085ad03efc982460d77f7af1eb5641db729 | refs/heads/master | 2020-12-30T11:02:05.416120 | 2017-07-31T01:34:08 | 2017-07-31T01:34:08 | 98,836,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # -*- coding: utf-8 -*-
from cStringIO import StringIO
class SpreadSheetBase(object):
document = None
table = None
def __init__(self, title):
self.title = title
def tofile(self):
if self.document is None:
raise Exception('No document found')
fp = StringIO()
... | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
c1fbb8cbba54fa88ad00b3eaefacc4651f85a474 | 57397e9891525c53d7d02c91634e917e1de74772 | /src/procesamiento/python/PSD2RS.py | 1e572a6acb6b68555a9a2ee8cdd39cd2814cd5f1 | [] | no_license | gdiazh/pruebas_vibraciones | 614964ad4fb2bb7770f67f885986f3b65e2c0571 | 0baabc76a6cd9444e6cedac8da14b0a78169b34e | refs/heads/master | 2020-05-18T01:56:47.861642 | 2019-04-30T18:48:06 | 2019-04-30T18:48:06 | 184,103,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 4 15:13:08 2018
General approach
PSD1: MIL-STD-1540C Acceptance Level
PSD2: NASA random vibration for mass less than 22.7 kg (Acceptable condition in CubeSat)
Conservator Damping ratio = 0.05
@author: Elias Obreque
"""
import matplotlib.pyplot as plt
import numpy as np... | [
"g.hernan.diaz@gmail.com"
] | g.hernan.diaz@gmail.com |
2e28a19cee408ed5614c805add202c7ba74dc8d9 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/070_Climbing_Stairs.py | 05f4b4ef7410b23e15f28f34f471ea6cc27c358c | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 890 | py | c_ Solution o..
# def climbStairs(self, n):
# """
# :type n: int
# :rtype: int
# """
# dp = [0] * (n + 1)
# dp[0] = 1
# dp[1] = 1
# for i in range(2, n + 1):
# dp[i] = dp[i - 2] + dp[i- 1]
# return dp[n]
___ climbStairs n
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
2a9667d79338cfcbe2d9bf465b8957a4e4ab8d3a | 1cf7c11711303fc21c37fc091b2eefc30bc489c6 | /moderate/number_pairs.py | 88dee243e7fcc46404c1bcfac8a89aefbebe0783 | [] | no_license | yamaton/codeeval | 1c68b23459b6329c42e046f07bd19b4cecafb95f | eacd28106f76364d44fae9f6a4c2860711ea0dcc | refs/heads/master | 2020-04-15T05:53:11.929711 | 2013-09-06T18:48:29 | 2013-09-06T18:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | #!/usr/bin/env python
# encoding: utf-8
"""
number_pairs.py
Created by Yamato Matsuoka on 2012-07-17.
Description:
You are given a sorted array of positive integers and a number 'X'. Print out all pairs of numbers whose sum is equal to X. Print out only unique pairs and the pairs should be in ascending order
Input ... | [
"yamaton@gmail.com"
] | yamaton@gmail.com |
44aed721687e6b4f500f365adb3852fb95f20ddd | 5c465756e28ae021e7afac1dddbc6e11ec8c00ec | /setup.py | d405b626d8f809bb3cd8e9d499465ec7b331ae22 | [
"Apache-2.0"
] | permissive | waynew/pop | f9ffca2b98993ba1c6ddc95fdc66599c1eedfeff | d3b6128ada34ee31b16b9c6e1c600b3e059f4e31 | refs/heads/master | 2020-05-25T15:35:29.859674 | 2019-05-21T16:10:27 | 2019-05-21T16:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Import python libs
import os
import sys
import shutil
from setuptools import setup, Command
NAME = 'pop'
DESC = ('The Plugin Oriented Programming System')
# Version info -- read without importing
_locals = {}
with open('pop/version.py') as fp:
exec(fp.read(), None... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
9964c1a1e4d067a3b5d76587f7a21ab1eeb8d4e8 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /calendar_sms/models/calendar.py | 26a857dd032ad94c770a8f3a0e11e031594e3c22 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
import logging
from odoo import api, fields, models, _
_logger = logging.getLogger(__name__)
class CalendarEvent(models.Model):
_inherit = 'calendar.event'
def _get_default_sms_recipients(self):
""... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
7ac9b3d42f3f46d4e3db59414eb2c88a9ebeaff6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03137/s045740522.py | 2b93ba5faee17d63aa69bda2f022a1c7348ac45b | [] | 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 | 325 | py | import math
import sys
import collections
import bisect
def main():
n, m = map(int, input().split())
x = sorted(list(map(int, input().split())))
if m <= n:
print(0)
return
y = sorted([x[i + 1] - x[i] for i in range(m - 1)])
print(sum(y[0:(m-n)]))
if __name__ == '__main__':
ma... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
95eee9b7c9240054cd6ba3174b1915da8273f6bc | 9242319ca7796c6a3b18e760ddbf8290944d4b49 | /flock/frontend/amp.py | 933a74893288d7941edc8e3bc315d4091639d9e7 | [
"MIT"
] | permissive | MainRo/python-flock | 79cfd7ce4edab40439c556b6621768438868d16c | e1faa78d6aba374493336651848daadad82387a8 | refs/heads/master | 2021-01-10T19:16:52.907538 | 2015-11-18T21:15:38 | 2015-11-18T21:15:38 | 29,210,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import logging
import json
from twisted.internet import reactor
from twisted.internet.protocol import Factory
from twisted.protocols import amp
from twisted.internet.endpoints import TCP4ServerEndpoint
from flock.router import Router
from flock.message import FlockMessage
# client API
class MessageReceived(amp.Comman... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
6880c878362b0b48c05526b91b9d4518b7206f2b | 2ee29ea10cc2ad5577a2f8e7ed0fa1351d451a52 | /django/bin/tox | 19cb4c36ac6406b19087eb92ec3ba72ce35c0bf1 | [] | no_license | guille1194/votbit2 | 6d1c792f4f43cdea25e31a8fbb8e9f1e20d9670b | 63497d17a249c082730f39cc54caf0e2c1d4dc3c | refs/heads/master | 2021-04-22T13:26:22.635235 | 2016-12-03T21:16:26 | 2016-12-03T21:16:26 | 75,500,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/guillermo/Documentos/votbit2/django/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tox import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"guille1194@gmail.com"
] | guille1194@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.