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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6c397210c3c43694634948dde611f39cc54f806 | 81c9b565aef4d6538462854f82e90bf6c864921c | /buildsln.py | 8f2a5326f147230aa8c4475d7089d55f0364c928 | [] | no_license | 510908220/build-related-scripts | 60735bec3332e9ea711975cf938eab3f3963e33e | 3bca11989461bb1fed7098c0cc2f4c5700e21c61 | refs/heads/master | 2021-01-15T10:53:55.721889 | 2015-08-21T05:17:27 | 2015-08-21T05:17:27 | 41,128,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import time
import sys
import subprocess
import config
from win32pipe import PeekNamedPipe
from msvcrt import get_osfhandle
from util import report
def _get_devenv():
devenv = os.path.join(os.environ.get('VS120COMNTOOLS'), r'..\IDE\devenv.com')
if not os.path.exi... | [
"510908220@qq.com"
] | 510908220@qq.com |
badd4c235882aa6fb7b1979a7f73a6ea189f392b | 743d58c35caf21568feddc86946bbee340174721 | /leet_code/labuladong/math/p0319_Bulb_Switcher.py | 3eac108970aa101af519cb1c891e9284c762ea51 | [] | no_license | klgentle/lc_python | 38009ed82614c8f21ca9af6e3779a2e0898af09f | aabe56e690b40e4b93afef99bfe46d9a06e20cea | refs/heads/master | 2022-12-02T05:23:55.585659 | 2022-08-07T12:11:38 | 2022-08-07T12:11:38 | 176,750,473 | 2 | 0 | null | 2022-11-15T23:42:06 | 2019-03-20T14:21:51 | Python | UTF-8 | Python | false | false | 900 | py | """
319. Bulb Switcher
Medium
There are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb.
On the third round, you toggle every third bulb (turning on if it's off or turning off if it's on). For the ith round, you toggle every i bulb. For the nth round, you only togg... | [
"klgentle@sina.com"
] | klgentle@sina.com |
00e2fa74801265ae43cd5ce21a46fd458c742c71 | 657c80336bce1cc6158cd349ce208c5e680a4d0d | /tools/genmpkg/bdist_mpkg_pyglet/templates.py | c85f60b0560fbd6d6c34bbb55469c9609cf6ded8 | [
"BSD-3-Clause",
"MIT"
] | permissive | Xinmudotmoe/pyglet | b37628618647bf3b1e3d7db28202a5e14c60450c | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | refs/heads/master | 2021-05-29T22:05:40.676643 | 2015-10-24T05:55:49 | 2015-10-24T05:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | InstallationCheck = dict(
postjaguar=(
"#!/bin/sh\nexit 112\n",
'"16" = "This package requires Mac OS X 10.3 or later";',
),
prepanther=("""#!/bin/sh
#
# We use IFRequirementDicts anyway and "parse" it to find where expect
# Python to be. It's remotely possible that Python is not installed
... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
69782dc6573bd3f5329f345d127803708a6980ca | 253ad9984b597b0b8a922f8755f8ec2de8e41727 | /mrp_scrap_reason/wizard/scrap.py | a511815d8e3cee31e8bae84f0cd7be730c83cc13 | [] | no_license | lammh/julius-openobject-addons | 8ed6eb5a8a0ddf86874149bd4f90443d8c4729bb | 6a2a91e831c8e823d5d7b284d08fd889ea291f85 | refs/heads/master | 2020-12-26T16:48:55.033095 | 2016-07-27T13:10:52 | 2016-07-27T13:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014-Today Julius Network Solutions SARL <contact@julius.fr>
#
# This program is free software: you can redistribute it and/or modify
# it unde... | [
"mathieu@julius.fr"
] | mathieu@julius.fr |
b22d8bad9a7f603cdf6e351dfb721a9f17604d79 | 2b776f6420af6400120bf08c801159870dbd1ec6 | /pickingduplicate.py | 602be9fbab3e1c5bc6b4ddac68cce71ad25483d1 | [] | no_license | ManojDjs/wescraping | b7dcd0423fa5ba44f38b332afc4540e49d309b75 | fa3ae90f35e07b0ff06037673c50e47e42633900 | refs/heads/master | 2022-01-31T23:19:53.311009 | 2019-07-22T14:51:13 | 2019-07-22T14:51:13 | 191,214,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from pymongo import MongoClient
import requests
from pymongo import MongoClient
from flask import Flask, redirect, url_for, request
from requests.utils import requote_uri
import time
start_time = time.time()
app = Flask(__name__)
import re
if (1 == 1):
dbname1 = "stage_jobs"
mongoUrl1 = 'mongodb://' ... | [
"noreply@github.com"
] | ManojDjs.noreply@github.com |
7cebf8c0a961b374d8155ae85a46154c15dfe2e4 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fmQ9QvPBWL7N9hSkq_13.py | 980b3b2be99d984c65d3af99c99316222ebe6e2f | [] | 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 | 530 | py | """
Write a function that takes a string, and returns a new string with any
duplicate _consecutive_ letters removed.
### Examples
unstretch("ppoeemm") ➞ "poem"
unstretch("wiiiinnnnd") ➞ "wind"
unstretch("ttiiitllleeee") ➞ "title"
unstretch("cccccaaarrrbbonnnnn") ➞ "carbon"
### Notes... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c501103f60919e795d65426a82fe315613c23458 | dde1cf596cf5969812ecda999828baa9c73e788d | /test/test_smb_settings_share_extended.py | b6eebbd2843f4e1b5ad75e030a4d025f9b6068e6 | [] | 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 | 978 | 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 |
4fc3c6aecba15860f79fd7363db7abdc57cfd574 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_1105.py | 2c6996c585412d771fc5e73288a27560d4c7325a | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:小光
#refer:http://www.wooyun.org/bugs/wooyun-2010-0116544
def assign(service, arg):
if service == "taodi":
return True, arg
def audit(arg):
url = '/... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
124ec089349c98da4f181f2082ad04eec4063560 | ddd8d0d013e6dcd855cee2b35c5dc068a1c750d4 | /lncrawl/sources/foxteller.py | 4c11e8764c2b0adb01881f9e6d680397da3538c6 | [
"Apache-2.0"
] | permissive | k4noe/lightnovel-crawler | db9f601ed5263e61efab6e1cb5494229475722f6 | 188ac8ae77af427ee17213d8b74ea13066a46adb | refs/heads/master | 2023-06-04T20:13:24.519798 | 2021-05-19T09:21:50 | 2021-05-19T09:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | # -*- coding: utf-8 -*-
import json
import base64
import logging
import re
from ..utils.cleaner import cleanup_text
from ..utils.crawler import Crawler
logger = logging.getLogger(__name__)
search_url = 'https://www.foxteller.com/search'
chapter_aux_url = 'https://www.foxteller.com/aux_dem'
class FoxtellerCrawler(Cr... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
6198d4e984c0c17b391c5888b2784f3e0569d55e | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/fba4f831bc75369c975a95c9b7774e9e89f8a2f9-<__init__>-bug.py | c635eb3cf4dbc043c817800e000185af03a273a7 | [] | 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 | 526 | py | def __init__(self, installed_apps=()):
if ((installed_apps is None) and hasattr(sys.modules[__name__], 'apps')):
raise RuntimeError('You must supply an installed_apps argument.')
self.all_models = defaultdict(OrderedDict)
self.app_configs = OrderedDict()
self.stored_app_configs = []
self.app... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6d8314b95afa2479567e12031b9bd7a9553101cc | bc148b29ec60128d2d14aa42cf8236946e9b1580 | /2d_array_hackerranck/2d_array.py | f1f41b176e61d6d73e01b1201bc3e2c9e1b260af | [] | no_license | aliensmart/week7_day2 | 6a9b3e7b890bdf94ddb325baacac0d3d87f6fd9b | 3f48dcd97f48bb57cc8968f35fe17b2e9d6bbe77 | refs/heads/master | 2020-08-04T15:48:17.312330 | 2019-10-01T20:13:28 | 2019-10-01T20:13:28 | 212,190,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | arr = [[1,1,1,0,0,0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]
def hourglassSum(arr):
new_list = []
for i in range(len(arr) - 2):
for j in range(len(arr[i]) - 2):
total = arr[i][j] + arr[i][j+1] + arr[i][j+2] + arr[i+1][j+1] + arr[i... | [
"kaoua17@gmail.com"
] | kaoua17@gmail.com |
21d4f9248dbbefe231cce205ae67b2e424bc0d0a | 2dd5e62eddf7679d195efcad62d3b61c8617c5b7 | /practice/Practice_6/Practice_6_solutions (2)/merging_strings.py | 4f20fb834a9880ce50b5ac9d58533121125ca980 | [] | no_license | unswit/COMP9021_2 | 03b38314a4723a4eafbb758954bc9f78f1556b0e | 713f2c3b31a2e5081e0602a19660056eb71b1144 | refs/heads/master | 2021-04-24T11:53:07.760756 | 2020-03-25T23:47:03 | 2020-03-25T23:47:03 | 250,114,841 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | # COMP9021 Practice 6 - Solutions
'''
Say that two strings s_1 and s_2 can be merged into a third string s_3
if s_3 is obtained from s_1 by inserting arbitrarily in s_1 the characters in s_2,
respecting their order. For instance, the two strings ab and cd can be merged
into abcd, or cabd, or cdab, or acbd, or acdb...... | [
"55487375+ahcjdxzd@users.noreply.github.com"
] | 55487375+ahcjdxzd@users.noreply.github.com |
2ea2416ee16be16da064e7b19f1b589a228e55f5 | c27622fe757f2a8e91151f2c96aafbcffa225774 | /setup.py | a5e6e9b9297afc89e56dfc005e354e07c32ec691 | [
"MIT"
] | permissive | rasjones/ongeza | 1e4117df6bb6c214b486058b5890448c6ee11be2 | fa4549ecd4086bd436bc94787115002182e7ccbb | refs/heads/master | 2020-12-03T00:43:49.917282 | 2016-06-06T14:36:17 | 2016-06-06T14:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (
absolute_import, division, print_function, with_statement,
unicode_literals)
import sys
from os import path as p
from builtins import *
import ongeza as module
import pkutils
try:
from setuptools import setup, find_packages
except I... | [
"reubano@gmail.com"
] | reubano@gmail.com |
1a491ba79d078305d7797265093d3b2739f57065 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/tooltips/battle_pass_points_view_model.py | 21a112aceaf3e0235836860041ca374cdfaf8761 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,254 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/tooltips/battle_pass_points_view_model.py
from frameworks.wulf import ViewModel
from gui.impl.wrappers.user_list_model import UserListModel
from gui.impl.gen.view_models.views.lobby.b... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
410f4c98072f476e709f93aa02f80e6f7bd000ea | 641c9eaa5c1df74e6edfb79628c9f18b6d5d2b91 | /cloudmersive_validate_api_client/models/xxe_detection_request_item.py | 555a2039b26b5b8c1d376cc659065cc29bffee00 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Validate | d2d9d0ceb3fce350fd0d86466bc8b5e153a5d478 | 274d38d4a849650402f3bb931799ab82502b4306 | refs/heads/master | 2023-06-10T04:01:35.332273 | 2023-06-03T22:34:47 | 2023-06-03T22:34:47 | 138,435,277 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,986 | py | # coding: utf-8
"""
validateapi
The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501
OpenAPI spec version: v1
Ge... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
d0671636d25e06c9072f67e280cceb203e1ddf0c | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/filesystem/Explorer.py | 0c18d24cd80fce90d462fa33c5aaba75c98df834 | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 3,236 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~... | [
"zli@netflix.com"
] | zli@netflix.com |
80c0e34c94d9dd2a77d3bad4393d137877d609c0 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=11/sched.py | ea6c79e09423c41e6dac4cbf083fc3b953959ba7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | -S 0 -X RUN -Q 0 -L 2 116 400
-S 1 -X RUN -Q 0 -L 2 108 400
-S 1 -X RUN -Q 0 -L 2 89 400
-S 0 -X RUN -Q 0 -L 2 66 400
-S 0 -X RUN -Q 0 -L 2 66 250
-S 3 -X RUN -Q 1 -L 1 63 400
-S 2 -X RUN -Q 1 -L 1 53 400
-S 2 -X RUN -Q 1 -L 1 51 200
-S 2 -X RUN -Q 1 -L 1 49 250
-S 2 -X RUN -Q 1 -L... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
de177327c81d38fd41ffcde38147f684a2b5ff0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02975/s331672457.py | cb23e59cdf3b1c516d580dca815ac5533e657796 | [] | 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 | 915 | py | import bisect,collections,copy,itertools,math,string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def main():
n = I()
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
07dd0192abcfc07cc57e12e4ee7a6abac6504755 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /notifications/common/formatters/newMail.py | 10917783bd79e7270fc0dc79f547c82eb84a0b67 | [] | 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,096 | py | #Embedded file name: notifications/common/formatters\newMail.py
import localization
from notifications.common.formatters.baseFormatter import BaseNotificationFormatter
class NewMailFormatter(BaseNotificationFormatter):
def __init__(self):
self.subjectLabel = 'UI/Mail/NewMailHeader'
self.subtextLab... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
e88a31d868a25518b05df21fcbfb0b0c363eb7e0 | 9f9cfe33df47897c3bd9eae7cb1647e8bd1fbbb7 | /广度优先搜索/LeetCode_102.py | 4873c80158c49fe158b4c76a192e1e7244822821 | [] | no_license | maxzxc0110/Algorithm | fb3c8e1a813b486357ebf3cb2b4bf9321eed9ebd | eed69740f2eb51f3a9caf69029b3a340555e6037 | refs/heads/master | 2022-12-30T17:55:08.693625 | 2020-10-25T04:58:28 | 2020-10-25T04:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# 102. 二叉树的层序遍历 难度:中等
# 给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。
# 示例:
# 二叉树:[3,9,20,null,null,15,7],
# 3
# / \
# 9 20
# / \
# 15 7
# 返回其层次遍历结果:
# [
# [3],
# [9,20],
# [15,7]
# ]
"""
# Definition for a Node.
class Node(object):
def _... | [
"273206894@qq.com"
] | 273206894@qq.com |
9a84175367c5373a74c2433384000573b46d4033 | 21b39d50e4df56ea01453001845d1580729af1df | /jdcloud_sdk/services/vpc/apis/ModifyRouteTableRequest.py | 633ffe09704c3d1f5c2634f58c8471743b127353 | [
"Apache-2.0"
] | permissive | Tanc009/jdcloud-sdk-python | ef46eac7731aa8a1839b1fc1efd93249b7a977f0 | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | refs/heads/master | 2021-08-09T14:49:16.177709 | 2021-06-25T02:38:41 | 2021-06-25T02:38:41 | 141,714,695 | 0 | 0 | Apache-2.0 | 2018-07-20T13:21:17 | 2018-07-20T13:21:16 | null | UTF-8 | Python | false | false | 1,897 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
d2dcfc77c0ffdaa6241cc147511849e15f4d45e9 | eee5fc5e9e1bd9ababc9cf8ccb8add19c9219ca3 | /ABC/180/d.py | 7f4f7bb2d821e4a2443ae7f55895e385666d0f7e | [] | no_license | matatabinoneko/Atcoder | 31aa0114bde28ab1cf528feb86d1e70d54622d84 | 07cc54894b5bcf9bcb43e57a67f2a0cbb2714867 | refs/heads/master | 2021-11-13T04:39:13.824438 | 2021-10-31T01:42:52 | 2021-10-31T01:42:52 | 196,823,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def main():
x, y, a, b = map(int, input().split())
keikenti = 0
while x*a < b and x*a < y:
x *= a
keikenti += 1
keikenti += (y-x-1)//b
print(keikenti)
return
if __name__ == '__main__':
main()
| [
"matatabinoneko0721@gmail.com"
] | matatabinoneko0721@gmail.com |
0226f144b3e6b5a5a0ce1eb6ce6d8d67dc51397c | 255f76a940cc104fc654df8501793ba9830bb708 | /apps/users/models.py | 7a45c037449b195873a931d8746e5ebeec8c4150 | [] | no_license | Albino1995/KeepMoving_Backend | a7baac2e8b3c5f16060c73270b84c432bf03c2e1 | 77432aedc88108b7f4f5fe774b4ed827495f1d09 | refs/heads/master | 2018-10-15T07:05:31.197431 | 2018-07-12T03:33:09 | 2018-07-12T03:33:09 | 108,217,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
"""
用户
继承AbstractUser扩展用户模型:
"""
name = models.CharField(max_length=30, null=True, blank=True, verbose_name="姓名")
gender ... | [
"763968024@qq.com"
] | 763968024@qq.com |
df4e9860de581069de27e5749c69e91b6009c479 | a6c27f6fa094139000439c9bf8f555722acd0594 | /tile/test_model.py | 9ebc075ab370cf8dc89051cb53197eb7c0597500 | [] | no_license | horacepan/SnFFT | 212cea829fc45fdb145d3487cf8d5fdf880db75d | 73e322686fc1ca7d219cc171b624ff4a943b6b01 | refs/heads/master | 2021-06-29T18:35:31.738887 | 2020-10-06T20:39:22 | 2020-10-06T20:39:22 | 158,967,803 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | import os
import argparse
import numpy as np
from mlp_main import mlp_get_action
from tile_env import *
from tile_irrep_env import *
import torch
import pandas as pd
from tile_utils import get_true_df, tup_to_str
from main import get_action
#TRUE_DISTS = get_true_df()
def eval_model(model, env, trials, max_iters, get_... | [
"hopan@uchicago.edu"
] | hopan@uchicago.edu |
115a8c644061cbf620d67883dff2e693efc46ea6 | 020c99198dd1560b4e85de28b5bbe18534f62b82 | /suspect/dag/expressions.py | 9b7acf5a00804730593a41046352d93d47c45b81 | [
"Apache-2.0"
] | permissive | cog-imperial/suspect | 7b6f73a8f040f09198797553e4841542fa95e07f | 4a0e04d1be2f400416d508e632d81077a2b212ab | refs/heads/master | 2022-07-21T13:07:25.100906 | 2022-07-14T10:31:10 | 2022-07-14T10:31:10 | 127,118,649 | 23 | 4 | Apache-2.0 | 2022-07-14T10:31:11 | 2018-03-28T09:42:37 | Python | UTF-8 | Python | false | false | 4,006 | py | # Copyright 2017 Francesco Ceccon
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"francesco@ceccon.me"
] | francesco@ceccon.me |
a32e58c073384dd2216e138b9888d92ccf4629dc | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res/scripts/client/messenger/gui/scaleform/channels/xmpp/factories.py | 49db26d053c6eeb5edaeb2a91d0ec2bbd283f878 | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,747 | py | # 2016.10.11 22:14:49 Střední Evropa (letní čas)
# Embedded file name: scripts/client/messenger/gui/Scaleform/channels/xmpp/factories.py
from messenger.gui.Scaleform.channels.xmpp import lobby_controllers
from messenger.gui.interfaces import IControllerFactory
from messenger.proto.xmpp import find_criteria
from messeng... | [
"info@webium.sk"
] | info@webium.sk |
7793e920d01c199e58a67caee110289bc1dcb5ed | 28225a61f2fc33e4f6d56a1941a99301489c0f1e | /architectures/VGG16/Nets.py | 4831fcf8e08dbf945aa33d762dd1bb3cf7e9f1cd | [] | no_license | sailfish009/pytorchTutorialRepo | 97cb4368b6ac22bd678965d351196b47d52970e1 | 17d67e64555d2b219d7d53de6a7bfda4172b809b | refs/heads/master | 2023-03-08T13:03:57.244087 | 2021-02-23T11:26:19 | 2021-02-23T11:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self, num_classes):
super(Net, self).__init__()
self.conv1 = self.conv_block(2, 3, 64)
self.conv2 = self.conv_block(2, 64, 128)
self.conv3 = self.conv_block(3, 128, 256)
sel... | [
"msubhaditya@gmail.com"
] | msubhaditya@gmail.com |
4463c94d51cb47b1db7539ce71d595dd0122e59c | 577f03954ec69ed82eaea32c62c8eba9ba6a01c1 | /py/testdir_single_jvm/test_GLM2_gamma_fail1.py | 77f51e83f49c13af7fa89754fa4caf67f04f6e52 | [
"Apache-2.0"
] | permissive | ledell/h2o | 21032d784a1a4bb3fe8b67c9299f49c25da8146e | 34e271760b70fe6f384e106d84f18c7f0adb8210 | refs/heads/master | 2020-02-26T13:53:01.395087 | 2014-12-29T04:14:29 | 2014-12-29T04:14:29 | 24,823,632 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | import unittest, random, sys, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_glm, h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
global SEED
SEED = h2o.setup_random_seed(... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
dafd0a8c3fb68282ac352159cee85345469e9f3e | a89c739589d0ee29ff6fff1a1508a426dfe4489a | /basics/kmp.py | 92e94906fb88c7a240a5d106b961dbe7dc35318c | [] | no_license | macabdul9/python-learning | 107e3533998e3f373b804d6b59152fc41938604b | f0d5e0e37cbed3d846684be80f0f92e5cbb9ceb5 | refs/heads/master | 2020-04-27T04:31:47.907486 | 2020-03-05T16:48:53 | 2020-03-05T16:48:53 | 174,057,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | """
@author : macab (macab@debian)
@file : kmp
@created : Friday Apr 12, 2019 23:45:53 IST
"""
# knuth maorris pattern matching algorithm
| [
"abdulwaheed1513@gmail.com"
] | abdulwaheed1513@gmail.com |
29945aedc3ac1d2390b7350873e020d021bc3e42 | 97afa34a118378827e579de9ab3ceced71488dfa | /dedupsqlfs/db/mysql/table/inode.py | cdf22c9ae26a61f55720de8df7df98d17ba36aed | [
"MIT"
] | permissive | himadrisd/dedupsqlfs | 4d07dbd4f8f0294ce5352777525085cf80fc7c99 | 9a0e5ee3e2bfd1bc25f2e604d4f1fb584c43bffc | refs/heads/master | 2020-04-24T14:52:30.804688 | 2018-06-09T06:38:37 | 2018-06-09T06:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | # -*- coding: utf8 -*-
__author__ = 'sergey'
from dedupsqlfs.db.mysql.table import Table
class TableInode( Table ):
_table_name = "inode"
def create( self ):
cur = self.getCursor()
# Create table
cur.execute(
"CREATE TABLE IF NOT EXISTS `%s` (" % self.getName()+
... | [
"sergey.dryabzhinsky@gmail.com"
] | sergey.dryabzhinsky@gmail.com |
c56ca6fb2e4f0f021cdb209e05ab6bf54303477f | e238db1ae3e641d84af17e9cf6a881eb43b20039 | /hunt79.py | 9f280502fdd2318919b2839a7f43d818f9621c18 | [] | no_license | RevathiRathi/Revat | 1aa478f51b147e7b044d7519f54938eda0149619 | 792757fb56243846e3049889bf502014c62d658e | refs/heads/master | 2020-04-15T05:01:36.873956 | 2019-07-18T13:40:34 | 2019-07-18T13:40:34 | 164,406,245 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #r
n=int(input())
l=[int(x) for x in input().split()]
while n!=0:
if n%2==0:
a=int(n/2)
b=a-1
avg=(l[a]+l[b])//2
print(avg)
l.remove(l[a])
l.remove(l[b])
n=n-2
else:
a=(n//2)
print(l[a])
l.remove(l[a])
n=n-1
| [
"noreply@github.com"
] | RevathiRathi.noreply@github.com |
670640ebb39fe6e5c7e48746af06052f500c8ec6 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/routing_system/interface/ve/ipv6/intf_ipv6_router_isis/__init__.py | d6acb53e9badc4ac27b1659566cfceda0d58c558 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,607 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
bc99017dabe80700663715344d76126a076dd3e1 | 66aa20ce14ad45b845018d2cb50758fce0e58c95 | /beast/web/migrations/0008_auto_20191029_1712.py | a509a3e8c358ed213611b3cbd642f014dc73e2d2 | [] | no_license | lopersdeve01/friendly-broccoli | e069648793ab005876ff60b3458e96af27a2d5f3 | 97eb4c55996b7a0fef193118ecabe5f07b2279d3 | refs/heads/master | 2022-12-14T02:26:42.187871 | 2019-11-25T12:49:31 | 2019-11-25T12:49:31 | 224,327,946 | 0 | 0 | null | 2022-12-08T06:58:26 | 2019-11-27T02:33:41 | Python | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2019-10-29 09:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0007_auto_20191029_1653'),
]
operations = [... | [
"1185272824@qq.com"
] | 1185272824@qq.com |
a21a7aff2a16baaed2d88df0d0d3fe50ef7a5f43 | 6b0d0aec9704d70663fe0edc2a6624a689cc081e | /src/core/tacotron/model_symbols.py | 4fdc80579df30c0c50c2e7cad90ae04b4444ed3c | [
"BSD-3-Clause"
] | permissive | stefantaubert/tacotron2 | 086d81b38b2c49655df6b0d8d63c633e7531399a | 8475f014391c5066cfe0b92b6c74568639be5e79 | refs/heads/master | 2023-03-29T21:07:02.266973 | 2020-11-25T09:57:40 | 2020-11-25T09:57:40 | 267,858,113 | 5 | 0 | BSD-3-Clause | 2020-05-29T12:56:56 | 2020-05-29T12:56:55 | null | UTF-8 | Python | false | false | 2,207 | py | from typing import List
from src.core.common.globals import PADDING_SYMBOL
SHARED_SYMBOLS = [PADDING_SYMBOL]
SHARED_SYMBOLS_COUNT = len(SHARED_SYMBOLS)
def get_model_symbol_ids(symbol_ids: List[int], accent_ids: List[int], n_symbols: int,
accents_use_own_symbols: bool,
... | [
"stefan.taubert@posteo.de"
] | stefan.taubert@posteo.de |
542b0443c24e7a21c7a94580b74f7dbb2c9f17ad | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /csv__examples/reader_csv__as_dict__DictReader.py | 3710c8ef0a25f842459e81a6c87b630f93dcc570 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import csv
with open('input.csv') as f:
csv_reader = csv.DictReader(f, delimiter=";")
for row in csv_reader:
print(row['name'], row['address'])
| [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
81923adbfa5a41caaf6b08b25befe002ec56526d | 62fe26b309b402d0c304624bf63a8e9b9c025148 | /backend/src/main/migrations/0004_auto_20160529_1410.py | dd606f87d797b8da3aa080f65d9836d2b3df1186 | [] | no_license | brmley/fuchtard | 20c9c8229debaf54897faabffa43d87bff1f0995 | 833bcb9655fff9ff733f798d19561d9b7e6c476c | refs/heads/master | 2021-09-06T15:13:13.317894 | 2018-02-07T22:08:54 | 2018-02-07T22:08:54 | 120,173,994 | 0 | 0 | null | 2018-02-04T10:12:36 | 2018-02-04T10:12:35 | null | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-29 07:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20160529_1355'),
]
operations = [
migrations.AlterField(
... | [
"roboxv@gmail.com"
] | roboxv@gmail.com |
ce0ff6cdd793dc9ad75fb94cc82d9a505df0ccf7 | e56b199860185951509bb4133b38175a38a07075 | /src/web/modules/post/controllers/history/control.py | 7b4e40c6e7ba983f408602bfcf3f46fe299f7364 | [
"MIT"
] | permissive | unkyulee/elastic-cms | 1ec9ca8cbf55bf0c194db7add8d8358a36088483 | 3ccf4476c3523d4fefc0d8d9dee0196815b81489 | refs/heads/master | 2020-09-10T03:20:33.813247 | 2018-03-15T10:31:17 | 2018-03-15T10:31:17 | 66,565,725 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import importlib
def get(p):
p['mode'] = 'list'
if len(p['nav']) > 3: p['mode'] = p['nav'][3]
if not p['operation']: p['operation'] = 'post'
path = "web.modules.post.controllers.history.{}".format(p['mode'])
control = importlib.import_module(path)
return control.get(p)
| [
"unkyulee@gmail.com"
] | unkyulee@gmail.com |
a8e5c0ca24eef7e5de94bc50e735e24c31c45c82 | 9bc006e71393c5338bd77bbf12c2946dbfaf2d5b | /longest_turbulent_subarray.py | fa69d12b63226b6da2b7557c43d81750fb19d80b | [] | no_license | aroraakshit/coding_prep | 2d883058ef81317fba0c101fac3da37cd6ecd9ca | aac41ddd2ec5f6e5c0f46659696ed5b67769bde2 | refs/heads/master | 2021-07-09T18:28:26.706576 | 2020-07-08T03:07:26 | 2020-07-08T03:07:26 | 163,704,385 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | class Solution: # 152ms, faster than 87% solutions
def maxTurbulenceSize(self, lst: List[int]) -> int:
if not lst:
return 0
elif len(lst) == 1:
return 1
elif len(lst) == 2:
return +(lst[0] != lst[1]) + 1
prev_sign = 0
l = None
... | [
"akshit.arora@colorado.edu"
] | akshit.arora@colorado.edu |
7bd677fe3953f746272e5e0090e130e12f4f2d3e | f5c72f8526085e45eddcad7a74127bd487514101 | /request_demo.py | c39d7c0c509c680446970154eeef3164f433b4be | [] | no_license | Taomercy/PythonLab | 026ff1828e14ae31b56731159253f8e1c89bfc70 | 0ae5bc0ec9a7eff99c7052a927dbd467f02ef727 | refs/heads/master | 2023-06-24T00:01:44.109063 | 2023-06-08T09:14:01 | 2023-06-08T09:14:01 | 157,644,026 | 0 | 0 | null | 2023-04-01T14:34:45 | 2018-11-15T03:02:32 | JavaScript | UTF-8 | Python | false | false | 420 | py | # import requests
#
# response = requests.get("http://www.baidu.com/")
# print(response.text)
class Animal(object):
def drinking(self):
print('animal drinking')
def eating(self, food):
print('animal eating')
class Cat(Animal):
def drinking(self):
super().drinking()
def ea... | [
"taomercy@qq.com"
] | taomercy@qq.com |
2821b6751f2832175ac71726542e69ab688ce3e8 | 6398ec7c09a3e3e8ac7e85128926ebd0d49c96fd | /matminer/featurizers/tests/test_base.py | ef5dbeda9eb408a558cd3b9892c5552d5161ea2d | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | ahzeeshan/matminer | a5c2bd87dc519d17d8ef269291f4643f64669c74 | 03587272a6eeec94812ac616cfe51ca033a3da05 | refs/heads/master | 2021-05-14T02:52:53.943852 | 2018-01-05T23:23:25 | 2018-01-05T23:23:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | from __future__ import unicode_literals, division, print_function
import unittest
import pandas as pd
import numpy as np
from pymatgen.util.testing import PymatgenTest
from matminer.featurizers.base import BaseFeaturizer
class SingleFeaturizer(BaseFeaturizer):
def feature_labels(self):
return ['y']
... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
006ffac831da4fd91afe278994a1e80cf9a83b09 | 7e517fd0d350d789d01910c78c73d481e2bff0ee | /Data Mining/DSE Live Chart/400LinesTest1.py | caecd3187e31e28e5a6fc09f4dc66fd286fddc1c | [] | no_license | ScarletMcLearn/DataScience | 9cbebd981bdb0f1fe23990347eaec4cf9ce933c9 | 6886a9ebf2752a6f89d4e0d86cf8a5853e0f02cd | refs/heads/master | 2023-08-30T22:12:33.384497 | 2023-07-27T18:21:56 | 2023-07-27T18:21:56 | 81,658,203 | 1 | 1 | null | 2023-08-30T00:03:32 | 2017-02-11T14:29:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,764 | py | from bokeh.io import curdoc
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from bokeh.layouts import row
from random import randint
from functools import partial
import pandas as pd
import os
# Variables for saving/loading data
save_to_disk = False
load_from_disk = False
# Chunk size for ... | [
"noreply@github.com"
] | ScarletMcLearn.noreply@github.com |
90c466cad7b8061bf88ac7aa1fc359fd1cb503a5 | ea5e3f417a6d3f04cd9a41a072f4c26c0b3626c2 | /autosklearn/pipeline/components/regression/adaboost.py | c6b06e99c852d7bb1841e36c8b71ce5280e6dd2a | [
"BSD-3-Clause"
] | permissive | ypeleg/auto-sklearn | 34f5ed366f6c7e3af3a4f4a873e0776fed5f95dc | 39974ba42c18506b1abd7b7efc51d58ba6258959 | refs/heads/master | 2020-12-28T19:33:38.471874 | 2015-12-22T16:46:59 | 2015-12-22T16:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | import numpy as np
from HPOlibConfigSpace.configuration_space import ConfigurationSpace
from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \
UniformIntegerHyperparameter, CategoricalHyperparameter
from autosklearn.pipeline.components.base import AutoSklearnRegressionAlgorithm
from autosklea... | [
"feurerm@informatik.uni-freiburg.de"
] | feurerm@informatik.uni-freiburg.de |
ae854b836cb0df8d3ca33ff4d878bbb81f3ea999 | a48aaa4b69a120a059e3e59faed9a86e21a4295d | /1_prologue/utility.py | e5c46ab119f04411428fc6e9715746189510f402 | [] | no_license | ryosuke071111/tensorflow_practice | 4dcc916cfc36387af689c94ed9490eefad97b1e7 | 505190ae31004e549512c493a0ce9b4441f33c51 | refs/heads/master | 2020-03-27T22:03:29.524409 | 2018-09-03T12:17:35 | 2018-09-03T12:17:35 | 147,200,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import tensorflow as tf
from sklearn.preprocessing import StandardScaler
from sklearn.datasets import fetch_california_housing
import numpy as np
#dataset
scaler = StandardScaler()
#-housing_data
housing = fetch_california_housing()
m, n = housing.data.shape
housing_data_plus_bias = np.c_[np.ones((m ,1)),housing.data]... | [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
648d314a47beeeaee42418244f534ab3f00c264a | 821ebcc8eb78013cff80d2569e5c21ab31eff6aa | /checkout/migrations/0001_initial.py | 04c6038e436d0aa76f8d5d856cabd26b431edab2 | [] | no_license | cgpalmer/anddigital | 11fce49cca50958e9d5f1e1361634ae5e199dad3 | deb587baf3db55dc44741fa393a0691d0ac3bca2 | refs/heads/main | 2023-04-16T22:14:03.441104 | 2021-05-04T07:52:38 | 2021-05-04T07:52:38 | 358,403,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | # Generated by Django 3.2 on 2021-05-01 13:09
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('profiles', '0001_initial'),
('products', '0011_alter_product_qr_ret... | [
"cgpalmer91@gmail.com"
] | cgpalmer91@gmail.com |
b2fb4115ba5bbf2556f51192d19495eac436cc4f | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/resources/types/ad_group_bid_modifier.py | dbbc030424db1b6da0f12fa53942ae0a47613447 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 6,403 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
77b206f8ca39707dfa18d1bcb1d8d5ad967fe768 | 2b776f6420af6400120bf08c801159870dbd1ec6 | /raytheonurl.py | 585ae3223f958a1778db31a907b35f3620fd4bf6 | [] | no_license | ManojDjs/wescraping | b7dcd0423fa5ba44f38b332afc4540e49d309b75 | fa3ae90f35e07b0ff06037673c50e47e42633900 | refs/heads/master | 2022-01-31T23:19:53.311009 | 2019-07-22T14:51:13 | 2019-07-22T14:51:13 | 191,214,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | import time
from selenium import webdriver
import pymongo
from selenium.webdriver.common.keys import Keys
from pymongo import MongoClient, DESCENDING
client = MongoClient("mongodb://localhost:27017/basics")
if(client):
print("connected")
db = client.Appcast
collections = db.takeda
options = webdriver.Chro... | [
"noreply@github.com"
] | ManojDjs.noreply@github.com |
6f76a570212404a8586a844f827a13f1e88eca0f | 2f989d067213e7a1e19904d482a8f9c15590804c | /lib/python3.4/site-packages/allauth/socialaccount/providers/google/views.py | 6e5617e7cb4fb8db8756528d1355256315f51768 | [
"MIT"
] | permissive | levabd/smart4-portal | beb1cf8847134fdf169ab01c38eed7e874c66473 | 2c18ba593ce7e9a1e17c3559e6343a14a13ab88c | refs/heads/master | 2023-02-18T05:49:40.612697 | 2022-08-02T09:35:34 | 2022-08-02T09:35:34 | 116,001,098 | 0 | 1 | MIT | 2023-02-15T21:34:01 | 2018-01-02T10:00:07 | Roff | UTF-8 | Python | false | false | 1,145 | py | import requests
from allauth.socialaccount.providers.oauth2.views import (OAuth2Adapter,
OAuth2LoginView,
OAuth2CallbackView)
from .provider import GoogleProvider
class GoogleOAuth2Adapter(OAuth2Adapt... | [
"levabd@gmail.com"
] | levabd@gmail.com |
ecd0764085e594bf2fedf06e437b3df4ff1debc5 | 2bcc6c45a28251dcde72bb8b003b5592350dc208 | /exams/views/get_exams.py | f2faa39c0e3d8dafd266759b919bc51403d6cc63 | [] | no_license | amanjhurani/university_dost | 153d1a245df4338be60df3e9980e0238408e40ad | 41f6119c88d36f0153fbf1a5be1913e2c45d9751 | refs/heads/master | 2021-10-08T22:23:42.252577 | 2018-12-18T11:22:10 | 2018-12-18T11:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from django.http import JsonResponse, HttpResponse
from exams.models import Exam
def get_exams(request):
"""Handler to return JsonResponse of available exams"""
if request.is_ajax():
subject_id = request.POST.get('si')
if Exam.objects.filter(subject_id=subject_id).exists():
exams =... | [
"dhaval.savalia6@gmail.com"
] | dhaval.savalia6@gmail.com |
1bc7469a0d24219c012fe00420bfcd2f73430d62 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Reorder-List.py | 0d847c06921d04595070d659bb6bd2531ba25663 | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def reorderList(self, head):
"""
:type head: ListNode
:rtype: void Do not return anything, modify head in-place instead.
... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
4cc01bd1a722834f92e6f3f4ac497c0effc54e7e | 251c528f7f6d59bcb4a0f5d643f6e2b512ebaab9 | /deepspeed/ops/transformer/__init__.py | 28c8de68dd8b7999e1b141215f9e0de66a3bcf06 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | neevaco/DeepSpeed | 0f857feb33da598804b53a7d5f8cbb425122beb8 | 880022a055cba2f719582e20a022803f70bf055d | refs/heads/neeva | 2023-05-25T09:20:57.285058 | 2022-08-03T19:36:32 | 2022-08-03T19:36:32 | 520,281,047 | 2 | 1 | MIT | 2022-08-03T19:36:33 | 2022-08-01T22:39:30 | Python | UTF-8 | Python | false | false | 268 | py | from .transformer import DeepSpeedTransformerLayer, DeepSpeedTransformerConfig
from .inference.transformer_inference import DeepSpeedTransformerInference, DeepSpeedInferenceConfig
from .inference.moe_inference import DeepSpeedMoEInferenceConfig, DeepSpeedMoEInference
| [
"noreply@github.com"
] | neevaco.noreply@github.com |
dde1269179f77c78470cfbcb0c0645553b779f71 | 3ed8b5f7b4806ae99b604bab681492545945ccee | /binary_search.py | a66bd28b954bd915054143b7f88a45003a7689a5 | [] | no_license | dongheelee1/leetcode_binary_search | 3204e1b52e7a38c3adff645fd3c3f36ba2a438cd | 1f91f2eaa85e1f07a49ffc2ca235f17a7897c448 | refs/heads/master | 2020-12-09T11:04:03.326544 | 2020-01-13T03:40:27 | 2020-01-13T03:40:27 | 233,285,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | class Solution:
def search(self, nums: List[int], target: int) -> int:
'''
idea:
evaluate mid index and see if the middle element is the target
if middle element is the target
return the mid index
if middle element is smaller than ... | [
"noreply@github.com"
] | dongheelee1.noreply@github.com |
f6cdfe57a91e066d5f723da2a3fbd8f5d5a19aab | a3acecc6808cdd205f91b5e2bb8f3f3aac79ceba | /viper/viper/settings/prod.py | 3af3cb98b3a79ca5b01be602815dc1f5f2b2f5fb | [] | no_license | fjpagaragan/dj_viper | 31c5e9ff068f4de8022482a27536b0294adc7786 | e7e08bbe02027183877c8f764c92cd5dcd32ad89 | refs/heads/master | 2020-08-02T05:44:12.904166 | 2019-09-27T09:48:15 | 2019-09-27T09:48:15 | 211,252,733 | 0 | 0 | null | 2019-09-27T06:38:48 | 2019-09-27T06:38:45 | null | UTF-8 | Python | false | false | 1,198 | py | from .base import * # noqa
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '84dfb51412774dcab2219d05a37a69fb)32=d21d&423$3221dfkkeQQssf?>'
ALLOWED_HOSTS = [
'viper.local',
'192.168.56.114',
]
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABAS... | [
"matt@lebrun.org"
] | matt@lebrun.org |
91dbca55149487bee41d1845f1082ec825f9ba7e | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/DescribeIpv6GatewaysRequest.py | a3763f386baefa997e70ae2239243004672fc79c | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
cacfc26968b9b665ef9f032aa70653a59849b144 | 7f79d095529b8b52a76c544940a641d00f4b630d | /polls/migrations/0001_initial.py | 9263cd4a669a3beed26787de17e111b701eb304f | [] | no_license | felexkemboi/DjangoPoll | 5f1ebb1680c766adf4ce8b8e20580f964a49609a | c65610a527018e3ba8a351db87bd35d129901e68 | refs/heads/master | 2021-03-30T21:10:39.970699 | 2018-03-11T22:10:39 | 2018-03-11T22:10:39 | 124,742,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-03-07 19:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"felokemboi10@gmail.com"
] | felokemboi10@gmail.com |
60edc263f1808cce9c1b006308f90cce80d6db18 | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/aggregator/import/patch_funding_card_ii.py | d9e19803bf73a9ff0882e6994c3601b7548df97f | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,128 | py | # -*- coding: utf-8 -*-
import datetime
import os, sys
import time,json
from bson.objectid import ObjectId
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../../util'))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], ... | [
"hush_guo@163.com"
] | hush_guo@163.com |
19b94e15664ddf837c68ddbcdd911b99b3b07f13 | 615efa9d4dd383bcd81181f7cde7ae782aaf665d | /tagtest.py | 4b900e10adb9c87603543026052bc64ee5352a7a | [
"MIT"
] | permissive | tgadf/mp3id | f043d428252ac59fc159c9035c85d2aca432ce14 | 26887eab784722a839b6a2b20c2706c627b69431 | refs/heads/master | 2023-05-25T23:45:38.632812 | 2023-05-15T12:37:01 | 2023-05-15T12:37:01 | 163,714,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,593 | py | import argparse
from musicID import MusicID
from fsUtils import mkDir, moveFile, setDir, moveDir
from fileUtils import isFile, isDir, getDirname
from searchUtils import findAll, findWalk
from os import getcwd
from musicPath import pathBasics
from time import sleep
import sys
def fix(val):
if val is None:
r... | [
"tgadfort@gmail.com"
] | tgadfort@gmail.com |
d784003a42e859636ea8e13368445b73baa2d992 | 113bfeda578324908963307670718c5545f30e8b | /booksite/booksite/tornado_wsgi.py | 4b184743e25e141d697ddf66e4d5e8a7d03d17c5 | [
"Apache-2.0"
] | permissive | tkliuxing/bookspider | f0989814716e38fa081cc300f92fc975ff8ac67d | bc7ba487f0ab6ea7782f5093bb1d074eac662bdf | refs/heads/master | 2021-01-18T23:31:26.566892 | 2020-03-14T04:04:48 | 2020-03-14T04:04:48 | 21,845,464 | 40 | 36 | null | 2015-11-06T03:58:04 | 2014-07-15T03:51:01 | CSS | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
import os
import sys
import django.core.handlers.wsgi
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.wsgi
_HERE = os.path.dirname(os.path.abspath(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = "booksite.settings"
def main(port):
wsgi_app = tornado.wsgi.... | [
"ouyanghongyu@gmail.com"
] | ouyanghongyu@gmail.com |
b4a0f2ad84ff14cf2fbb35e0ed90c6e5fbed3c4c | 921aa4d0dddc868b61fe1ea3805cf15c36853bc0 | /client/k8s_client/models/v1beta1_horizontal_pod_autoscaler_spec.py | 502c16eb73dac5da424d14b4a6d6942fbd687aab | [] | no_license | mbohlool/k8s-python-client | 56d569071326820ebb5e11319ca230a272282a56 | e083a1991e03f05d69a39f43b02b9bd5ede0a2b7 | refs/heads/master | 2021-01-09T20:29:17.339112 | 2016-08-18T23:16:49 | 2016-08-18T23:16:49 | 65,772,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,127 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... | [
"mehdy@google.com"
] | mehdy@google.com |
7037f2f4f718cf9d7f7f06d47208f3bbd5c56136 | e722e3ef6bf041a71f2f3814fb8d9da42c36e4c9 | /resources/bitcoin.py | e585161a82152e4bc187a05a585f07a1d6792f7c | [] | no_license | vincycode7/maistore-api | 1dfa83f3be6390948971309cab517209e2e08820 | 29207505f463a2f28a03aa6cca21e58070b76975 | refs/heads/master | 2023-07-17T05:04:35.991141 | 2021-08-11T16:13:51 | 2021-08-11T16:13:51 | 295,108,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from models.bitcoin import BitcoinPayModel
class BitcoinList(Resource):
@jwt_required
def get(self):
bitcoins = BitcoinPayModel.find_all()
if bitcoins:
return {"message": gettext("work_in_progr... | [
"akinwandegbengavincent@gmail.com"
] | akinwandegbengavincent@gmail.com |
ff9880e2fb691b6e11f053133c467aafd607e58e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HaMCeHeJkaWvMg7LS_7.py | 212657adbf0da37a7b5ead22a03da7a11a80411e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py |
def sun_loungers(beach):
count = vacant = 0
empty = False
if "1" not in beach:
k = len(beach)
if k > 1:
k = (k + 1) // 2
return k
left_1 = beach.index("1")
count += left_1 // 2
right_1 = len(beach) - 1
while beach[right_1] != "1":
right_1 -= 1
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
198a31946ca2b4130c876f371b0473138eed0fd9 | f4996d975ce705c1d09fdad168cd1225bbb99dd8 | /chemex/experiments/cest/n_hn_cw/liouvillian.py | d358f2eb40f745a0836c061e19734bee895b5e21 | [
"BSD-3-Clause"
] | permissive | chriswaudby/chemex | d0d39d834989d92f738f17de737167b7f9118884 | c3424bb8891b05de43c969108311d3ea50ba3428 | refs/heads/develop | 2020-01-23T21:05:04.695331 | 2016-11-08T13:29:16 | 2016-11-08T13:29:16 | 74,578,043 | 0 | 1 | null | 2016-12-24T12:58:50 | 2016-11-23T13:11:30 | Python | UTF-8 | Python | false | false | 3,632 | py | from math import pi
from scipy import zeros, cos, sin
from scipy.linalg import expm2 as expm
from chemex import caching
from chemex.constants import scalar_couplings
from chemex.bases.two_states.full import (
R_HXY, R_HZ, R_NXY_A, R_NXY_B, R_NZ, R_2HXYNZ, R_2HZNXY_A, R_2HZNXY_B,
R_2HXYNXY, R_2HZNZ, CS_H_A, CS... | [
"gbouvignies@gmail.com"
] | gbouvignies@gmail.com |
ce018b1e19d1c154e8dea6550c86f9f9568f2b38 | f5f8cbfd167a1e16971a069b6b0f3ca9b9400e7f | /src/outpost/django/campusonline/migrations/0012_event.py | 3004c162106702ea9db229697a05d00f12dacf94 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost.django.campusonline | 1f1ee0d2ee73ec52a9f0b62d56c6dc3f3db886fb | 30ab6c5a724a8c90be4f705ba4bc0d7767600ec4 | refs/heads/master | 2023-06-01T10:05:12.833701 | 2023-05-17T16:33:08 | 2023-05-17T16:33:08 | 183,224,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-08 18:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("campusonline", "0011_events")]
operations = [
migrations.CreateModel(
name=... | [
"michael@fladi.at"
] | michael@fladi.at |
b1d26ca5e6d3dc64347f68f58a0e7acfa2ff4d0c | fc00b177802c49cf04dc6a8e430093bc14ae9b53 | /venv/Lib/site-packages/mypy/plugins/common.py | 536022a1e09e55e909bdd78eac0412195dcdb476 | [] | permissive | artisakov/vigilant-journey | 9c8264d36da5745374a0d08b0b0288a70f978a11 | 4fed9026071a64489d26422ba7cd1a9b9cb05e16 | refs/heads/master | 2022-11-16T03:10:06.418221 | 2020-07-16T07:33:06 | 2020-07-16T07:33:06 | 238,490,887 | 0 | 1 | MIT | 2020-03-01T10:12:22 | 2020-02-05T16:03:07 | HTML | UTF-8 | Python | false | false | 5,605 | py | from typing import List, Optional, Union
from mypy.nodes import (
ARG_POS, MDEF, Argument, Block, CallExpr, ClassDef, Expression, SYMBOL_FUNCBASE_TYPES,
FuncDef, PassStmt, RefExpr, SymbolTableNode, Var, JsonDict,
)
from mypy.plugin import ClassDefContext, SemanticAnalyzerPluginInterface
from mypy.semanal impor... | [
"60698561+artisakov@users.noreply.github.com"
] | 60698561+artisakov@users.noreply.github.com |
f382f6bfa1e36d3f104cfd1151609b5c45cf19f9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/3bac9451475ec3136efd702b1db1defd84545840-<run>-bug.py | e15ebf510d9572ed63ab2b78bdfd538b3671ae9e | [] | 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 | 8,080 | py |
def run(self, tmp=None, task_vars=None):
' handler for file transfer operations '
if (task_vars is None):
task_vars = dict()
result = super(ActionModule, self).run(tmp, task_vars)
source = self._task.args.get('src', None)
content = self._task.args.get('content', None)
dest = self._task... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
a80d0d28a8f91cc906a9350630b6e9f74641a6d3 | e7263026bd4f34bae664c37e57a299ce83c7f111 | /03-Spider/scrapy-spider/qidianSpider/qidianSpider/pipelines.py | 27c6c15909fb5c9b58ae061982e751d3a592f857 | [] | no_license | Aries000004/grocery | 34d0ad0648c6dff5c36f4a68abf9eeac59da214d | 27492f4ac7ef66d544f853dd6686920bcb9dc663 | refs/heads/master | 2020-03-24T22:50:37.703257 | 2018-07-26T11:43:54 | 2018-07-26T11:43:54 | 143,105,389 | 1 | 0 | null | 2018-08-01T04:51:12 | 2018-08-01T04:51:12 | null | UTF-8 | Python | false | false | 1,106 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
# 管道, 持久化, 存储数据库
import pymongo
from scrapy.conf import settings
class DoubanspiderPipeline(object):
def __init__(sel... | [
"1367000465@qq.com"
] | 1367000465@qq.com |
9ca4abe9ee14dfcd4354c20e98ca4f3363771f13 | 573932f2fc40e94001a3659043b902db4d70a912 | /4-Data-Visualization/dash/tests/integration/long_callback/app3.py | 2f1debf5e262c5adc08606042cc6644507eae42b | [
"MIT"
] | permissive | BioInformatica-Labs/My-Data-Science-Journey | 69f441f88e9e106975ec27de873d82af2dd351c7 | 92e04aa2e3612a198dc213f2dbd13b5df404bfbe | refs/heads/main | 2023-08-28T05:22:56.970894 | 2021-11-08T20:05:10 | 2021-11-08T20:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from dash import Dash, Input, Output, State, dcc, html
import time
from tests.integration.long_callback.utils import get_long_callback_manager
long_callback_manager = get_long_callback_manager()
handle = long_callback_manager.handle
app = Dash(__name__)
app.layout = html.Div(
[
dcc.Input(id="i... | [
"viannaandresouza@gmail.com"
] | viannaandresouza@gmail.com |
8e181f4a2c968949bb54f081d795331297509a15 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /new_pyretic_loop_mcs/interreplay_10_final_mcs_trace/interactive_replay_config.py | 9325495cc6586153c247d3dd1a88fba489b0c1af | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
b9047a8c8b9fc1b28874dc3e7875752e804d3726 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.6_ovelap_ok/fdtd3d/gpu/test/pbc.py | 77bbfee51730bfeec9c85b767f34bee29aea5620 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | import numpy as np
import pyopencl as cl
import sys, os
sys.path.append( os.path.expanduser('~') )
from kemp.fdtd3d.util import common_gpu
from kemp.fdtd3d.gpu import Fields, Core, Pbc, IncidentDirect, GetFields
nx, ny, nz = 160, 140, 32
tmax, tgap = 150, 10
# instances
gpu_devices = common_gpu.gpu_device_list(pr... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
5f34b5ea1280d5fd4e8470852c067c09a7d0c0dd | 7323b8039f47c0457ae90173c963549b7d1e6823 | /sandbox/src/fitting_example_with_errors.py | a5b6fa35ac4a387472dbe0a527088afba924bd24 | [
"BSD-2-Clause"
] | permissive | sniemi/SamPy | abce0fb941f011a3264a8d74c25b522d6732173d | e048756feca67197cf5f995afd7d75d8286e017b | refs/heads/master | 2020-05-27T18:04:27.156194 | 2018-12-13T21:19:55 | 2018-12-13T21:19:55 | 31,713,784 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,826 | py | # Linear regression example
# including confidence intervals for params
from scipy import linspace, polyval, polyfit, sqrt, stats, randn
from pylab import figure, plot, title, show , legend, xlabel, ylabel, grid
from numpy import arange, linspace, mean, std, zeros, ones
from numpy import loadtxt, array
import scipy.int... | [
"niemi@stsci.edu"
] | niemi@stsci.edu |
6796089723a6c86eef78ccd8b5f208100c2ff615 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/google/auth/_oauth2client.py | b14a382541910da4d61866a4456b194ea15247f3 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 5,848 | py | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
b3916d10bd3eb28143d47a92561539394e25ea8b | 94eddcc57b9309befd9e562296841e9f86299526 | /transcript/remove-ids.py | 0e138bdfebd5e1c145f308a181ab8e9d74fbaae5 | [
"Apache-2.0"
] | permissive | afcarl/asr-scripts | dd26ebda1834a95b5492cc207218b2010281342c | 90a0980210882b62a5febc99bc77796aa2dc1307 | refs/heads/master | 2020-03-22T01:07:25.766763 | 2017-12-26T05:46:57 | 2017-12-26T05:46:57 | 139,284,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/python
import sys
import re
if len(sys.argv) != 2:
print "Usage: %s <transcript file>"%sys.argv[0]
exit(-1)
file = sys.argv[1]
for line in open(file):
line = line[:-1]
first_paren = line.rfind("(")
trans = line[:first_paren]
id = line[first_paren:]
trans = re.sub(' +',' ', tr... | [
"ben@benjaminlambert.com"
] | ben@benjaminlambert.com |
53b857a1f8cd6bb4ea63e181a721580e9c45e788 | 236fb2e2998e0e79e440ea83b1ce1020563781d0 | /mrio_common_metadata/conversion/exiobase_3_hybrid_su/datapackage.py | 1178e02cb5607cb4a6911143d54fd977d510689e | [
"BSD-3-Clause"
] | permissive | brightway-lca/mrio_common_metadata | 77ef56d36f09153476fc53215c7b2edca82ccfc5 | 56009fd6d404d0aefa0cca0023811c5713ceb1cc | refs/heads/master | 2023-06-07T14:51:12.723268 | 2022-04-28T19:57:04 | 2022-04-28T19:57:04 | 217,256,767 | 0 | 1 | BSD-3-Clause | 2023-05-24T11:56:10 | 2019-10-24T09:03:31 | Python | UTF-8 | Python | false | false | 6,997 | py | DATAPACKAGE = {
"name": "EXIOBASE 3.3.17 Hybrid",
"id": "exiobase-3.3.17-hybrid",
"licenses": [
{
"name": "CC-BY-SA-4.0",
"path": "https://creativecommons.org/licenses/by-sa/4.0/",
"title": "Creative Commons Attribution Share-Alike 4.0",
}
],
"desc... | [
"cmutel@gmail.com"
] | cmutel@gmail.com |
0c814af8a56f964f0ee77e7a517c8d458fe7e2cb | 3034cb06289f747066571c4ab54ca81996c22319 | /module_utils/RubrikLib_Int/rubrik_lib_int/models/nutanix_vm_snapshot_detail.py | 7323c520bfd1cad421b8ae17495e0501d0a5b1f4 | [] | no_license | tarunactivity/ansible-rubrik | b2f644805f13a553bd0635e6ddc230257d125ef7 | 5d978c23902fd32d92cc90c75e48e5fe2209f8e0 | refs/heads/master | 2023-04-29T04:25:26.834701 | 2023-04-20T21:58:47 | 2023-04-20T21:58:47 | 116,251,368 | 0 | 0 | null | 2018-01-04T11:18:38 | 2018-01-04T11:18:37 | null | UTF-8 | Python | false | false | 2,229 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"tarun.activity+github@gmail.com"
] | tarun.activity+github@gmail.com |
70d1c76cb8fb0344d7562ba735114a44960d7fa6 | 8fdcd12cfb91b2245da8b3c65fb937b1d72dd4c5 | /tissuelab/omero/gateway_ome500_ice351/omero_model_PhotometricInterpretationI.py | 31e74f69be3e946d16bd117984f64ddec766338e | [] | no_license | VirtualPlants/tissuelab | 569a334deab0b73acc8b43f313efc3f4c4e552fd | 8c064a34b91127806848f4992d1e4767574863cf | refs/heads/master | 2021-01-11T01:32:19.830778 | 2017-05-04T09:42:53 | 2017-05-04T09:42:53 | 70,694,783 | 2 | 1 | null | 2017-01-05T14:21:50 | 2016-10-12T11:49:10 | Python | UTF-8 | Python | false | false | 5,532 | py | """
/*
** Generated by blitz/templates/resouces/combined.vm
**
** Copyright 2007, 2008 Glencoe Software, Inc. All rights reserved.
** Use is subject to license terms supplied in LICENSE.txt
**
*/
"""
import Ice
import IceImport
import omero
IceImport.load("omero_model_DetailsI")
IceImport.loa... | [
"guillaume.baty@inria.fr"
] | guillaume.baty@inria.fr |
1180e095bf2b9b7dd402402c19cff8fdfc15e9c1 | 1635e722e7ede72f4877671f36bbbc4199abae81 | /sqp-addons/boi/model/stock_invoice_onshipping.py | 160594705b0b53a806a4a3ebdc6219ca2b9cc7e0 | [] | no_license | ecosoft-odoo/sqp | 7c09617048091ac6de4b25a33ad88127d36de452 | 7a7fc6b88087d98d536dd4ec39f9fb572918090e | refs/heads/master | 2023-08-08T00:07:48.405000 | 2023-08-04T15:47:43 | 2023-08-04T15:47:43 | 40,047,976 | 3 | 9 | null | 2023-08-02T08:38:53 | 2015-08-01T13:48:54 | Python | UTF-8 | Python | false | false | 1,845 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tharathip.chaweewongphan@gmail.com"
] | tharathip.chaweewongphan@gmail.com |
0654c141af5556cc26a2097594e77f12caa926e3 | 2337351b228818e41be3002bd38f68f77c2aa074 | /core/bioseg/policies/feed.py | 7f0d3056257acb210868617266dfd3372ff27e2c | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 997 | py | # ----------------------------------------------------------------------
# Feed Biosegmentation policy
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# ... | [
"aversanta@gmail.com"
] | aversanta@gmail.com |
5d5614c6522d285078dd467b7ff02f76eb5a3709 | 8f32c4d31eb8fdc788cf38d8d7fb093f90e383aa | /tmpdemo.py | 9ba0d0fc2552f123de038ef90ce3b9265a506ab2 | [] | no_license | TJUNLP/ZeroShot_RE | 9dd18f8169b505ca962b56055c97eb87857de601 | c4a7f951bb1085b154677d5cff27f933ac35eb63 | refs/heads/master | 2021-07-07T19:13:36.487641 | 2020-10-12T07:23:50 | 2020-10-12T07:23:50 | 197,099,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py |
def test_count_of_coupus():
f = '/Users/shengbinjia/Downloads/KRL_FB15K20K'
fr1 = f + '/FB15K/relation2id.txt'
fr2 = '/Users/shengbinjia/Downloads/SimpleQuestions_v2/annotated_fb_data_original.txt'
fzeroshot = '/Users/shengbinjia/Downloads/SimpleQuestions_v2/annotated_fb_data_zeroshot.txt'
fw = op... | [
"jiashengbin0501@163.com"
] | jiashengbin0501@163.com |
750041ff70cddd0d29bcb7f84a0aa59e18bb07ee | cb29e3b6d2ece31c30187d66587eedc455dc81fc | /neurondm/setup.py | e9d54a2684a33f54adb77e7d694dd879c03e2d1c | [
"MIT"
] | permissive | MCSZ/pyontutils | 47030353e9fc9441ff5ae8fbf75b069f88aa71e8 | 9180481e55f3eb52d79107c98c116ff9ad2a2821 | refs/heads/master | 2020-06-06T01:53:51.518832 | 2019-07-06T00:24:57 | 2019-07-06T00:24:57 | 192,605,715 | 0 | 1 | MIT | 2019-06-24T05:53:33 | 2019-06-18T20:09:02 | Python | UTF-8 | Python | false | false | 1,524 | py | import re
from setuptools import setup
def find_version(filename):
_version_re = re.compile(r"__version__ = '(.*)'")
for line in open(filename):
version_match = _version_re.match(line)
if version_match:
return version_match.group(1)
__version__ = find_version('neurondm/__init__.p... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
2bf7ab53ab47fc1c228d9f3bc30991bb79948a79 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/_exercises/_templates/Advanced_Python_Scripting/011_Icons_and_Images/compileIcons.py | 9ea06be6366ab0820970fbf1cf7cbb28fc6f9b2b | [] | 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 | 2,234 | py | _____ ___
_____ __
____ ?.?C.. _____ _
____ ?.?G.. _____ _
c_ fileListClass(?LW..
___ - , parent
s__(fileListClass, self). - (parent)
setAcceptDrops(T..)
pathList _ []
___ appendImage , path
path _ path.replace('/', '\\')
__ no. path __ pathList:
name _ __... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
5d6afd1af86c23017622cd2eae8fa4b71281a564 | 313fd492c0b3e3147f14b2db5d496f60445b1812 | /freecodecamp practice/freecodecamp projects practice/project4.py | cb69e18181dd7f7a5fb9ded4dbcf3f5b718d6caa | [] | no_license | amiraHag/free-code-camp-python | e036cf5f8eade8a54f177cdfefba861e9906601b | 85050d9de2ee008105e341a020ef4d95a1feb6c8 | refs/heads/main | 2023-05-16T03:21:29.524317 | 2021-06-06T00:13:43 | 2021-06-06T00:13:43 | 374,235,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def set_width(self, width):
self.width = width
def set_height(self, height):
self.height = height
def get_area(self):
return self.width * self.height
def get_perim... | [
"amira071846@feng.bu.edu.eg"
] | amira071846@feng.bu.edu.eg |
75bae3f5066584d25fbec14944bc92d68c27d0d0 | 877f80f2a48a44ec0e0998bfd8c716d8c73f48a4 | /blog_api/urls.py | 6cc6765862cd7753fff020a36b7cd122f21e745f | [] | no_license | melardev/DjangoApiBlog | b83cd88549beb3dfa350f6b64414633dff183fa4 | c77da38abaa9485ef7e903037aa1130fb7a4a2cf | refs/heads/master | 2020-04-23T22:09:06.201273 | 2019-02-19T14:47:59 | 2019-02-19T14:47:59 | 171,491,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | """DjangoRestBlogApi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"melardev@users.noreply.github.com"
] | melardev@users.noreply.github.com |
a4d36e67106456b128e7f6cc2784ddefc3756abf | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startPyquil195.py | 7ebb89ba6829278d9ca400f06056a0ee62c298f8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | # qubit number=2
# total number=37
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
6a168f13c509dd09fe692ddf840ca3136f7065f2 | ef0417a7ebe40e6c5b78df7e855405e85246f284 | /platzi_intelligence_env/platzi_intelligence_agenty/platzi_intelligence_agenty/settings.py | c3beb537dde120770374a744b5b4187d811d4d35 | [
"MIT"
] | permissive | INFINITY-RUBER/Curso_de_Scrapy_of_platzi | 3619adb5f2cda2c8127fbe75eef109b6301e3475 | f4ba3192f489bebd634ae7216e4d83676f1c1dd8 | refs/heads/main | 2023-03-28T16:04:43.400175 | 2021-03-24T03:03:47 | 2021-03-24T03:03:47 | 350,921,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | # Scrapy settings for platzi_intelligence_agenty project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/do... | [
"ruberhenandez@gmail.com"
] | ruberhenandez@gmail.com |
4d6cb77d005776428cdb504ade02b5ab035a2a58 | cebf2e5276e6d064d0ec86beaf1129fe0d0fd582 | /days001-010/day009/project/art.py | 41a6c9efc49846fc6e732f0fdc0feea5a7c3eedb | [] | no_license | SheikhFahimFayasalSowrav/100days | 532a71c5c790bc28b9fd93c936126a082bc415f5 | 0af9f2f16044facc0ee6bce96ae5e1b5f88977bc | refs/heads/master | 2023-06-14T06:18:44.109685 | 2021-07-08T16:58:13 | 2021-07-08T16:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | logo = r'''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ _| |_..-'
... | [
"pullynnhah@icloud.com"
] | pullynnhah@icloud.com |
b0200f8d8e2108a5c60ed7f12a328594250bb7a2 | c5e4a9a66f686de6eaca331f1ee3823ac925101b | /apps/management/migrations/0004_auto_20201020_1439.py | 8b7357435164b7381c6ea9a8e4be16711c36f7ac | [] | no_license | Tiilon/Hospital_project | b1409be60f0d6daecb0e294bfbe81698d97b7c1f | 6506218f4ad504f9031482999d9b33c92b350df8 | refs/heads/main | 2023-01-23T13:30:11.564836 | 2020-11-24T16:15:12 | 2020-11-24T16:15:12 | 303,461,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # Generated by Django 3.1.2 on 2020-10-20 13:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('management', '0003_auto_20201020_1330'),
]
operations = [
migrations.AlterField(
model_name='bed',
name='number',
... | [
"tiilon42@gmail.com"
] | tiilon42@gmail.com |
b69c46e0d9c5eae38ad0c219478bc83fc2ad0d5d | add366e2e5209dbe1d8a6f8730bdaefd13784260 | /boa_test/example/demo/IteratorTest.py | 1c2e717c8a47d6c7d51f81414765e9b73312c608 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | ontio/neo-boa | 0601d446666f1e2d52d266fdc1b293294c74f79f | 00c032e68fc8279d71617cbb28d15d8203cebaf7 | refs/heads/master | 2020-03-23T07:19:28.253505 | 2018-11-26T06:43:36 | 2018-11-26T06:43:36 | 141,263,761 | 4 | 12 | MIT | 2019-01-24T00:06:29 | 2018-07-17T09:12:55 | Python | UTF-8 | Python | false | false | 940 | py | from boa.interop.Neo.Iterator import *
def Main(testNum):
items = {
'a': 1,
'c': 4,
'f': 13
}
vals = IterCreate(items)
if testNum == 1:
while IterNext(vals):
print("next!")
print("ok done")
return True
if testNum == 2:
cou... | [
"tasaunders@gmail.com"
] | tasaunders@gmail.com |
2638ce398a00d12a5f9fdc7895c6afb3e36ae979 | 274b743e47c08ac17afa96f4c76017e168c5793a | /torchsde/_core/methods/diagonal/milstein.py | 37bfa15b784df7596245256ca77aad5a8455242f | [
"Apache-2.0"
] | permissive | patrick-kidger/torchsde | 8cc6ea4ea75435fedb54a390be35d201b6a65265 | 4e6902b51bcf1c2f15c4c94027909c1162a6695c | refs/heads/master | 2022-12-01T06:11:28.082318 | 2020-08-09T17:28:43 | 2020-08-09T17:28:43 | 286,237,250 | 3 | 2 | Apache-2.0 | 2020-08-09T17:28:44 | 2020-08-09T12:56:51 | null | UTF-8 | Python | false | false | 1,542 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"12689993+lxuechen@users.noreply.github.com"
] | 12689993+lxuechen@users.noreply.github.com |
118377db1020fc0b1b4978721dfd223d6b94e8f2 | 7da381cd7fa0520f686143560f334e5486317e88 | /comments/views.py | 50ee8974b7774718f32fb17d4589d4889eb27c5b | [] | no_license | dentemm/festival | 05a8a0c93f27e18c65cf6775c0fbe16316382c8b | 1d6793de172dd2d45099afdce8762e08d96b7bd2 | refs/heads/master | 2021-01-17T12:24:56.624245 | 2017-05-18T17:57:59 | 2017-05-18T17:57:59 | 52,222,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | from django import http
from django.conf import settings
from django.shortcuts import render
from django.utils.html import escape
from django.apps import apps
from django.http import HttpResponse, JsonResponse
from django.template.response import TemplateResponse
from django.views.decorators.csrf import csrf_protect
fr... | [
"tim.claes@me.com"
] | tim.claes@me.com |
33822cabdcd4718ac1f1f0acea8c39ab26ab63cb | d30aba490a9527e7fc1f31e178b5f1c3067ae84d | /build/forward_command_controller/catkin_generated/pkg.installspace.context.pc.py | 4e3d0273090a6bbb08098bfecfa1d4e6ce56df1d | [] | no_license | weetinygit/tart | 130845b9c0e7b01d0a5a5177b056c85495e4e5cc | 339344cb9ef0561655f73f4609f340974113785a | refs/heads/master | 2021-09-13T07:38:39.706301 | 2018-04-26T21:18:19 | 2018-04-26T21:18:19 | 111,699,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/weety/tart5/install/include".split(';') if "/home/weety/tart5/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "controller_interface;hardware_interface;std_msgs;realtime_tools".replace(';'... | [
"weetingyit36@gmail.com"
] | weetingyit36@gmail.com |
076be9d4edd312dea2afa44759a1e3299340b6a2 | bc68b28995103a45c5050a418a009f5f0c075bdc | /Rosalind1/Prob56/cycleToChromosome.py | 485332d48197d33065c0132c6af482b503f40706 | [] | no_license | kedarpujara/BioinformaticsAlgorithms | 71ca191c18ff8260d9edcd594c337b282b2a7188 | 4a8919d03af767704525e8a5610af5b811d5c873 | refs/heads/master | 2020-03-13T08:41:45.361941 | 2018-04-25T18:39:00 | 2018-04-25T18:39:00 | 131,048,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | def cycleToChromosome(Nodes):
list1 = []
listR = []
for i in range(len(Nodes)/2):
if Nodes[2*i] < Nodes[2*i+1]:
val = i+1
else:
val = -(i+1)
list1.append(val)
for i in list1:
if i >0:
listR.append("+"+str(i))
if i<0:
listR.append(str(i))
print "(" + " ".join(listR) + ")"
return list1
def r... | [
"kedarpujara@gmail.com"
] | kedarpujara@gmail.com |
07b55979f20433e18871f04e4bb8ecfba6455fac | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/scipy/linalg/decomp_qr.py | 892e0a6472ce78f571f713b8670c944d6b29e504 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:61d24fbf0d4d859c90e86ceb5b9d1e96edf2d64186bfda5532ab2dd254afe0ea
size 13497
| [
"business030301@gmail.com"
] | business030301@gmail.com |
828078a0d7212200f23deb2c2baca7923d4b3a57 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616220040.py | 55ef307b02a9ccf6ae31555cf968dbb1c8862560 | [] | 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 | 1,094 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
import string
def valid(str):
if str[len(str)-1] == ":" or str[len(str)-1] == ".":
return "Neither"
address = str.split(".")
numbers = range(0,256)
result = None
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c47c58091f88ddb5c677f6e148896172ba612143 | 7f8d655ea213a420cf1c31cb389f93e323342d61 | /nlp_tasks/absa/utils/predict_probability_to_result.py | 76b9548b30088781b3d13eddb51c839d0438059d | [] | no_license | abclzy193/ASMOTE | e1bd49d321c7ace44dcfd14a11f689eafe9f7cf4 | 88754bc0a3e13dbcd268c0a1f43cbdadaa4d0b4b | refs/heads/main | 2023-08-28T13:09:26.327784 | 2021-10-28T07:57:44 | 2021-10-28T07:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # -*- coding: utf-8 -*-
from nlp_tasks.absa.conf import task_conf
from nlp_tasks.absa.utils import evaluate_utils
from nlp_tasks.absa.preprocess import label_mapping
def acaoa_predict_probability_to_result(predict_probability):
"""
:return:
"""
y_aspect = predict_probability[:task_conf.subject_clas... | [
"yuncongli@tencent.com"
] | yuncongli@tencent.com |
f8facff28c02e9f652c819727a6814e4e9359e56 | fea44d5ca4e6c9b2c7950234718a4531d453849e | /sktime/_contrib/classification_examples.py | de4d73a948f403fb5fb1a2493bc3c51bd5a4626d | [
"BSD-3-Clause"
] | permissive | mlgig/sktime | 288069ab8c9b0743113877032dfca8cf1c2db3fb | 19618df351a27b77e3979efc191e53987dbd99ae | refs/heads/master | 2023-03-07T20:22:48.553615 | 2023-02-19T18:09:12 | 2023-02-19T18:09:12 | 234,604,691 | 1 | 0 | BSD-3-Clause | 2020-01-17T17:50:12 | 2020-01-17T17:50:11 | null | UTF-8 | Python | false | false | 3,373 | py | # -*- coding: utf-8 -*-
"""Classifier Examples: some use case examples for building and assessing classifiers.
This will become a note book once complete.
"""
__author__ = ["TonyBagnall"]
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sktime.classification.dictionary... | [
"noreply@github.com"
] | mlgig.noreply@github.com |
ec37d8363b5dee67a7b2f5c75d974d32148b9f64 | e4602b1f21cb5375c4805a929dc9dc88f35a0dc0 | /music/models.py | 483af80db30eae7f180ab479005a8723d7f06851 | [] | no_license | petersoh414/15-2nd-we_ro-backend | 405aec5c154eef9e1fce60e1586de732fe698f29 | f438b53f0e0c28d0ee51650be3526989d9b835be | refs/heads/main | 2023-02-19T00:54:20.620573 | 2021-01-11T10:08:47 | 2021-01-11T10:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | from django.db import models
class AlbumType(models.Model):
name = models.CharField(max_length=10)
class Meta:
db_table = 'album_types'
class Country(models.Model):
name = models.CharField(max_length=10)
class Meta:
db_table = 'countries'
class ArtistType(models.Model):
name... | [
"fergith@naver.com"
] | fergith@naver.com |
df2f41df8f68459c90e14946d01e2f1c57c18088 | f27e26f95f4254dc42868ccb070ade856be9ab7e | /fvserver/urls.py | 92a3626842d885d6f347ca52096d3888dfe85c3f | [
"Apache-2.0"
] | permissive | eahrold/Crypt-Server | 499827e04fe67788275e0b38d115ad4d27ba4009 | 482d2fee583156251c42ed0869858a4b49d22a0a | refs/heads/master | 2020-12-25T17:01:27.572060 | 2013-05-21T14:02:59 | 2013-05-21T14:02:59 | 8,509,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^macnamer/', include('macnamer.foo.urls')),
url(r'^login/$', 'django.contrib.auth.views.login'),... | [
"graham@grahamgilbert.com"
] | graham@grahamgilbert.com |
73dced0a8e68724816174bb22b1dca0e36eebc4f | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/gDay/Schema+Instance/NISTXML-SV-IV-atomic-gDay-maxInclusive-2-4.py | 3c2d2176e31c8d41548e72f50ad0a9cea2392a83 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 322 | py | from output.models.nist_data.atomic.g_day.schema_instance.nistschema_sv_iv_atomic_g_day_max_inclusive_2_xsd.nistschema_sv_iv_atomic_g_day_max_inclusive_2 import NistschemaSvIvAtomicGDayMaxInclusive2
from xsdata.models.datatype import XmlPeriod
obj = NistschemaSvIvAtomicGDayMaxInclusive2(
value=XmlPeriod("---02")
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
208236b583995b0019f5f4640af096bd1d7f0db4 | 7fb469e93ff89b1c697d5a53a39188127e50d272 | /utils/request_proxy.py | 6b19bc96e89214dcf38b3459206b1d02ff58e400 | [] | no_license | seekplum/seekplum | fde98f93145a78fc030032a4499090583aba154a | 9e66f5e62214e566528003d434ef2b74877419fd | refs/heads/master | 2023-02-13T19:00:49.866130 | 2023-01-31T08:55:19 | 2023-02-02T04:33:45 | 182,075,292 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
import requests
# 1.在 url 中指定用户名密码
proxies = {
"http": "http://10.0.0.7:8850",
# "https": "http://10.0.0.7:8850",
# "http": "http://test:ceshi@test5.goodtp.com:8700",
"https": "http://test:ceshi@test5.goodtp.com:8700",
}
# 2.通过 HTTPProxyAuth 指定用户名密码
# from requests.auth impor... | [
"1131909224@qq.com"
] | 1131909224@qq.com |
9f3c6f4fe31a7d1b690348c86cbe27552dfc28df | 102a33464fd3a16ceedd134e9c64fea554ca5273 | /apps/shop/migrations/0002_auto_20181113_1103.py | 07ff88f8a9b1ebdb5e799770f03ab2cc17535b6a | [] | no_license | pythonguru101/django-ecommerce | b688bbe2b1a53c906aa80f86f764cf9787e6c2fe | f94de9c21223716db5ffcb86ba87219da88d2ff4 | refs/heads/master | 2020-07-24T14:57:02.047702 | 2020-06-10T06:06:23 | 2020-06-10T06:06:23 | 207,961,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 2.1.3 on 2018-11-13 11:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='sku',
field=mo... | [
"pythonguru101@gmail.com"
] | pythonguru101@gmail.com |
3c02491700b41ebbffa321ab28bc3a3ff9f5f2e3 | e30615df2fcb15cf41c42c6911cd33b5fb61316c | /ejercicios/clase10/blog_flask/blog/applications/blog/__init__.py | ce125ce770fb2300cc5b464f26c56dae82c0c9b2 | [] | no_license | escueladevhack/curso-python | 2e11ba2d637a3fcf37d1da1977e15406179a0941 | 35e4801cf4f13872a4a4c1f0bee43ee3194d73bd | refs/heads/master | 2021-08-27T20:50:58.262405 | 2021-08-11T21:13:38 | 2021-08-11T21:13:38 | 168,049,269 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import functools
import os
from flask.blueprints import Blueprint
bp = Blueprint(
'blog',
__name__,
url_prefix='/',
template_folder=os.path.join(
os.path.abspath(os.path.dirname(__file__)),
"templates"
)
)
# flask does not load our inner schema so we need to tell flask
# to consi... | [
"ma0@contraslash.com"
] | ma0@contraslash.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.