blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81f19be92df94fa408323f3520f3036d02d3faf7 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appcomplianceautomation/azure-mgmt-appcomplianceautomation/generated_samples/report_delete.py | e50e47e30f53534b8cd9c42e05cde1528836604c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,558 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f20b7d9b1b0b8082fe92f67c3e8295493a8683b5 | 548fbb3bf6648e76e711ee398148cae9ee10a0d2 | /1460_Make_Two_Arrays_Equal_by_Reversing_Sub-arrays.py | 1a71ef2613f25f56e85d7662d98f139a97bb1ffe | [] | no_license | KonstantinSKY/LeetCode | 34cce8eda7182aa6a1616b3471b0cfe9310fe1d4 | 1570122134b962412b0530c3850eb37f1c8c585e | refs/heads/master | 2023-04-16T17:03:23.753146 | 2023-04-03T18:16:21 | 2023-04-03T18:16:21 | 310,714,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | """ 1460. Make Two Arrays Equal by Reversing Sub-arrays https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub-arrays/"""
import time
from typing import List
class Solution:
def canBeEqual2(self, target: List[int], arr: List[int]) -> bool:
return "".join(map(str, sorted(arr))) == "".join(ma... | [
"sky012877@gmail.com"
] | sky012877@gmail.com |
0dc609373cfbab318ad5a08f86a53f9b9863311b | dc1df09e627fd5155d4b4eae8915a40d94b2fcf3 | /code/configs_pain/config_train_pain_lstm_wbn_512_milcepain_weighted_2min.py | 3bcdc396596d28d6b8771b1f3e8b5f2e653d5a45 | [] | no_license | menorashid/gross_pain | 0a2145e3b912f23788e22bc4eda6978a65e481fa | 2dbebc596a15e54fb3af0cfca2185f901e78a72d | refs/heads/master | 2021-07-09T07:45:52.457667 | 2020-11-10T01:32:26 | 2020-11-10T01:32:26 | 198,445,713 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from rhodin.python.utils import io as rhodin_utils_io
import os
config_dict = {
# model type
'model_type' : 'pain_lstm_wbn_512',
'new_folder_style' : True,
# General parameters
'dpi' : 190,
'input_types' : ['img_crop', 'segment_key'],
'output_types' ... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
556fc5ef1f50de094a0f8ec07f6b93e89c5e60c1 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/AT-FILE-MIB.py | 67c483549914f4e99bfe19ed4b11a6d02a2e59e2 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,975 | py | #
# PySNMP MIB module AT-FILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AT-FILE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:13:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
7ba47b998836b1b3b7705122fede2b5ec2bc5fa6 | 9003a00f9d529c50f7b169dce45f1380f1d466b6 | /atmel/feather/circuitpyton/build_adafruit_circuitpython_bundle_py_20181218/lib/adafruit_vcnl4010.py | acc33994caa41872d282032f670d70662d840421 | [] | no_license | 0xFF1E071F/hw | d249b8607ba40d6ce1ed9a4a267639c30019d978 | 2441df0ab45a8e2f3bed4ec7f4eff42ac0a32a7f | refs/heads/master | 2022-04-22T03:59:58.835300 | 2020-04-28T06:52:29 | 2020-04-28T06:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,118 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Tony DiCola for Adafruit Industries
#
# 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 righ... | [
"eiselekd@gmail.com"
] | eiselekd@gmail.com |
9ec4c4289dbf3be54b9bdac259562ae9f960228f | b28305dab0be0e03765c62b97bcd7f49a4f8073d | /gpu/command_buffer/build_gles2_cmd_buffer.py | 34e0d45291834c1946c526d39b2bbb29c8af93c9 | [
"BSD-3-Clause"
] | permissive | svarvel/browser-android-tabs | 9e5e27e0a6e302a12fe784ca06123e5ce090ced5 | bd198b4c7a1aca2f3e91f33005d881f42a8d0c3f | refs/heads/base-72.0.3626.105 | 2020-04-24T12:16:31.442851 | 2019-08-02T19:15:36 | 2019-08-02T19:15:36 | 171,950,555 | 1 | 2 | NOASSERTION | 2019-08-02T19:15:37 | 2019-02-21T21:47:44 | null | UTF-8 | Python | false | false | 112,549 | py | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""code generator for GLES2 command buffers."""
import os
import os.path
import sys
from optparse import OptionParser
import build... | [
"artem@brave.com"
] | artem@brave.com |
8369a8d54b356ad8d670dedafc3e9db7896b4a12 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/padding.pyi | ba8384de4bacd9127d7681e12dd7396f966c6846 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | pyi | /home/runner/.cache/pip/pool/45/87/35/53d939570e0dce94fe2578bf0304623d7c33bbb5cb5721ba1ed0f2fe03 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
b04182488241419bfaab9735a28b9f92c4a548e4 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_10/aio/_application_insights_management_client.py | e846f9038ef7e10c2422551c70ad202f265a897d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 3,923 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
5cb49c7da9ea81c3b1d93b76827927f0c4646260 | 3f7d5999bb7e5a75454c8df2c5a8adcd1a8341ff | /plugins/modules/fortios_firewall_schedule_recurring.py | 5e40935bb1053666ec47eef7b230d461cd079866 | [] | no_license | ansible-collection-migration/ansible.fortios | f7b1a7a0d4b69c832403bee9eb00d99f3be65e74 | edad6448f7ff4da05a6c856b0e7e3becd0460f31 | refs/heads/master | 2020-12-18T13:08:46.739473 | 2020-02-03T22:10:49 | 2020-02-03T22:10:49 | 235,393,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,608 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
c620fc9fb4331c7c63ef5f9998dd1d072ee6db93 | 4ef89629e12458a49e9d39dc4797de622732b598 | /day07(编码与解码)/编码与解码.py | 621b20205398f0bcee6ff421237cfe7ba1a0c353 | [] | no_license | LambertlLan/python | ea235b5cc76114575f9341f49b797645aca2938c | 9e1a52537fc3e1cb88cadb32d1e2a8012acb2c7f | refs/heads/master | 2021-01-19T17:06:59.277307 | 2017-09-27T06:18:44 | 2017-09-27T06:18:44 | 101,049,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # __author: Lambert
# __date: 2017/8/18 15:19
s = 'i am 特斯拉'
s_to_gbk = s.encode('gbk') # 编码为gbk打印出b'i am \xcc\xd8\xcb\xb9\xc0\xad'
gbk_to_s = s_to_gbk.decode('gbk') # 解码为utf-8打印出i am 特斯拉
print(s)
print(s_to_gbk)
| [
"landingyu@163.com"
] | landingyu@163.com |
6c6bc3ce51cbb1d79ae1d01b116f8c0591c1f260 | b1ffcbd977595bccf15dd56e965bda62867d1e10 | /omrdatasettools/tests/MuscimaPlusPlusSymbolImageGeneratorTest.py | 5b181d8d980a6e4e9611b93088185b257cfbfbff | [
"CC-BY-NC-SA-4.0",
"GPL-2.0-only",
"CC-BY-SA-3.0",
"MIT",
"GPL-1.0-or-later",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"AGPL-3.0-only"
] | permissive | fzalkow/OMR-Datasets | 7ded5bb9278e47c84a16de01081876d6bb2e6dbe | c9e7a986199998d6a735875503e6dcce5fdf1193 | refs/heads/master | 2020-09-14T15:30:45.824800 | 2020-01-06T12:07:52 | 2020-01-06T12:07:52 | 223,169,792 | 0 | 0 | MIT | 2019-11-21T12:32:31 | 2019-11-21T12:32:30 | null | UTF-8 | Python | false | false | 1,219 | py | import os
import shutil
import unittest
from glob import glob
from omrdatasettools.downloaders.MuscimaPlusPlusDatasetDownloader import MuscimaPlusPlusDatasetDownloader
from omrdatasettools.image_generators.MuscimaPlusPlusSymbolImageGenerator import MuscimaPlusPlusSymbolImageGenerator
class MuscimaPlusPlusSymbolImage... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
13b48c6f824a2b31e36afd16858253b90c3721da | 399dae0b5ad9ca27cde175d25b5435958674eb50 | /System/Get the Status of Password Policy Applied under Group Policy/get-the-status-of-password-policy-applied-under-group-policy.py | 026229831e5b1d828ef15c972de9b6c071daed84 | [] | no_license | kannanch/pythonscripts | 61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba | 843a522236f9c2cc2aadc68d504c71bb72600bd9 | refs/heads/master | 2020-06-12T11:18:00.404673 | 2019-06-28T11:24:37 | 2019-06-28T11:24:37 | 194,282,297 | 1 | 0 | null | 2019-06-28T13:55:56 | 2019-06-28T13:55:56 | null | UTF-8 | Python | false | false | 7,668 | py | #To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('variableName') with that parameter's name
emailto='tamil111@yopmail.com' #To define a particular receiver email address here
import os
import subprocess
from subprocess import PIPE, Popen
import re
import shutil
def ipad... | [
"noreply@github.com"
] | kannanch.noreply@github.com |
19469cce8eb38d26a47e5d060cf86c0f3ee08c64 | 65b55130f41747ccb239219ae9010ab06b60d430 | /src/tweets/migrations/0002_auto_20191219_0905.py | 432c3cc422a6919ca45813b41bcd040fce51c11d | [] | no_license | amrebrahem22/TweetMe-App | d5c2f5fc20565356a88fdde357433ac54bc5dfac | cad027a34c84f9b2530759ec6b080a5f80a02ffc | refs/heads/master | 2020-11-24T19:12:27.526977 | 2020-03-24T21:44:30 | 2020-03-24T21:44:30 | 228,306,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # Generated by Django 3.0 on 2019-12-19 07:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tweets', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='tweet',
options={'ordering': ['-timestamp']},
... | [
"amrebrahem226@gmail.com"
] | amrebrahem226@gmail.com |
f79bc0f915b6e19e4535d43c6adf1a04f3e23c65 | aa3d7adc78fd141a730c9cc00b9a6439a90cf74c | /0x0C-python-almost_a_circle/16-main.py | d837a7788eea8df5ce01facbffa9004af9ddcfff | [] | no_license | Lord-Gusarov/holbertonschool-higher_level_programming | 450eee78c4f7d91f05110d86e7879487802f4fe7 | 65a4ff7b2752cfec08caf7d0ff0b7b97a602ddd1 | refs/heads/main | 2023-04-19T16:45:14.137188 | 2021-05-15T16:33:12 | 2021-05-15T16:33:12 | 319,210,969 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/python3
""" 16-main """
from models.rectangle import Rectangle
if __name__ == "__main__":
list_input = [
{'id': 89, 'width': 10, 'height': 4},
{'id': 7, 'width': 1, 'height': 7}
]
json_list_input = Rectangle.to_json_string(list_input)
list_output = Rectangle.from_json_strin... | [
"2367@holbertonschool.com"
] | 2367@holbertonschool.com |
8ea4b391036f8705ccf1667a6b6ad7ce8be21474 | d66ba9654d9eb57807b4a63ef9991a3a6868dc1a | /tests/unit/vsphere/test_ESXi_Ssh.py | a3c5795bf7dc20acd4c5fdb50705ec625f83f69c | [
"Apache-2.0"
] | permissive | nirvishek/k8-vmware | bcef1afcdf559c9f1c2b1f6df3d606612140d4c7 | 986c153b61e028a033b62aa6d198b068a4ed0eb0 | refs/heads/main | 2023-02-26T02:12:53.681127 | 2021-01-28T21:18:27 | 2021-01-28T23:18:21 | 321,978,494 | 0 | 0 | Apache-2.0 | 2020-12-16T12:40:24 | 2020-12-16T12:40:24 | null | UTF-8 | Python | false | false | 1,876 | py | from os import environ
from unittest import TestCase
from pytest import skip
from k8_vmware.vsphere.ESXi_Ssh import ESXi_Ssh
# todo add support for ssh keys in GitHub actions
class test_ESXi_Ssh(TestCase):
def setUp(self) -> None:
self.ssh = ESXi_Ssh()
self.ssh_config = self.ssh.ssh_config(... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
987ce85af7e23d8c4b0aeea8fc530b883735bbb0 | 015106a1a964305ef8ceb478cc56fd7d4fbd86d5 | /112.py | a3e985fd5dfa5147a4c09bcfb679f424513b7079 | [] | no_license | zenmeder/leetcode | 51a0fa4dc6a82aca4c67b5f4e0ee8916d26f976a | 0fddcc61923d760faa5fc60311861cbe89a54ba9 | refs/heads/master | 2020-12-02T18:16:10.825121 | 2018-10-30T11:47:53 | 2018-10-30T11:47:53 | 96,505,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/local/bin/ python3
# -*- coding:utf-8 -*-
# __author__ = "zenmeder"
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def hasPathSum(self, root, sum):
"""
:type ro... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
fdbb8e6f76b79b579fa2a26476cc539f384aed8e | 8698757521458c2061494258886e5d3cdfa6ff11 | /datasets/BRATSLabeled.py | 9f34b75633370774aec0390fa852e3a0bba31f76 | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | """
Module for managing BRATS dataset
"""
from datasets.BrainDataset import modalities
from datasets.LabeledBrainDataset import LabeledBrainDataset
import os
import fnmatch
import numpy as np
import re
import json
import pdb
NPROCS = 40
TRAIN_LOOP = "train_loop"
TRAIN = "train"
VALIDATION = "validation"
TEST = "test... | [
"volpi@rist.ro"
] | volpi@rist.ro |
958c0cefa044a3940bef8b558c75cefd6765486f | 8a452b71e3942d762fc2e86e49e72eac951b7eba | /leetcode/editor/en/[2094]Finding 3-Digit Even Numbers.py | 63ca649cd3b26d92fe74691ac60176b9ea5153f7 | [] | no_license | tainenko/Leetcode2019 | 7bea3a6545f97c678a176b93d6622f1f87e0f0df | 8595b04cf5a024c2cd8a97f750d890a818568401 | refs/heads/master | 2023-08-02T18:10:59.542292 | 2023-08-02T17:25:49 | 2023-08-02T17:25:49 | 178,761,023 | 5 | 0 | null | 2019-08-27T10:59:12 | 2019-04-01T01:04:21 | JavaScript | UTF-8 | Python | false | false | 1,890 | py | # You are given an integer array digits, where each element is a digit. The
# array may contain duplicates.
#
# You need to find all the unique integers that follow the given requirements:
#
#
#
# The integer consists of the concatenation of three elements from digits in
# any arbitrary order.
# The intege... | [
"31752048+tainenko@users.noreply.github.com"
] | 31752048+tainenko@users.noreply.github.com |
5ab3c1d017f326b6053d303d02438e96dab26c5f | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/io/json/test_compression.py | 94c00feb942478e173958850f2531ee22ee34d36 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 4,754 | py | import pytest
import moto
import pandas as pd
from pandas import compat
import pandas.util.testing as tm
from pandas.util.testing import assert_frame_equal, assert_raises_regex
COMPRESSION_TYPES = [None, 'bz2', 'gzip', 'xz']
def decompress_file(path, compression):
if compression is None:
... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
2c13cc9dd0da40e3a5cf1f0ca62df1c5fb2e8e51 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s243847293.py | f075375c98be58c140b9e5fcd829a3338e0502c7 | [] | 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 | 91 | py | A = list(input().split())
print('YES' if A[0][-1]==A[1][0] and A[1][-1]==A[2][0] else 'NO') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c0080ebbd057dfd7b6f07d0cf6da607e25d703d7 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/examples/PETS/eager/mbexp_eager.py | 4f9236da79b133db42fdd2e3a7f81192485f4173 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 1,926 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import os
import pprint
from dotmap import DotMap
from MBExperiment import MBExperiment
from MPC import MPC
from config import create_config
import env # We run this so that the env is registe... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
1159ee063dcd1f503d6966b5d6d5dfda32dae906 | 872e03095723c0baf07c191381c576114d65e1a6 | /utils/json2csv.py | 3e694047f325778140e4d45eefd4051d1c6a570a | [
"CC0-1.0"
] | permissive | paulgb/twarc | abfc5da667dfb13f3fbc317a9c74e8ce3a1c25fc | e5cbcf255620891484f1a3f024ebf5d7de7f45a7 | refs/heads/master | 2021-01-11T17:19:13.353890 | 2017-01-22T20:26:53 | 2017-01-22T20:26:53 | 79,743,163 | 1 | 0 | null | 2017-01-22T20:22:21 | 2017-01-22T20:22:21 | null | UTF-8 | Python | false | false | 3,592 | py | #!/usr/bin/env python
"""
A sample JSON to CSV program. Multivalued JSON properties are space delimited
CSV columns. If you'd like it adjusted send a pull request!
"""
import sys
import json
import fileinput
if sys.version_info[0] < 3:
import unicodecsv as csv
else:
import csv
def main():
sheet = csv.w... | [
"ehs@pobox.com"
] | ehs@pobox.com |
60df2b5f60e00bb56cd3b767c8383554ae2bc7fd | 1819b161df921a0a7c4da89244e1cd4f4da18be4 | /WhatsApp_FarmEasy/env/lib/python3.6/site-packages/web3/_utils/module_testing/event_contract.py | 0bd02242103e50ec3c05497d5689d11702ad9679 | [
"MIT"
] | permissive | sanchaymittal/FarmEasy | 889b290d376d940d9b3ae2fa0620a573b0fd62a0 | 5b931a4287d56d8ac73c170a6349bdaae71bf439 | refs/heads/master | 2023-01-07T21:45:15.532142 | 2020-07-18T14:15:08 | 2020-07-18T14:15:08 | 216,203,351 | 3 | 2 | MIT | 2023-01-04T12:35:40 | 2019-10-19T12:32:15 | JavaScript | UTF-8 | Python | false | false | 2,148 | py |
EVNT_CONTRACT_CODE = (
"6080604052348015600f57600080fd5b5061010b8061001f6000396000f30060806040526004361"
"0603f576000357c0100000000000000000000000000000000000000000000000000000000900463"
"ffffffff1680635818fad7146044575b600080fd5b348015604f57600080fd5b50606c600480360"
"381019080803590602001909291905050... | [
"sanchaymittal@gmail.com"
] | sanchaymittal@gmail.com |
5cb2a04dcb821e6b980289779d5191a0c6fb6caa | 036d01ba60f2d5a4aca50af6166572725fdd1c02 | /Demo/simple.py | 6004c9ef633e85210212d2460e2ac558031bf0d5 | [
"Python-2.0"
] | permissive | balabit-deps/balabit-os-7-python-ldap | f428541a2869d041f085dc7f67faf415503e4940 | 4fb1ca98915566dabb5f4ddb81aed9b8c28e3739 | refs/heads/master | 2022-07-23T03:40:41.370245 | 2022-07-16T02:24:42 | 2022-07-16T02:24:42 | 158,245,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | from __future__ import print_function
import sys,getpass
import ldap
#l = ldap.open("localhost", 31001)
l = ldap.open("marta.it.uq.edu.au")
login_dn = "cn=root,ou=CSEE,o=UQ,c=AU"
login_pw = getpass.getpass("Password for %s: " % login_dn)
l.simple_bind_s(login_dn, login_pw)
#
# create a new sub organisation
#
try:
... | [
"testbot@balabit.com"
] | testbot@balabit.com |
61eb80caea52c64ff2aac740efc4aef246ca5fae | c857d225b50c5040e132d8c3a24005a689ee9ce4 | /problem131.py | 3cc59ea9340c137db33174ff2534c8458f94a073 | [] | no_license | pythonsnake/project-euler | 0e60a6bd2abeb5bf863110c2a551d5590c03201e | 456e4ef5407d2cf021172bc9ecfc2206289ba8c9 | refs/heads/master | 2021-01-25T10:44:27.876962 | 2011-10-21T00:46:02 | 2011-10-21T00:46:02 | 2,335,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
There are some prime values, p, for which there exists a positive integer, n, such that the expression n3 + n2p is a perfect cube.
for example, when p = 19, 83 + 8219 = 123.
what is perhaps most surprising is that for each prime with this property the value of n is unique, and there are only four such primes belo... | [
"pythonsnake98@gmail.com"
] | pythonsnake98@gmail.com |
f3996da9ea17ade40a477be3c1899ae180d2f7b4 | 2318b1fb55630a97b2311b825a0a67f4da62b84b | /test_package/conanfile.py | 242769dc09ce27d81daa7854c97d6902c0978315 | [
"MIT"
] | permissive | lasote/conan-hello-package | d5347aad04277b55db1bd58c5be9a3182540b287 | cacaa8c4209b21af327cda2a904335bba4e736fe | refs/heads/master | 2020-04-01T14:52:36.956040 | 2018-10-16T16:17:58 | 2018-10-16T16:17:58 | 153,311,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from conans import ConanFile, CMake, tools
import os
class HelloReuseConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
# equal to ./bin/greet, b... | [
"lasote@gmail.com"
] | lasote@gmail.com |
19ec0dd5c87163554bceb312e8139a3796b6abf7 | 66238a554cc0f9cc05a5a218d3a5b3debe0d7066 | /ex15/ex15.py | 363596bbfeb75af79ed58fd0581a4812cc65ddb7 | [] | no_license | relaxdiego/learnpythonthehardway | 9dd2877bef2932e496e140694f34b419a373fe28 | d9ad5a69668004ee1fbb99d39ea2ce8af8a4278d | refs/heads/master | 2016-09-05T10:31:50.712280 | 2014-03-14T21:08:53 | 2014-03-14T21:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # Import the argv module located in the sys package
from sys import argv
# Unpack the arguments to these two variables
script, filename = argv
# Open the file referred to by 'filename'
txt = open(filename)
# Print a notification
print "Here's your file %r:" % filename
# Print the contents of the file
print txt.read... | [
"mmaglana@gmail.com"
] | mmaglana@gmail.com |
c3729c6ca9e232fb2d6692cd5cdd5456263af160 | f770a1f73701451487ff9e988f9e7de53173e842 | /arguments/example.py | 448947ec09ba492f5225b82b6e8fad828e3ec4b1 | [] | no_license | 935048000/python-LV1.0 | a15aa3d1cc9343818d1b7c2ec19f99c2e673f0c7 | 86c5db2869e5c456f73a9953b2355946635dde4d | refs/heads/master | 2021-07-15T02:31:17.022013 | 2018-11-01T03:32:36 | 2018-11-01T03:32:36 | 91,559,178 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import argparse
from argparse import ArgumentParser
if __name__ == '__main__':
ap = ArgumentParser ()
# ap.add_argument("-f", required = True, help = "文件名称")
ap.add_argument ("-d", help="数据库")
ap.add_argument ("-show", help="显示结果个数")
args = vars (ap.parse_args ())
print (args)
print (a... | [
"935048000@qq.com"
] | 935048000@qq.com |
6310b2382e4c2cde172373bfe6590255e202e258 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/188/54680/submittedfiles/lecker.py | 85810d48da2d28fab217c1e4ad053f3574403d67 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # -*- coding: utf-8 -*-
from __future__ import division
def lecker(lista):
cont=0
for i in range (0,len(lista),1):
if i==0:
if lista[i]>lista[i+1]:
cont=cont+1
if i==(len(lista)-1):
if lista[i]>lista[i-1]:
cont=cont+1
else:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
816038e7cec6f8a881a164b412cebe0929e6723c | f8d1d9a732fa88982c8515b0588fbfc7b4781a8e | /archive/const.py | aad869db587ad6575e5585c2485b5b4e5ba71ca1 | [
"MIT"
] | permissive | afcarl/HASS-data-science | ef5b68071eba0ecc67a7e24714e935b9b4dc02dc | 7edd07a1519682683b42d140d6268a87d91522ec | refs/heads/master | 2020-03-21T03:29:39.800584 | 2018-01-26T07:15:08 | 2018-01-26T07:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | """
Constants required for bayes_sensor.py
"""
ATTR_OBSERVATIONS = 'observations'
ATTR_PROBABILITY = 'probability'
ATTR_PROBABILITY_THRESHOLD = 'probability_threshold'
CONF_OBSERVATIONS = 'observations'
CONF_PRIOR = 'prior'
CONF_PROBABILITY_THRESHOLD = 'probability_threshold'
CONF_P_GIVEN_F = 'prob_given_false'
CONF_... | [
"robmarkcole@gmail.com"
] | robmarkcole@gmail.com |
da54c4a13811b72a2a731d1c9dda5104f27e2835 | 04c06575a49a3f4e30e4f3f2bf2365585664d2e8 | /python_leetcode_2020/Python_Leetcode_2020/1047_remove_all_adjacent_duplicates.py | ee5c01304d69945cc3fc5a194560193a58a8c61e | [] | no_license | xiangcao/Leetcode | 18da3d5b271ff586fdf44c53f1a677423ca3dfed | d953abe2c9680f636563e76287d2f907e90ced63 | refs/heads/master | 2022-06-22T04:45:15.446329 | 2022-06-17T13:03:01 | 2022-06-17T13:03:01 | 26,052,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | """
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them.
We repeatedly make duplicate removals on S until we no longer can.
Return the final string after all such duplicate removals have been made. It is guaranteed the answer is unique.
"... | [
"xiangcao_liu@apple.com"
] | xiangcao_liu@apple.com |
04815718877eb52cdbe84b257a2c90fc487f98b1 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsAMT21.py | 5329fd597a44cceb752bbc3d035661f6b461df8e | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
""" AMT21 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'AMT21'
server... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
eb224a9856ac7ac78adfc83b92d604827d93fa54 | 77e0a93598c3db5240ecdeba677a8c7e4f9778ca | /Third academic course/Digital signals/6 Бодя/show-result.py | 0a42092c800aa1e0eb4f18d6b931c6d9a47b94d4 | [] | no_license | andrsj/education | 7d7b28e59bceb40a2de63f9dbc2aba734d24d7f1 | 3630b2abbb6d444b4079dd7f5d988769ef24e2b8 | refs/heads/master | 2021-02-26T06:07:13.180215 | 2020-03-13T15:37:51 | 2020-03-13T15:37:51 | 245,501,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import matplotlib.pyplot as plt
from math import sin, pi
from numpy import array, arange, abs as np_abs
from numpy.fft import rfft, rfftfreq
import numpy as np
import math
import sys
def progressBar(value, endvalue, bar_length=20):
percent = float(value) / endvalue
arrow = '-' * int(round(percent * bar_length... | [
"61803449+andrsj@users.noreply.github.com"
] | 61803449+andrsj@users.noreply.github.com |
340b149fcbcb3ebc7c8da876e4f8f31e5443a3cf | 5dd8ce7f11c8f568e19fa821f07bb238733da972 | /Src/xmds2_0/xpdeint/Features/Validation.py | ff220c34a16abf4c7fee376ee584e7ed1e3a27fd | [] | no_license | htsenyasa/MachineLearningGrossPitaevskiiEq | fba9fa92879c2c805288950d344333f60d8c7ae4 | cae0b690841a55fda9d3ec49df7f8321a9835b95 | refs/heads/master | 2023-06-23T00:58:21.036638 | 2021-03-07T22:19:10 | 2021-03-07T22:19:10 | 345,210,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,534 | py | #!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import builtins as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleV... | [
"htsenyasa@gmail.com"
] | htsenyasa@gmail.com |
7ea21f0528e89b7ec44deffc3c8b554bd3a01296 | 59075c41a7b33eb132aae0a836ec06316b0677b9 | /covid_19/urls.py | bfded9b8fd08237a78b88906fe615e8b248c0647 | [] | no_license | talhajubair100/covid_19_data | b357b353b810a61c0c8481c3f9b7781e04a5bc21 | bf4ce540955cfc298275f3ac171eb6c94a38b3fc | refs/heads/main | 2023-02-13T04:12:23.846548 | 2021-01-18T16:36:24 | 2021-01-18T16:36:24 | 330,614,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """covid_19 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-base... | [
"talhajubair100.bd@gmail.com"
] | talhajubair100.bd@gmail.com |
8979b43397731f7136edd31fef1a18c6b1719f03 | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/countingsort4.py | 19499fa9bfd4b0ac98cfcdcd0832d5e38c370504 | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Wrong Answer
# Python 3
def counting_sort(li, last):
mylist = []
for i in range(100):
if li:
mylist.extend(li[i])
for i in mylist:
if i in last:
print(i, end=' ')
else:
print('-',end=' ')
return mylist
n = int(input().strip())
mylist... | [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
9781b9176929326d5e526c681b6932a5b67b7ded | fd67592b2338105e0cd0b3503552d188b814ad95 | /test/test_models/test_email_report_by_location.py | 2be94a4254fc6daa1250c71993e2b8f8dde6e2fb | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,073 | py | # coding: utf-8
"""
APIv3 (New)
# Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
095f28bd50f1fd571b4353f0807f9c0b3d1088f0 | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /simulation/objects/components/example.py | 4e2e03f6ed0f3bffcca45b85be3a36be97e6506f | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | from sims4.tuning.tunable import Tunable, TunableFactory
from objects.components import Component, componentmethod
from sims4.log import Logger
from objects.components.types import EXAMPLE_COMPONENT
logger = Logger('ExampleComponent')
class ExampleComponent(Component, component_name=EXAMPLE_COMPONENT):
__qualname_... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
181a43c318a97a1f549a48a039263e10796b9c5c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayCloudCloudbaseFunctionArgumentModifyRequest.py | 55f25f723f5f0d999a2b595cebad11846630e3a9 | [
"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 | 4,052 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCloudCloudbaseFunctionArgumentModifyModel import AlipayCloudCloudbaseFunctionArgumentModifyModel
class AlipayCloudCloudbaseFun... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
bed37091c684cb97919804235df6b467b860396c | d6d87140d929262b5228659f89a69571c8669ec1 | /airbyte-connector-builder-server/connector_builder/generated/models/datetime_stream_slicer_all_of.py | dcd4d06d5fd5964f1ca2e312c73d2e0afb113de3 | [
"MIT",
"Elastic-2.0"
] | permissive | gasparakos/airbyte | b2bb2246ec6a10e1f86293da9d86c61fc4a4ac65 | 17c77fc819ef3732fb1b20fa4c1932be258f0ee9 | refs/heads/master | 2023-02-22T20:42:45.400851 | 2023-02-09T07:43:24 | 2023-02-09T07:43:24 | 303,604,219 | 0 | 0 | MIT | 2020-10-13T06:18:04 | 2020-10-13T06:06:17 | null | UTF-8 | Python | false | false | 2,953 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, Field, validator # noqa: F401
from connector_builder.generated.models.any_of_inter... | [
"noreply@github.com"
] | gasparakos.noreply@github.com |
9f48ca455d9975abdc88d67bc3b1f660a619d2a3 | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/1000~2999/1252_이진수덧셈.py | 4712db201dd55f0965d4c4f420e72f4d4872e8fa | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | b = '0b'
A,B = input().split()
A = b + A
B = b + B
A = int(A, 2)
B = int(B, 2)
print(bin(A+B)[2:]) | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
b4b8677d5f8abdf8ce876a8899616a1256c74a3f | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py | 81b1f32db2c950b486b75b8aa10be0dde44097e6 | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 7,284 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V2beta1Hor... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
c4ee68989153810cacf00394dc731b07ff96d94f | a3035906490a1f4fd4527292263a9712eb505f59 | /tests/test_flask_pyoidc.py | 97904176da13cd95c1195d91167ce956b53aa579 | [
"Apache-2.0"
] | permissive | liam-middlebrook/Flask-pyoidc | ee6c48cf14792961d932e74e2872c9279f71be58 | e3bef3f865fba8a833b0687cd621af96fd733540 | refs/heads/master | 2020-05-29T12:18:53.458702 | 2016-06-16T07:09:00 | 2016-06-16T07:09:00 | 68,504,245 | 0 | 0 | null | 2016-09-18T07:23:15 | 2016-09-18T07:23:13 | Python | UTF-8 | Python | false | false | 5,170 | py | import json
import time
from six.moves.urllib.parse import parse_qsl, urlparse
from mock import MagicMock
import flask
import pytest
import responses
from flask import Flask
from oic.oic.message import IdToken, OpenIDSchema
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
ISSUER = 'https://op.example.com'
... | [
"rebecka.gulliksson@umu.se"
] | rebecka.gulliksson@umu.se |
2c7646b0df57962bdba6ec700e05df505503b1a0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2972.py | a07d39124316f5c715b11f6b2b7fe2f731a83585 | [
"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 | 3,317 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=46
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
44054f2db9a1717828d12b508c84eb70aac5ec41 | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_393.py | 3737707ba248e3457fb769feea86090504bcb756 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 929 | py |
def main():
scaleType = input("What temperature scale would you like? Please enter 'K' for kelvins or 'C' for Celcius. ")
if scaleType == "C":
tempC = float(input("What is the temperature of the water? "))
if tempC <= 0.0:
print("At this temperature, water is solid ice.")
i... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
1b76298b5547d8d29c729380de7d3f35010fc778 | 0ddbd741aef53f75902131853243891a93c81ef6 | /select_folder/folder_gui.py | 7fd7ece2562fe6617fb2148dc16152313c8844cc | [] | no_license | JennyPeterson10/The-Tech-Academy-Python-Projects | 3be2a10e0f8203fe920059e7a98508f3b8fe493f | 08841a3a7d514a0e1d3e7dddd440e5641e646fe8 | refs/heads/master | 2020-04-28T19:38:32.690859 | 2019-04-11T18:38:56 | 2019-04-11T18:38:56 | 175,517,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Created by Jenny Peterson March 29, 2019
from tkinter import *
import tkinter as tk
import folder_main
import folder_func
def load_gui(self):
# Define button and label
self.btn_browse = tk.Button(self.master,width=15,height=1,text='Browse...',command=lambda: folder_func.openDir(self))
self.btn_brow... | [
"you@example.com"
] | you@example.com |
c7eacdcc987476d50e88c69c835152407a384efc | dfb3f2a0aef80a76af7cf748cdc615d3b0a97e30 | /Python_OOP/bike.py | 7d1cdc867bda6714cfb1ed6bfb758f921371584b | [] | no_license | ahrav/Coding_Dojo_Assignments | 090f8e22b8a68a0f1cadb69df3bcef7393ca8346 | 161bd8bb633bfb08186d42d32ae1d2b889e5cc97 | refs/heads/master | 2021-07-21T21:55:12.785361 | 2017-10-29T09:38:00 | 2017-10-29T09:38:00 | 108,720,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class bike(object):
def __init__(self, price, max_speed):
self.price = price
self.max_speed = max_speed
self.init_miles = 0
def displayinfo(self):
print self.price
print self.max_speed
print self.init_miles
return self
def ride(self):
self.in... | [
"ahravdutta02@gmail.com"
] | ahravdutta02@gmail.com |
442125862c5851b52822ed3df15064a90e45b9dc | 3c24e501eae18b841aaa6cc2f5f030ec7d7aaea9 | /Day-20/UsApp/forms.py | e93acab849712f018afad3da8c532815dd95540f | [] | no_license | SatheeshMatampalli/Django-Polytechnic-Internship | 2c26be5f7e48c7690e7f987c29ec6082b073862f | 8223d442c313ef94ec4dba21f54dfb79f01f45ee | refs/heads/main | 2023-02-04T04:36:40.073852 | 2020-12-24T06:57:12 | 2020-12-24T06:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from django.forms import ModelForm
from UsApp.models import ImPfle
class UsReg(UserCreationForm):
password1 = forms.CharField(widget=forms.PasswordInput(attrs={"class":"form-control","placeholde... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
9d4454002e2b83e56c9791cf28829e4f3702a52a | cb2b2758e5f65a1b318843f8bf16bf02cdbe67dd | /manage.py | 050aeee7cfed219edf2c6027c103aa15d22993f8 | [
"MIT"
] | permissive | Jasonmes/information | a5812d1a155a7cecea57681d5eead326123150bf | ab957fefe4c6be6eb1bba236293856aec3078373 | refs/heads/master | 2020-03-27T04:38:07.278558 | 2018-08-28T09:49:10 | 2018-08-28T09:49:10 | 145,956,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Jason Mess
from flask import Flask, session, current_app
from flask_script import Manager
from info import create_app, db
from flask_migrate import Migrate, MigrateCommand
import logging
"""
单一职责的原则:manage.py 仅仅作为项目启动文件
整体业务逻辑都在info那里
"""
"""
7: 创建manager管理类
"""
app = cr... | [
"wow336@163.com"
] | wow336@163.com |
56d438382f8e777dc47bfb62c93cfec05b656a75 | 7c887d87c5b588e5ca4c1bbdc9be29975c6ce6c3 | /packages/pyright-internal/src/tests/samples/classes5.py | 465aabe84f9fd0ce61c7e8e588ca191a9efe3983 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | hotchpotch/pyright | affebef139eb1538c089ef590eb703f357a30fc7 | 029eb2c869a27a82a2b0533a3ffa642ddbfcdb5d | refs/heads/main | 2023-05-15T18:07:39.834121 | 2021-06-07T20:36:14 | 2021-06-07T20:36:14 | 374,815,948 | 0 | 0 | NOASSERTION | 2021-06-07T22:28:23 | 2021-06-07T22:28:23 | null | UTF-8 | Python | false | false | 1,752 | py | # This sample tests the reportIncompatibleVariableOverride
# configuration option.
from typing import ClassVar, List, Union
class ParentClass:
cv1: ClassVar[int] = 0
cv2: ClassVar[int] = 0
cv3: ClassVar[int] = 0
var1: int
var2: str
var3: Union[int, str]
var4: int
var5: int
var6: ... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
82710855ba149a3231142417cade08c631c43e08 | ee4c4c2cc6c663d4233d8145b01ae9eb4fdeb6c0 | /configs/DOTA2.0/r2cnn_kl/cfgs_res50_dota2.0_r2cnn_kl_v1.py | 15a15502bc9c65486dcf8e626242bb3b93d8c93c | [
"Apache-2.0"
] | permissive | yangcyz/RotationDetection | c86f40f0be1142c30671d4fed91446aa01ee31c1 | 82706f4c4297c39a6824b9b53a55226998fcd2b2 | refs/heads/main | 2023-09-01T23:25:31.956004 | 2021-11-23T13:57:31 | 2021-11-23T13:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
from configs._base_.models.faster_rcnn_r50_fpn import *
from configs._base_.datasets.dota_detection import *
from configs._base_.schedules.schedule_1x import *
from alpharotate.utils.pretrain_zoo import Pretrain... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
2f0b7a2ff65a9cedb6488f844f7b6af481bd1f86 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/test/subprocessdata/qcat.py | 08b715cce136d5cb5d87d847dfe7e42128d26fa9 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:039d2c9d75ec2406b56f5a3cc4e693bb8b671f4a515136536c61884e863c62a7
size 166
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
db3c3596f6e08896aba7e3e05d54cb730a85b14c | 6872c96481007db3e1b3c8c13fcb2b7f5b2aaf31 | /cauldron/writer.py | d02da8aa5263b448a607e891ad1b3f7887ffcfe0 | [
"MIT"
] | permissive | larsrinn/cauldron | f88014ba9619e028b3d12e5a538f59817fb5ceb1 | d3cb0e1d9b699d2d297471c2e0eb38c87892e5d6 | refs/heads/master | 2021-06-18T08:45:29.673525 | 2017-06-25T14:14:28 | 2017-06-25T14:14:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import json
import time
import typing
def attempt_file_write(
path: str,
contents,
mode: str
) -> typing.Union[None, Exception]:
""" """
try:
with open(path, mode) as f:
f.write(contents)
except Exception as error:
return error
return None
def wri... | [
"swernst@gmail.com"
] | swernst@gmail.com |
26a19509bceef8c2c749b2333e9561a1c8149aa4 | c17c0731b4ec9350aed6f85de6198c5f89e65f32 | /clif/pybind11/function.py | 3f41a01a5daa245d8bea66394fca594f562e3407 | [
"Apache-2.0"
] | permissive | scal444/clif | 1608ac9eaf7ef63c1b480e12d2ae153e7e27190b | 702aa147ecbf1ae3720d650f7dbf53ccb2e9308e | refs/heads/main | 2023-04-17T03:20:56.453967 | 2021-04-16T17:27:47 | 2021-04-17T11:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,630 | 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, ... | [
"rwgk@google.com"
] | rwgk@google.com |
736adf23b6814571c24569110b8100e919416a54 | e251c6226c9779a735d2b10fcea64d76f7baa9d6 | /ingest/video.py | 2469c7d4b9b798294a544bf81fa450a97cde19f0 | [
"MIT"
] | permissive | digideskio/okavango | 2533beb0a8e277ddb0aca66c28d61b9917f6839f | d32fd7eb98128e825be01fd6b9991767d9c2b761 | refs/heads/master | 2021-01-21T08:55:20.584357 | 2016-04-17T23:51:09 | 2016-04-17T23:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import time, json
from tornado import gen, web
from housepy import log, util, config, strings
from ingest import save_files
"""Expecting JSON or form metadata with Member and a timestamp in UTC"""
def parse(request):
log.info("video.parse")
paths = save_files(request)
if not len(paths):
return No... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
de4d680a9e930a0fe11304f64b046f1245a2784d | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /__Python/__Data structure/__dictionary/dict test password check.py | 0f94392c128ce6a8575d6d0179ee41144d42f789 | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 402 | py | USER_DATA = {"ioticuser": "ioticpassword"}
def verify(username, password):
print(USER_DATA)
print(username, password)
if not (username and password):
return "empty"
return USER_DATA.get(username) == password
try:
print(verify())
except AttributeError:
print("AttributeError")
except K... | [
"external.RahulDilip.Bhadange@rbeibsx.onmicrosoft.com"
] | external.RahulDilip.Bhadange@rbeibsx.onmicrosoft.com |
0cfd51e47344f0ef742982ad0445672aa79c9546 | 8734caf837ccc831b877ae10d45dff97ae435816 | /00.EXAMS/24March2019/Problem 1. Build a building.py | a0c643d07929000e9d8aed8e19b4162f3e693edd | [] | no_license | VLD62/PythonFundamentals | e86dd4f635a5862bdfaad2c24d5b22985ab25e0f | 914b541a71941efbf2c78ed1dfc49b6b9b850bb5 | refs/heads/master | 2020-06-03T19:36:26.244234 | 2019-08-17T14:57:22 | 2019-08-17T14:57:22 | 191,704,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | if __name__ == "__main__":
budget = float(input())
m = float(input())
n = int(input())
for i in range (0,n):
current_money = float(input())
print(f'Investor {i+1} gave us {current_money:.2f}.')
m += current_money
if m >= budget:
print(f'We will manage to bui... | [
"viliev2@dxc.com"
] | viliev2@dxc.com |
6a669815afdf97fa1f041c036326d20036da620e | c9642233f1de71f1a61ae28c695c2d9228825156 | /echecs_espoir/service/mahjong/models/hutype/one/lianliu.py | e141fe1ac60718ab1c3b8459d3fbb935497a664f | [
"AFL-3.0"
] | permissive | obespoir/echecs | d8314cffa85c8dce316d40e3e713615e9b237648 | e4bb8be1d360b6c568725aee4dfe4c037a855a49 | refs/heads/master | 2022-12-11T04:04:40.021535 | 2020-03-29T06:58:25 | 2020-03-29T06:58:25 | 249,185,889 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | # coding=utf-8
import time
from service.mahjong.models.hutype.basetype import BaseType
from service.mahjong.constants.carddefine import CardType, CARD_SIZE
from service.mahjong.models.card.hand_card import HandCard
from service.mahjong.models.utils.cardanalyse import CardAnalyse
class LianLiu(BaseType):
"""
... | [
"jamonhe1990@gmail.com"
] | jamonhe1990@gmail.com |
dd86050790213200d401833149e1c343805eb8be | 772f8f0a197b736cba22627485ccbdb65ed45e4b | /day03/position_func.py | 270d7882a9e4112edd82471539de701354b3274e | [] | no_license | zhpg/python1805 | ddc69cd1b3bda8bef1cb0c2913d456ea2c29a391 | 3d98c8ebc106fd0aab633a4c99ae6591013e4438 | refs/heads/master | 2020-03-26T11:26:59.378511 | 2018-08-05T09:25:21 | 2018-08-05T09:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import sys
#source_fname = '/bin/ls'
#dst_fname = '/tmp/list'
def copy_func(source_fname,dst_fname):
with open(source_fname,'rb') as src_fobj:
with open(dst_fname,'wb') as dst_fobj:
while True:
data = src_fobj.read(4096)
... | [
"root@room9pc01.tedu.cn"
] | root@room9pc01.tedu.cn |
c6589b176aa1ed8216a32701aaf899ee17584d9a | 5922398212b6e113f416a54d37c2765d7d119bb0 | /python/Left Pad.py | 6b44f0b9b59873f2f9020934585bec963bde7a68 | [] | no_license | CrazyCoder4Carrot/lintcode | e777f73e1fdfe3b8abc9dbfc07d26602bf614151 | 33dcd7f0e2d9bee58840a3370837cb2db82de1eb | refs/heads/master | 2021-01-09T20:38:59.813198 | 2017-01-16T22:34:26 | 2017-01-16T22:34:26 | 60,287,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class StringUtils:
# @param {string} originalStr the string we want to append to
# @param {int} size the target length of the string
# @param {string} padChar the character to pad to the left side of the string
# @return {string} a string
@classmethod
def leftPad(self, originalStr, size, padChar... | [
"liuzhenbang1988@gmail.com"
] | liuzhenbang1988@gmail.com |
3c9cd4e675f6c5673c40d885805d7b5155d271ec | d3caa06cfce6251d2e17588d1c6f7f401889b0dc | /android-app-security-detector/detector/ad/permission/predict.py | b3b38a73ad7bc422e15402a558e53f5b185daff6 | [] | no_license | wangtianqi1993/Android-App-Security-ML | 8470ca40346f9d778db5d02f81fddec757b2c125 | 55e2c52ab25e2f7c8087dcf043e4f37338ec9ed3 | refs/heads/master | 2021-01-23T12:11:14.345713 | 2016-06-09T08:42:21 | 2016-06-09T08:42:21 | 60,760,087 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,551 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import numpy
from androguard.core import androconf
from androguard.core.bytecodes import apk
from sklearn.externals import joblib
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import BernoulliNB
from sklearn.naive_bayes import Gaus... | [
"1906272972@qq.com"
] | 1906272972@qq.com |
288a7e3b57ee900ae1738a7ae195cb43ccd3a5a3 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/aviv/hukuman_teroris.py | 13e1a5422fceffbd49721049d19b9b3e11718359 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import scraperwiki
import simplejson
# retrieve a page
base_url = 'http://search.twitter.com/search.json?q='
q = 'hukuman_teroris'
options = '&rpp=1000&page='
page = 1
while 1:
try:
url = base_url + q + options + str(page)
html = scraperwiki.scrape(url)
#print html
soup = simplejso... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
43375659771617d2e6f263eb37c8e459a47c43ce | 6fc108af0e197f664d545acf770dba0d8e84174c | /Eve/train.py | 37bb683f5b87397409cefbe8c7cbf4815be0f6ce | [] | no_license | luotongml/DeepLearningImplementations | c2c4e900ffa19955c9d1667fb6797e19a53f9b4a | 69c776662a176ac6518b981d503606ad0b66296c | refs/heads/master | 2021-01-09T23:37:08.204057 | 2016-11-08T07:12:09 | 2016-11-08T07:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import os
import json
import models
import numpy as np
from keras.utils import np_utils
from keras.datasets import cifar10, cifar100, mnist
from keras.optimizers import Adam, SGD
from Eve import Eve
def train(model_name, **kwargs):
"""
Train model
args: model_name (str, keras model name)
**kwar... | [
"thibault.deboissiere@seeingmachines.com"
] | thibault.deboissiere@seeingmachines.com |
a7ccf4436f941a504fa8624da2ac7866311de64d | 08eef4241e62bcff651e3002fc0809fe50aaaee3 | /supervised_learning/0x0A-object_detection/1-main.py | cd784f66a21d2d15109f2d0c8de32bc5ee59becf | [] | no_license | Gaspela/holbertonschool-machine_learning | c4e470fed0623a5ef1399125b9f17fd4ae5c577b | b0c18df889d8bd0c24d4bdbbd69be06bc5c0a918 | refs/heads/master | 2023-04-02T00:34:16.350074 | 2021-04-03T02:27:41 | 2021-04-03T02:27:41 | 275,862,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python3
if __name__ == '__main__':
import numpy as np
Yolo = __import__('1-yolo').Yolo
np.random.seed(0)
anchors = np.array([[[116, 90], [156, 198], [373, 326]],
[[30, 61], [62, 45], [59, 119]],
[[10, 13], [16, 30], [33, 23]]])
yolo = ... | [
"samirmillanorozco@hotmail.com"
] | samirmillanorozco@hotmail.com |
617c5ad84f9081e7a7f5321d6e4976c6916b0630 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /neural_guided_symbolic_regression/utils/arithmetic_grammar_test.py | 737c2841907a41f47ce5f72af9990339e499ff4c | [
"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 | 17,808 | 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 |
1946e3e82bc870dc367c8d3b9b9c19536bb2aed4 | 75eef2ce83bd6dc5aa38e7df0f73c856200e11f4 | /aula/variable.py | 7bad9782cfa762920e1a7dfb21949823edd8d9a3 | [] | no_license | jruizvar/jogos-data | c4e823da3c1b1e8abf379d82f9e852e0b9c89638 | 6ddadb2ce51d33bc0f1b8cf55ce73dba2ba3509e | refs/heads/master | 2021-09-07T15:55:00.112934 | 2018-02-25T15:00:49 | 2018-02-25T15:00:49 | 110,839,946 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | """
Variables in tensorflow
"""
import tensorflow as tf
"""
RANK 0
"""
a = tf.Variable(4, name='a')
b = tf.Variable(3, name='b')
c = tf.add(a, b, name='c')
print("Variables in TF\n")
print(a)
print(b)
print(c)
print()
with tf.Session() as sess:
sess.run(a.initializer)
sess.run(b.initializer)
a_va... | [
"jruizvar@cern.ch"
] | jruizvar@cern.ch |
6cf95ad22d81f8faaf4adf2d4173c99727421d9f | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/PySide2/QtWidgets/QCalendarWidget.py | f4a24c43449f654fc79c74ae91f41946c62ea220 | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,779 | py | # encoding: utf-8
# module PySide2.QtWidgets
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PySide2\QtWidgets.pyd
# by generator 1.146
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import PySide2.QtGui as __PySide2_QtGui
import Shiboken as __Shiboken
from .QWidget impor... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
4053affa8458c52070d22a986202bae49f8a2fa7 | 267f2c09420436e97275986f825045cbe81fd3ec | /buy & sell vinyl records 4.4.py | b69da4532a338e3942dd9f4bc3d3d8102bb2e731 | [] | no_license | aiqbal-hhs/91906-7 | f1ddc21846bee6dd9dcf4f75bdabe68989390769 | 8d6aadedff8c6585c204a256b5bd3ad8294a815f | refs/heads/main | 2023-05-15T00:17:41.407536 | 2021-06-04T10:32:21 | 2021-06-04T10:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | from functools import partial
from tkinter import *
from tkinter import ttk
import random
root = Tk()
blonde = 3
nectar = 6
flower_boy =12
##########################################calution######################################################
def buy_stock():
global blonde, nectar, flower_boy
vinyl ... | [
"noreply@github.com"
] | aiqbal-hhs.noreply@github.com |
7783851ca66286c45f773c2458978039bf9b7e08 | dd5dbe28416571f3f0c4b682494a80587a3cb62d | /13.6.4.py | bf237f9f319525636480742894160a626d127d7b | [] | no_license | AlexKurTest/pythonProject13 | 2ba614b2c0d59ddc43afc9a288b9f064fbc4a753 | 1211b1ea8a308af3ea47595897f16b18b19d900d | refs/heads/master | 2023-06-21T13:59:41.567948 | 2021-08-02T14:44:51 | 2021-08-02T14:44:51 | 391,979,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | n = 1
S = 0
while S < 1000:
S += n ** 2
n += 1
print("Сумма равна:", S)
print("Количество чисел:", n) | [
"you@example.com"
] | you@example.com |
0fa0da872f8cfed15ebe40428ea26881b6a40365 | f5134fd8fd9591ba86ac1e3585c6907db6711020 | /european_lobbyists.py | e4240122cef33aa677b77e90912b38ff28472278 | [] | no_license | shivswami/Scraperwiki-scrapers | 87fe03563ba7ef78c238acbf85ac6ca0bf131fac | 65d79bfbc2ec279107d872c03ea4d12bc2b39174 | refs/heads/master | 2020-12-11T07:53:55.543349 | 2012-05-09T00:08:35 | 2012-05-09T00:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | import scraperwiki,re
#from lxml import etree
import lxml.html
import time
import datetime
# Scrapes the registry of European lobbyists: http://europa.eu/transparency-register/index_en.htm
baseurl = 'http://ec.europa.eu/transparencyregister/public/consultation/listlobbyists.do?alphabetName='
urllist = ['LatinAlphabe... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
aa928668b4039eff8719e93dfcf66d7051eef8ae | c486ba03781686f6e1a29a193c9db58083895d2e | /63_367_1.py | 279020345eb5ff86fd5c1f4883ee5d5c86c510b8 | [] | no_license | ywtail/leetcode | dcd32faf4772d597d8af9b9ff50b4c370d7fb97d | 2ad1f0e7589e3f5c92af9151c3318d360108df9d | refs/heads/master | 2021-01-12T16:25:17.247136 | 2019-01-26T17:17:04 | 2019-01-26T17:17:04 | 71,991,978 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # coding:utf-8
# 367. Valid Perfect Square 有效的完美平方
# 56ms beats 18.34%
class Solution(object):
def isPerfectSquare(self, num):
"""
:type num: int
:rtype: bool
"""
i = 1
while num > 0:
num -= i
i += 2
return num == 0
solution = Soluti... | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
02d3e13051d067620e74d3528947f305121b6be5 | 8151d8f9a2ca56a4d8fce502fdb50f13117d57b0 | /movie/migrations/0001_initial.py | 411302a4dc20a907b80293bc9390d9ec537d3e46 | [] | no_license | jessi0701/watcha | d9ed289350fa94cfaf3870a5dbb7f38adac01ece | 44d87aa422ed827dea35a81f36e5418cee46a6f7 | refs/heads/master | 2020-04-22T03:38:17.544181 | 2019-02-11T08:38:32 | 2019-02-11T08:38:32 | 170,094,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 2.1.5 on 2019-02-11 02:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(au... | [
"jessi0701@naver.com"
] | jessi0701@naver.com |
ea42e6291b646d9117a24bbc13a07aa9a32487e3 | 8170f2672288c2964059ffc1de1bb4b96ab241fe | /core/src/cgcloud/fabric/operations.py | 29696dc868ec44b09774f4d950f77fb4901fbcb1 | [
"Apache-2.0"
] | permissive | hschmidt/cgcloud | be0e1549d741f7dadbd79e57a416b7283cb1479a | 528082dd512d67f211bf52cd792e439756ce4e3f | refs/heads/master | 2020-06-28T06:05:55.925278 | 2016-11-18T19:12:18 | 2016-11-18T19:12:18 | 74,506,485 | 1 | 0 | null | 2016-11-22T19:32:58 | 2016-11-22T19:32:58 | null | UTF-8 | Python | false | false | 7,796 | py | import os
import sys
import time
from StringIO import StringIO
from contextlib import contextmanager
from fcntl import fcntl, F_GETFL, F_SETFL
from pipes import quote
from threading import Thread
from bd2k.util.expando import Expando
from bd2k.util.iterables import concat
from bd2k.util.strings import interpolate as f... | [
"hannes@ucsc.edu"
] | hannes@ucsc.edu |
069b5e6f87c762349b10e840290f0cc3eecde14c | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Numerical+algorithms/Spigot+algorithm/spigot_pi.py | dc161520ec1b495e2b2d14284dd1479e6a15a953 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | import sys
# base 10000 pi spigot algorithm
#
# translated from C:
# http://stackoverflow.com/questions/4084571/implementing-the-spigot-algorithm-for-%CF%80-pi
#
# // Spigot program for pi to NDIGITS decimals.
# // 4 digits per loop.
# // Thanks to Dik T. Winter and Achim Flammenkamp who originally made a... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
3829f8bd800b15109f115213f746707864db6e02 | 987d9e7dd105fa69c4e8f4437aee87fc3a3076ce | /dj_file_async/users/migrations/0001_initial.py | 403cd2f2368340498ec3cea223f0d02fd525b081 | [] | no_license | CuriousLearner/dj-file-async | 87e8f44c7afe90b4203c5a3cee8ea8d81f40ad0c | 43ce0f9011cd0ce822f24f9ebf9e8160cd9187bd | refs/heads/master | 2021-06-12T11:01:30.229841 | 2019-06-17T12:06:04 | 2019-06-17T12:06:04 | 192,339,091 | 1 | 0 | null | 2021-05-27T13:44:44 | 2019-06-17T12:04:16 | Python | UTF-8 | Python | false | false | 2,610 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-23 11:13
# Standard Library
import uuid
# Third Party Stuff
import django.utils.timezone
from django.db import migrations, models
# dj-file-async Stuff
import dj_file_async.users.models
class Migration(migrations.Migration):
dependencies = [
... | [
"sanyam.khurana01@gmail.com"
] | sanyam.khurana01@gmail.com |
3e4568bdf21076949534d011c6bd8987522f94fc | 208d90e62d59f680db0ba76513cf2409b8521263 | /datasets/github/api.py | 6b564d83735bea1e616cfb829d929cb85a92173c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ChrisCummins/photolib | 930b7c1dfb6bb2a04592b1e01e8ce41f15304ef2 | a0592482317ef8c27676efe1c43452af5cd65106 | refs/heads/master | 2020-07-09T14:25:10.582105 | 2019-08-23T19:04:48 | 2019-08-23T19:04:48 | 122,436,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | # Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.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 applicab... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
b58582f3df8782810013326ff895cc96a40dfa6b | 3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3 | /case/ProductCombination_BatchEditing.py | 929cc92648b3f376215fb072105210659cb88844 | [] | no_license | tian848-tim/trunk | de50a153c8cab3c81c79c523256a6f1b4c2f049d | cd52afdd003f094056dc2ea877c823a38e6a26fd | refs/heads/master | 2022-11-20T06:43:35.540105 | 2020-07-20T07:48:26 | 2020-07-20T07:48:26 | 281,048,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py | '''
测试用例标题:产品组合关系测试
测试场景:产品组合关系业务流程测试
创建者:Tim
创建日期:2018-11-20
最后修改日期:2018-11-20
输入数据:审批流程各个角色账号
输出数据:无
'''
# -*- coding: utf-8 -*-
import sys,os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
#sys.path.append(rootPath)
import unittest
from cgitb import text
import selenium.... | [
"tim.long@Newaim01.com"
] | tim.long@Newaim01.com |
f4432cd1d8bf424e8ef954d35490f721b7ae780f | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /ros/py_ros/motoman/dummy_moto2.py | e7ed6746830ffd9242f3320e52d2bab45fa1454d | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | #!/usr/bin/python
#\file dummy_moto2.py
#\brief Dummy motoman robot.
# This subscribes joint_path_command and send joint_states.
# The trajectory is interpolated with a spline.
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Nov.10, 2017
import roslib;
roslib.load_manifest('m... | [
"info@akihikoy.net"
] | info@akihikoy.net |
1054685a0135c681596542b67284adff29b9764b | 860b2541a2b2c39440711429357b63cbc521feed | /heaps/gfg-rearrange-chars.py | f29d087a8c2f8701ecb55b7bb833b81e54d4bc47 | [] | no_license | lalit97/DSA | a870533f52eb9e002db683552ce77e41efcde6b2 | e293004a4c2ca2d9040d939350cb6cb6f6ed2bd3 | refs/heads/master | 2022-02-09T01:36:08.166689 | 2022-02-02T14:45:40 | 2022-02-02T14:45:40 | 235,321,867 | 4 | 1 | null | 2022-02-02T14:45:41 | 2020-01-21T11:02:41 | Python | UTF-8 | Python | false | false | 941 | py | '''
https://practice.geeksforgeeks.org/problems/rearrange-characters/0
https://leetcode.com/problems/reorganize-string/discuss/384051/easy-peasy-python-heap-priority-queue-(100)
https://leetcode.com/problems/reorganize-string/discuss/456020/Python-Heap-Easy-to-understand-self-explanatory-code'''
import heapq
from co... | [
"sutharlalit.97@gmail.com"
] | sutharlalit.97@gmail.com |
6a661fa71ac3508f04547229754a4b4d516b68d3 | 6c219c027c7d0ef454bdeac196bd773e8b95d602 | /hardware/printer/printer_canon_unauth.py | 5485cefdf9e6e75750648e250a7c8b332ec55174 | [] | no_license | aStrowxyu/pocscan | 663f3a3458140e1bce7b4dc3702c6014a4c9ac92 | 08c7e7454c6b7c601bc54c21172c4788312603b1 | refs/heads/master | 2020-04-19T10:00:56.569105 | 2019-01-29T09:31:31 | 2019-01-29T09:31:31 | 168,127,418 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 佳能打印机未授权漏洞
referer: http://www.wooyun.org/bugs/WooYun-2015-114364
author: Lucifer
description: 佳能打印机未授权可远程打印。
'''
import sys
import requests
import warnings
from termcolor import cprint
class printer_canon_unauth_BaseVerify:
def __init__(self, url):
s... | [
"wangxinyu@vackbot.com"
] | wangxinyu@vackbot.com |
2b18ca5eb036786c92f9b96924f1f5f95f0b4cae | b6abbba15aca653c98c1d37c364043219b1f6983 | /examples/list_comprehension.py | 4f0e3b437c021f5c22b642c5c059161a2c162c3d | [] | no_license | hazybluedot/ece2524_test | cab1fb8c6c6849195ac217f5e8f9d1ef4b6ca866 | 9cd00aa5da8adbdcdcb6ee8baa6582348d9d7857 | refs/heads/master | 2016-09-11T05:27:18.364851 | 2013-04-30T04:10:29 | 2013-04-30T04:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/env python2
from sys import stdout,stderr
from math import pi
import re
print "list comprehension"
# list comprehension has a syntax similar to mathmatical set comprehension
N=5
squares=[ x**2 for x in range(1,N+1) ]
print "squares of natural numbers between 1 and {0}: {1}".format(N, squares)
mylist = [ 'a... | [
"dmaczka@vt.edu"
] | dmaczka@vt.edu |
fb059288b905e95a3e1628af1ae630889f5ecca7 | 1e8d7f047efc9869f7d9a57b53b3ac71a8ad086c | /21天学通Python_源代码/C20/findfat6.py | a5a6c54e0c40fb57a9643b9cc9b320e55ea22ea0 | [] | no_license | BrandonLau-liuyifei/liuyifei_sourse | c686776496fdccd89c8a28dbaba4b5f01c9ce013 | cbf916289613cc1dcc2db452bc6f2c3f6185c5f2 | refs/heads/master | 2021-05-17T16:51:29.104546 | 2020-08-16T13:39:25 | 2020-08-16T13:39:25 | 250,880,982 | 0 | 1 | null | 2020-08-16T13:39:26 | 2020-03-28T19:53:13 | Python | UTF-8 | Python | false | false | 8,930 | py | #coding:utf-8
#file: findfat6.py
import tkinter
import tkinter.messagebox,tkinter.simpledialog
import os,os.path
import threading
rubbishExt=['.tmp','.bak','.old','.wbk','.xlk','._mp','.log','.gid','.chk','.syd','.$$$','.@@@','.~*']
class Window:
def __init__(self):
self.root = tkinter.Tk()
... | [
"liuyifeiflying1991@outlook.com"
] | liuyifeiflying1991@outlook.com |
2dd96e64c0ed8f05831e7632864e216a1060f9ce | 645e9674e78b3c0ae72a7d4dc5f9694f97c035d3 | /Python/Examples2/gui_board.py | 1d2dfbea301e5609cbbfd6229923940162dc5e33 | [
"MIT"
] | permissive | msiplab/EicProgLab | 30cd1b3f45eb86c26a270af5888f6966abaac9ae | aa4b19e59154ce27cda856fa6a615859304bd595 | refs/heads/master | 2023-07-19T22:35:52.457866 | 2023-07-12T20:35:23 | 2023-07-12T20:35:23 | 125,338,699 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,653 | py | from tkinter import *
from tkinter.ttk import *
from board import Board
from board_out_of_range_exception import BoardOutOfRangeException
import time
class GuiBoard(Board):
def __init__(self,master=None,verbose=False):
"""コンストラクタ"""
# Board クラスのコンストラクタを呼び出し
super().__init__(verbose... | [
"shogo@eng.niigata-u.ac.jp"
] | shogo@eng.niigata-u.ac.jp |
65ea48a6f15858d75934f78f6471be33e1354d4e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/DANWARE-MIB.py | 1575b67aea28ef59acbeded508da48825c5053b1 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 22,290 | py | #
# PySNMP MIB module DANWARE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DANWARE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:21:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d2c26f4a84466cd728075e4ef8cd38e436b43e82 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/100152.最大值.py | 1a89b9eb77fe953d8740a93032874032fc61895e | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 100152.最大值.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
71dd1cdece7a06f219a0da724fe6efa5f23c1a67 | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/b_20200817025923.py | 554fe9ee1946167987776df52d744c79c196e6ca | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import requests as re
import pprint as p
url1 = "https://api.github.com/users/cod-lab/repos?sort=created"
pyload = {'sort': 'created'}
response = re.get('https://api.github.com/users/cod-lab/repos',params=pyload)
print(type(response))
result = response.json()
print(type(result))
print(len(result))
repos={}
for i i... | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
45298a5c8642014f59b1aedaa12264dedcc01b18 | 0625c11ee4bbf9529d207e417aa6b7c08c8401fc | /users/migrations/0002_auto_20200516_1434.py | aff549793a337226a26f8265e64d52a95f375f81 | [] | no_license | crowdbotics-apps/new-test-5-dev-4699 | 2111ee0616e48956a31a2beb046d396f462e6b84 | 0a600a45de768bc39a1f195991d67a738e0d3fc7 | refs/heads/master | 2023-05-15T08:54:55.532847 | 2020-05-16T14:34:49 | 2020-05-16T14:34:49 | 264,456,120 | 0 | 0 | null | 2021-06-12T22:10:46 | 2020-05-16T14:34:01 | Python | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.12 on 2020-05-16 14:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='test',
field=mo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f98e4660ae0e69a70e376f8870f577004bbea6f3 | d2024c9a545dcb81448fa614da6827c180a4b2ee | /tensorflow/2018_6_10/mycode/tensorflow_code/towindows/mycode_save_temp/2-4_Tensorflow_example.py | af470b273213c4b4e6304296a47f6a459dfe3532 | [] | no_license | codybai/mycode | f10e06efebff6297ad38494de865b853849f5a3d | 4aaa89e7fd00e4c480be6ee931eb419dcdd69476 | refs/heads/master | 2020-03-19T06:38:51.396611 | 2018-06-11T05:30:51 | 2018-06-11T05:30:51 | 136,042,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import tensorflow as tf
import numpy as np
#使用numpy生成100个随机点
x_data = np.random.rand(100)
y_data = x_data*0.1 + 0.2 #直线
#构造一个线性模型 拟合上面直线
b = tf.Variable(0.) #0.0随便什么值都可以
k = tf.Variable(0.)
y = k*x_data + b
#二次代价函数
loss = tf.reduce_mean(tf.square(y_data-y))#取平均值(一个平方)
#定义一个梯度下降进行优化(优化器)
optimizer = tf.train.Gradi... | [
"codybai@163.com"
] | codybai@163.com |
5567bccd3890125597c4ed714a5266364fcee515 | 38fff7bdefd8d62a740d51329b50d0e1e49258bb | /projects/black/fuzz_raw_format_filecontents.py | fedc48564e4d263784828ca37e3a98533b0590c6 | [
"Apache-2.0"
] | permissive | google/oss-fuzz | 026384c2ada61ef68b147548e830f60730c5e738 | f0275421f84b8f80ee767fb9230134ac97cb687b | refs/heads/master | 2023-08-31T23:30:28.157702 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 63,809,205 | 9,438 | 2,315 | Apache-2.0 | 2023-09-14T20:32:19 | 2016-07-20T19:39:50 | Shell | UTF-8 | Python | false | false | 1,158 | py | #!/usr/bin/python3
# Copyright 2023 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 agr... | [
"noreply@github.com"
] | google.noreply@github.com |
b4be736634c779bb7c9e138d5003259a5f77d2dc | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /TopQuarkAnalysis/TopEventProducers/python/producers/TtFullLepEvtFilter_cfi.py | a03896e38afe60dba0432aa0dabd21e5ecec202a | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 299 | py | import FWCore.ParameterSet.Config as cms
#
# module to filter events based on member functions of the TtFullLeptonicEvent
#
ttFullLepEventFilter = cms.EDFilter("TtFullLepEvtFilter",
src = cms.InputTag("ttFullLepEvent"),
cut = cms.string("isHypoValid('kGenMatch') & genMatchSumDR < 999.")
)
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3f198b7aded2d56301d365c0af65211cf37b0bc4 | 2f30cf20d58e2cde4037441e67213223c69a6998 | /lesson07_function/demo01.py | 7f656d289b3ed6bd3d67bcbfeac3f7d0e3bd28a9 | [] | no_license | zengcong1314/python1205 | b11db7de7d0ad1f8401b8b0c9b20024b4405ae6c | da800ed3374d1d43eb75485588ddb8c3a159bb41 | refs/heads/master | 2023-05-25T07:17:25.065004 | 2021-06-08T08:27:54 | 2021-06-08T08:27:54 | 318,685,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | """
什么是函数
f(x) = x + 2
y = x + 2
python当中的函数和数学函数并没有本质的区别
就是从数据函数。
#函数的定义
def 函数名():
#函数体
return 函数返回值
返回值是得到的结果,打印出来才能看到
函数定义好了以后并不会执行函数体,
如果要执行函数体,需要调用函数。
函数调用之前必须要定义,先定义再调用。
再函数定义的时候,最好不要调用它自己
函数作用:把一段可以重复运行的代码(3行,100行)放到函数体当中。
去调用函数的时候,
什么时候想到用函数:你有很多功能相同的代码需要多次运行。。。你在复制粘贴一段代码的时候
"""
#Step Into 进... | [
"237886015@qq.com"
] | 237886015@qq.com |
76c947c5838219776b29166da92155d230f1d1e8 | ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a | /ICPC/2015 Divisionals/lights/submissions/lights_darcy.py | 5db44cf6b01caa2e5ca9d2f55e859afab5d5f196 | [] | no_license | cormackikkert/competitive-programming | f3fa287fcb74248ba218ecd763f8f6df31d57424 | 3a1200b8ff9b6941c422371961a127d7be8f2e00 | refs/heads/master | 2022-12-17T02:02:40.892608 | 2020-09-20T11:47:15 | 2020-09-20T11:47:15 | 266,775,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | n,d = [int(x) for x in input().split()]
ans = "YES"
for _ in range(n):
x,a,g,r = [int(x) for x in input().split()]
if x < a or (x-a) % (g+r) > g:
ans = "NO"
print(ans)
| [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
38a94e9468141838a24de329cf7dbc5901f93f71 | fa57362a6a56d818d4cdea881d850bd753ec2ef9 | /stats_scripts/multiLineageScore.py | 25e1c55830debac33968c8ca7d69965b08e64171 | [
"Apache-2.0"
] | permissive | anukanab/altanalyze | 747d3a60ccf8fdd79f2ab4d6a8c54e4ea9035a32 | fc2b12a3ce7944256e1a57d712447aa3bda3fb90 | refs/heads/master | 2020-07-14T00:13:03.277138 | 2019-07-01T13:21:53 | 2019-07-01T13:21:53 | 205,186,618 | 1 | 0 | Apache-2.0 | 2019-08-29T14:49:49 | 2019-08-29T14:49:48 | null | UTF-8 | Python | false | false | 18,005 | py | import sys,string,os
sys.path.insert(1, os.path.join(sys.path[0], '..')) ### import parent dir dependencies
import scipy, numpy
import statistics
from visualization_scripts import clustering
def evaluateMultiLinRegulatoryStructure(all_genes_TPM,MarkerFinder,SignatureGenes,state=None,query=None):
all_indexes, grou... | [
"nsalomonis@gmail.com"
] | nsalomonis@gmail.com |
da5c3b9df32592471753b77eb653a26f9db9758a | b3e525a3c48800303019adac8f9079109c88004e | /iota/test/apulu/config/add_routes.py | c282d5b2da7b3385d804983ce569bed324eeaa4c | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | #! /usr/bin/python3
import pdb
import os
import json
import sys
import iota.harness.api as api
import iota.harness.infra.utils.parser as parser
import iota.test.apulu.config.api as config_api
import iota.protos.pygen.topo_svc_pb2 as topo_svc
def __get_route_add_cmd(route, gw):
route_base_cmd = "ip route add %s ... | [
"noreply@github.com"
] | PsymonLi.noreply@github.com |
40436dfac0d1f9329fde0c6eda5615076482030c | f5ffd566166948c4202eb1e66bef44cf55a70033 | /test/test_array_of_codes.py | 589bc0a75c8b032bfe833b76f2704ed62391093c | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
41db1bba4d7414222ccffd424de0dd641cfea02a | 3831421b5f4f294bf8f4089b1f617cfc82c2351a | /MyInte/SCRIPTS/assit/useiniEr.py | a2191acb7004daa4ebaa23c14ec4258d717d953a | [] | no_license | jesuel51/MyInte | 6ce31b813c51e30780115f1a5efcafd8d264ae43 | 817a6df61cb77dedf0e4a586bd09906a4b175e96 | refs/heads/master | 2020-05-31T01:46:35.983688 | 2019-06-03T18:17:34 | 2019-06-03T18:17:34 | 190,056,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # this script is modified based on useiniT2.py
if root['SETTINGS']['PHYSICS']['useiniEr'][0]==1:
pvt_i=root['SETTINGS']['PHYSICS']['useiniEr'][1]
drho_tgyro=root['SETTINGS']['PHYSICS']['drho_tgyro']
num=int(pvt_i/drho_tgyro)+1
diff_Er=root['SETTINGS']['PHYSICS']['omega_sparse'][num]-root['SETTINGS']['PH... | [
"1018910084@qq.com"
] | 1018910084@qq.com |
6f9778c931a8859d868533b4217a25cae9247572 | 72231c7eafef1d0885fd4d74e61be939748c44bf | /examples/run.py | 396cbd995ceee81caf0e77b11e3c17b4aad8624d | [] | no_license | jgsogo/conan-poc-graph | b5acf10a4a967461ebe95d7ae717838b9c883676 | 40491d05e7c7aeb16bcc49eb20f1ef3c5a27f282 | refs/heads/master | 2022-06-09T05:51:29.691586 | 2020-05-06T17:11:29 | 2020-05-06T17:11:29 | 258,741,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | import json
import os
import sys
import networkx as nx
from conans.graph import Graph
from conans.graph.builders import bfs_builder, BFSBuilderEx1
from .utils import ProviderExample
def main(graphml, jsonfile):
available_recipes = json.load(open(jsonfile))
input_graph = nx.read_graphml(graphml)
nx.drawi... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
e61c4fdd44f1d4075fc4cb66482035008e151a78 | dd65b9bc9475a6cc58817fd45c078e5a6abae241 | /Tensorflow/car/web-tf2/gcf-packs/tensorflow2.0/source/tensorflow/_api/v2/compat/v2/summary/__init__.py | 2012d8ba0e140114063e73352525237f5323e20b | [] | no_license | jumbokh/gcp_class | 5b68192ab4ad091362d89ad667c64443b3b095bb | 0a8e2663bfb5b01ce20146da178fa0c9bd7c6625 | refs/heads/master | 2021-10-22T09:22:04.634899 | 2021-10-21T12:46:10 | 2021-10-21T12:46:10 | 228,617,096 | 8 | 7 | null | 2021-08-25T15:55:30 | 2019-12-17T12:58:17 | Python | UTF-8 | Python | false | false | 1,170 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Operations for writing summary data, for use in analysis and visualization.
See the [Summaries and
TensorBoard](https://www.tensorflow.org/guide/summaries_and_tensorboard) guide.
"""
f... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
ee485ffb5dc6c4bb9f9a74b1700ca79fcc71dc8d | c3e3b606e312e5e50afba39db2ea573c21171405 | /transaction/migrations/0003_auto_20170803_1730.py | ce51e92fd4b8193a9bdcf4f3daf72814b3c5e412 | [] | no_license | CodeNicely/AccountingWebApp | 3fa88ea196afda38ff3f3015e8b0623c41b7ee8a | a96932af24f0dff44e464f9fbeb3ef49956764b2 | refs/heads/master | 2021-01-02T22:52:56.898964 | 2017-09-19T10:26:52 | 2017-09-19T10:26:52 | 99,409,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-03 17:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('transaction', '0002_auto_20170803_1514'),
]
operatio... | [
"mayankchaurasia.bsp@gmail.com"
] | mayankchaurasia.bsp@gmail.com |
23f25c266ed6b2551223457bdbd4656108abc748 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s746635354.py | 575ea419f24cb64ccfbb4765610d6a8475a77ce3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | S = input()
ans = 0
for i in range(len(S)):
for j in range(i, len(S)):
sub_s = S[i:j+1]
is_acgt = True
for s in sub_s:
if s == "A" or s == "C" or s == "G" or s == "T":
continue
else:
is_acgt = False
if is_acgt:
ans ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.