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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83e951914a404df185985df975b14b4ab79ebab7 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/logic/v20160601/integration_account_assembly.py | 066e5da2149a6ba23cfac81ccc509fccdca4431d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,192 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
e4a14f008c431ab5a0199aef5f80e6faa18074b2 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/prb_windows/switchperipherywindow.py | a61163d0f6e932c14da512b0c3b78e6e2d0e305f | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,904 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/SwitchPeripheryWindow.py
from ConnectionManager import connectionManager
import constants
from debug_utils import LOG_DEBUG
from gui.Scaleform.daapi.settings import BUTTON_LINKAGES
from gui.Scaleform.daapi.view.meta.SwitchPeripheryWindowMet... | [
"info@webium.sk"
] | info@webium.sk |
8adc6e2f1aa9c4d7713b8cb7dd3b2fbb27f47ab4 | dde5bd0d7819a25751570de8d2b9cdd4337337b0 | /Password.py | e7c28aefd9ba7dd2001e72c9632274d43cc5ba5b | [] | no_license | Anubamagpljecs07/Codekata_Hunter | 01ba4a12d2447525d8b1729af1701b6202b5f00e | 06b1c9b272d505f54a98539413dc2d4824305509 | refs/heads/master | 2020-04-18T14:07:22.766109 | 2019-07-28T12:39:31 | 2019-07-28T12:39:31 | 167,580,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | r,s=map(str,input().split())
r=list(r)
s=list(s)
a=len(r)
b=len(s)
g=""
if a<b:
for i in range(1,(b-a)+1):
r.append(i)
else:
for i in range(1,(a-b)+1):
s.append(i)
for i in range(0,len(r)):
for j in range(0,len(s)):
if i==j:
g=g+str(r[i])
g=g+str(s[j])
print(g... | [
"noreply@github.com"
] | Anubamagpljecs07.noreply@github.com |
cea8dfad15c256206c665989e02288ff8003ef73 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_247/ch121_2020_09_23_20_43_59_414450.py | 3604105d5458c23584fe29d41fa578480d0b6eb8 | [] | 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 | 100 | py | lista1 = [4, 6, 8]
lista2 = [2, 6]
subtracao_de_listas= lista1 - lista2
print (subtracao_de_listas) | [
"you@example.com"
] | you@example.com |
fd59c3f1feb10e6b28954e5a34f2009dff2dd443 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-cloudapi/aliyunsdkcloudapi/request/v20160714/SetAppsAuthoritiesRequest.py | 7c04bda93500029462eeb32ea6b4059064120130 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
2522d3ebf8d60e701f772219533f915da1524c41 | 861fb6e46bfd1ef4ef94b82269babe8fd8e04da1 | /src/programy/parser/template/nodes/srai.py | 7c50ac234eb307b5badc810d202ce48547351ed6 | [
"MIT"
] | permissive | Doshmaku/program-y | 5b436b83f409feeddb9fe626c156a426e1170187 | 6c2e14eebaa92fb61b27deba1b28e6775090c327 | refs/heads/master | 2021-01-18T20:45:29.330015 | 2017-03-31T23:35:30 | 2017-03-31T23:35:30 | 86,988,411 | 0 | 0 | null | 2017-04-02T13:35:03 | 2017-04-02T13:35:03 | null | UTF-8 | Python | false | false | 1,832 | py | """
Copyright (c) 2016 Keith Sterling
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 use, copy, modify, merge, publish, distribute,... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
540d539597adb3706f95ff6300b78db3ff41ab95 | 0bfb4c9185743a5b2024816c4ef0f1c9031d8294 | /Ewaah/Ewaah/settings.py | a3d89991066848017ea4db1f7e7da3afc971a048 | [] | no_license | Husain-Jinia/Django-Ewaah | f0d9e114d0d1a3129a88f3fc0b9bb7a4f5c8c4e0 | 7862a1bfa984b101eb2a5e9da4bd6be65167befe | refs/heads/master | 2023-06-24T05:09:58.524651 | 2021-07-27T16:16:44 | 2021-07-27T16:16:44 | 388,485,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | """
Django settings for Ewaah project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib i... | [
"husainjinia0201@gmail.com"
] | husainjinia0201@gmail.com |
635b68ce18964e25d7cbb14f15778925c773d5e3 | 1c452562b8899cc8d16fc074d660c5d736647144 | /update/test/process_my.py | 2b42cdf5822e181c5d63a449ae22847701d13e1a | [] | no_license | cash2one/autumn | 6ac6caec6f7eeec06cb622689aa5ec9ee3173321 | dc03c31beb3b331264ac83643cefee4839e456fc | refs/heads/master | 2020-05-23T12:58:09.635418 | 2016-09-28T01:25:30 | 2016-09-28T01:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import multiprocessing
import time
def wait_for_event(e):
"""Wait for the event to be set before doing anything"""
print ('wait_for_event: starting')
e.wait()
print ('wait_for_event: e.is_set()->' + str(e.is_set()))
def wait_for_event_timeout(e, t):
"""Wait t seconds and then timeout"""
print ... | [
"xutao.ding@chinascopefinancial.com"
] | xutao.ding@chinascopefinancial.com |
6d4b704f15fa273b6ad4e27a805bd1cd9d828c8f | 0600f0979fe17624d33aa74c739775f0f27a3bb5 | /docs/support/python2_module.py | 5a0f9c7411e1d5dc7f7e231dc98a1e38ad09a560 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | pmacosta/putil | 2c8177fb6b9be667b8d52b48bfd3272de8b0160d | 416cea52df8221981727e25d133e9b4e3f464798 | refs/heads/master | 2021-01-21T13:33:41.232773 | 2016-05-17T12:57:30 | 2016-05-17T12:57:30 | 44,289,408 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # python2_module.py
# Copyright (c) 2013-2016 Pablo Acosta-Serafini
# See LICENSE for details
# pylint: disable=C0111,W0212
def _set_value(self, value):
self._value = value+2
| [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
bf2e6170279efa042ff2f01f06ad6eb43b661e82 | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4A/4A-4O_wat_20Abox/set_1ns_equi.py | ac6bea51cee9ca3647a26c47a2e7f61edbdeda9e | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4A/wat_20Abox/ti_one-step/4A_4O/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in ... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
b9a19bc74f525432842757cd26bb159cadd3965a | fe6740673af5f093f41d9cfab5c12883aa6ebbb2 | /plata/contact/models.py | b1711efce2ce444b95b4e2a266df5032ee10a468 | [
"BSD-2-Clause"
] | permissive | chrisglass/plata | 7cb0a2697faff7e0482909aedc2c1b4d3fe8fb0d | fce185e5a1c528b0e059a875eaa5724292827bc7 | refs/heads/master | 2021-01-17T09:41:05.019482 | 2011-01-20T17:11:41 | 2011-01-20T17:11:41 | 1,320,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | from datetime import datetime
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
from cldr_countries.fields import CountryField
from plata.fields import CurrencyField
class BillingShippingAddress(models.Model):
ADDRESS_FIELDS = ['com... | [
"mk@spinlock.ch"
] | mk@spinlock.ch |
dc65aff0849a6f9e7add17f702ee6edab4d723f5 | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /src/arch/x86/isa/insts/simd128/floating_point/arithmetic/addition.py | 2f6ec4017b97d797e5b8083d54b8c9509e44e395 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 3,943 | py | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
579a5194f8865743d8b7c464ce393de43269a4ed | ad2704933de4502ae9de91e6d915f9dbe010b446 | /kurosawa/chapter02/knock16.py | b57dff9bb7454290f6f99303a1a306d21f23b3c4 | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | with open('hightemp.txt','r') as f:
n = int(input('N > '))
i = 0
for line in f:
if i % n ==0:
print()
print(line, end="")
i += 1
# split -l 10 hightemp.txt split_
| [
"michiki@Michiki-no-MacBook-Pro.local"
] | michiki@Michiki-no-MacBook-Pro.local |
942c662266b556899f7415f446eabe370954b27e | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_23998.py | 93d04e7fa917a8a85e616a89be81071fa717a042 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,846 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
e0311af79cc11245fd436e626060357ede26188e | 9f483a97f0ecf8c606c9695fab283e1d83f807de | /docs/source/conf.py | 55d81e87f24de5a9b7797699e0723307d6d730b7 | [] | no_license | AndreaCensi/geometric_saccade_detector | 306c75db79d4410713cb68806dabb75cb55726d9 | a83bb74c6f22c6d566481ebe6f57833a7449e095 | refs/heads/master | 2016-09-06T13:51:34.423876 | 2012-06-24T00:12:38 | 2012-06-24T00:12:38 | 949,846 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,232 | py | # -*- coding: utf-8 -*-
#
# RepRep documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 18 20:45:54 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
c44588f710820a05e261c2f28202de73c5a2db69 | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/파이썬 문법/Chapter2/Chapter2_2_float.py | 9f2181e9034ed7925522325dd57519b48b641c3e | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | a = 1.2
print(a.is_integer()) #a가 정수로 오차없이 표현가능한가?, False
a = 1.0
print(a.is_integer()) #a가 정수로 오차없이 표현가능한가?, True
import math as mm
print(mm.ceil(1.2)) #1.2보다 크거나 같은 정수
print(mm.floor(1.2)) #1.2보다 작거나 같은 정수
from fractions import Fraction #분수형태의 연산을 가능하게 해주는 모듈
print(Fraction('5/7') * Fraction('14/15')) # ... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
7aea6af0f1582ad8eb4db2522aea82debe1aa40a | 36959b56e506dbbe2d3c381cdccfe16965c14d24 | /alms/employee/forms.py | 1732062e713481d4df10db6ae09d1f6fe1a8ec33 | [] | no_license | Sathishkumar-M/Django | e2935fe0c69acb4cb39be2bc0504fd3d5619d002 | e54038ef70295274639b6207efe8e7e3939cbe36 | refs/heads/master | 2020-03-21T20:22:48.684770 | 2018-06-28T10:42:51 | 2018-06-28T10:42:51 | 139,003,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from django import forms
from django.contrib.auth.models import User
from employee.models import EmployeeProfileInfo
class EmployeeForm(forms.ModelForm):
class Meta():
model = User
fields = ('first_name','email',)
class EmployeeProfileInfoForm(forms.ModelForm):
class Meta():
model = Em... | [
"sathishkumar.appiness@gmail.com"
] | sathishkumar.appiness@gmail.com |
89c143918667a650795911a434f8d3e48a986bbf | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather1_W_change_C_fix_2blk/train/pyr_1s/L8/step09_1side_L8.py | 192b566c76306d64353da01da03c0854a4f91b76 | [] | 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 | 6,324 | py | #############################################################################################################################################################################################################
from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C
from step08_b_u... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
c824fd1884b5d04e2dbd69645eafc7d1f0077a29 | 37f1563cdacf4b37b5b927b892538218aae79c77 | /medium/string/findAndReplacePattern.py | 10a8d751878274bf0b03f1f2f1c0571cf919e852 | [] | no_license | unsortedtosorted/elgoog | 9dee49a20f981305910a8924d86e8f2a16fe14c2 | 5be9fab24c0c1fd9d5dc7a7bdaca105f1ca873ee | refs/heads/master | 2020-04-15T00:51:12.114249 | 2019-05-19T04:37:24 | 2019-05-19T04:37:24 | 164,254,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """
#890 Find and Replace pattern
1. Runtime : O(P + W*N )
"""
class Solution:
def findAndReplacePattern(self, words, pattern):
"""
:type words: List[str]
:type pattern: str
:rtype: List[str]
"""
p=""
pm={}
for i... | [
"noreply@github.com"
] | unsortedtosorted.noreply@github.com |
e5e6e121285d7248c84fdf05f7584f8e05b9251f | 438d6a867e23e49fe84041d1dcb3456b71af8ebb | /Modulos/entradas/models.py | 54d3b94c457ff563b802ec8f071b7d5589d0c784 | [] | no_license | Nicko1722/inventario-is | 76d0108ecd2e01843c60292d80f6c27c39f53faa | b7ed35de235673ad896ffdcefcf6d6c9c08501c5 | refs/heads/master | 2021-01-01T03:56:34.485005 | 2016-04-24T21:35:07 | 2016-04-24T21:35:07 | 56,994,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.db import models
from Modulos.inventario.models import Producto
from django.contrib.auth.models import User
# Create your models here.
class Entrada(models.Model):
usuario = models.ForeignKey(User)
producto = models.ForeignKey(Producto)
fecha = models.DateField(auto_now_add=True)
unida... | [
"ioswxd@gmail.com"
] | ioswxd@gmail.com |
e346746ff6b18c3d47a4d0417aebf6bbe6593c32 | e9321204dfca38eaf12eca38f83476879c170441 | /bwi_my_ws/bwi_ws/devel/lib/python2.7/dist-packages/bwi_msgs/msg/_LEDControlFeedback.py | fa964812af45f7efee3aa6131e7b8cb289fbe085 | [] | no_license | jumperbeng/backup | 1d96d471e4aa1adc1179fa78db02b08ff944f7ab | 64e36db87446ddae132524e19fef45f2b1b01242 | refs/heads/master | 2021-07-14T08:27:34.831316 | 2017-10-17T04:09:31 | 2017-10-17T04:09:31 | 107,211,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,917 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from bwi_msgs/LEDControlFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
class LEDControlFeedback(genpy.Message):
_md5sum = "75824f08f05571689ccf41... | [
"wangzixuan828@gmail.com"
] | wangzixuan828@gmail.com |
d68a1825942a601091c0bb9216565841509b6d29 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5690574640250880_0/Python/Hierynomus/MinesweeperMaster.py | 63f8968bba3f816d5a599a74f31c299ba2954136 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | import sys
R = 0
C = 0
M = 0
def gridToString(grid):
return '\n'.join([''.join(line) for line in grid])
def transposedGridToString(grid):
return '\n'.join([''.join([grid[y][x] for y in range(R)]) for x in range(C)])
def fillGrid(grid):
if M == 0:
return
x, y = (0, 0)
m = M
# Fill... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
03a2b85cdb052abbcb6f2660163bdf3dd59091cd | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_12741.py | a2e3fa15d62721986e84d9154196302337e35430 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # '==' operator not working correctly in python
base_addr.value == base_addr_temp.value
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c40ab6abed19bb93242d6c71cdc7ea9bd555c69a | 7002ec859c1f8d59448dba5f091a3c1162cb4d92 | /App/forms.py | 093cabcf41ebe13a0e84cb356e1ed8cba847f25a | [] | no_license | shubhamjain31/Employee_Management_System | 39ad0226b6b6ca86b9ff3fc132d8467d0adbf802 | e80d09a8f9c93a65fc64c1179d21130059e23780 | refs/heads/main | 2023-08-06T00:53:57.498939 | 2021-09-16T16:29:08 | 2021-09-16T16:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | from django import forms
from App.models import Employee, Company
# This is for employee
class EmployeeForm(forms.ModelForm):
eFname = forms.CharField(
label = 'First Name',
widget = forms.TextInput(attrs={
'class': 'form-control',
'placeholder': 'First Name',
... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
53116c468f023c8dc22f35757c12e5ea7a48855c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/create_project_module_response.py | 62c7bbfa7375d683eb98a59a28db5cbf95bb5dc2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,790 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateProjectModuleResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4ab388d8d0e0d57aea8e2618360b21ac2695539d | 7c593f4cc70ee56106cc9cce105e6b9e7839431e | /tests/nn_moving_average.py | 668ad36ea26c9ff97d100fc9637d63a35adc5bc6 | [
"Apache-2.0"
] | permissive | google/objax | 84e397cafb70813a1e89467f745facf828ed24b8 | a2d025d9e1da8660a1883404207c41d4327d8c48 | refs/heads/master | 2023-09-02T07:04:26.801269 | 2023-06-12T22:12:53 | 2023-06-12T22:12:53 | 288,923,752 | 801 | 80 | Apache-2.0 | 2023-06-12T22:12:54 | 2020-08-20T06:20:40 | Python | UTF-8 | Python | false | false | 1,921 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"dberth@google.com"
] | dberth@google.com |
920da64de4037860257f877a1e15c50ee0aa9612 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_cumsum/trend_poly/cycle_0/ar_12/test_artificial_128_cumsum_poly_0_12_100.py | fe8bd2b350a1675d404de1ea84265e5c035b44d2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 0, transform = "cumsum", sigma = 0.0, exog_count = 100, ar_order = 12);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2877d6f7bf785768c362b788247f5dbdb10c3d7a | 670eee1bf73cc98e9c16d28847de4fd20f0d3ad8 | /detection/object_detection/obj_1_gluoncv_finetune/WindowObj1GluoncvFinetuneDataParam.py | c20165955e45832916cec04c81dc05af5f43a3f8 | [
"Apache-2.0"
] | permissive | THEFASHIONGEEK/Monk_Gui | 0a0e0165c91f727981a6fbbf24b9528943979e60 | 7c23cdd3487ae5a5b28b0a3419e4e64022b11e06 | refs/heads/master | 2020-12-24T04:06:04.772899 | 2020-02-04T06:21:06 | 2020-02-04T06:21:06 | 237,376,939 | 0 | 0 | Apache-2.0 | 2020-02-04T06:21:07 | 2020-01-31T06:56:29 | null | UTF-8 | Python | false | false | 12,340 | py | import os
import sys
import json
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
class WindowObj1GluoncvFinetuneDataParam(QtWidgets.QWidget):
backward_1_gluoncv_finetune = QtCore.pyqtSignal();
forward_model_param = QtCore.pyqtSignal();
def __init__(self):
... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
31388253ad9f976d7fc459180e78b72315cb0b27 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/289/82677/submittedfiles/testes.py | cd6176c92d865353ff61835fc612cd1756f0a12f | [] | 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 | 124 | py | n = int(input("Digite um número: "))
i = 1
cont = 0
while (i<n):
ifi%2==1:
cont=cont+i
i = i+1
print(cont)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f727ec747999ca318d678a2849754bc2c28fa40 | d49cfe38764aa35992ba5cf65655a6a45d9487c8 | /旋转矩阵.py | 12438a807352bdee830a20ba6fcda6d71748d2fc | [] | no_license | getabear/leetcode | fc0797f664ab4052aa2635341f4bbe40b74ec2b8 | 4af6608166f2e4cdfcfb0bbb92133b4a0f90ea34 | refs/heads/master | 2021-07-15T11:05:23.049235 | 2020-11-15T12:57:14 | 2020-11-15T12:57:14 | 224,601,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from typing import List
class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
high=len(matrix)
width=len(matrix[0])
tmp=[[0 for i in range(width)] for j in range(high)]
for i in range(high):
for j in range(width):
tmp[j][width-i-1]=matrix[i][... | [
"1874178998@qq.com"
] | 1874178998@qq.com |
19946adb6c4387a7e49170a912c4c7ecbfb5a0f0 | a0eceb74aeb933defece02c5c74d0872c35e9742 | /django_bootstrap3view/django_bootstrap3view_app/utils/render.py | e71eb23c53a48748e6bcf7f49450decae5308593 | [
"BSD-3-Clause"
] | permissive | bossiernesto/django-bootstrap3-classview | 77ab317a818521437b64a4599083ec5cdf762e29 | 25d5efdf321953578fd1aaa6f1e3dd6ee688f806 | refs/heads/master | 2021-01-21T21:47:38.735681 | 2016-04-20T00:44:43 | 2016-04-20T00:44:43 | 17,086,076 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.template.loader import get_template
from django.template import Context, Template
def render(template, context):
context = Context(context)
return get_template(template).render(context)
def render_string(string, context):
template = Template(string)
context = Context(context)
retur... | [
"bossi.ernestog@gmail.com"
] | bossi.ernestog@gmail.com |
f03fc963c85f85a748d2f0eaf1fbb2922fdb2816 | f2770a694a8aedb71c326ced49e76531d69d9f4f | /bin_SPIDERS_CLUSTERS/create_gaia_mask_CODEX.py | ed05458c277af7fc3b8f8f23cddfede122232c25 | [] | no_license | JohanComparat/makeSample | 258280ccb0f9dfa7dc13e934f453c520a1f416b8 | b15f942f51750f504150f6ec29eba857123c29c4 | refs/heads/master | 2021-06-07T18:21:27.559530 | 2020-01-22T08:46:04 | 2020-01-22T08:46:04 | 106,016,246 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,189 | py | import astropy.io.fits as fits
import os, sys, glob
from os.path import join
#import pymangle as mangle
import numpy as np
import matplotlib.pyplot as p
from scipy.interpolate import interp1d
import astropy.units as u
import astropy.cosmology as cc
cosmo = cc.Planck13
from astropy.coordinates import SkyCoord
from skl... | [
"johan.comparat@gmail.com"
] | johan.comparat@gmail.com |
69428a8de65e3a9d7e128759819730afde9441e3 | 2b88e4385b2ed720005f9809e257ef0ed5b6b1d5 | /hashing/Permutations_of_A_in_B.py | aa12c64fb98d821e421e8a2807a9927423d7bf71 | [] | no_license | arnabs542/DataStructures_Algorithms | c5efbbbea9aafc3406b8cefa7bf4c33c4c3c6f2e | 431e7bddcb04f7a3df84fcd6ee823fd91ce317ad | refs/heads/master | 2023-06-16T13:11:25.378555 | 2021-07-08T13:29:00 | 2021-07-08T13:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | '''
Permutations of A in B
You are given two strings A and B of size N and M respectively.
You have to find the count of all permutations of A present in B as a substring. You can assume a string will have only lowercase letters.
Problem Constraints
1 <= N < M <= 105
Example Input
Input 1:
A = "abc"
B = "abcbacabc... | [
"nik.dhoot@gmail.com"
] | nik.dhoot@gmail.com |
c6e60e69fb58f34c5459db46cc74163d54e47571 | 2af4823ae83fbcc780ef538bd02fa5bf3a51208c | /ABC134/C.py | 4b2fa43a79291ed0783a652b320f75a2c2d0e7c0 | [] | no_license | jre233kei/procon-atcoder | 102420cc246a5123ac9774f8b28440f1d8b70b0f | c463c9c92d45f19fba32d0c8a25f97d73db67bc5 | refs/heads/master | 2022-12-04T09:30:39.271433 | 2020-08-14T11:38:46 | 2020-08-14T11:38:46 | 276,779,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | n = int(input())
a = []
maxa = 0
maxa1 = 0
maxcnt = 0
for i in range(n):
ai = int(input())
a.append(ai)
if maxa < ai:
maxa1 = maxa
maxa = ai
maxcnt = 0
elif maxa == ai:
maxcnt += 1
elif maxa1 < ai:
maxa1 = ai
for i in range(n):
if a[i] == maxa:
i... | [
"jre233kei+github@gmail.com"
] | jre233kei+github@gmail.com |
f9e7743751a0b8047b216a8b84778e5fb3854cec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03503/s091731182.py | 541db4752b84f1d8e1675c7c44d0fe983000cf86 | [] | 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 | 512 | py | n=int(input())
f=[]
P=[]
for i in range(n):
a=list(map(int,input().split()))
f.append(a)
for i in range(n):
a=list(map(int, input().split()))
P.append(a)
from itertools import product
ans=-(10**10)
for p in product([0, 1], repeat = 10):
if sum(p)!=0:
ret = 0
for i in range(n):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48a2bf2dd99c7b1445e55e0a5edd5549e1dfd5cd | 5131a1b062c6a3c07479645a1fdfaa429f5375c4 | /gradslam/datasets/icl.py | c23acf09252e20536a3093ef35a3cb9ffd4d0f8f | [
"MIT"
] | permissive | zeta1999/gradslam | e6d72c7dfe177cf7955ba1f496529e8f6514a4f2 | 1804dc9d9b940ffbacbb6717c6e9fe15b1070510 | refs/heads/main | 2023-01-12T09:22:34.603036 | 2020-11-11T03:13:40 | 2020-11-11T03:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,353 | py | import os
import warnings
from typing import Optional, Union
import cv2
import imageio
import numpy as np
import torch
from ..geometry.geometryutils import relative_transformation
from torch.utils import data
from . import datautils
__all__ = ["ICL"]
class ICL(data.Dataset):
r"""A torch Dataset for loading in ... | [
"noreply@github.com"
] | zeta1999.noreply@github.com |
4a8afc496c44532758c44e68adbf5ca79f4fc7d0 | 4e4bc85d0f17b6999db4cd62bb3016f96ed8f0ff | /on_convolution-12.py | 334aceb04aefbfa739d97be7ddb6e98902914f08 | [] | no_license | practical-neuroimaging/practical-neuroimaging.github.com | e6b06b6a83559cdb7527d5e34cc402e36cecd7c0 | 26a5830c7d6668ae3690f45da9792c71c1c7fad3 | refs/heads/master | 2020-04-23T18:55:02.058479 | 2017-02-15T19:07:54 | 2017-02-15T19:07:54 | 8,209,908 | 8 | 3 | null | 2015-02-11T19:53:00 | 2013-02-14T23:29:41 | JavaScript | UTF-8 | Python | false | false | 199 | py | bold_signal = np.convolve(neural_signal, hrf_signal)
plt.plot(times_and_tail, bold_signal)
plt.xlabel('time (seconds)')
plt.ylabel('bold signal')
plt.title('Our algorithm is the same as convolution') | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
41f70e8dae3381876bac0e30a6b465f6b478ab3d | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/aggregates.min.5.test.py | 911033b9032337d0a150eeba603118cbfefa0ac4 | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,523 | py | input = """
%Non-safe rules with the aggregate min.
a(1).
b(1).
c(1,2).
c(1,3).
p(1).
q(1).
%---- non-safe atoms in #min{nonGroundAtoms} op int ----
non_safe01(M, N) :- #min{V:a(M),b(N),c(M,V)} = 2.
non_safe02(M, N) :- #min{V:a(M),b(N),c(M,V)} < 3.
non_safe03(M, N) :- #min{V:a(M),b(N),c(M,... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
e92a0a2bd507628450b55e377eb3da19b6dba4a4 | 66c94b5e427c0b8f8f7101de9c17af1423f00682 | /keras/keras05_train_test2.py | f5c59354a7e50d47f591bc1843fa17a044e404ff | [] | no_license | NamkyuHan/bit_seoul | a34ea3c49666ee2183026e960e45092778643d55 | 3112eb576089cdf906c4f326337b4d2b5e5e4c29 | refs/heads/master | 2023-01-30T19:02:53.323592 | 2020-12-17T01:05:17 | 2020-12-17T01:05:17 | 311,277,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import numpy as np
#1. 데이터
x_train = np.array([1,2,3,4,5,6,7,8,9,10])
y_train = np.array([1,2,3,4,5,6,7,8,9,10])
x_test = np.array([11,12,13,14,15])
y_test = np.array([11,12,13,14,15])
x_pred = np.array([16,17,18])
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
#2. 모델구성
# ... | [
"rksh333@naver.com"
] | rksh333@naver.com |
9dd33882af864b4b5fc7ab3f5089bc4419d2ee5d | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/common/versionupdater.py | c3b4f0e5cda0cb664ce768974e6c7c47946eb77d | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,344 | py | # 2016.05.01 15:26:19 Střední Evropa (letní čas)
# Embedded file name: scripts/common/VersionUpdater.py
import sys
from debug_utils import LOG_DEBUG
class VersionUpdaterBase(object):
"""Base class for different types of version updaters. Suggested descendant implementation:
@singleton
class So... | [
"info@webium.sk"
] | info@webium.sk |
a59d82b82274466e0ec3c3607c765c265f0ffb6d | 77a87e7b15d58b2d23bfdd9ed78b637bebfcc6eb | /.closet/jython.configurator.efr32.multiPhy/5.2.3.201904231805-1264/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg22x000f512im32/revA0/MODEM_register.py | c1a2cdd7b7d675b03aeda347f8e60ffccf5f2486 | [] | no_license | lenloe1/other-stuff | b06331a4f247f06066579472b296f1ae66f6bdaf | 897069e0464b19f81b14488d463710c81bb7fda4 | refs/heads/master | 2021-05-19T13:41:04.509601 | 2020-03-31T20:52:38 | 2020-03-31T20:52:38 | 251,728,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100,408 | py |
# -*- coding: utf-8 -*-
from .static import Base_RM_Register
from .MODEM_field import *
class RM_Register_MODEM_IPVERSION(Base_RM_Register):
def __init__(self, rmio, label):
self.__dict__['zz_frozen'] = False
super(RM_Register_MODEM_IPVERSION, self).__init__(rmio, label,
0xa8014000, ... | [
"31710001+lenloe1@users.noreply.github.com"
] | 31710001+lenloe1@users.noreply.github.com |
1a3f22259ba23bd2b200afd33cef1fe3ec4a8fbe | 45467e07e77131f631d0865046dcc4d18f483601 | /src/Hackerearth/codearena/adam.py | 104e61f60ac19049ac1addef4cd3944a4194b77b | [] | no_license | bvsbrk/Algos | 98374e094bd3811579276d25a82bbf2c0f046d96 | cbb18bce92054d57c0e825069ef7f2120a9cc622 | refs/heads/master | 2021-09-25T10:01:59.323857 | 2018-10-20T16:07:07 | 2018-10-20T16:07:07 | 98,708,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from math import ceil as c
if __name__ == '__main__':
tc = int(input().strip())
for _ in range(tc):
n = int(input().strip())
arr = [int(i) for i in input().strip().split(" ")]
while True:
sm = min(arr)
d = arr.index(sm) + 1
de = []
if sm =... | [
"v.ramakoteswararao2015@vit.ac.in"
] | v.ramakoteswararao2015@vit.ac.in |
0c1e33f9aacaa50af3117320d47326b1f04c0b7f | 6206732b002f820d3664f8e3e689ed48a18ccc44 | /ex16/ex16_2.py | f249735f091e4a7c98328fc83ed1fc4d0ce00bea | [] | no_license | jamtot/LearnPythonTheHardWay | 4c0992f0bf7e6f9d130fe595c32483eec3a6e578 | b08409f4f501af91130a99fae7eacd6847d5691f | refs/heads/master | 2021-01-10T08:53:53.570473 | 2016-03-03T00:11:48 | 2016-03-03T00:11:48 | 51,035,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | #asks user for input as to whether they want to read or write a file
print "Would you like to read or write a file? Insert r or w"
readOrWrite = raw_input(" >")
#if the user types a word beginning with r or R do this
if readOrWrite[0] == 'r' or readOrWrite[0] == 'R':
print "Enter the name of the file you would lik... | [
"jongrammor@gmail.com"
] | jongrammor@gmail.com |
15dd4a1f748631efab3f33142b10c78e6df7b814 | 871f1ef6b9a476051b883ab551b44c7581284cdc | /tests/test_bert.py | 742b13fac25dd5614a2c91cc8207eb09f5fba37c | [
"MIT"
] | permissive | bradfox2/keras-bert | 6979a9fa69cba215930a2172de642bbc72a540e0 | 1ffd3f6beb1ffac08a4ee235b71e3bb2eed36923 | refs/heads/master | 2020-04-14T22:23:28.315133 | 2019-01-18T22:08:00 | 2019-01-18T22:08:00 | 164,160,370 | 0 | 1 | MIT | 2019-01-04T22:20:45 | 2019-01-04T22:20:44 | null | UTF-8 | Python | false | false | 3,975 | py | import unittest
import os
import tempfile
import random
import keras
import numpy as np
from keras_bert import gelu, get_model, get_custom_objects, get_base_dict, gen_batch_inputs
class TestBERT(unittest.TestCase):
def test_sample(self):
model = get_model(
token_num=200,
head_num=... | [
"CyberZHG@gmail.com"
] | CyberZHG@gmail.com |
37ba444385cca6891b01ebd2c1328aac4771e1dd | 7f29e2c30e047ec59fb104d4f0953a8a8bbead51 | /rb/docs_processing/graph.py | 282e1475c3c59251fc6f3eceab9d19526601ed12 | [
"Apache-2.0"
] | permissive | rwth-acis/readerbenchpy | 69597dc1f2d500aea2be49981799aa20a0e6ea68 | 1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3 | refs/heads/main | 2023-07-17T11:57:25.507494 | 2021-09-03T12:49:10 | 2021-09-03T12:49:10 | 348,343,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,991 | py | from typing import Dict, List
from munkres import Munkres, DISALLOWED
from rb.docs_processing.author import Author
from rb.docs_processing.article import Article
from rb.similarity.vector_model import VectorModel
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
class Graph:
EDGE_THRESHOLD... | [
"karlydiamond214@gmail.com"
] | karlydiamond214@gmail.com |
2065478dacf11a2c9e50fda8a21efd7a7b02a512 | 0abbb442df5cab82aa02e91839f090e325626818 | /ppy_terminal/imports/setup_logging.py | 014843f03653447465ce647d7f1d0a603ec2cef5 | [
"MIT"
] | permissive | jimmyauyeung/generative_art | 6f5571d8f60e2aeb1ab64237d9a82d3e6c3baf6a | eb1730d90e438327edaa53375765a9690b968d2b | refs/heads/master | 2023-08-04T14:02:36.050556 | 2021-09-21T02:36:58 | 2021-09-21T02:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import sys
import logging
logging.basicConfig(level=logging.INFO,
stream=sys.stdout,
format='%(asctime)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
log = logging.getLogger(__name__)
| [
"aaronpenne@users.noreply.github.com"
] | aaronpenne@users.noreply.github.com |
33910603346c2b37ce56acec1522d2892040487f | 900c59d777ee74f52a34927b8e581a40dd50394b | /tests/test_20_rp_handler_oidc.py | b74b588b34adc94927ae70f61748fdfa3f38bb6c | [
"Apache-2.0"
] | permissive | AntonLazovsky/JWTConnect-Python-OidcRP | cb243147147ab2b5993e360aceed98b24d7cb408 | ad6eb836796595b628cd2416f022a35258aebab6 | refs/heads/master | 2023-05-15T00:11:30.965303 | 2021-06-09T22:11:13 | 2021-06-09T22:11:13 | 375,501,128 | 0 | 0 | Apache-2.0 | 2021-06-09T22:08:34 | 2021-06-09T22:08:34 | null | UTF-8 | Python | false | false | 36,206 | py | import json
import os
from urllib.parse import parse_qs
from urllib.parse import urlparse
from urllib.parse import urlsplit
from cryptojwt.key_jar import KeyJar
from cryptojwt.key_jar import init_key_jar
from oidcmsg.oidc import AccessTokenResponse
from oidcmsg.oidc import AuthorizationResponse
from oidcmsg.oidc impor... | [
"roland@catalogix.se"
] | roland@catalogix.se |
5bddc4a24c9f1f81abfd9f8431cff8753669e5fb | 1779f1d096d4af6d3112e39ad36c63ff4b04ae00 | /vision/detection/det_fluorescence/nuclei_pred_to_dic_masks.py | 5d1bec9fc10469122dc3c10eb77553ac31fa8ba2 | [] | no_license | 10erick-cpu/RL_Mixing_Colours | eb753f7b6b309cf54fe41f74f993dfada83d7867 | a11756d6988422929a452dc1e19ccf6b051f0832 | refs/heads/master | 2023-07-27T22:38:34.299006 | 2021-09-09T16:16:33 | 2021-09-09T16:16:33 | 398,141,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,165 | py | from collections import deque
import matplotlib.pyplot as plt
import torch
from torch import no_grad
import numpy as np
from utils.file_management.naming_strategies import MetadataParser, CsvNamingStrategy
from utils.helper_functions.img_utils import rgb2gray, gray2rgb
from utils.helper_functions.torch_utils import ... | [
"leonelerick59@gmail.com"
] | leonelerick59@gmail.com |
38c044bb60b460c78920194f21612c7d6e3a6ecd | 5054c805be8bf94d660b806dc7ee5a9f426d49bc | /posthog/api/test/test_organization_invites.py | 84c62acdade45cf112112b9e93f3c0f014a056bf | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BElluu/posthog | 31a121ee1e690ee5d88cb268a3cd922031dcbee4 | 1e207230ba285c64ea8e7f58fd1f78ef7d7c160a | refs/heads/master | 2022-11-29T09:37:13.072632 | 2022-07-06T16:38:37 | 2022-07-06T16:38:37 | 254,587,554 | 0 | 0 | null | 2020-04-10T08:48:41 | 2020-04-10T08:48:41 | null | UTF-8 | Python | false | false | 11,182 | py | import random
from unittest.mock import ANY, patch
from django.core import mail
from rest_framework import status
from posthog.models.instance_setting import set_instance_setting
from posthog.models.organization import Organization, OrganizationInvite, OrganizationMembership
from posthog.test.base import APIBaseTest
... | [
"noreply@github.com"
] | BElluu.noreply@github.com |
bf007bb81f11cfe79bb76beb682830892485ab52 | 59381d3e69e4a288cdeb4aeecc2e9c84a28759b2 | /selvbetjening/core/events/options/dynamic_selections.py | e66fa08346ab04030a31a9418ef20403633524f7 | [
"MIT"
] | permissive | animekita/selvbetjening | 88cb75164f8ab0b3341a6ba4dd85d425c601ee4d | fee63d178fbd5ce2976c04d3a4b2dde6d8691892 | refs/heads/master | 2021-07-05T01:10:59.900369 | 2015-09-17T15:15:29 | 2015-09-17T15:15:29 | 4,826,342 | 0 | 1 | MIT | 2021-06-10T17:35:22 | 2012-06-28T22:17:15 | Python | UTF-8 | Python | false | false | 11,619 | py |
from collections import OrderedDict
from django import forms
from django.db.models import Count, Q
import operator
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from selvbetjening.core.events.options.scope import SCOPE
from selvbetjening.core.events.optio... | [
"casper@svenningjensen.dk"
] | casper@svenningjensen.dk |
fc83d9a049d663d70a7fd53e2c1f4a20d99684a5 | b42850bc3e36bbd1683070393582617f2b3cd8e6 | /Retake_22_08_2020/project/everland.py | 1356a49f74400af83924dd1bd987fe8f49f82ac0 | [] | no_license | marianidchenko/Python_OOP | aecca18be6df3850c0efbf2fa6d25bf3ff53ae96 | 547c12cbdad5b8c16fa55bba6c03b71db181ad2b | refs/heads/main | 2023-07-09T05:42:43.863681 | 2021-08-14T14:55:51 | 2021-08-14T14:55:51 | 381,572,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | from project.rooms.room import Room
class Everland:
def __init__(self):
self.rooms = []
def add_room(self, room: Room):
self.rooms.append(room)
def get_monthly_consumptions(self):
monthly_consumptions = 0
for room in self.rooms:
monthly_consumptions += room.ex... | [
"marianidchenko@gmail.com"
] | marianidchenko@gmail.com |
1ad00a97483019c6d76ac8f0be7b02e12ffb761f | 451ca000022a55a7e0c2f296216973c6bb712b53 | /tests/test_dataset.py | a59b8b10ba6f196213b99fd6d0a2a53ebb6e7d07 | [
"MIT"
] | permissive | StaminaTang/d3rlpy | 305482dfa12daaa6304be9dbe3c8b35073c71232 | dea36543a652e6eb088d27bd00e1ad5bced087fa | refs/heads/master | 2023-02-25T07:11:09.754278 | 2021-02-01T14:09:23 | 2021-02-01T14:09:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,551 | py | import numpy as np
import pytest
import os
from collections import deque
from sklearn.model_selection import train_test_split
from d3rlpy.dataset import MDPDataset, Episode, Transition, TransitionMiniBatch
from d3rlpy.dataset import compute_lambda_return, _check_discrete_action
@pytest.mark.parametrize("data_size", ... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
72ad5a472eabffc145e2b07652c5f9b17d06717d | 1508b3e3f56e750e38db4334343beedcbb2f9c95 | /318/kel.py | 708fb80bd9f9411fded135560d22aed7500f9137 | [] | no_license | kellyseeme/pythonexample | 3bb325e31c677160c1abd6c3f314f7ef3af55daa | 3eab43cdfa5c59a0f4553de84c9de21e5ded44bb | refs/heads/master | 2021-01-21T13:52:43.076697 | 2016-05-30T06:32:37 | 2016-05-30T06:32:37 | 51,348,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/env python
from multiprocessing import Pool
class calculate(object):
def run(self):
def f(x):
return x*x
p = Pool()
return p.map(f,[1,2,3])
c1 = calculate()
print c1.run()
| [
"root@python.(none)"
] | root@python.(none) |
5b05bd4fc2a322b216ae791dd0c8a890a6ad8f42 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pareto2/arch5_pod100_old2/pareto3_0.py | f485b95797c5da4248e1e6822e5815b276913e33 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch5_decomposition_new import Arch5_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
0716345cc1f94f9b90b84d98fe7119f124f585ca | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs28/manage.py | 6958a0c33875a18d13b1a5e12ec180f46bd0220e | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gs28.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
240e2ace0249c7ce9fc65739b1d3a3f3488491cd | a94757526253f3a3ae4b65b662316e3b03b271e9 | /week10/Similar_String_Groups.py | fa1c9ac411bb77fca9663c66e116dfcec5876acd | [] | no_license | RRoundTable/CPPS | 3e30f4d9c48aa9c85d74db6696c6d458fa38523a | fb679053ee89c15e2844fda1d705d46778ea1c0d | refs/heads/master | 2021-07-06T07:19:43.806752 | 2020-12-15T10:59:08 | 2020-12-15T10:59:08 | 214,435,381 | 1 | 2 | null | 2020-02-06T14:53:13 | 2019-10-11T12:50:22 | Python | UTF-8 | Python | false | false | 2,608 | py | '''
link: https://leetcode.com/problems/similar-string-groups/
Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y.
For example, "tars" and "rats" are similar (swapping at positions 0 and 2), and "rats" and "arts" are similar, but "star" is not similar to "tars... | [
"ryu071511@gmail.com"
] | ryu071511@gmail.com |
cab4f24e669a87cef9633c9f0867231e26c396d9 | 8051c8863119bc2b5e5b3107ce9c47ab12616e63 | /Python/Programmers/Level_2_더_맵게.py | bb3a43d9979c2aa6cdba8c853e1a403e60ff9b7a | [] | no_license | Sunghwan-DS/TIL | c01f6f4c84f3e2d85e16893bbe95c7f1b6270c77 | 6d29f6451f9b17bc0acc67de0e520f912dd0fa74 | refs/heads/master | 2021-07-11T16:23:58.077011 | 2021-03-12T02:28:26 | 2021-03-12T02:28:26 | 234,990,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | # def solution(scoville, K):
# if sum(scoville) < K:
# return -1
#
# scoville.sort()
# scoville.insert(0, 0)
# answer = 0
# print("초기조건:", scoville)
#
# while scoville[1] < K:
# scoville[1], scoville[-1] = scoville[-1], scoville[1]
# min_s = scoville.pop(-1)
# tar... | [
"jeonsung02@gmail.com"
] | jeonsung02@gmail.com |
647da38fb44d8093a50e7d9b5329705dcb442bf3 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/googlecloudsdk/third_party/apis/compute/beta/compute_beta_client.py | d741004a7a50adf19f44d18a1aedd76cf241d74c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 455,574 | py | """Generated client library for compute version beta."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.compute.beta import compute_beta_messages as messages
class ComputeBeta(base_api.BaseApiClient):
"""Generated clien... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
385d36b5fee83969ac145aefc9965f04e2273e19 | d348cc04a8e4bd8b16e6663b19b1545da4ac6f05 | /average_link.py | ec4984257cd5a9ecee0157cef44578166f082b15 | [] | no_license | vam-sin/Agglomerative-Clustering | 1225254aeca1aae9812ad8e4286895c186349e45 | 1ccb58af7b4f729f08338faae0ca571c64d53d67 | refs/heads/master | 2020-05-04T11:08:24.565854 | 2019-04-02T15:09:38 | 2019-04-02T15:09:38 | 179,101,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,066 | py | import numpy as np
from Bio import SeqIO
import random
from collections import defaultdict
from Levenshtein import distance
import plotly.plotly as py
import plotly.figure_factory as ff
import matplotlib.pyplot as plt
import scipy.cluster.hierarchy as sch
import scipy.spatial as scs
import math
# Making the dataset
li... | [
"vamsinallapareddy@gmail.com"
] | vamsinallapareddy@gmail.com |
174e9986a5f9a4ed60b9f16b51c97810e0abb5f5 | 4dda92393e178a45b4be36b4e322ac8d99ad19b4 | /src/generative_playground/utils/respawner.py | 6ecccaa5a6d1134d8c696e678d8304776a23ae18 | [
"MIT"
] | permissive | JGU-dev/generative_playground | 6567c7eaea4a09c95902c9a8dbc0af479294c8aa | 5c336dfbd14235e4fd97b21778842a650e733275 | refs/heads/master | 2022-03-25T06:11:37.121235 | 2019-12-29T16:00:21 | 2019-12-29T16:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import sys, subprocess
print("respawner starting with ", sys.argv[1:])
counter = 0
while True:
print('spawning, iteration', counter)
retval = subprocess.run(sys.argv[1:])
if retval.returncode <0:
break
counter += 1 | [
"egor.kraev@gmail.com"
] | egor.kraev@gmail.com |
19f4123007138dc7bd44b039e59e487ecc1d1cc4 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/prb_control/events_dispatcher.py | d37acaded62ca0d80f4308c70ca839626e39f0ab | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 20,705 | py | # 2015.11.18 11:52:35 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/prb_control/events_dispatcher.py
from collections import namedtuple
import weakref
from constants import PREBATTLE_TYPE, QUEUE_TYPE
from debug_utils import LOG_ERROR, LOG_DEBUG
from gui.Scaleform.daapi.settings.views import VIEW_A... | [
"info@webium.sk"
] | info@webium.sk |
709e7d7e6a11dab702e42a85f82a7a56192f8430 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp98_5500.py | ba1119e82689dc9b4a1fe068f5e423d1a0bd5312 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,804 | py | ITEM: TIMESTEP
5500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
2.0544667101332337e-01 4.6994553328978242e+01
2.0544667101332337e-01 4.6994553328978242e+01
2.0544667101332337e-01 4.6994553328978242e+01
ITEM: ATOMS id type xs ys zs
8 1 0.127544 0.0698994 0.0579198
35 1 0.0630352 0.131209 0.0707746
130 1 0.06621... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
665a85b8cfcc9e0244dfb2ef9b10d85932d06f4b | d1236e327bc750a845b46edd78e6dae63c157b86 | /facade_pattern/screen.py | 1cbc5a4ed7a6ac4f1658fdcfd78d14b7741916fd | [] | no_license | EricMontague/Head-First-Design-Patterns-In-Python | 12cc14c592d8728c6fc5677d4d6e641a94df4e3f | 296edada143336f88e8b2d066f5fc99c95ecfcc7 | refs/heads/master | 2022-12-31T05:12:24.719241 | 2020-10-07T21:51:20 | 2020-10-07T21:51:20 | 298,710,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | class Screen:
def __init__(self, description):
self._description = description
def up(self):
print(f"{self._description} going up")
def down(self):
print(f"{self._description} going down")
def __str__(self):
return self._description
| [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
b45528580f4af8d8d3c16993d6064bf18a6718cc | e56214188faae8ebfb36a463e34fc8324935b3c2 | /intersight/models/top_system_all_of.py | ec02983ac7c44e1bf5c268b50e6c0879f1294d33 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 13,069 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
a6f52906d319e6ac298f0c74898e58f12778ca34 | 4d892dc51e2dda0fcce246ac608fc4e0ce98c52b | /FirstStepsInPython/Basics/Lab6 Nested Loops/03. Combinations.py | decabc50ed97c774f38521b558b51d2bf60acf67 | [
"MIT"
] | permissive | inovei6un/SoftUni-Studies-1 | 510088ce65e2907c2755a15e427fd156909157f0 | 3837c2ea0cd782d3f79353e61945c08a53cd4a95 | refs/heads/main | 2023-08-14T16:44:15.823962 | 2021-10-03T17:30:48 | 2021-10-03T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | num = int(input())
counter = 0
for x1 in range(0, num + 1):
for x2 in range(0, num + 1):
for x3 in range(0, num + 1):
if (x1 + x2 + x3) == num:
counter += 1
print(counter)
| [
"lazar_off@yahoo.com"
] | lazar_off@yahoo.com |
8e6dfd9314f2e7e039efeb9bd4b6210d0c8c14e0 | ae65873c3584cef7139066b224daad04410af6d2 | /NestedList.py | c2c204a177c6612160c5c7fd71373586bc565716 | [] | no_license | rajatkashyap/Python | 2240c7472d07803c460c7a55d570e20694b694f9 | f74c85c65b0e209a5f7ab25b653d42835222faaf | refs/heads/master | 2022-06-25T19:20:52.847498 | 2022-06-08T14:40:45 | 2022-06-08T14:40:45 | 145,714,257 | 0 | 0 | null | 2022-04-25T00:18:37 | 2018-08-22T13:39:14 | Python | UTF-8 | Python | false | false | 308 | py | i=int(raw_input())
l=[]
for x in range(i):
a=raw_input()
b=float(raw_input())
l.append([a,b])
#l1=[[input(),float(input())] for x in range(i)]
#print l1
scores = sorted({s[1] for s in l})
result = sorted(s[0] for s in l if s[1] == scores[1])
print '\n'.join(result)
#print result | [
"rajatkashyap@Rajats-MBP.T-mobile.com"
] | rajatkashyap@Rajats-MBP.T-mobile.com |
f752427116cf14f7650884c3dbad47ed6984b31c | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /tools/perf/page_sets/tough_texture_upload_cases.py | 033db97946706c90be33819ef2fa3d6d8b28aa75 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-only",
"MIT",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 1,424 | py | # Copyright 2014 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.
from telemetry.page import page as page_module
from telemetry import story
class ToughTextureUploadCasesPage(page_module.Page):
def __init__(self, url, p... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
87350879e430763b0a21b7d99fa26c027d3973d5 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL16APV_mMed-2500_mDark-6_kappa-1p32_aligned-down_cff.py | c09c3e7926a2a683f6eaecb2c41c5bacc0183d0b | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,991 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
662bcebd1c7043cefd580e5dda9e0b107b76de69 | 33f8e35b33d4f64d737b9b4239204d2c7d669f7e | /leapp/views/subcription.py | e1710c8afdf48fa2748a089da5cd8f146323080d | [] | no_license | Emad-ahmed/EmailSenderWebsite | 872fd6b8ed0766d9a5bfe2cc1afff2bfdbc071c7 | e6acc443211acdc53869510661b6178f63f2ad73 | refs/heads/main | 2023-06-25T17:48:35.765922 | 2021-07-08T06:31:59 | 2021-07-08T06:31:59 | 384,022,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from django.shortcuts import render
from django.views import View
# Create your views here.
class SubcriptionView(View):
def get(self, request):
mydata = {
'subscription': 'active'
}
return render(request, 'subscription.html', mydata)
| [
"amadahmed1234678@gmail.com"
] | amadahmed1234678@gmail.com |
ad99f3146a98393b269f70c8806e9022691ec639 | c57376701537dc6969939c3afb51d542d670db61 | /Numpy/10_Xu-li-data-su-dung-Numpy/9_Tuong-quan-Sepallength-Petallength.py | fa216982379d73b542d85191febe912c74f5e532 | [] | no_license | dangnam739/Learn_Python_Begin | d3f5f24504b3c703de4e981abb432f3734558e5d | 81764172475f26374a3e21d150395a99e8a183e6 | refs/heads/master | 2021-07-15T19:13:58.156215 | 2020-08-21T06:38:04 | 2020-08-21T06:38:04 | 200,081,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #Cau 9: tim moi tuong quan giuwa sepallength(cot 1) va petallength(cot 3)
import numpy as np
iris_2d = np.genfromtxt('iris.csv', delimiter=',', dtype=float, usecols=[0, 1, 2, 3])
#Cach 1: dung ham corrcoef tu numpy
out = np.corrcoef(iris_2d[:, 0], iris_2d[:, 2])[0,1]
print(out)
#Cach 2: dung ham pearsonr tu scipy
f... | [
"47108512+ChrisZangNam@users.noreply.github.com"
] | 47108512+ChrisZangNam@users.noreply.github.com |
98bbad055766dde226dadd52b65c212f7cd94bc9 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_adobe_cq_social_calendar_servlets_time_zone_servlet_info.py | 4705252b57fa0690f21c882f27a71d10c9493c11 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,145 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.com_adobe_cq_social_calendar_servlets_time_zone_servlet_properties import ComAdobeCqSocia... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
471c7653b0647a0c5a036552877062a532af9262 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/shared/gui_items/dossier/achievements/handofdeathachievement.py | b4dde0ec5ab4cca88dd1f0162a9554600461124e | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 832 | py | # 2016.02.14 12:41:38 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/gui_items/dossier/achievements/HandOfDeathAchievement.py
from dossiers2.ui.achievements import ACHIEVEMENT_BLOCK as _AB
from abstract import SeriesAchievement
class HandOfDeathAchievement(SeriesAchievement):
def __ini... | [
"info@webium.sk"
] | info@webium.sk |
94ebcfc404c31b585404c1fe589095b751eceede | 2eb3487fc70b806674cc0b92e7113f63c54ade08 | /testing.py | 55681a7bb373c8d669592acc3b7d274282828b2b | [] | no_license | foryourselfand/informatics_lab4 | 34d4dfdb996c37cf20da3a5176e37077c2d15249 | 0adb16985c19795b7bbf2bdb6b265ebe716af80a | refs/heads/master | 2020-09-01T01:03:28.659326 | 2019-11-18T17:58:18 | 2019-11-18T17:58:18 | 218,835,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from inout import IO
from converter import FromJsonToProtoConverter
def main():
io = IO()
converter = FromJsonToProtoConverter()
timetable_input = io.get_input_timetable()
timetable_output = converter.convert(timetable_input)
# print(timetable_output)
io.write_output_timetable(timetable_outp... | [
"foryourselfand@gmail.com"
] | foryourselfand@gmail.com |
5a7c2839089386462220c4728d49c8cc96fd0ffd | acac4b642cdaae8fa85cafbaf856212f9984bdf9 | /python_object_extractor/substitutions.py | a706af8f8b5c3f84314efca26a34d3b3d9000f17 | [
"MIT"
] | permissive | ali1rathore/python-object-extractor | bfa0f7cf3b3d1d5d7b81c7c54c2962d83657e517 | e66c47c840c8c99d9706e299ecf499df361926c2 | refs/heads/master | 2020-08-04T04:16:20.489242 | 2019-02-24T22:08:41 | 2019-02-24T22:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,753 | py | import inspect
from typing import Dict, List, Set, Optional, Iterable
from python_object_extractor.attributes import AttributesAccessChain
from python_object_extractor.attributes import extract_attributes_access_chains
from python_object_extractor.exceptions import PythonObjectExtractorException
from python_object_ex... | [
"oblovatniy@gmail.com"
] | oblovatniy@gmail.com |
20e19af0cb679491df4f0179aacc547a6adb16b2 | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /HIRun2018PbPb/L1T/L1Ntuple_Pythia8_AllQCDPhoton15_Hydjet_Quenched_Cymbal5Ev8_SK1212/crabConfig.py | b64926fe63684d20622521fc7fa158ffd7313f4f | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = "L1Ntuple_Pythia8_AllQCDPhoton15_Hydjet_Quenched_Cymbal5Ev8_SK1212"
config.General.transferLogs = False
config.section_("JobType")
config.JobType.pluginName = "Analysis"
config.JobType.pset... | [
"tatark@mit.edu"
] | tatark@mit.edu |
6cfb11fd5ed1ef1359d61db18fbbb8fce9c6937c | ee974d693ca4c4156121f8cb385328b52eaac07c | /insightface/src/align/align_megaface.py | 3c72359a2891be91019ca6823668870e9bf13c69 | [
"MIT"
] | permissive | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2bb6d2c41848e33065bda3ace8e5bb9cde68ae11c4953056ed6f06f786f35245
size 10062
| [
"Nqk180998!"
] | Nqk180998! |
cab0faaf8cbfa90afa125c95d28f00e49cda4abc | 64cdb9e8fdcde8a71a16ce17cd822441d9533936 | /_swea/d4/1865_동철이의일분배.py | 8d88a9dbf686174790d59eec94820c2da8ca8d8c | [] | no_license | heecheol1508/algorithm-problem | fa42769f0f2f2300e4e463c5731e0246d7b7643c | 6849b355e15f8a538c9a071b0783d1789316d29d | refs/heads/main | 2023-07-20T23:46:07.037975 | 2021-08-31T12:47:33 | 2021-08-31T12:47:33 | 302,830,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | #
# ################################ ver.1
# # import sys
# # sys.stdin = open("input.txt", "r")
#
#
# def solve(k):
# global ans
# if k == N :
# val = 1
# for i in range(N):
# val *= mat[i][perm[i]]
# if val > ans:
# ans = val
# else:
# for i in range... | [
"heecheol1508@gmail.com"
] | heecheol1508@gmail.com |
7990115461cd14cba0e698790d6ce6b1d3ff43c5 | 8968a2696cea58d7b04cb59c2525e89cf6f88a0a | /train_mlbert_en_plus_sv.py | 170193242a33f4be050b6475c701fedfbd89f373 | [] | no_license | Vottivott/swedsquad | a739c7aa938a5db381e2bda9e047c8db93390a90 | 5ed279f166d26b45228501012fbb8817d1c5ae11 | refs/heads/master | 2020-09-26T21:02:36.342548 | 2020-02-09T01:39:38 | 2020-02-09T01:39:38 | 226,342,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import run_squad
args = """--model_type bert
--model_name_or_path bert-base-multilingual-cased
--do_train
--train_file original_plus_confident_translated_train_no_impossible.json
--predict_file confident_translated_dev_no_impossible.json
--learning_rate 3e-5
--num_train_epochs 2
--max_s... | [
"hannes.von.essen@gmail.com"
] | hannes.von.essen@gmail.com |
089414c504cc26930fa000d737ddcd9717f10394 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_service_provider_py3.py | 0741f9964bc0eeb80c778d26a8aa0b432f94461d | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,490 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
d19c95cc3477fbfb2cc7512698ec60452a67a34a | abc4a73e5f93ebf90be946b95ef215e32c823353 | /colour/models/rgb/ycocg.py | 47ab9224b921f2a4ab1488ab30e8875b5d8d1d84 | [
"BSD-3-Clause"
] | permissive | OmarWagih1/colour | 69f5108e83ec443551c5593c066bcd4e3596060f | bdc880a2783ff523dafb19f1233212dd03a639bd | refs/heads/develop | 2021-04-14T20:30:29.635916 | 2020-07-26T05:46:00 | 2020-07-26T05:46:00 | 249,263,927 | 0 | 0 | BSD-3-Clause | 2020-03-22T20:11:06 | 2020-03-22T20:11:06 | null | UTF-8 | Python | false | false | 2,601 | py | # -*- coding: utf-8 -*-
"""
YCoCg Colour Encoding
======================
Defines the *YCoCg* colour encoding related transformations:
- :func:`colour.RGB_to_YCoCg`
- :func:`colour.YCoCg_to_RGB`
References
----------
- :cite:`Malvar2003` : Malvar, H., & Sullivan, G. (2003). YCoCg-R: A Color
Space with RGB R... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
4c54d59e42900cfb57b6bc8ccdda606828c9490e | 177cf1fb99de1a09ac92507f336c49dbb4dd05ae | /scrape/spatula/pages.py | da2191049105f8c599a51f046e5f85ca8fdf23bc | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | brianhlin/people | 9574746c37d850ac3aa6b629be598293497cd67b | 1e62124c24feafe26437c344aa5a5bb1de00c740 | refs/heads/main | 2023-02-19T05:17:18.351344 | 2021-01-08T20:38:22 | 2021-01-08T20:38:22 | 328,417,651 | 0 | 0 | null | 2021-01-10T15:41:06 | 2021-01-10T15:41:05 | null | UTF-8 | Python | false | false | 3,186 | py | import lxml.html
from .sources import URL
class Page:
source = None
dependencies = {}
def _fetch_data(self, scraper):
# process dependencies first
for val, dep in self.dependencies.items():
dep._fetch_data(scraper)
setattr(self, val, dep.get_data())
if not... | [
"dev@jamesturk.net"
] | dev@jamesturk.net |
a75b54c62dc1b03dc4355d30db6af0896bd501f9 | 6de1fdf1de71e82e0a1af2ac4f6647444c986641 | /django/phishmon/phishmon/views.py | ef3a471dd64f50c3a34fc42f281f4edebf468be1 | [] | no_license | Epul-94/proyecto | 43fc3597800c0058176232487eace4830768b602 | 8955f3c2c477734568e399db2a37f66e177baa6c | refs/heads/master | 2020-03-19T05:25:01.837551 | 2018-06-03T18:15:22 | 2018-06-03T18:15:22 | 135,928,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from django.http import HttpResponse
from django.shortcuts import render
from .models import Codigoestadohistorico, SitiosPhishing, Ipwhois, Email
def home(request):
return render(request,"index.html")
def monito(request):
sph = SitiosPhishing.objects.all.filter(estatus='no reportado').order_by('id_sitio').first()
... | [
"root@debian"
] | root@debian |
0cccbf0a4dcf64cd3c945f7cc81b9807fb27b8cb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03700/s833680310.py | fa2a25e2949cdb3ab5391ac4d929463210e52564 | [] | 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 | 339 | py | n, a, b = map(int, input().split())
h = [int(input()) for _ in range(n)]
l = 0
r = 10 ** 10
c = a - b
while l + 1 != r:
m = (l + r) // 2
tmp = 0
for i in range(n):
if h[i] > b * m:
tmp += ((h[i] - b * m) // c + (1 if (h[i] - b * m) % c else 0))
if tmp > m:
l = m
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
443c0cd2ecc6702824402355487e2b3df269ce6a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/lycurgu.py | fdc054334b5dadbd551701ab864def514d4d888a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 279 | py | ii = [('SadlMLP.py', 8), ('WilkJMC3.py', 3), ('WilkJMC2.py', 1), ('CookGHP2.py', 1), ('MarrFDI2.py', 5), ('LandWPA.py', 2), ('WestJIT2.py', 3), ('FerrSDO2.py', 1), ('GodwWLN.py', 2), ('BentJRP.py', 1), ('WilbRLW3.py', 1), ('JacoWHI.py', 1), ('SadlMLP2.py', 2), ('WaylFEP.py', 2)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
64daf39edee03462cd72b0132960043675cf120d | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /prset2-2.py | b59271f810016dca44f4f63a3ee620b00d033379 | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n,q=map(int,input().split())
l=[int(x) for x in input().split()]
l1=[]
for i in range(0,q):
l2=[int(x) for x in input().split()]
l1.append(l2)
for i in range(0,q):
m=l1[i][0]
n=l1[i][1]
l3=l[m-1:n]
print(sum(l3))
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
1cf0614c2d36b96c0fe09b5e2261b03e65a76372 | d037002f9d2b383ef84686bbb9843dac8ee4bed7 | /tutorials/DuelingDQN/arguments.py | 6adb435909f0337931676055ae5982b241dd9146 | [
"MIT"
] | permissive | ICSL-hanyang/Code_With_RL | 4edb23ca24c246bb8ec75fcf445d3c68d6c40b6d | 1378996e6bf6da0a96e9c59f1163a635c20b3c06 | refs/heads/main | 2023-08-15T18:37:57.689950 | 2021-10-18T07:31:59 | 2021-10-18T07:31:59 | 392,944,467 | 0 | 0 | null | 2021-08-05T07:20:57 | 2021-08-05T07:20:56 | null | UTF-8 | Python | false | false | 2,577 | py | # Copyright (c) 2021: Zhiyuan Nan (namjw@hanyang.ac.kr).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
import argparse
import torch as T
device = T.device('cuda:0' if T.cuda.is_available() else 'cpu')
def get_args():
parser = argparse.Argum... | [
"nzy1414117007@gmail.com"
] | nzy1414117007@gmail.com |
86754c7633d599806713c66152b4c042dba9c6b3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/454dbbb27b55d17c57de7b4ba986b1162a9bf813-<test_symlog>-bug.py | 4b4a1cace6659e962a753cb7c52ea165e8431b91 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | @image_comparison(baseline_images=['symlog'])
def test_symlog():
x = np.array([0, 1, 2, 4, 6, 9, 12, 24])
y = np.array([1000000, 500000, 100000, 100, 5, 0, 0, 0])
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y)
ax.set_yscale('symlog')
ax.set_xscale = 'linear'
ax.set_ylim((- 1)... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
da1cf67d7273f6617e8896ca137a04c77be4e01a | 9ed964c0fb14494e9685f13570d42aa7aebefa6f | /selfdrive/controls/lib/lateral_mpc/libmpc_py.py | 3f92090935c4d1e26f9b2090e4c90b4eeb68c404 | [
"MIT"
] | permissive | pjlao307/chffrplus | 144d5e8da242d04692b9d949b8774ed809f568a9 | dae0dd09d88a87db81ce2fd48f52580eb7b73cc3 | refs/heads/release | 2021-07-15T06:16:33.734692 | 2017-10-19T03:35:26 | 2017-10-19T03:35:26 | 107,692,678 | 0 | 0 | null | 2017-10-20T15:09:08 | 2017-10-20T15:09:07 | null | UTF-8 | Python | false | false | 681 | py | import os
import subprocess
from cffi import FFI
mpc_dir = os.path.dirname(os.path.abspath(__file__))
libmpc_fn = os.path.join(mpc_dir, "libcommampc.so")
subprocess.check_output(["make", "-j4"], cwd=mpc_dir)
ffi = FFI()
ffi.cdef("""
typedef struct {
double x, y, psi, delta, t;
} state_t;
typedef struct {
do... | [
"user@comma.ai"
] | user@comma.ai |
7f666ea7c97ea37ab15a3f83444aeac9d6483d87 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/88c5c8b3ed1440435a8aeac8186d7ecfc83b97ab-<resize_image_with_pad>-bug.py | 60f58affe758c27a4a06caf6b205f7d10b4abe93 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py |
@tf_export('image.resize_image_with_pad')
def resize_image_with_pad(image, target_height, target_width, method=ResizeMethod.BILINEAR):
"Resizes and pads an image to a target width and height.\n\n Resizes an image to a target width and height by keeping\n the aspect ratio the same without distortion. If the targ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
bc981ca8ee42a2e8cd3057d7c0311152534a8dc6 | eb2df6020f5759feee3d6d78c5f8c78999454a09 | /scheduled_jobs/niagara4/run_read_meter_points.py | 2030f6978f6ebbf395d95c11893cb82798b3433b | [] | no_license | mywork-dragon/dave-energy | 7a08f855d245c2d90a9c13aa85fc3b9f28ae9294 | 4b3430be6ef6957389ab05be3a17a0245f5d6662 | refs/heads/master | 2023-07-28T02:55:26.791724 | 2021-09-06T11:44:30 | 2021-09-06T11:44:30 | 365,872,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py |
import traceback
from config import logger
from scheduled_jobs.niagara4.run import Run
from scheduled_jobs.niagara4.n4_events_handler import N4EventHandler
from common import slack
class RunReadMeterPoints(Run):
def get_n4_points_sql(self):
return '''select pt.id as point_id, pt.path as point_path, pt.n... | [
"dragonblueyounger@gmail.com"
] | dragonblueyounger@gmail.com |
4a8bb0e72be3d9bd3f3ae6317741f6c2b5cce534 | 971c5ae1d87cdfbb97723485c3d76c17395b82b0 | /x86-semantics/semantics_using_uifs/z3EquivFormulas/x86-movlhps_xmm_xmm.py | 86a53322a07dadd89753423c03078be47b7b8212 | [
"NCSA"
] | permissive | mewbak/binary-decompilation | 7d0bf64d6cd01bfa5f5fc912d74a85ce81124959 | f58da4c53cd823edc4bbbad6b647dbcefd7e64f8 | refs/heads/master | 2020-04-16T06:08:14.983946 | 2019-01-06T17:21:50 | 2019-01-06T17:21:50 | 165,334,058 | 1 | 0 | NOASSERTION | 2019-01-12T01:42:16 | 2019-01-12T01:42:16 | null | UTF-8 | Python | false | false | 4,029 | py | from z3 import *
import proverUtils
# Declarations
CF = BitVec('CF', 1)
PF = BitVec('PF', 1)
AF = BitVec('AF', 1)
ZF = BitVec('ZF', 1)
SF = BitVec('SF', 1)
OF = BitVec('OF', 1)
RAX = BitVec('RAX', 64)
RCX = BitVec('RCX', 64)
RDX = BitVec('RDX', 64)
ZERO1 = BitVecVal(0, 1)
ONE1 = BitVecVal(1, 1)
cf = (CF == ONE1)
pf =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
a3dd7063c42f87059ff0734aa6184d0fe693d10a | c02369e1ebeb99f1d59b767fe180a383759ce38e | /object_conversions/python/conversion_to_histo.py | d79173836980faf7c6c14a48a54432aeb4f41b8b | [] | no_license | jbsauvan/L1T-Utilities | 0ed51b88ab31963463277eae85c8b7fccc595f17 | 4600200f990f63e9d5f5b401b282d7adb37b2f4d | refs/heads/master | 2021-01-16T20:50:38.979533 | 2016-07-13T13:51:32 | 2016-07-13T13:51:32 | 62,325,564 | 0 | 0 | null | 2016-06-30T16:17:27 | 2016-06-30T16:17:27 | null | UTF-8 | Python | false | false | 792 | py | from rootpy.plotting import Hist2D
# 'function' must be able to take an array of (2D) array as input
def function2th2(function, binsx, binsy, titlex='', titley=''):
histo = Hist2D(*(binsx+binsy))
histo.SetXTitle(titlex)
histo.SetYTitle(titley)
# Prepare array of inputs, one entry for each bin
value... | [
"jean-baptiste.sauvan@cern.ch"
] | jean-baptiste.sauvan@cern.ch |
fd07c7d1bdc76fcbee5db9d0e881bf4321f4f0ab | 33d95a2e5222f1ab9993480a8bdc354aa6dc672f | /game/migrations/0005_darkdieroll_fate_points.py | 3ee7161af0d937ac468c2220d2fb67e60fcce10f | [] | no_license | JackSnowdon/die-master | ab3eb7b1dbbe8b16031515c09b843aaba879aef5 | d0af9fb8d6851904d466165d190dc9ec3700f2fd | refs/heads/master | 2023-07-29T13:20:18.171612 | 2020-06-19T18:27:56 | 2020-06-19T18:27:56 | 265,283,325 | 0 | 0 | null | 2021-09-22T19:14:04 | 2020-05-19T15:16:26 | Python | UTF-8 | Python | false | false | 533 | py | # Generated by Django 3.0.6 on 2020-06-02 16:41
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0004_auto_20200522_1754'),
]
operations = [
migrations.AddField(
model_name='darkdieroll',... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
4d8a740f2425a882dbbcd033a0b302aa265db11d | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/field/lightning_tuto_13_0.py | 40c852ba5cc3187275d8a0d5513fed44b2a3ff09 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 502 | py | # Created by MechAviv
# ID :: [910141060]
# Hidden Street : The Frenzy
sm.reservedEffect("Effect/Direction8.img/lightningTutorial2/Scene4")
sm.sendDelay(10000)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(False, True, False, False)
# Unhandled User Effect [PlaySoundWithMuteBGM] Packet: 23 11 00 4D 69 6E 69 4... | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
66f5818bf49f9b2f75b321768a98f06eedf0e493 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /components/viz/service/frame_sinks/DEPS | 93c434996fdedd3564cd4da8b83f221ddc3502d0 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 555 | # Please consult components/viz/README.md about allowable dependencies.
include_rules = [
"+cc/base",
"+cc/scheduler",
"+components/viz/service/display",
"+components/viz/service/display_embedder",
"+components/viz/service/hit_test",
"+components/viz/service/surfaces",
"+gpu/ipc/common",
"+mojo/public"... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
5639d463d2f4c33b95fd48aa52bd71d7e45ddf75 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventhub/azure-mgmt-eventhub/generated_samples/schema_registry_delete.py | 5bd620cf6b1f8f12b53fc5ec98efd552c094664b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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,639 | 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 |
1372dd8b5bb2b49800e661ea8d623914fb688d43 | f5fbdd32b189428dfa15a6545cb4eeca3103f75d | /ScriptLsts/CountryCodes/SaintVincentAndGrenadines.lst | 2f1842d725edb90d6cfa6a9db77f1af9c033c957 | [
"WTFPL"
] | permissive | bast69/piholeparser | 711bbbf3498e5ec3edda62210fb9f97dd7ea9638 | 55ba208a6ad3e83d2c7c3823c41fede64b6a9f34 | refs/heads/master | 2023-05-04T23:06:04.511010 | 2021-05-25T03:37:53 | 2021-05-25T03:37:53 | 223,371,653 | 1 | 0 | WTFPL | 2019-11-25T10:19:22 | 2019-11-22T09:41:43 | Shell | UTF-8 | Python | false | false | 3 | lst | vc
| [
"sam@deathbybandaid.net"
] | sam@deathbybandaid.net |
35135a73f723dbed0d3c25b356fcb0f60b41890f | d039da1c0b99e2642d3c354de9faa6f427141ee3 | /problems/leetcode/LargestRectangleinHistogram.py | 8bcff46e2f705aa31b50d539325cc64efb60c878 | [
"MIT"
] | permissive | qicst23/pyshua | 5a3e317823d0620d2034adfe345eddd6a722c7ff | 4ae7bb8b626f233ebc2267024ba67dcfe49051ed | refs/heads/master | 2016-09-15T20:26:16.694738 | 2013-12-15T04:50:04 | 2013-12-15T04:50:04 | 15,198,867 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from problems.leetcode.LeetcodeProblem import LeetcodeProblem
class LargestRectangleinHistogram(LeetcodeProblem):
def solve(self, height):
height.append(0)
n = len(height)
res = 0
stack = []
i = 0
while i < n:
if not stack or height[i] >= height[stack[-... | [
"baidingding7@gmail.com"
] | baidingding7@gmail.com |
54732a91ba0583ea31a7d6dc03a547a7e4f68903 | a8769709aeb7299fa3757f0e7bba5c617eb8cfe3 | /lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1beta1_subject_access_review_spec.py | 2f6dce1443e4553f42d2bd0340beaeed063f3616 | [
"Apache-2.0"
] | permissive | simox-83/workshop-k8s | 2ac5e8b282bb7c3337acc726a7d972717bf649cc | 04cb18e8b5925a3cfd84ca316952a6cb64960b31 | refs/heads/master | 2020-03-31T20:52:21.421995 | 2018-10-11T14:43:08 | 2018-10-11T14:43:08 | 152,558,678 | 0 | 0 | Apache-2.0 | 2018-10-11T08:37:20 | 2018-10-11T08:37:20 | null | UTF-8 | Python | false | false | 8,264 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"simone.dandreta@concur.com"
] | simone.dandreta@concur.com |
f06390f4aa8e80e49b7ba4a92cfa1fc42113c66f | d9f4b0a788d39655e29993756aedf3f11bf9086c | /practice/solve.py | 68ce083b81ffb14c0b63464e482f038cccf4df83 | [] | no_license | OmarTahoun/competitive-programming | 07a9123f195c87945c6e56b1d0a3c6fba805d946 | 3b3a4348817fce6637d7bd675ce6f62a4fe69cc8 | refs/heads/master | 2021-08-07T02:45:20.752603 | 2020-04-30T09:50:40 | 2020-04-30T09:50:40 | 164,177,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | #!/usr/bin/python3
import json
import argparse
import shutil
import subprocess
def create_file(id, lang):
id = id.strip()
lang = lang.strip()
problem = problems[int(id.strip())]
if(lang.lower() == "cpp"):
file_name = problem[0] +"."+ lang.lower()
path = r"../Code Forces/CPP/"+file_name
default_path = r"../... | [
"omaraiz489@gmail.com"
] | omaraiz489@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.