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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49e700cbe29de94dcbe30c3986931889084d727b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/transformers/tests/xlm/test_tokenization_xlm.py | bd056b69d430916d4db4caa60fd158aa3492ff77 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,292 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
50e593e5345382e1c4b44ea0718549de7998cc89 | d3eec7a516ffca4620206f23d399fa085660fb3c | /demo/settings.py | 48a2c62a6757f3a8fb08ef27522fb303d0295091 | [] | no_license | anykate/extend_user_demo | 90c5bff2e973d22d0976e495d2ca4e686be86cf1 | bffce102cefffad30975032c378ce3efbbfb0b5d | refs/heads/master | 2020-11-28T09:52:20.453293 | 2019-12-23T15:21:19 | 2019-12-23T15:21:19 | 229,775,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"aryamane.aniket@gmail.com"
] | aryamane.aniket@gmail.com |
13f3dd0325d622f22a952ada5c8b888c11b78111 | d9a4cecfdcccdb60f55b5e3a5670d178f4cf2211 | /copyjunctions_simple.py | d6190e6d10a0be188019de1fac8a00b6d9bfe112 | [
"Apache-2.0"
] | permissive | geng-lee/BAM-to-Junction-BED | e75426f919bbe1781abe8dc6be2de3f83157585b | a878710ee395b2bf7f2eb7e4df84f8383d39d662 | refs/heads/master | 2023-03-17T01:08:20.040686 | 2017-02-28T20:39:23 | 2017-02-28T20:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | ### hierarchical_clustering.py
#Copyright 2005-2012 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in ... | [
"nsalomonis@gmail.com"
] | nsalomonis@gmail.com |
fca91a107b5e307a442b5bceeab6a80e12a5c2d9 | 6df76f8a6fcdf444c3863e3788a2f4b2c539c22c | /django code/p25/enroll/forms.py | 81abe59143f26d866e689893095a339e98c74dbb | [] | no_license | basantbhandari/DjangoProjectsAsDocs | 068e4a704fade4a97e6c40353edb0a4299bd9678 | 594dbb560391eaf94bb6db6dc07702d127010b88 | refs/heads/master | 2022-12-18T22:33:23.902228 | 2020-09-22T13:11:01 | 2020-09-22T13:11:01 | 297,651,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import forms
class StudentRegistration(forms.Form):
name = forms.CharField()
email = forms.EmailField()
first_name = forms.CharField()
| [
"36443209+basantbhandari@users.noreply.github.com"
] | 36443209+basantbhandari@users.noreply.github.com |
de9c252d46aa0d2b94e2e420716e08d4b131d555 | fc195da9608a52dc298f2fea74d38260425ba829 | /examples/translations/japanese_test_1.py | c45ba7a97b67466613e62ddb3d4f77b38e8dd496 | [
"MIT"
] | permissive | kawarada-san/SeleniumBase | 9f824992911d0eade63df6ab877ae9fd9d6f5b5e | 8e601717fdef0814aae01c6411ea0e1fb114a269 | refs/heads/master | 2021-04-08T21:26:08.663911 | 2020-03-20T04:37:28 | 2020-03-20T04:37:28 | 248,811,137 | 0 | 0 | MIT | 2020-03-20T17:11:45 | 2020-03-20T17:11:45 | null | UTF-8 | Python | false | false | 845 | py | # Japanese Language Test - Python 3 Only!
from seleniumbase.translate.japanese import セレンテストケース # noqa
class テストクラス(セレンテストケース): # noqa
def test_例1(self):
self.URLを開く("https://ja.wikipedia.org/wiki/")
self.テキストを確認する("ウィキペディア")
self.要素を確認する('[title="メインページに移動する"]')
self.テキストを更新("#... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
19ae610a39764ccc48ee3fdcc09812438be053ca | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/concat82/612-tideGauge.py | 1815baf705abdb18d06e84f33cb97d92e2e83887 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 13 10:02:00 2020
---------------------------------------------------------
This script concatenates yearly predictor files
Browses the predictor folders for the chosen TG
Concatenates the yearly csvs for the chosen predictor
Saves the concatenated csv in a separate dire... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
f2ec83131298fd44f3966e637b944e3667885a12 | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/review_629.KInversePairsArray.py | 8a4cbd070efefb7b9865f42b2eb8fafcf752eaa7 | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | # 629. K Inverse Pairs Array
# Hard
# 1131
# 136
# Add to List
# Share
# For an integer array nums, an inverse pair is a pair of integers [i, j] where 0 <= i < j < nums.length and nums[i] > nums[j].
# Given two integers n and k, return the number of different arrays consist of numbers from 1 to n such that there a... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
954aed68a50f07d377742c0dd09e93768493af8f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_018/ch118_2020_03_31_17_12_49_349131.py | 5b8e656f9a0736224a9852ea334e20ccbbe25997 | [] | 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 | 224 | py | import math
def reflexao_total_interna(n1,n2,teta2graus):
teta2rad = math.radians(teta2graus)
teta1rad = (n2*math.sin(teta2rad))/n1
if math.sin(teta1rad) > 1:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
566f6d1dd1cf89383dcf07c36cdd66d48a63be8f | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_30/ar_12/test_artificial_32_RelativeDifference_PolyTrend_30_12_20.py | 3d4e035ecfec1b335fef8fbde0e7c83cbacb5489 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 279 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
deb2f2b6d8483b552b2f4314ce7f5ba958462d3a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_171642.81+412622.3/sdB_SDSSJ_171642.81+412622.3_coadd.py | 269e76e3327b7a8949217536052e70c5b6397b16 | [] | 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 | 482 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[259.178375,41.439528], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_171642.81+412622.3/sdB_SDSSJ_171642.81+412622.3_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
8971f4fa9b187ce6b2424fd1736169682efe90b2 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/1012_NumbersWithRepeatedDigits.py | 4f0a1b3cd50e2f10a2e76bc5453f8c25bb8a6125 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | """
Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit.
Example 1:
Input: 20
Output: 1
Explanation: The only positive number (<= 20) with at least 1 repeated digit is 11.
Example 2:
Input: 100
Output: 10
Explanation: The positive numbers ... | [
"here0009@163.com"
] | here0009@163.com |
2d7c27442952fe478807ed74d7c022de2f10b28c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_208/111.py | fb1d05f6613af1be13458ff9e2ba26f08ea8805e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 22 11:51:27 2017
@author: pellowes
"""
import numpy as np
import sys
fileIn = '/Users/pellowes/test.in'
fileIn = '/Users/pellowes/Downloads/C-small-attempt1.in'
#fileIn = '/Users/pellowes/Downloads/A-large(3).in'
fileOut = fileIn.split('.')[0]+'.out'
f = open(fileIn,'... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9da04c099883870e8ad931318365f288003451d8 | 9ed4d46aedd4d4acadb48d610e940594b5b7b3fd | /project_euler/problem_046/sol1.py | 07dd9bbf84c8046f193eae040861fc196b7ae147 | [
"MIT",
"CC-BY-NC-4.0",
"CC-BY-NC-SA-4.0"
] | permissive | TheAlgorithms/Python | 7596a0e236ed12a61f9db19a7ea68309779cc85b | 421ace81edb0d9af3a173f4ca7e66cc900078c1d | refs/heads/master | 2023-09-01T17:32:20.190949 | 2023-08-29T13:18:10 | 2023-08-29T13:18:10 | 63,476,337 | 184,217 | 48,615 | MIT | 2023-09-14T02:05:29 | 2016-07-16T09:44:01 | Python | UTF-8 | Python | false | false | 2,808 | py | """
Problem 46: https://projecteuler.net/problem=46
It was proposed by Christian Goldbach that every odd composite number can be
written as the sum of a prime and twice a square.
9 = 7 + 2 × 12
15 = 7 + 2 × 22
21 = 3 + 2 × 32
25 = 7 + 2 × 32
27 = 19 + 2 × 22
33 = 31 + 2 × 12
It turns out that the conjec... | [
"noreply@github.com"
] | TheAlgorithms.noreply@github.com |
c95316ed88c4eb8b6507da52be9580434e57786d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_divination.py | 6d43fd05084eaeeb1cd6871ad852cdf779c77057 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py |
#calss header
class _DIVINATION():
def __init__(self,):
self.name = "DIVINATION"
self.definitions = [u'the skill or act of saying or discovering what will happen in the future']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d254ebfbaeafdb969c9d4440d84ce4d00f4001b8 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityEffectModel.py | cac8ed6d796184997fe5f3aa98dbb056ba0bbc8a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,002 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOfflineProviderIndirectisvActivityEffectModel(object):
def __init__(self):
self._effective_time = None
self._ext_info = None
self._merchant_id = None
@property
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
a9595644a256d97d832d311804226c979060f5e6 | 351fa4edb6e904ff1ac83c6a790deaa7676be452 | /misc/maxAreaOfCake/Solution.py | 3facaa570babac01ef0de3db2aefe3661017d523 | [
"MIT"
] | permissive | shahbagdadi/py-algo-n-ds | 42981a61631e1a9af7d5ac73bdc894ac0c2a1586 | f3026631cd9f3c543250ef1e2cfdf2726e0526b8 | refs/heads/master | 2022-11-27T19:13:47.348893 | 2022-11-14T21:58:51 | 2022-11-14T21:58:51 | 246,944,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from typing import List
class Solution:
def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:
hc , vc = sorted(horizontalCuts) +[h], sorted(verticalCuts) + [w]
mh , p = 0 , 0
for h in hc :
mh = max(mh,h-p)
p = h
mw , p ... | [
"email.shanu@gmail.com"
] | email.shanu@gmail.com |
35289460658e0ee7b729775ed7615e52d9c16be0 | 1525eeb085814724cd2678d1d81871c5c4b6eaee | /urls.py | 9570812ad1ee668bdf30070e089f4461d26c9d29 | [] | no_license | djangorobert/datauploader | b6156b4de7490ae9669ce724f6f727d7b5a68a5c | 381edfc76b293038ccabea134face10f15ec1310 | refs/heads/master | 2020-03-28T07:17:45.135728 | 2018-09-13T15:41:21 | 2018-09-13T15:41:21 | 147,892,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.conf.urls import url
from datauploader.views import UploadFileView, SubmissionListView
from datauploader import views
urlpatterns = [
url(r'^upload/$', UploadFileView.as_view(), name='upload'),
url(r'^list/$', SubmissionListView.as_view(), name='list'),
url(r'^(?P<pk>\d+)\$', views.Submissio... | [
"djangocharm2020@gmail.com"
] | djangocharm2020@gmail.com |
1350572da4d56758a9a53a26cec9c22952a3686a | cecd66e056674fe0e8f83eb24f0f8f076304ef02 | /meidoo/meidoo/apps/payment/models.py | d05bd14d345e128c9c918f07188544b66e2394ce | [
"MIT"
] | permissive | amourbrus/meiduo_mall | 30b2aac92685df5ef119b57cb653ff5f7eabcb3a | 965b3d4685d1a8fe18a3177cc864f27eeb516081 | refs/heads/master | 2020-03-23T17:42:54.552801 | 2018-07-22T09:23:37 | 2018-07-22T09:23:37 | 141,871,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from django.db import models
# Create your models here.
from orders.models import OrderInfo
from meidoo.utils.models import BaseModel # check
class Payment(BaseModel):
"""
支付信息
"""
order = models.ForeignKey(OrderInfo, on_delete=models.CASCADE, verbose_name='订单')
trade_id = models.CharField(max_l... | [
"2338336776@qq.com"
] | 2338336776@qq.com |
1a8f4c33617b29b06b3d18836ddac3326c605b11 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/libtbx/command_line/create_unzipsfx.py | 726675faa9cac376b1054e69d2966926e398a772 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,342 | py | from __future__ import absolute_import, division, print_function
import libtbx.path
import sys
buf_size = 1000000
def copy(src, dest):
while True:
buf = src.read(buf_size)
if (buf == ""): break
dest.write(buf)
def find_unzipsfx():
for command in ("unzipsfx_autorun_yes.exe",
"unzipsf... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
a75a6a9fff392c36a2f7ea0a26ceb9742e30b997 | 1a2bf34d7fc1d227ceebf05edf00287de74259c5 | /flask/Day02/fisher.py | 1cc4adb358cfd1bff444552db2490d00e0e84b5b | [] | no_license | lzn9423362/Django- | de69fee75160236e397b3bbc165281eadbe898f0 | 8c1656d20dcc4dfc29fb942b2db54ec07077e3ae | refs/heads/master | 2020-03-29T18:03:47.323734 | 2018-11-28T12:07:12 | 2018-11-28T12:07:12 | 150,192,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # 从flask框架中导入Flask这个类
from flask import Flask
#初始化一个flask对象
#需要传递一个参数__name__
# 1.方便flask框架去寻找资源
# 2.方便flask插件比如flask-Sqlalchemy出现错误的时候,好去寻找问题所在的位置
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'hello world'
#如果当前这个文件是作为入口程序运行,那么就执行app.run()
if __name__ == '__main__':
#启动一个应用服务器,来接受用户的请求
... | [
"411121080@qq.com"
] | 411121080@qq.com |
a813c48c1eaee83257117b19fbeecd6ea97aaf61 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Vulkan/DescriptorSetLayoutBinding.py | 0479636cd1074bcea3d9e51d4a14b5da89e17818 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,259 | py | # encoding: utf-8
# module gi.repository.Vulkan
# from /usr/lib64/girepository-1.0/Vulkan-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
dc8ac8f98abdd3d2476ff6576232b08b43103914 | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p03st06TASK06_20210205_datatypes.py | 117d126123441b6fb42d7d39b655d4b2bc394545 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | '''
Напишите программу, которая считывает две строки и выводит на экран конкатенацию этих строк
Примечание: конкатенация - операция "сложения" двух строк
Sample Input 1:
Язык программирования
Python
Sample Output 1:
Язык программированияPython
Sample Input 2:
37
81
Sample Output 2:
3781
'''
s1, s2 = input(), inpu... | [
"ms33@inbox.ru"
] | ms33@inbox.ru |
6e8ee652e5e7b105b697cf9fdec23a5e025e1dee | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /郝嘉良2018013383/操作系统实验/作业3.py | 44b2f84b1cc0ec63e1941c65a01a64ac57e05c53 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 4,488 | py | import multiprocessing
import threading
import logging
import time
# 1.多进程实例演示
def hello(i):
print('hello, im', i)
if __name__ == '__main__':
for i in range(10):
p = multiprocessing.Process(target=hello, args=(i,))
p.start()
# 2.多进程自定义进程名称
logging.basicConfig(
level=... | [
"noreply@github.com"
] | wanghan79.noreply@github.com |
5e5a54d0191082f22946db5b5b2325b7c67c51d2 | 6e86e685d0469f131446c809c1478c8faf27a382 | /jhmanager/repo/users.py | 582b475baddd69a97050511ed92ca6afd4986e97 | [] | no_license | CardinisCode/jobhuntmanager | 551091e35ab30704c42191f3c35b2e91a5f7a704 | 23be1e10bdaaa9d203090fbbd9a44fe0472f8b18 | refs/heads/master | 2023-04-26T06:47:44.726364 | 2021-05-25T13:04:34 | 2021-05-25T13:04:34 | 317,517,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | from jhmanager.repo.database import SqlDatabase
from datetime import date, time
from flask import flash
import sqlite3
class User:
def __init__(self, db_fields):
self.user_id = db_fields[0]
self.username = db_fields[1]
self.hash = db_fields[2]
self.email = db_fields[3]
self... | [
"ac.folgado@gmail.com"
] | ac.folgado@gmail.com |
745e496a4d5f14874c52650c007e52a0330e2f34 | c0613b519124979d1de12614a9a7a745f9c9a66f | /xarray_leaflet/transform.py | 8d1eb0ac19ca7d3304887c784e7dc8a224b59fd8 | [
"MIT"
] | permissive | netgodz/xarray_leaflet | 1cccb67251dd81817c6893f47a55989846d03062 | d4c22781243e8e4900cd43a4479cfc932f68bdcf | refs/heads/master | 2023-07-16T15:15:47.090465 | 2021-08-06T20:16:46 | 2021-08-07T06:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import warnings
import numpy as np
import xarray as xr
def passthrough(array, *args, **kwargs):
return array
def normalize(array, *args, **kwargs):
vmin = np.min(array).values
vmax = np.max(array).values
array = (array - vmin) / (vmax - vmin)
return array
def coarsen(agg_func=xr.core.rolling.D... | [
"david.brochart@gmail.com"
] | david.brochart@gmail.com |
171345562deab9b5d2ed7d77b42ef9ca9b3a89fe | 9ce3385fb9829b70f191ea9478ebfe2dd4971c80 | /render/imdraw/quad.py | 896bbb74707bf37dfa00d1980753279e53e698b4 | [] | no_license | zalavariandris/editor | f3ffce9ae2bbd70fd9e9ce1b9ce8fc7bb23468a3 | 35b8941af12da58bb190967c28a78c91d5bb43dc | refs/heads/master | 2022-12-18T10:53:24.274321 | 2020-10-01T16:58:17 | 2020-10-01T16:58:17 | 283,721,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | from OpenGL.GL import *
import numpy as np
from .helpers import buffer_offset
import logging
import functools
@functools.lru_cache(maxsize=128)
def quad_geo():
positions = np.array(
[(-1.0, +1.0, 0.0),
(-1.0, -1.0, 0.0),
(+1.0, +1.0, 0.0),
(+1.0, -1.0, 0.0)],
dtype... | [
"zalavariandris@gmail.com"
] | zalavariandris@gmail.com |
0e1aab0283ba37b62180201b79ac72c433de0f15 | 165abb376cc4ead31e9b4d49c1a0f7c917f827ae | /ixc_django_docker/settings/haystack.py | 4dfae42c1548f375d65da4f19fb6a243db1fa4c2 | [] | no_license | ixc/ixc-django-docker | 8a04d0efa1d2ac0610b7c55facc6a210b6b6584d | 2f4302d8dd52ff0d1ad7a6f5973f70bcd808f283 | refs/heads/master | 2023-08-23T10:54:56.399455 | 2023-08-22T03:38:18 | 2023-08-22T03:38:18 | 74,635,795 | 6 | 1 | null | 2021-12-09T05:44:39 | 2016-11-24T03:45:17 | Shell | UTF-8 | Python | false | false | 476 | py | # Get host and port from the environment.
ELASTICSEARCH_ADDRESS = os.environ.get(
'ELASTICSEARCH_ADDRESS', 'localhost:9200')
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine',
'INDEX_NAME': 'haystack-%s' % PROJECT_SLUG,
... | [
"real.human@mrmachine.net"
] | real.human@mrmachine.net |
516db0555bf68f2992a2c77c28f9bdf347708d9d | a4e6b080d17611853374577aaecb0367366b39b5 | /glycresoft_sqlalchemy/utils/data_files.py | 9692dd3d26e4eda167b518a3793d1736dbfd05e7 | [] | no_license | mobiusklein/glycresoft_sqlalchemy | 6235b1ea2c8da9ef6b2e725a60f0b6a925f1689d | e0edf12a8d6243cc2438a6236aa0564a28f92a8a | refs/heads/master | 2020-04-06T05:38:35.849225 | 2016-11-21T03:25:26 | 2016-11-21T03:25:26 | 37,537,754 | 0 | 2 | null | 2016-11-21T03:25:27 | 2015-06-16T15:10:45 | Python | UTF-8 | Python | false | false | 2,525 | py | import os
from functools import partial
from .vendor import sqlitedict, appdir
from glycresoft_sqlalchemy.report import colors
from glycresoft_sqlalchemy.structure.data import unimod
dirs = appdir.AppDirs("GlycReSoft", "Zaia Lab", "1.0", roaming=True)
pjoin = os.path.join
data_directory = dirs.user_data_dir
cache_... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
911c01224778fd2b7f5f5f645eb0716acbf69539 | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /Extra Lockdown Tasks/Logical_Operators.py | 6b1193d9bf1da442ed977288478970802a3c804f | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # Logical Operators in Python :-
# Identity
# Membership
Truth table
and , or , not
x y o/p
0 0 0
0 1 0
1 0 0
1 1 1
ex:-
x = 100
y = 200
print(x<y and y>x)
print(x<y and y<x)
OR Truth Table
x y o/p
0 0 0
0 1 1
1 0 1
1 1 1
Ex :-
x = 1001
y = 200
print(x<y or x>y)
x = True
print(not(x))
EX :-
x = ... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
1db20ad25163c045f050fd3441c29eb62f9bb3d9 | 2a0055c32cb34b48fd3ef705000ce373376d5439 | /src/lib/training/scene_sampler.py | f4bdc5828e958cecb388cd84228d0eef206f8bdc | [
"MIT"
] | permissive | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | dc60818b96eea5181b2c923ea60cdacc02dd7187 | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | refs/heads/master | 2023-01-29T16:30:38.757836 | 2020-12-09T06:18:46 | 2020-12-09T06:18:46 | 319,860,058 | 48 | 10 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import math
import torch
from torch.utils.data import Sampler
import torch.distributed as dist
import numpy as np
def get_valid_starts_and_ends(get_frame_arguments: np.ndarray, min_state_index: int = 0):
get_frame_arguments = get_frame_arguments[:] # put on the memory if the array is zarr
scene_change_poin... | [
"acc1ssnn9terias@gmail.com"
] | acc1ssnn9terias@gmail.com |
51722ce4582e94fa2bcfb5e42f6fbbe0258d6a0f | da3b9260ee5b352c9438a43d155cebedd46e2fc9 | /emlearn/tools/window_function.py | ef59e239eb95e8de7970a2e6a2d284d740b21f6d | [
"MIT"
] | permissive | profjefer/emlearn | 8eadde4d63f8cb2edd1d33a556039b5b08185bf2 | cc5fd962f5af601c02dfe0ec9203d1b30e6b3aef | refs/heads/master | 2023-07-15T02:36:56.072459 | 2021-08-08T09:52:00 | 2021-08-08T09:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py |
"""eml-window-function: Generating C code for window functions
Part of the emlearn project: https://emlearn.org
Redistributable under the MIT license
"""
import argparse
import textwrap
from .. import cgen
# Supports everything without parameters in scipy.signal.get_window
_known = 'boxcar, triang, blackman, hammi... | [
"jononor@gmail.com"
] | jononor@gmail.com |
4037b86353a2311197e3c0421e50369f7d041340 | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /utils.py | aab51dd8b4c7a0d60394907fa69bc482cd0d2d7e | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py |
class TreeNode(object):
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
| [
"songlin.lin@yundata.com"
] | songlin.lin@yundata.com |
7a5a5eb855c8c133eaf70cae42962096075431d4 | 2fab03dd2bc2b214a1f608e3ddb1990b052fcfd0 | /first_forms/apps/forms/forms.py | 07fa07485b8a1ed4396b54d89357f6cc1dbf3671 | [] | no_license | tlee0058/Django_FORMS | 7f7bdbbdc090f59231c8dd1e4624ff16b7a88890 | 2260b86c3d06fd2a10f867481f9e4a068997fd6a | refs/heads/master | 2020-03-09T07:59:31.055697 | 2018-04-08T21:27:35 | 2018-04-08T21:27:35 | 128,678,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django import forms
from .models import User
class RegistrationForm(forms.Form):
first_name = forms.CharField(max_length=45)
last_name = forms.CharField(max_length=45)
email = forms.EmailField()
password = forms.CharField(max_length=100, widget=forms.PasswordInput)
confirm_password = forms.CharField(max_lengt... | [
"tlee0058@gmail.com"
] | tlee0058@gmail.com |
7b1f9660c366b7545b5e9bf7fe81748e3e2d5df8 | 4760a482ed52eb7f786e6987e55704fcfb33dd18 | /app.py | 15435449c61f34cd0ec135223aadbf9d16a11212 | [] | no_license | zhidu-qidian/scheduler | 18566993df81fb3b211d783aacef0c5b4268d8d6 | 08be2a10eb769ccb2da6d3de17bd19b4c029cd87 | refs/heads/master | 2021-05-15T18:41:15.254984 | 2017-10-20T08:19:31 | 2017-10-20T08:19:31 | 107,651,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,101 | py | # coding: utf-8
from datetime import datetime
import logging
import sys
from urllib import quote
from apscheduler.schedulers.tornado import TornadoScheduler
from apscheduler.jobstores.base import JobLookupError
from pymongo import MongoClient
from redis import from_url
from tornado import httpserver
from tornado impo... | [
"xinyong.wang@qq.com"
] | xinyong.wang@qq.com |
ff315fba136d0af80f9ab92d97c8f7dcd05df541 | 35d16f57feae5fbb29237992590981b324bfe10b | /tests/functional/factories/daemons/test_master_factory.py | c3d1ab277613668aad13b73a7dbf685f1ef2f4b9 | [
"Apache-2.0"
] | permissive | modamod/pytest-salt-factories | 592c477564534c196744f8445c5b62d97190af8e | 4bc885d60ec3f58d0c84283276ba1c99e6c30ba1 | refs/heads/master | 2023-02-13T15:32:34.123167 | 2021-01-19T06:15:33 | 2021-01-19T06:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,060 | py | import pytest
from saltfactories.utils import random_string
from saltfactories.utils import running_username
def test_keyword_basic_config_defaults(salt_factories):
master_config = salt_factories.get_salt_master_daemon(
random_string("master-"), config_defaults={"zzzz": True}
).config
assert "zzz... | [
"pedro@algarvio.me"
] | pedro@algarvio.me |
0dbd426f8b5f12dbc8f3d582a2e24f5700f8f1b1 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005965.py | 190e8d7a975427451853e01e989a121bf4b152c5 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
f05aad2d52815971fbc0b159d3996d831cefae17 | 2e3fd7f4d78847fbd713f521587fe39116fa34a0 | /glue/managers/simple.py | b7bf5644c754f60f1c85d25068b9074bab0f536c | [
"BSD-2-Clause"
] | permissive | jkenlooper/glue | 24e3da4a94ec34632391f8ce93826cce3c347a57 | 8d2788fce4e23c314b2428831d34f89cdbeb2a9c | refs/heads/master | 2021-09-09T10:52:56.701113 | 2021-04-10T12:37:53 | 2021-04-10T12:37:53 | 181,468,692 | 0 | 0 | NOASSERTION | 2019-04-15T10:58:51 | 2019-04-15T10:58:51 | null | UTF-8 | Python | false | false | 330 | py | from .base import BaseManager
class SimpleManager(BaseManager):
"""Process a single folder and create one sprite. It works the
same way as :class:`~ProjectSpriteManager`, but only for one folder.
This is the default manager.
"""
def find_sprites(self):
self.add_sprite(path=self.config['s... | [
"me@jorgebastida.com"
] | me@jorgebastida.com |
c976055f913211d6c572da188dd343620dd1777c | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11A/COLREQD11AUN.py | 43c7ae15b28a1c63211d543e79f5399cf0ce7c28 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,421 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 1},
{ID: 'FCA', MIN: 1, MAX: 1},
{ID: 'DOC'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
732aa5dde56b43bc0f071270e29ec985954b334e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03346/s258893438.py | 945e31f4eeb13ab37b2dc35c29cda1e50389a8ca | [] | 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 | 690 | py | import sys
input = sys.stdin.readline
import heapq
def read():
N = int(input().strip())
P = []
for i in range(N):
p = int(input().strip())
P.append(p)
return N, P
def solve(N, P):
Q = [0 for i in range(N)]
for i in range(N):
Q[P[i]-1] = i
max_count = 0
count =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
18f082ffc446b47fa664e4b53b891ae87ac64a7e | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/DL/DL3-2.py | ae888fd2295b854fffc3b000ca76341442b1ef96 | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import tensorflow as tf
# w와 b에 대한 초기값을 부여한 상태에서 모델링
w=tf.Variable([.3], tf.float32)
b=tf.Variable([-.3], tf.float32)
x=tf.placeholder(tf.float32)
y=tf.placeholder(tf.float32)
lm=x*w+b
loss=tf.reduce_sum(tf.square(lm-y))
train=tf.train.GradientDescentOptimizer(0.01).minimize(loss)
x_train=[1,2,3,4]
y_train=[0,-1,-2,-... | [
"soheekwak728@gmail.com"
] | soheekwak728@gmail.com |
4a9a89a9bd4fe83f91578a20cf8ba51411b5e658 | b9b7bf5d82ffc7c972dda803241c3e6247a92002 | /pyshtools/spectralanalysis/spectrum.py | 048b9436736827a5214869cb2a7209fb92ee713e | [
"BSD-3-Clause"
] | permissive | MMesch/SHTOOLS | 9aff298b8075f7d9fad9690ab2053e934197403d | 72bf04fb9b83f17c2dac2a8f252a8634d6f7588a | refs/heads/master | 2021-01-24T20:02:42.911226 | 2017-12-25T22:35:00 | 2017-12-25T22:35:00 | 26,169,620 | 1 | 0 | null | 2016-08-29T11:57:46 | 2014-11-04T13:22:14 | null | UTF-8 | Python | false | false | 4,810 | py | import numpy as _np
def spectrum(clm, normalization='4pi', degrees=None, lmax=None,
convention='power', unit='per_l', base=10.):
"""
Return the spectrum of the spherical harmonic coefficients as a function
of spherical harmonic degree.
Usage
-----
array = spectrum(clm, [normaliza... | [
"mark.a.wieczorek@gmail.com"
] | mark.a.wieczorek@gmail.com |
967d0339908521e033f2e7ab5123aaae8a304dc1 | 4b8b0be0588f9e5249729f165b72a6b38324837d | /setup.py | fe4f9c413e1a971588bfa6a67604b75d511472a3 | [] | no_license | GlycReSoft2/embed_tandem_ms_classifier | 5e2f569f2b74f2f14f1c1c0cede32de99c150890 | 0495f2234562a9c5dd02d545800c077df2305387 | refs/heads/master | 2020-06-02T09:32:55.457664 | 2015-06-20T21:30:19 | 2015-06-20T21:30:19 | 22,615,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | import sys
from setuptools import setup, find_packages, Extension
# With gratitude to the SqlAlchemy setup.py authors
from distutils.command.build_ext import build_ext
from distutils.errors import (CCompilerError, DistutilsExecError,
DistutilsPlatformError)
ext_errors = (CCompilerError,... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
7922391a74fbb335d75565df7e040ef6f5fd5cd2 | 7655e4915fc37c795386252949f4888cb8741510 | /movie_data/models.py | 305dc3ecbfa149f5ff009b3e428035c963dfae5c | [] | no_license | StillsSma/django_movies | 59cf883730ced26172fe1c4ad3dbea87e8d4624d | cf49e429ebf957f5b5068dcdfe6517e47bbfcaba | refs/heads/master | 2021-01-17T16:23:46.585776 | 2016-12-31T17:36:08 | 2016-12-31T17:36:08 | 70,194,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | from django.db import models
# Create your models here.
class Movie(models.Model):
#movideid = models.IntegerField(primary_key=True)
movie_title = models.CharField(max_length=100)
release_date = models.CharField(max_length=11)
videorelease_date = models.CharField(max_length=10)
IMDbURL = models.Ch... | [
"samdawson301@live.com"
] | samdawson301@live.com |
ac2b903968d57e5a20ad2475bdd901522ae13bf0 | abc24a58da46f02551e09b229087420f70b37ddf | /att/upeek/upeek/augment.py | a99891e2ef13c34d68eca5bc4cb9817cad4c0974 | [] | no_license | erikperillo/att | bfd7198a0ea3687e1fac952e2aa6510911b8db19 | 4b02fefc40c4dfde2549857272ad943bff168a7e | refs/heads/master | 2020-07-03T19:36:47.195578 | 2018-07-18T14:30:02 | 2018-07-18T14:30:02 | 67,546,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,037 | py | """
The MIT License (MIT)
Copyright (c) 2017 Erik Perillo <erik.perillo@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
c97351ef49dfe8735e8b6a5599c8b563241932cd | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /syn_mem_corruption_3switch_fuzzer_mcs/intermcs_7_/interactive_replay_config.py | f85bde175e0795cebfea56199299bdfee1f657fc | [] | 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,022 | 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_... | [
"b-github.com@wundsam.net"
] | b-github.com@wundsam.net |
e1147a359018bf44948d2604c26fc6f0e527ea4f | cba46e28e6f60d9bd8cc8c24a3ff8e065e5a8e49 | /scrap_trade_proj/customers/migrations/0019_auto_20191031_1014.py | a3e1ab6db2b7d3beb3329c5de1c8a7ede469ddaa | [] | no_license | Horac-Bouthon/scrap-trade-4 | fb7e9f8f9ec41446318ce03ad5ff7024ad795771 | 7686703ce5783dd4a48dc1d9600cda01aa554faa | refs/heads/master | 2022-12-12T21:52:38.209500 | 2020-03-17T07:50:30 | 2020-03-17T07:50:30 | 227,142,003 | 0 | 0 | null | 2022-11-22T04:39:35 | 2019-12-10T14:33:20 | Python | UTF-8 | Python | false | false | 1,185 | py | # Generated by Django 2.2.6 on 2019-10-31 10:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customers', '0018_auto_20191031_0930'),
]
operations = [
migrations.RemoveField(
model_name='cu... | [
"tbrown.wolf@ubk.cz"
] | tbrown.wolf@ubk.cz |
41bae6481bf4d06f0950f00aeb2ce5087d1eb34d | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartC/py字符串的全排列.py | 05bb54b8b4bcd922bdbe01c4e98fa05bea5670c4 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py |
from itertools import permutations
string = list(input())
string.sort()
for item in permutations(string):
item = ''.join(item)
print(item)
print('')
# abc
# 输出结果:
abc
acb
bac
bca
cab
cba
| [
"2901429479@qq.com"
] | 2901429479@qq.com |
d95bc3af87a938f03bfa83472e86030ed654c535 | 628ab6e412e7c4c755bc42d8137acd3da2d4be0e | /apysc/display/line_cap_interface.py | bf9828ca64f0eef0a21e9688109051205fdc76d5 | [
"MIT",
"CC-BY-4.0"
] | permissive | TrendingTechnology/apysc | ffd7d9b558707b934c5df127eca817d4f12d619b | 5c6a4674e2e9684cb2cb1325dc9b070879d4d355 | refs/heads/main | 2023-06-01T20:19:20.835539 | 2021-06-20T03:53:33 | 2021-06-20T03:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | """Class implementation for line cap interface.
"""
from typing import Any
from typing import Dict
from typing import Union
from apysc import String
from apysc.display.line_caps import LineCaps
from apysc.type.revert_interface import RevertInterface
from apysc.type.variable_name_interface import VariableNam... | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
db5504e104deb39722576dde7ff2496054907854 | 9827269c84a2afc599a8ac8ac88027b25ef74d78 | /02_51409_wsd_test.py | bbf880931362d50fdacd70498414a064641df60d | [] | no_license | caonlp/wsd_bert_tensorflow_version | 2dbb7883d8a1bc5cedbe0d69a04a8cdda3ce757f | 7cf786d1803ac6e49292469b1afdf71838295b25 | refs/heads/main | 2023-03-13T22:45:26.361832 | 2021-03-04T06:35:06 | 2021-03-04T06:35:06 | 344,372,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | import tensorflow as tf
import numpy as np
import codecs
from keras.utils import to_categorical
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def load_wsd_train_x():
wsd_train_x = codecs.open('51409_train_data', mode = 'r', encoding= 'utf-8')
line = wsd_train_x.readline()
list1 = []
whi... | [
"noreply@github.com"
] | caonlp.noreply@github.com |
073ae140ad00c7ec2e062e9a960cdce49fe8b96f | e1164e094527d4c987adc9c9147788b0f9ed8af3 | /main.py | 61d3d780e6d7f9dd8110c8b40faaa609f9a2ce7b | [] | no_license | marenthedejong/LaMa-Galgje | d30d5ae9edacbeaf1ee90c4f956f1efa8e8e10b8 | e31f89e291b91af53425c67a28726f4e633de66b | refs/heads/master | 2022-11-12T14:42:09.260316 | 2020-07-03T09:07:58 | 2020-07-03T09:07:58 | 273,059,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,543 | py | def galgje():
import random
#zorgt dat er een random woord wordt gekozen uit de lijst
words= ['informatica', 'informatiekunde', 'spelletje', 'aardigheidje', 'scholier','fotografie', 'waardebepaling', 'specialiteit', 'verzekering','universiteit','heesterperk']
#alle woorden waar de computer uit kan kiezen
word =... | [
"replituser@example.com"
] | replituser@example.com |
5269768f48133f066bb8f41c8cc9fb9b612d37d5 | 588f4991cad99f517ca5028e0e41c5b4d5252543 | /contest/keyence2020/C.py | f98ff9ef1e9b01b229f3ad4b4041387f38e11c0f | [
"MIT"
] | permissive | mola1129/atcoder | 3002ff38cabf0ccb5142bd576ed90419fccde02e | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | refs/heads/master | 2020-06-16T12:24:49.609707 | 2020-03-14T15:58:42 | 2020-03-14T15:58:42 | 195,571,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | n, k, s = map(int, input().split())
ans = []
for i in range(k):
ans.append(s)
for i in range(n - k):
if s + 1 <= 10 ** 9:
ans.append(s + 1)
else:
ans.append(1)
print(*ans)
| [
"ms.mola1129@gmail.com"
] | ms.mola1129@gmail.com |
309d604e8f4d7daa6c149baff161a6a0f70af028 | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/testfiles/LINKMAGIC.py | 7312066a4729b9b7734069827034756e0c85723b | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,447 | py | import pymysql
import time
import pandas as pd
from tqdm import tqdm
from datetime import datetime, timedelta
def LINK():
print('LINKMAGIC START')
try:
data = pd.read_csv(r'/home/nibbler/nibblerppman/nibbler/trading/collectors/coins/LINK/1m/LINK1m.csv')
#if the file is being populated it wont be fo... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
7ce3e7e2038833d38156599981f270e711b011b1 | f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3 | /Math/367_Valid_Perfect_Square.py | a0388e81d9425056f254fc88419d9f743ed97c3e | [] | no_license | xiaomojie/LeetCode | 138808eb83938f9bd3c2e8a755d908509dff0fd3 | eedf73b5f167025a97f0905d3718b6eab2ee3e09 | refs/heads/master | 2021-06-12T09:26:01.257348 | 2019-10-23T10:41:06 | 2019-10-23T10:41:06 | 76,184,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """
求给定的num是否是一个数的平方。
牛顿迭代法求平方根:
设r是函数y=f(x)的根,使用牛顿迭代法,给定一个初始值x0,过x0做切线,y = f(x0) + f'(x0)(x-x0),求
该切线与x轴的交点x1 = x0 - f(x0)/f'(x0),称x1为r的一次近似值,再过(x1,f(x1))做切线。以此循环下去
所以迭代公式为:xn+1 = xn - f(xn)/f'(xn)
对于求平方根,x^2 - n = 0, 可看做函数 f(x) = y = x^2 - n,f'(x) = 2x, 则迭代公式为:
xn+1 = xn - (xn^2 - n)/(2*xn) = xn - xn/2 + n/(2xn) = 1/... | [
"519399762@qq.com"
] | 519399762@qq.com |
2c0cf2b46fe03109d5b7538f2b181faa0c18b80b | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad190.py | b096d9fe7ec9f3748275958a6e172021d34f49a2 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import subprocess
import hmac
import crypt
import hashlib
import zlib
import lzma
import threading
import bz2
import zipfile
import socket
import tarfile
import gzip
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
199e2fddf75cc9277b94c8b9a7376bad6d387ac5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2718/60652/241534.py | 867df002441925aee0423dd0522251ff896ef573 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | l=list("".join(input()))
s= input().replace(',', '').replace('[', '').replace(']', '')
index=0
while index<len(s):
tmp=l[int(s[index])]
l[int(s[index])]=l[int(s[index+1])]
l[int(s[index+1])]=tmp
index+=2
print("".join(str(i) for i in l)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4168c9aca8547d6a3efc4a82c8b4fcdd1f820471 | 91365d8ef539a9952f048e1fef03b6f76a0ccf60 | /torch/onnx/_internal/fx/__init__.py | a3037f1cf29a2b678ab4e418fd1c190f9402063f | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | ppwwyyxx/pytorch | 6e68cd816e8197e298c50d7f0e82cc97aff4dbdf | 2883cb464810611c5de37b2ca06771582ddf5f83 | refs/heads/master | 2023-08-10T00:39:48.165007 | 2023-06-07T01:51:59 | 2023-06-07T01:51:59 | 160,557,191 | 3 | 3 | NOASSERTION | 2018-12-05T17:53:38 | 2018-12-05T17:53:37 | null | UTF-8 | Python | false | false | 170 | py | from .context import FxToOnnxContext
from .serialization import save_model_with_external_data
__all__ = [
"save_model_with_external_data",
"FxToOnnxContext",
]
| [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
368092fc9f933ed1677b7069f0f8572a37fb26ea | a7288d7cce714ce3ddf3de464f959a2cb6c62e80 | /Django_Intro/bin/sqlformat | 65622073bec5cc8bc536e3d99a8912fd7b304755 | [] | no_license | jhflorey/Python | 94d898c9cfa05a941e0ac0c3506587ad494b76ab | 4d005000bb95ee4414a6aebef4cebdcbc13e4d99 | refs/heads/master | 2020-03-20T10:44:00.560147 | 2018-06-14T16:48:49 | 2018-06-14T16:48:49 | 137,382,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/jhflorey/Documents/Dojo/Python/Django_Intro/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jhflorey@gmail.com"
] | jhflorey@gmail.com | |
3b0bb11732c17bc4fc7df9419413a488fbd43761 | 149364d3e923ac89990be782a4a8464f4f7f0377 | /number_reader.py | ef7c215a47a06c4bd943587aa979b95b81be8457 | [] | no_license | laboyd001/python-crash-course-ch10 | dec44a1a81dc20931f4cc22e6ab6da0d6716895a | b42aadc9aafc422ffd1e99035c8519cae02ebdba | refs/heads/master | 2020-04-13T20:25:42.502954 | 2018-12-28T16:27:37 | 2018-12-28T16:27:37 | 163,429,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #reads the list back from the json file
import json
filename = 'numbers.json'
with open(filename) as f_obj:
numbers = json.load(f_obj)
print(numbers) | [
"lesley.a.boyd1@gmail.com"
] | lesley.a.boyd1@gmail.com |
99a5ccdf1262a853052de6a1007107d9fb70371e | 3e4c9f69ea13636e2bf8766b3736af373a3c83f6 | /MonoHbb/RunAllRegionUsingFarmOut_wj.py | cf5d8db29d725dda489f493b8ab9557fbeeca3d8 | [] | no_license | ramankhurana/MonoH | c32f44fddb65677d31846ec6aa9c6c0ac0b5877b | 8495336ba22a81858fcaf23a7f4ebd7fc6880985 | refs/heads/master | 2020-04-18T14:41:40.393519 | 2017-08-10T11:16:53 | 2017-08-10T11:16:53 | 67,509,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | #!/usr/bin/env python
#from MonoHBranchReader import AnalyzeDataSet, CheckFilter, MakeTable, DeltaR, Phi_mpi_pi
import os
mode='wj'
#inputfilename='NCUGlobalTu... | [
"raman.khurana@cern.ch"
] | raman.khurana@cern.ch |
c7b276ea5e16b96df513e71b6809af73b654a3e7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_indigent.py | f6376ec43de6ef0c5d00c850cc39f702bc8227fb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py |
#calss header
class _INDIGENT():
def __init__(self,):
self.name = "INDIGENT"
self.definitions = [u'very poor']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[obj2]['prope... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
85f61554cf66fecc3b5b8039b168fd7dffb6a7ef | 38e82df34efcb0ed819f49457210be9616caf875 | /ABC/001/1_b.py | 6bdba55ebd8cc3127a1ca59bbcc6bb1fe74238b8 | [] | no_license | oden6680/AtCoder | 96385ce02ff02909e2f17123dad67d63baa4a0f7 | 3b20885d86726fcf4617076d653abb125609125e | refs/heads/master | 2022-09-19T13:12:02.705304 | 2020-05-31T19:58:51 | 2020-05-31T19:58:51 | 263,191,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | N = int(input())
N = N/1000
if N < 0.1:
vv = 0
elif 0.1 <= N <= 5:
vv = 10 * N
elif 6 <= N <= 30:
vv = N + 50
elif 35 <= N <= 70:
vv = (N-30)/5 + 80
elif N > 70:
vv = 89
print(str(int(vv)).zfill(2)) | [
"oden6680@gmail.com"
] | oden6680@gmail.com |
42520a99c2baa0939e5f98eaaa0557f0cd41267d | 4bc19f4dd098ebedcb6ee78af0ae12cb633671fe | /chat_tornadio/utils.py | 4b8d14624b491fecf606f0044b54b05fb6f57ba5 | [] | no_license | StanislavKraev/rekvizitka | 958ab0e002335613a724fb14a8e4123f49954446 | ac1f30e7bb2e987b3b0bda4c2a8feda4d3f5497f | refs/heads/master | 2021-01-01T05:44:56.372748 | 2016-04-27T19:20:26 | 2016-04-27T19:20:26 | 57,240,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
import time
def get_cts():
return int(round(time.time() * 100000))
def cts_from_timedelta(td):
ts = td.seconds + td.days * 24 * 3600
return ts * 100000
| [
"kraevst@yandex.ru"
] | kraevst@yandex.ru |
99d9e5dbdc792339e2c8bba2b457342b933a13d6 | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/move_20191127160834.py | d778b2ac46a5923d344172f9540fa2d93731f29a | [] | 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 | 346 | py | import os, shutil, glob
oldAddres = 'C:/Users/beuo/Downloads/*.xlsx'
newAdress = 'C:/Users/beuo/Documents/Demandas/AtualizaMiddleIntegrationVtex'
shutil.copy(oldAdress, newAdress)
# try:
# os.makedirs(dst_fldr)
# except:
# print("erro")
# for xlsx_file in glob.glob(src_fldr+"//*.xlsx"):
# shutil... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
2c86b17eb75e0656480c03e3bf0711470a886191 | 6761d430bfa38413985efb319cb02171729f3481 | /indlulamithi/makeorders.py | b447228ba164705bde80fab09cd18d08bb090391 | [
"BSD-3-Clause"
] | permissive | crawfordsm/indlulamithi | b335b469dabefa8b4e1d6dbaafb18eb99c0ee348 | 3d88278f3e7ca5ac46a6bf987eeb475739bd8f22 | refs/heads/master | 2020-12-24T16:05:54.929254 | 2015-01-27T20:41:26 | 2015-01-27T20:41:26 | 29,680,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | py | import sys
import os
import numpy as np
from scipy import ndimage as nd
from astropy.io import fits
from astropy import stats
def minflattenimage(data, size=10):
"""Smooth the image and flatten it using the minimum value in the image
Parameters
----------
data: ndarray
image to flatten
... | [
"crawfordsm@gmail.com"
] | crawfordsm@gmail.com |
6fff6f6268ec05e04bfd66704d708b4988f2a055 | b47289da22cab052a5aa86c940ee45073a82edcb | /board/board_config_tmpl.py | 0bc4e4365410ce214346b7805cc4ae67d130f9fa | [
"MIT"
] | permissive | domenc/mqboard | 3195d4d9342f4a2d805fe17f6e22d240af265a7a | 46ccff99ac60f4f2cb892f41f2b5f8d5a1bc59a9 | refs/heads/master | 2022-11-08T05:33:30.286187 | 2020-07-02T06:25:56 | 2020-07-02T06:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | # board_config contains magic strings that don't get published or checked into source control
# kind tells us which type of board this is running, it is used in board to define LED pins
kind = "nodemcu" <--- UPDATE
#kind = "huzzah32"
#kind = "lolin-d32"
#kind = "esp32thing"
#kind = "tinypico"
#kind = "ezsbc... | [
"tve@voneicken.com"
] | tve@voneicken.com |
aca7f484f5a03a70cba8f08aa9de457a46a307c0 | 6098c4c76b937fe44f941893c6aa6ad4d0412000 | /doug_proj/doug/credentials_template.py | 87f9a3614b60401c316266034e6efb4905579d58 | [] | no_license | kishan/doug | 8979d7fa6885fe143e42c9b7fed024c487ff94ad | 6482b60bc4dcbdf7ac6460db0f3da7c4342482c2 | refs/heads/master | 2021-01-22T05:06:45.557212 | 2017-02-12T23:03:18 | 2017-02-12T23:03:18 | 81,622,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | # copy template below and save in file called credentials.py
CREDENTIALS = {
"access_token":"",
"VALIDATION_TOKEN":"",
"api_key":""
} | [
"kspatel2018@gmail.com"
] | kspatel2018@gmail.com |
74346e82fb06a0cd34614b8570a7c22230e3218e | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/个人项目/果园/project/userinfo/views.py | 1eb53cd0c7dd00a94ef94e8a2ede204e24208a68 | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | import logging
from django.contrib import messages
from django.contrib.auth.hashers import make_password, check_password
from django.core.exceptions import ObjectDoesNotExist
from django.db import DatabaseError
from django.shortcuts import render, redirect
from userinfo.models import UserInfo
# Create your views here.... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
f9f4751d2e9c05ff20569e2fff730457d677e304 | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/robot/robot_20201214160008.py | 046d51ee297654183bab7c9b7fcbfad4b3fd37f5 | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py |
from controller import Robot
from controller import Connector
from controller import Motor
from controller import DistanceSensor
from controller import Device
from controller import PositionSensor
import numpy as np
from deepbots.robots.controllers.robot_emitter_receiver_csv import \
RobotEmitterReceiverCSV
import... | [
"1092673859@qq.com"
] | 1092673859@qq.com |
25ebc6477404f30e4e15e869ae2e7bd4a932b605 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0092.0_Reverse_Linked_List_II.py | f76687c1bb1a3916b824b332406fc4c4f57eb438 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | '''
I do it only in one pass.
T: O(N)
S: O(1)
Runtime: 64 ms, faster than 13.84% of Python3 online submissions for Reverse Linked List II.
Memory Usage: 13.9 MB, less than 87.01% of Python3 online submissions for Reverse Linked List II.
'''
# Definition for singly-linked list.
# class ListNode:
# def __init__(self... | [
"838255715@qq.com"
] | 838255715@qq.com |
07576f9b3eec4640fe26ba3cef131645dcdf2a17 | 4b52336c8e5251c759a28d60635cbf8a66615c07 | /scripts/metrical_error.py | 70b487d57b58382d9077b6cd3c9f92c796e0d464 | [] | no_license | sanskrit-kosha/kosha | f51d8681be0dc8a6a9c9656cec446dc03875a1a0 | 39b90ae9265ab1d7408f889a12092788432eb2fb | refs/heads/master | 2023-04-30T02:46:59.005799 | 2023-04-10T05:00:29 | 2023-04-10T05:00:29 | 189,419,853 | 24 | 13 | null | 2020-12-19T08:24:12 | 2019-05-30T13:35:09 | HTML | UTF-8 | Python | false | false | 1,781 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tries to identify verses with imperfect meters from given file.
Prerequisites:
Put metrical_error.py file in shreevatsa/sanskrit folder.
Put the input_file to be checked for metrical inconsistencies
Usage from commandline:
python metrical_error.py input_file
... | [
"drdhaval2785@gmail.com"
] | drdhaval2785@gmail.com |
c18b3cb7ee53ef6f4e57c84b67f7d88e779e289e | 65f14cce454ac723c74f70b5d39cdc1a58b6a91b | /test.py | c46fdab8e3a52e9e967ba3e0471969553358af18 | [] | no_license | wagolemusa/FlaskAPis | d9d2b81d4a8520d0f79bf476e6e9d0f8a655d6bf | d916b04a962e72a9142a75d7fc53840fbcfec422 | refs/heads/master | 2020-03-23T15:02:00.408224 | 2018-10-15T15:14:57 | 2018-10-15T15:14:57 | 141,716,049 | 0 | 0 | null | 2018-10-10T16:53:05 | 2018-07-20T13:33:59 | Python | UTF-8 | Python | false | false | 1,829 | py | from app import app
import unittest
class FlaskTestCase(unittest.TestCase):
#Ensure that flask was sett up correctly
def test_index(self):
tester = app.test_client(self)
response = tester.get('/login', content_type='html/text')
self.assertEqual(response.status_code, 200)
# Ensure that login page loads corr... | [
"homiemusa@gmail.com"
] | homiemusa@gmail.com |
bf161dacfe80fdf84648076044416621060b7549 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008/programming/libs/openexr/actions.py | bbb492342c23594450270c0a93e02d0fe4894b4b | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shellto... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
7625a749cac98b120e763c7d4acf51ac35d00eba | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil2055.py | 8182827470465e78a48300f2e0b4bb6f4b4b58b2 | [
"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,668 | py | # qubit number=4
# total number=30
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 += X(3) # number=1
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a630382faf9954faa047953a9d9cd71b7f3b32ca | 75cf6a9fd035883b64ca2309382e0178cf370b43 | /Empirical/python/Artificial-Intelligence-with-Python/Chapter 08/visualization1.py | 87c3154afcfd82ddb65576615f5100e38768a547 | [
"MIT"
] | permissive | ygtfrdes/Program | 171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d | 1c1e30230f0df50733b160ca73510c41d777edb9 | refs/heads/master | 2022-10-08T13:13:17.861152 | 2019-11-06T04:53:27 | 2019-11-06T04:53:27 | 219,560,170 | 1 | 2 | null | 2022-09-30T19:51:17 | 2019-11-04T17:39:52 | HTML | UTF-8 | Python | false | false | 3,652 | py | #!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from deap import algorithms, base, benchmarks, \
cma, creator, tools
# Function to create a toolbox
def create_toolbox(strategy):
creator.create("FitnessMin", base.Fitness, weights=(-1.0,))
creator.create("Individual", list, fitness=c... | [
"githubfortyuds@gmail.com"
] | githubfortyuds@gmail.com |
46d714e2d63f7b3970e142a75ec299f3918e24ab | 849e95a72f4f380d6b31573a0a13e9eccd288838 | /legal-api/src/legal_api/services/filings/validations/conversion.py | d532b344ec36b6abb0179a0ec37385fccec37ac1 | [
"Apache-2.0"
] | permissive | bcgov/lear | d9b27e2b44ba607ca13878357a62a0623d54ddee | d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32 | refs/heads/main | 2023-09-01T11:26:11.058427 | 2023-08-31T20:25:24 | 2023-08-31T20:25:24 | 168,396,249 | 13 | 117 | Apache-2.0 | 2023-09-14T20:52:02 | 2019-01-30T18:49:09 | Python | UTF-8 | Python | false | false | 1,951 | py | # Copyright © 2022 Province of British Columbia
#
# 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 agr... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
1229ce4e6ef1de8ce673b6a08aec76352a73ec7f | 2d5171ac7f2640ed73b48aebf4b96e29d5cad818 | /AtcoderProblems/LevelB/147.py | 9b710ddb2985d2bdea5c4d8cb3a478461ada6650 | [] | no_license | kentahoriuchi/Atcorder | d7b8308424175f32d47f24bb15303695780e1611 | f6449d4e9dc7d92210497e3445515fe95b74c659 | refs/heads/master | 2023-06-06T09:26:46.963642 | 2021-06-13T15:08:04 | 2021-06-13T15:08:04 | 255,396,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | N = int(input())
S = list(input())
if N%2 == 1:
print('No')
else:
if S[:N//2] == S[N//2:]:
print('Yes')
else:
print('No') | [
"dorahori_108@yahoo.co.jp"
] | dorahori_108@yahoo.co.jp |
771f88b1dd03b5d6e62b5589304c1a9ea8911b90 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/Basic_Pyramid_1ch_model_for_import_BN/pyr_1s/L3/step09_1side_L3.py | 58b490c9fdcdf4bd6b952ed9edb68970d1693d28 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,874 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
556b47ee9741e6478e72dc7ba357d7f7214ecc55 | f6de805e4e0e169cd82562aca20bfef3b38c8c31 | /apps/users/adminx.py | ed82ab401d80dc903fe1250af5de075c40fee0fa | [] | no_license | Huangkai1008/stuonline | 742ac9b27ea1cda8e2c35bf0425cb076ff0345dc | f874eeeb91433d7d789783347e4ffbb01198da58 | refs/heads/master | 2022-10-26T03:36:40.910069 | 2018-01-08T05:41:15 | 2018-01-08T05:41:29 | 114,594,601 | 0 | 1 | null | 2022-10-18T01:01:58 | 2017-12-18T04:05:32 | Python | UTF-8 | Python | false | false | 1,005 | py | # coding:utf8
import xadmin
from xadmin import views
from .models import EmailVerifyRecord, Banner
class BaseSetting(object):
"""
xadmin全局配置
"""
enable_themes = True
use_bootswatch = True
class GlobalSetting(object):
site_title = "Mooc后台管理系统"
site_footer = "mooc在线"
menu_style = "acco... | [
"18778335525@163.com"
] | 18778335525@163.com |
e40c6d6f5675fdbe0d83e5a15f777af2e4f5f6e6 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/deap/tools/migration.py | c5c5a598b606788966662c951ee1599f7c6f8ab9 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 2,764 | py | from __future__ import division
def migRing(populations, k, selection, replacement=None, migarray=None):
"""Perform a ring migration between the *populations*. The migration first
select *k* emigrants from each population using the specified *selection*
operator and then replace *k* individuals from the a... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
8a9780c347a8c98f84d292c41a1fb0567cb89ea7 | 607241e619ca499121106b218a5e00ac5244bda3 | /analysis/plot_power_spectrum_ch_hydro_MPI_enzo.py | 047f5abbf4b31835cfaf40243969c97d0465bc6b | [] | no_license | bvillasen/cosmo_sims | 37caea950c7be0626a5170333bfe734071c58124 | 8b20dc05842a22ea50ceb3d646037d2e66fc8c9b | refs/heads/master | 2020-04-22T23:22:28.670894 | 2020-01-02T23:32:39 | 2020-01-02T23:32:39 | 114,167,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,135 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
import h5py as h5
from power_spectrum import get_power_spectrum
dev_dir = '/home/bruno/Desktop/Dropbox/Developer/'
cosmo_dir = dev_dir + 'cosmo_sims/'
toolsDirectory = cosmo_dir + "tools/"
sys.path.extend([toolsDirectory ] )
from load_data_cholla import loa... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
ae3fc09f862ea7e2d30971709cad0a4ea02cc83f | e84a9b9bf1398f0e78a63ea3c5d50a5263165301 | /ridge.py | 07f327e9bd03ad145265355c94531c53c7a508ba | [] | no_license | theovincent/SAG_vs_SDCA | 6289f8ae90c8db5bc734cc76b362c7d329bd8d06 | 827614d3ef6bbd2355a53ff745879a887e23d5d8 | refs/heads/master | 2022-06-26T10:15:19.746976 | 2020-05-10T12:43:34 | 2020-05-10T12:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
# For the data
from src.utils.preprocess import get_houses_data
# For sag method
from src.sag.train_sag import sag_train
from src.sag.test_sag import sag_test
import src.sag.loss.squared_loss as square_sag
from src.sag.accuracy.regression_acc... | [
"theo.vincent@eleves.enpc.fr"
] | theo.vincent@eleves.enpc.fr |
349c0e8015ac58454cfde9a9351ad0e72ba789e7 | d02508f5ebbbdb4ba939ba830a8e8d9abc69774a | /Array/combinationSum.py | 3162ed77fd98c7e3440de32e89a479d00c864026 | [] | no_license | sameersaini/hackerank | e30c6270aaa0e288fa8b25392819509849cdabad | 3e66f89e02ade703715237722eda2fa2b135bb79 | refs/heads/master | 2021-06-12T09:24:15.266218 | 2019-10-18T02:22:00 | 2019-10-18T02:22:00 | 31,360,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | def getCombinations(result, combination, candidates, target, startIndex):
if target == 0:
print(sum(combination))
result.append(combination[::])
return
for i in range(startIndex, len(candidates)):
if candidates[i] > target:
break
combination.append(candidate... | [
"sameersaini40@gmail.com"
] | sameersaini40@gmail.com |
e593a1aed501a0ba2ff2741d38bd5ecdde517abc | aa3cc5cddf07721962cdd92611daa0198ecc32ea | /nerds/features/rel2bow.py | c6ff2e0bab60aa292a61dbfca21f0c8c69e8a250 | [] | no_license | druv022/Disease-Normalization-with-Graph-Embeddings | 486a7c59d94ff502145796c1921611b937a4006a | c816ba37815d06bea394a99614e07baa3ebed5f2 | refs/heads/master | 2023-02-26T12:55:18.927522 | 2023-02-14T02:36:15 | 2023-02-14T02:36:15 | 242,658,320 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,181 | py | from pathlib import Path
from scipy.sparse import csc_matrix
from sklearn.externals import joblib
from sklearn.feature_extraction.text import CountVectorizer
from nerds.features.base import RelationFeatureExtractor, UNKNOWN_WORD, UNKNOWN_LABEL, UNKNOWN_POS_TAG, \
UNKNOWN_DEPENDENCY, BOWFeatureExtractor
from nerds... | [
"c.thorne.1@elsevier.com"
] | c.thorne.1@elsevier.com |
402ed76f4050dfce87cdf347cee70aa1d417b2b9 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/dolby_digital_plus_loudness_control_mode.py | efc53743e4d22e242284b556533a00f56e0a0846 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 252 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
class DolbyDigitalPlusLoudnessControlMode(Enum):
PASSTHROUGH = "PASSTHROUGH"
CORRECTION = "CORRECTION"
| [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
7196ceabaee7d344102504ba28399e85aea0a3c2 | 60e6ea6af12bb37450dc4f254f953d81623232ce | /databases/venv/Scripts/pip3.8-script.py | 1b7b98beb5faf95df7a500294d4b8556ee0eb4ab | [] | no_license | vedant3598/PyCharm-Projects | 72a48d3e8468949c59675330c12aad1c7a03de41 | 7f49533b9c66de33c6a44e4864b1a639e6bfb0be | refs/heads/master | 2020-12-14T15:37:53.838758 | 2020-01-18T20:11:50 | 2020-01-18T20:11:50 | 233,339,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!C:\Users\vedan\databases\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"vedant18@hotmail.com"
] | vedant18@hotmail.com |
b4e33b3180ce6ed1a3986904ec6e74ca3c6384fd | 10d98fecb882d4c84595364f715f4e8b8309a66f | /experience_replay/train.py | 74c4899eac50fc4f53a34183dee9333d07cdb04f | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 3,559 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f58c4b1e9c6366deb20e2f21faa02caffaaed02d | 0d4ed26eb44d54238d86eff91f7b45ab62609161 | /arakat-core/pipeline_generator/preprocessing/graph/ParentChecker.py | 5051302aa3e4fa7275085426d9e23e4b27e0a954 | [
"Apache-2.0"
] | permissive | obalcik/arakat | c8583d8ce4d471df3cf3d9ef4a604307b75c30f5 | 7a8a30708bf8f74de7384c290c035a3a65d3ba47 | refs/heads/master | 2020-03-29T21:36:34.118850 | 2018-11-28T12:18:04 | 2018-11-28T12:18:04 | 150,376,678 | 1 | 0 | Apache-2.0 | 2018-09-26T06:10:08 | 2018-09-26T06:10:08 | null | UTF-8 | Python | false | false | 3,103 | py | from domain.HighLevelNodeTypes import HighLevelNodeTypes
from domain.ErrorTypes import ErrorTypes
from domain.SpecialCases import SpecialCases
def check_parents(cur_nodes, edge_info, nodes):
parent1 = cur_nodes[0]["parent"]
parent2 = cur_nodes[1]["parent"]
# No nodes (except Task nodes) can have a None par... | [
"erelcan89@gmail.com"
] | erelcan89@gmail.com |
a130e7cbc5096fc05d24b77c1bb957b1e492c07d | f466373b13ae038770990331e0193133d0729caf | /movie_chatbot_server_ver/movie/my_chatbot_textcnn2/Rnn_chatbot/chat.py | 95ab9f0f0589abcc0a1e3a49e074b82312c434ed | [] | no_license | kih1024/chatbot | 92f8a321996707a123bcb90ba10bfd318aabea84 | e2f7741d17e1042c74966dfebc5628a4f4020250 | refs/heads/master | 2018-09-06T16:41:46.515759 | 2018-06-04T15:53:47 | 2018-06-04T15:53:47 | 115,597,558 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | import tensorflow as tf
import numpy as np
import math
import sys
from Rnn_chatbot.config import FLAGS
from Rnn_chatbot.model import Seq2Seq
from Rnn_chatbot.dialog import Dialog
import xml.etree.ElementTree as ET
import urllib.request
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
url = "http://www.kobis.or.kr/kob... | [
"rladlsgh654@naver.com"
] | rladlsgh654@naver.com |
68a8fa89f93202a0a70bcd74a4cb00d6cd3443ce | 6cbaade56c5db347d1be9a3422a69af52df39b97 | /python_workspace/3_bigdata/02_Standardization_Analysis/1_CSV/3pandas_value_meets_condition.py | 7d6e3720622a55a884ddfd88fa1510ccd7e19c49 | [] | no_license | baewonje/iot_bigdata_- | b54e3772f64b9695efee8632183590628b679e11 | 2ce1af67d2f05abeb2ecd442b7299f349bdb9753 | refs/heads/master | 2020-09-06T09:53:53.018320 | 2019-12-06T08:19:33 | 2019-12-06T08:19:33 | 220,390,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # 목적: pandas 문법으로 특정 행을 필터링하기
import pandas as pd
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_csv(input_file)
data_frame['Cost'] = data_frame['Cost'].str.strip('$').astype(float)
data_frame_value_meets_condition = data_frame.loc[(data_frame['Supplier Name'].str.contains('Z'))... | [
"50129576+baewonje@users.noreply.github.com"
] | 50129576+baewonje@users.noreply.github.com |
fdaf7031d6c27c7b70b0ded64c5e71e167f1d4ed | 8042163dbac5ddf47f078b4d14f4eb6fe1da030d | /tensorflow/python/profiler/profiler_v2_test.py | 50d29c0532f075d553911327a73af863fb9f1cff | [
"Apache-2.0"
] | permissive | AITutorials/tensorflow | 4513de8db4e9bb74b784f5ba865ef8a573b9efc1 | 6bee0d45f8228f2498f53bd6dec0a691f53b3c7b | refs/heads/master | 2022-07-29T13:37:23.749388 | 2020-06-11T17:47:26 | 2020-06-11T17:57:06 | 271,615,051 | 3 | 0 | Apache-2.0 | 2020-06-11T18:07:11 | 2020-06-11T18:07:10 | null | UTF-8 | Python | false | false | 4,426 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0a3ce7bc94322d2939e3bc61f528b8c73ede0326 | 0e79ab62d4e433accb7ba29a7145257c4bbba346 | /model/train_interact_tpu.py | c82ec0281216a640ac8595aa3a44e8002b56184e | [
"MIT"
] | permissive | zeta1999/piglet | 76576fcbd72cba2b7a8e0964b9a984f0cb89d827 | 41fb35a3606415deabb47541e59d9d286c398350 | refs/heads/main | 2023-05-11T04:20:28.684510 | 2021-06-01T00:54:22 | 2021-06-01T00:54:22 | 373,201,430 | 0 | 1 | MIT | 2021-06-02T14:41:05 | 2021-06-02T14:41:04 | null | UTF-8 | Python | false | false | 845 | py | """ Training script! """
import sys
sys.path.append('../')
import tensorflow as tf
from model.neat_config import NeatConfig
from model.interact.modeling import model_fn_builder
from model.interact.dataloader import input_fn_builder
config = NeatConfig.from_args("Train detector script", default_config_file='interact/c... | [
"rowanz@cs.washington.edu"
] | rowanz@cs.washington.edu |
304e838e3c7304f8a3cada5e5202249be9c5c479 | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /Nyspider/duapp2.drexel.edu/TMS.py | 5938794401c1348b9eb96c9578809eba807074c7 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 6,277 | py | #coding:utf-8
import requests
from bs4 import BeautifulSoup
import threading
import re
import os
import xlwt3
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Langu... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
139bab4db8371e55144c6a767edd8121e9e1726d | 817f7dfb035af90b4c7f810c72eb7b407ea28c99 | /pingdumb/taskapp/celery.py | 7b13583c61674dfea5219ebd72f04285f69c7100 | [
"MIT"
] | permissive | rubythonode/pingdumb-django | bd7e361a7d6886db81d9bdad78ef62d375ad768a | 750a26f7c55eb176f6fd0f5b655751ee2d114d9e | refs/heads/master | 2021-01-12T01:51:18.192362 | 2016-12-14T04:50:42 | 2016-12-14T04:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py |
from __future__ import absolute_import
import os
from celery import Celery
from django.apps import apps, AppConfig
from django.conf import settings
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.l... | [
"chm073@gmail.com"
] | chm073@gmail.com |
0eca868fb731e2726e52062354a6937d43dade2f | cc2bb9ccc66783ac7d37454e4784df5e4a2d80f4 | /close_server_one.py | 34b036b30e1c44c412f1356dfc39352cae3581da | [] | no_license | ronnyzh/Tornado_Server | f308b7e9c2112167b04cbe324e37b1f891999187 | 42112d39e4dea128d059dbfa53c410f3774dc4b1 | refs/heads/master | 2021-05-22T22:10:26.694262 | 2020-04-04T23:39:14 | 2020-04-04T23:39:14 | 253,118,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # -*- coding:utf-8 -*-
# !/bin/python
"""
Author: ronnyzh
Date: 2019/11/15
Revision: 1.0.0
Description: Description
"""
from model.model_redis import getInst
from define.define_redis_key import *
IP = '192.168.50.2'
PORT = '9797'
if __name__ == '__main__':
redis = getInst()
ipKey = Key_Serve... | [
"ronnyzh@yeah.net"
] | ronnyzh@yeah.net |
c336b550745a3945d4d397f07f31e0af46fe95d7 | 8517c5849cec02cfd52d5a20d8c5468227f60c0d | /kozmic/repos/views.py | 3504ff09546983cc581849ca6a165f7e6b3613e0 | [] | no_license | aromanovich/kozmic-ci | 87475a27c3b47f0e4f226aef9856b3f39ed911e5 | 368ceb992b7b9b6ceb099570f9291655cad9e96c | refs/heads/master | 2021-01-19T02:00:55.573742 | 2016-06-14T04:45:10 | 2016-06-14T04:45:10 | 14,984,166 | 26 | 6 | null | 2016-06-14T04:45:10 | 2013-12-06T14:03:31 | Python | UTF-8 | Python | false | false | 4,622 | py | import datetime
import logging
import collections
from flask import (current_app, flash, request, render_template, redirect,
url_for, abort)
from flask.ext.login import current_user
from kozmic import db
from kozmic.models import User, Organization, Project, DeployKey
from . import bp
logger = lo... | [
"anthony.romanovich@gmail.com"
] | anthony.romanovich@gmail.com |
945f3b5e2ce68a78a710408a838215d972d40c1a | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/s_generalized_flam_toy.py | 7cc7fd1ff125b384c9bb6a7535b3cfea5e5b6ec7 | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # s_ge... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
34dadc42e9085d239b0e37efcf94d7e7460e7403 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/environment/spaceObject/entityShip.py | 253efe958a9487e51db0b4662828ae06dbef0567 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,545 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\spaceObject\entityShip.py
import blue
import destiny
from eve.client.script.environment.spaceObject.spaceObject import SpaceObject
from eve.client.script.environment.spaceObject.ship import Ship
from e... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
4498670807eaeaf54a06134d1ce03533c8bc8c45 | ca8167a83eaec916437c0fdd757a76bb0441a5a3 | /envs/dmlab/dmlab_populate_cache.py | 495f3a7c761a2d9edb2d33b8079a14dbf225b782 | [
"Apache-2.0"
] | permissive | Zhehui-Huang/scalable_agent | b470afe0130e95d2e63e521abd7bf61016e5e358 | 505909ad9f2d3e9bce8bb9201e05e780002428df | refs/heads/master | 2022-04-25T23:21:40.302551 | 2020-02-03T07:43:35 | 2020-02-03T07:43:35 | 257,515,137 | 0 | 0 | Apache-2.0 | 2020-04-21T07:33:26 | 2020-04-21T07:33:25 | null | UTF-8 | Python | false | false | 850 | py | import sys
from algorithms.utils.multi_env import MultiEnv
from envs.dmlab.dmlab_utils import DmlabGymEnv
from utils.utils import log
def main():
def make_env(env_config):
env = DmlabGymEnv('contributed/dmlab30/rooms_watermaze', 4)
return env
num_envs = 64
num_workers = 16
multi_env ... | [
"petrenko@usc.edu"
] | petrenko@usc.edu |
70d21f0315e69b783a6c51389ee8a14057eec12e | ae08a53864b4ec19458eae7bdf072b91b489e595 | /nina-service/app/api/v1/users/messenger.py | d8808844ee411840587e5feb56cf0cb9c1f54339 | [] | no_license | OscarGibson/docker-messenger-test | aee90378691527fd4f7156c3b16490393a548e14 | f04c3d932818b16fa6a304e41ff5492a6d67ccb7 | refs/heads/master | 2022-12-09T07:49:10.324014 | 2018-09-12T07:04:20 | 2018-09-12T07:04:20 | 148,104,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import requests
class Messenger:
def __init__(self, receiver, *args, **kwargs):
self.receiver = receiver
self.headers = {
'content-type' : 'application/json',
}
def set_headers(self, request_object):
self.headers['Authorization'] = request_object.headers.get('Authorization')
def send(self, data= {}, m... | [
"user@users-MacBook-Pro.local"
] | user@users-MacBook-Pro.local |
1da694b5ea387596423c38640e879d0c7a989f94 | 4142b8c513d87361da196631f7edd82f11465abb | /python/round481/978C.py | 507c51c1f9c84ef6c7c7bff283409bd7ae7ba262 | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from sys import stdin
import bisect
n, m = list(map(int, stdin.readline().split()))
a = list(map(int, stdin.readline().split()))
b = list(map(int, stdin.readline().split()))
p_a = [0]*n
p_a[0] = a[0]
for i in range(1, n):
p_a[i] = a[i] + p_a[i-1]
p_a = [0]+p_a
for i in b:
dorm = bisect.bisect(p_a, i)
room ... | [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.