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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82a4741061ccbb9ce9b497a9531745597eca18c2 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/proto/__init__.pyi | 07746a552c4b3a9b49b2160eeafe358ac80a5a83 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | pyi | # Stubs for tensorflow.contrib.proto (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib.proto.python.ops.decode_proto_op import decode_proto as decode_proto
from tensorflow.contrib.proto.python.ops.encode_proto_op import encode_proto as encode_proto
from te... | [
"matangover@gmail.com"
] | matangover@gmail.com |
035a99601058e397fb08df39d93b2135c27dfa0f | 6c7d590fad9c5ae747b41f0cb38d8a4a76545a03 | /Algorithms/dqn.py | ba45d337b1df3e41bf4b9a4e6d1dc3b8667910cb | [] | no_license | deep-lift/lift-env | 3f1f50e7b23516367faf15684d4a0d95bba724b0 | e48bfd14c0a4609ef562228ac82b5be00c718a08 | refs/heads/master | 2021-05-18T03:14:38.632303 | 2020-05-29T06:33:28 | 2020-05-29T06:33:28 | 251,077,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,352 | py | from tensorboardX import SummaryWriter
import gym
import math
import random
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from collections import namedtuple
from itertools import count
from PIL import Image
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional... | [
"verystrongjoe@gmail.com"
] | verystrongjoe@gmail.com |
6235e2976733e907206ddec738534bac33e6d44e | eb6f1c78b7a38f5386c013a8b453ba7c07a5e76b | /textattack/constraints/semantics/sentence_encoders/thought_vector.py | 454e4ec9bd4300c3657ab427fb10993fa56684d9 | [
"MIT"
] | permissive | StatNLP/discretezoo | b143306297fe5590800853c71278cc0c4cdd5e68 | 565552b894a5c9632ac7b949d61a6f71123031e4 | refs/heads/master | 2023-07-29T04:12:36.355651 | 2021-09-17T13:21:26 | 2021-09-17T13:21:26 | 404,305,923 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | """
Thought Vector
---------------------
"""
import functools
import torch
from textattack.shared import AbstractWordEmbedding, WordEmbedding, utils
from .sentence_encoder import SentenceEncoder
class ThoughtVector(SentenceEncoder):
"""A constraint on the distance between two sentences' thought vectors.
Ar... | [
"berger1954@gmail.com"
] | berger1954@gmail.com |
b2fb6d3a6d2008bf16e9677db33512229d34559f | 9a66a9acebfb324a5303f9bfe0570145e4a31554 | /plugin.video.salts/scrapers/moviehubs_scraper.py | 72eedc7fe98b7f13c48fe19b2a7986f6357db2c2 | [] | no_license | n0490b/tdbaddon | f229e9f7b8587925cfe38acb04c5f5c70bbf1837 | 21628f1b40e2f854cc3b63acf0d632bb5daecdac | refs/heads/master | 2021-01-23T04:58:23.101284 | 2017-03-26T09:35:56 | 2017-03-26T09:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,634 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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 License, or
(at your option) any later version.
T... | [
"tdbaddon@hotmail.com"
] | tdbaddon@hotmail.com |
d8643273e590aec1c6f29a58fa5b3c594def039d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/leet_20200615171714.py | 94fe5573d4e09e28fc6afc0eac03b0aaa58da2df | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # how a binary tree works is the smaller numbers are
# on the left then the bigger ones are on the right
# returning the node also returns the children which is what
# you want
def search(root,val):
if root is None:
return []
elif root.val == val:
print(root)
return root
else... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a895bc636cd70c0581170adc235d73684d1140fa | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /python-spider/downloader.py | 3f75ddd02fd4139c7cbde92d19278ba18cafe3dd | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 2,296 | py | #-*- coding: UTF-8 -*-
import requests
from contextlib import closing
class ProgressBar(object):
def __init__(self, title, count=0.0, run_status=None, fin_status=None, total=100.0, unit='', sep='/', chunk_size=1.0):
super(ProgressBar, self).__init__()
self.info = "[%s] %s %.2f %s %s %.2f %s... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
8781b034b03ba28b3faf34b92bb661105643a8b8 | 6d967da5fd95aa5e66ddbb211da40041006ca5ec | /mysite/urls.py | 8f072e8d75e07020c16b3150ee422c782be55430 | [] | no_license | gevorkyannaira/my-first-blog | 96e4458045a1dd0aa9c1f3ec69f4c829428200e0 | 42ab12a8c2b0e402b5fa1b8e5a7cdd2629d06c16 | refs/heads/master | 2022-09-03T21:14:18.946448 | 2020-05-18T18:15:39 | 2020-05-18T18:15:39 | 264,909,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-based ... | [
"gevorkyannaira5@gmail.com"
] | gevorkyannaira5@gmail.com |
609aaf7f8fd928896f6e8001f695b16b2e6a9073 | 4b4d21f6a2aaf8cb0ece595e4aaf9cb705ffdd49 | /manage_project_team/__manifest__.py | 3bec19915b2a24224db8ffd3a573785b80ce7467 | [] | no_license | sc4you/odoo-project-10.0 | e8c82b4cd42c0672e996561e75e0f9d0717821fa | bca7e400b6316bcbcefe6f0d088cb97a28f644bb | refs/heads/master | 2020-03-21T13:41:08.042847 | 2018-05-15T07:41:58 | 2018-05-15T07:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Auth: Gavin GU Email:guwenfengvip@163.com
{
'name': '项目团队管理',
'summary': '项目团队管理',
'category': 'Project Management',
'description': """
* 建立项目团队
""",
'author': 'Gavin Gu',
'website': "",
'v... | [
"guwenfengvip@163.com"
] | guwenfengvip@163.com |
2749456550bf8b4e33370afc4747db5d70a9e168 | 3f9d28984403cdd84b984d7a82eb6136018966a4 | /loyalty_in_pos/__manifest__.py | feab1bdf9f1d655e97c04ffde69be6e9116bc5e3 | [] | no_license | joevm018/temasq | bee1c69aee4c87de415e66e236b40c28201e2951 | 74f003c6a009716bf26a6438f5ee48e7dfcbb030 | refs/heads/master | 2023-03-18T23:42:13.598853 | 2021-03-11T11:35:16 | 2021-03-11T11:35:16 | 346,671,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
{
'name': 'POS Loyalty',
'version': '10.0.1.0.0',
'category': 'Point of Sale',
'license': 'AGPL-3',
'author': 'Al Kidhma Group',
'website': "",
'depends': ['point_of_sale', 'beauty_pos'],
'data': [
'security/ir.model.access.csv',
'views/templates... | [
"esreejishnu@gmail.com"
] | esreejishnu@gmail.com |
b703be27bc55cf997be57531bcff211078d8e1c7 | a947eebe4bb4e0ae70febc0c1bd3d7843abe8f1f | /tf_agents/bandits/agents/neural_epsilon_greedy_agent_test.py | 9f8ac99eb34151ab683ab36af463a34c4991bafb | [
"Apache-2.0"
] | permissive | MarioBonse/agents | 79d1762a59e4bbbbaf6a7fc99de792626426032e | c727141f67051b86d2564c4bd5fbc080623bfe19 | refs/heads/master | 2021-02-25T10:26:50.883869 | 2020-03-05T17:34:23 | 2020-03-05T17:34:51 | 245,453,318 | 1 | 0 | Apache-2.0 | 2020-03-06T15:24:44 | 2020-03-06T15:24:44 | null | UTF-8 | Python | false | false | 4,374 | py | # coding=utf-8
# Copyright 2018 The TF-Agents 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 applicable law... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
82c519c211fe5d8969dbd52afd97b9155f4786da | d2ef8af8bec6a9bb0cc282b222b3c9870937c7fd | /rango/migrations/0002_auto_20181125_2252.py | 165f24cebaddf19fb46235076c6c27463a50a4ad | [] | no_license | jonerra/tango_with_django | 0c417e55635991ad19e5e2e65af030f4c5821c8a | 1ae48041bb8db50d24e785787ef304cf59ae82c6 | refs/heads/master | 2020-04-09T05:26:20.643292 | 2018-12-03T03:56:04 | 2018-12-03T03:56:04 | 160,064,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 2.1.3 on 2018-11-26 03:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name_plur... | [
"jonerra23@aim.com"
] | jonerra23@aim.com |
d3ec057ca0415c323e31f71fe83f9957fecc19e2 | b3aa3d77836fa8f05b54d68e7bd6bff19dced90d | /Codeforces/595 Div 3/A.py | 3962f814607c38628d91d2387882fe675afae7bd | [] | no_license | anoubhav/Codeforces-Atcoder-Codechef-solutions | 660c5b78723791bc33b1d51977bf11ebe6dfe4c1 | aeebcae332af64aba49f52261d11aa6996f33b1c | refs/heads/master | 2022-12-08T14:02:49.574928 | 2020-08-29T14:18:30 | 2020-08-29T14:18:30 | 255,004,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # 12 mins. Very slow. No submision errors. Scopula took 4 mins.
from sys import stdin, stdout
q = int(input())
answers = []
for _ in range(q):
n = int(input())
nums = list(map(int, stdin.readline().strip().split()))
d = dict()
for i in nums:
d[i] = 0
ans = 1
for i in num... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
a9f32b3e38fdfc964e1ae7e3a8fc0a3249844622 | a5747577f1f4b38823f138ec0fbb34a0380cd673 | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisZZTo2L2Q.py | 0193a948e43e5e0d7b4b2c028f3f398ba4b4c6f8 | [] | no_license | xdlyu/fullRunII_ntuple | 346fc1da4cec9da4c404aa1ec0bfdaece6df1526 | aa00ca4ce15ae050c3096d7af779de44fc59141e | refs/heads/master | 2020-08-03T07:52:29.544528 | 2020-01-22T14:18:12 | 2020-01-22T14:18:12 | 211,673,739 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'ZZTo2L2Q'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Fall17_17Nov2017_V8_MC_L1FastJet_AK4PFchs.txt'... | [
"XXX@cern.ch"
] | XXX@cern.ch |
9c34ff68ed2a8c2ac9ba13b74e29aef14d4df6f3 | 14b9f5b596c755325ef2bf4d4e6a2ca85d64c1d3 | /main.py | caef9ee752c54e6fd23b643eb7a63cfdd1d017c6 | [] | no_license | chelseatroy/speed_test | b7dd8ab3d2d2fb023aa76562a647dbce9d4910ae | c29787f31e13736bbb5aa7d1a503015b7b02dec7 | refs/heads/master | 2020-04-03T07:59:40.906188 | 2018-11-09T20:42:49 | 2018-11-09T20:42:49 | 155,120,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | # from multiply import python_multiplication, c_multiplication
import numpy as np
import time
import ctypes
import time
from _ctypes import Structure, POINTER, byref
from ctypes import c_int, c_float
import pyximport; pyximport.install()
import multiplication
import numpy as np
def c_multiplication(a, b):
class... | [
"chelsea.dommert@gmail.com"
] | chelsea.dommert@gmail.com |
2c769a4226b66757b69871a2e6054f5c67edbe86 | 0d6d35d692f8b160b33a09e72ff3e5a6d86407f8 | /georef/(old)/helpers/messages.py | 8d73d0ba05c5002c083509627bb3d5402a4c2ef2 | [
"MIT"
] | permissive | karimbahgat/GeoRef | 51071bdb217249611933bdc5d95284611de149b7 | 858fc525b5a7504ce7d62323ff7322a2bf24d611 | refs/heads/master | 2021-01-17T07:42:25.154396 | 2019-11-18T01:42:35 | 2019-11-18T01:42:35 | 19,272,427 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,523 | py | # Import main modules
import sys, pickle, Queue
# Import custom modules
from textual import txt
import timetaker as timer
def SnapVars(onlyvars=[], excludevars=[]):
"""
not working yet bc only snaps local vars...
"""
print ("snapshot of variables:")
print ("----------------------")
if onlyvars: allvars... | [
"Karim.bahgat.norway@gmail.com"
] | Karim.bahgat.norway@gmail.com |
ae0b74e0ed0c233279aa29ebe931b725b06b004c | e79de9c9def60b0f814ab0625a2eb8bce3428ddd | /challenges/pybites/bite_189_tst.py | 1a92e2e5622ea5082f12a3a47610a06a0e60c15e | [] | no_license | mh70cz/py_old | a80e2140a279541c3639f89df70fadad34f7df0f | 1af878cfbff24e5c6d39219c2c4faebd5a12f0c4 | refs/heads/master | 2022-04-05T15:07:10.840387 | 2020-01-13T18:39:50 | 2020-01-13T18:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | """
Bite 189. Filter a list of names
"""
import pytest
from bite_189 import filter_names
@pytest.mark.parametrize("names, expected_return", [
(['bob'], []),
(['bob', 'berta'], []),
(['quit', 'ana'], []),
(['12', 'bas'], []),
(['ana', 'bob'], ['ana']),
(['ana', 'bob', 'quinton'], ['ana']),
... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
8b7741cc7a1c1421ba5b4aa343738001d1a98356 | c1103a1c53727f6686e5e01a10196bfabcc19306 | /docs/conf.py | fed0c6c878b82905a1b3253c2b558f1451915bd3 | [
"MIT"
] | permissive | mcflugen/pymt_avulsion | 00090c41290db097187854925962acb144157d8e | 00b13f9cb02b423514de08737db715195f123d68 | refs/heads/master | 2020-03-31T01:28:07.493013 | 2018-10-05T22:06:19 | 2018-10-05T22:06:19 | 151,782,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pymt_avulsion documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this... | [
"mcflugen@gmail.com"
] | mcflugen@gmail.com |
c8bf1a8cafae2c3e3c8a49c632d07cc4eee303c4 | ad6f20ca36dc65e34b43c69db66f383554718fed | /dp/@graph.py | 3a3801e3358c0405de3631e25c56616359941090 | [] | no_license | atulanandnitt/questionsBank | 3df734c7389959801ab6447c0959c85f1013dfb8 | 477accc02366b5c4507e14d2d54850a56947c91b | refs/heads/master | 2021-06-11T21:39:24.682159 | 2021-05-06T17:54:18 | 2021-05-06T17:54:18 | 175,861,522 | 0 | 1 | null | 2020-05-02T09:26:25 | 2019-03-15T17:10:06 | Python | UTF-8 | Python | false | false | 1,042 | py | #code
#https://practice.geeksforgeeks.org/problems/largest-square-formed-in-a-matrix/0/?ref=self
def largest_square_formed_in_a_matrix(l,m,n):
a = []
now = 0
for i in range(m):
a.append(l[now : now + n])
now += n
dp = [[0 for i in range(n)] for j in range(m)]
f... | [
"atul.anand.nitt@gmail.com"
] | atul.anand.nitt@gmail.com |
beaf53cd271107b732e3d44827bff512c5baab65 | 4db158b65cabb64ac47dbde09732a7d2c42fb8d1 | /LintCode/378. 将二叉查找树转换成双链表.py | 9c126d5065e812e9e819d4f7313716f57ebf43d3 | [
"Apache-2.0"
] | permissive | iFengZhao/Algorithms-1 | e87c52ccaf73a26338e136100acd516b722b3255 | ffb722703ffc7947bff56ffabe7a491e1e4049f4 | refs/heads/master | 2023-03-14T00:32:01.329241 | 2021-03-06T07:17:40 | 2021-03-06T07:17:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
Definition of Doubly-ListNode
class DoublyListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = self.prev = nextDefinition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
... | [
"realchangyu@gmail.com"
] | realchangyu@gmail.com |
003a007ddf5cb504e03c8aa543e110c40451dd71 | b89474ef844f3b860b0027e46206ae0aa911dfd3 | /Programming Funcamentals Using Python/Day 2/flight_ticket.py | 9f51fa9ae60bef34cecde026e527839c4a309132 | [] | no_license | AgentT30/InfyTq-Foundation_Courses | 6e2574fca0dc5ff1126d1e910d5086e695921dce | a676478df0c083839ebe56ee3dcb9fffd2307390 | refs/heads/master | 2022-12-01T11:28:06.052658 | 2020-08-13T04:41:34 | 2020-08-13T04:41:34 | 287,181,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | def calculate_total_ticket_cost(no_of_adults, no_of_children):
total_ticket_cost = 0
total = 37550.0 * no_of_adults + (37550.0 / 3) * no_of_children
total += (total * 0.07)
return (total - (total * 0.1))
total_ticket_cost = calculate_total_ticket_cost(3, 1)
print("Total Ticket Cost:", total_ticket_co... | [
"cthekkunja304@gmail.com"
] | cthekkunja304@gmail.com |
abca5c5170ba3a73c9557635a1d0bd0b16620f0b | 17c380fe1fee2d6dd7a249c506a6b8827c3d0417 | /04/Python/t4_2.py | 8d28045ca99786bf5e798765f3bb197f73055d29 | [] | no_license | LubosKolouch/adventofcode_2019 | b80f0603ee2a642c56def502b1575dde6e1f02b2 | 84d381f3ad416940de6c891ee095e1770f44c0bf | refs/heads/master | 2023-02-06T14:08:30.962125 | 2020-12-28T08:04:54 | 2020-12-28T08:04:54 | 225,130,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #! python3
count = 0
for i in range(172851, 675870):
prev_num = 0
ok = 1
for char in str(i):
if int(char) < prev_num:
ok = 0
prev_num = int(char)
if ok == 1:
found = 1
prev_char =0
for char in str(i):
if (char != prev_char):
... | [
"lubos@kolouch.net"
] | lubos@kolouch.net |
6b2f3a0f1b1a5d818d240e9b23a22bc48321e378 | 0a2cc497665f2a14460577f129405f6e4f793791 | /tools/azure-devtools/setup.py | d800c2b0fbca9b3871c1d85086bf9aa9671fb517 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 2,245 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
c7b8bf97eba394019543b3fce52e2e67aab76d3b | 45ff2184ee9f93f72b68d40d06132dbb3994cd4d | /plots/plotsLukas/checks/wcCheck/addons/ttgamma_1l.py | 716dc75bdd5825c2d55c047ab8e7020b935aee9a | [] | no_license | TTXPheno/TTXPheno | a9a8fc41032135b65ac3834d1f26bd105e3a0231 | 8395c4f0aab0e69845f35afbf4e29b88549703a8 | refs/heads/master | 2021-06-03T16:28:40.682305 | 2019-12-20T15:20:29 | 2019-12-20T15:20:29 | 130,057,035 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 41,935 | py | #!/usr/bin/env python
''' Analysis script for standard plots
'''
# Standard imports and batch mode
import ROOT, os, itertools
ROOT.gROOT.SetBatch(True)
from math import pi, sqrt
# RootTools
from RootTools.core.standard import *
# TTXPheno
from TTXPheno.Tools.helpers ... | [
"lukas.k.lechner@gmail.com"
] | lukas.k.lechner@gmail.com |
267fc18107fc667d7a3cdc29a81e8ba5c97f395e | c7dc3be23ca32c66426c115229c05094c2843d72 | /mill_stock/models/__init__.py | ac998e3147475472992f60144555178efe511521 | [] | no_license | shivam1111/singla | 4270f693ae1103ba49a715a248516d6689ba2105 | c7b7ed871088a18ccb5643938abc4c9453d7fc00 | refs/heads/master | 2023-03-17T00:56:41.487835 | 2023-03-11T11:40:04 | 2023-03-11T11:40:04 | 142,576,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import material_grade
import heat_heat
import stock_line
import mill_purchase_order
import chemical_composition
import test_test
import res_partner | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
09fe24a9aac983f3252b4d76a4ab4d1577b4b8b0 | c2d48caa5db7e746a38beca625406fcf47379d3c | /src/olympia/scanners/migrations/0010_auto_20191023_0908.py | 2b6f2cc85af8aa0b26f6363c1217365f461f4ce6 | [] | permissive | mozilla/addons-server | 1f6269ec0a4aa5a0142a5f81978ef674daf213a7 | e0f043bca8a64478e2ba62f877c9dc28620be22f | refs/heads/master | 2023-09-01T09:34:41.867534 | 2023-09-01T07:21:22 | 2023-09-01T07:21:22 | 16,416,867 | 920 | 590 | BSD-3-Clause | 2023-09-14T16:15:01 | 2014-01-31T18:44:15 | Python | UTF-8 | Python | false | false | 229 | py | # Generated by Django 2.2.6 on 2019-10-23 09:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [('scanners', '0009_auto_20191023_0906')]
# Nothing to do...
operations = []
| [
"noreply@github.com"
] | mozilla.noreply@github.com |
732584cad8ac2aa933008f98152141bce8c423f9 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/check_point/mgmt/tests/units/modules/test_cp_mgmt_verify_policy.py | bd708bff0724ea542013919c8b33b60e7077dcda | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 2,474 | py | # Ansible module to manage CheckPoint Firewall (c) 2019
#
# Ansible 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 License, or
# (at your option) any later version.
#
# Ansible is dist... | [
"sifang@cisco.com"
] | sifang@cisco.com |
b989d637becc43a18e3a3c7fdf223f8b5aa2d273 | 0684ecda0d987862a3ecc7c5f3bd4a11c0c5f7f6 | /moda/dataprep/utils.py | ba663db16c94fe94d4e7338121969b19fffd9350 | [
"MIT"
] | permissive | HH0000HH/moda | a5b55383c84c90cfc41c9583e18b1cef60dc8394 | ebddd6475f38b30a1c3a09a94ba68316d7b3abfd | refs/heads/master | 2022-12-26T12:45:50.234420 | 2020-10-08T14:06:55 | 2020-10-08T14:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import numpy as np
import pandas as pd
def raw_to_ts(raw, min_date=None, max_date=None, date_format=None):
"""
Turns a raw pd.DataFrame into a time-series DataFrame, by creating a DatetimeIndex and a 'timestamp' column
:param raw: a pd.DataFrame with a date column
:param min_date: Minimum date for the... | [
"omri.mendels@microsoft.com"
] | omri.mendels@microsoft.com |
dac6a847718c50fbeb33bc5646c8b45d7f2ec874 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/42511101.py | 8ecc39c4f4d0ec881c8bd13266c9cca9ab36fbbe | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/42511101.py generated: Fri, 27 Mar 2015 16:09:59
#
# Event Type: 42511101
#
# ASCII decay Descriptor: pp -> [W+gamma -> mu+ nu_mu gamma {,gamma} {,gamma}]cc ...
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/Wgammamunu=PHOTOS.py... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a3c90dcf135f3ba225354224e1643c2e9ace7ca8 | b76daa106277ef2f7ab7f6e3278546c6da0bb967 | /excel/chat1/read_cell2.py | eeda9aef339815032bfe32174667698132f3a0d4 | [] | no_license | DyLanCao/ipython | d071b4659999062106438ec077d27754a711ef92 | 746e070d193de04002d277e5170ddf8b5d9d4d44 | refs/heads/master | 2021-06-12T19:31:44.325346 | 2021-02-20T03:17:58 | 2021-02-20T03:17:58 | 142,657,284 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/python3
import openpyxl
book = openpyxl.load_workbook('items.xlsx')
sheet = book.active
cells = sheet['A1': 'B6']
for c1, c2 in cells:
print("{0:8} {1:8}".format(c1.value, c2.value))
| [
"caoyin2011@163.com"
] | caoyin2011@163.com |
96264b7028b2c81c9453d126155bd030211e1e0a | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/aws/ECSServiceFargateLatest.py | 954481d98c91462fba6bbcfacffc3aa77e4b72cf | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,423 | py | from __future__ import annotations
from typing import Any
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ECSServiceFargateLatest(BaseResourceCheck):
def __init__(self) -> None:
"""
NIS... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
3cb52ce6e88283fc7ec91fbb3193fa95fb558063 | 5ace97f6bf2aeb661b4c544e1cc183684afe8413 | /euler/133.py | c58d0a10f617595300ade2b10cf91fe4b03ccf3a | [] | no_license | crazymerlyn/code | 1aada845b70486ef45408ff67bd722d910c58dd6 | 3deed9c8a1393c160866f33d5efc6dd3d1a4c469 | refs/heads/master | 2022-07-26T21:13:23.588366 | 2022-06-11T15:35:13 | 2022-06-11T15:35:13 | 97,077,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from utils import primes
def factor_count(n):
a, b = 0, 0
while n % 2 == 0:
n //= 2
a += 1
while n % 5 == 0:
n //= 5
b += 1
return a, b
limit = 10**5
res = 0
for prime in primes(limit):
a, b = factor_count(prime - 1)
possib = False
for i in range(a+1):
... | [
"crazy.d.merlyn@gmail.com"
] | crazy.d.merlyn@gmail.com |
5f3805fc2f61715880c917cd8a766a744023acb5 | 7c66bba92b484e5fa6ee282ef39f2c26875ca775 | /DSP_Configure/handler/rich_editor.py | ee716ec6479d8a01a21ee2d58d03f48af93f2c3d | [] | no_license | KqSMea8/PythonTools | a5ac17182b2689a706180dc349d59c2484d3984c | 7279570b82fecbf59b71aa6b58ef975e90c660df | refs/heads/master | 2020-04-13T04:19:19.209243 | 2018-12-24T05:13:12 | 2018-12-24T05:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #! /usr/bin/env python
# __author__ = 'Xuecheng Yu'
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
# Copyright YXC
# CreateTime: 2016-07-23 22:13:02
import sys
sys.path.append("/home/linus_dev/git_103/trunk/PythonSource/DSP_Configure")
import tornado.web
from handler.base import BaseHandler
class RichEditorHandler(BaseHa... | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
fefd126e33dd7a2a952244eb2b43629cf50d6f7b | 887f4beeb3ba480f3bcc7dff1e9eb3d61d445f9b | /console/admin_/templatetags/msg_submit.py | a066f9d83faa66365d6eed856ae37ef7dcdf2364 | [] | no_license | wang-shun/console | ccaa8a1716e2ab6bf5ed6d1c4240cecd4e59f155 | 50425ff068c4795bf13bd178891da126f8677383 | refs/heads/master | 2020-04-04T18:15:14.382006 | 2018-07-09T14:42:42 | 2018-07-09T14:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # coding=utf-8
__author__ = 'chenlei'
from console.console.message.models import Message
from django import template
register = template.Library()
@register.filter
def msg_submit(msg_id):
msg = Message.get_msg_by_id(msg_id=msg_id)
if msg is None:
return False
if msg.msg_status in ["for_submit"]:... | [
"lhongzhan@126.com"
] | lhongzhan@126.com |
b83ea4d48eb0f0361e877cb4484fbf229c307990 | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /contrib/scene2d/scene2d/camera.py | c4a2693ff66413bd12a8764cfe4b3198f49c1c35 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/env python
'''
Camera for projecting 2d flat scenes
====================================
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from pyglet.gl import *
from pyglet.event import *
class Camera(object):
def project(self):
'''Set up the GL projection matrix. Leave us in GL_... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
80f480e72f9b1c9c97791995b654b3980d891707 | 5e601244fbf32ee5190fb5210a0cd334473a0abe | /functions/options/docoptOps.py | 8e56468bc35e36b6e5faa685dd460e632fa908d4 | [] | no_license | DingGuodong/LinuxBashShellScriptForOps | 69ebe45cf3f92b741a078b9b78c2600328ce9b9e | b2ca1e4c870626dd078d447e2d1479b08602bdf6 | refs/heads/master | 2023-08-21T20:53:40.617397 | 2023-07-17T01:41:05 | 2023-07-17T01:41:05 | 57,015,255 | 453 | 343 | null | 2023-02-16T01:29:23 | 2016-04-25T05:55:28 | Python | UTF-8 | Python | false | false | 1,220 | py | #!/usr/bin/python
# encoding: utf-8
# -*- coding: utf8 -*-
"""
Created by PyCharm.
File: LinuxBashShellScriptForOps:docoptOps.py
User: Guodong
Create Date: 2016/12/12
Create Time: 17:33
Example of program with many options using docopt, control system service.
Usage:
docoptO... | [
"uberurey_ups@163.com"
] | uberurey_ups@163.com |
1d3e12e6f0866c79e9d7630429a06080739155fb | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks851.py | 342de6484e54c924f8645181c41dc4700409e5e0 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,336 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 3
def wire_hook(grad):
print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item()))
... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
e5e48b4cf2c558052bb4522eb9172ca4c5c60bcd | 0d4e44b20af1217eebf0df4fc0e00b4c8cd50651 | /video_demo/video_demo.py | d0c606be348b33a2ba7fc1dde304981a3038ca49 | [] | no_license | YTArjunBhayana/minecraft-pi | 16d6121663819c3eb1caec54b6a77ae6ee66921a | c1e85755db9b92e6c7caa8e4d96446f7991596b7 | refs/heads/master | 2021-12-08T15:11:46.942184 | 2016-03-23T12:50:40 | 2016-03-23T12:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """
author: matt venn
"""
import mcpi.minecraft as minecraft
import mcpi.block as block
from random import randint, choice
import time
mc = minecraft.Minecraft.create()
import ipdb; ipdb.set_trace()
mc.player.setPos(0,10,0)
# ids of some solid type blocks
solid_blocks = [14,15,16,1,17,49,98]
# wipe out everything ... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
0f6fbbe39ba239436a47b590bef8148d4e4c61b7 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/insights/get_web_test.py | 388c358f8188257463a0c151865adf9b5c5b0231 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 10,176 | 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, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
43502a3daaa568789f4636b903cb46d16ffa342e | 7da87c6d4c4d8443f1a9930b5edc277ce2a6c358 | /098_azimuth-at-treasure-island.py | 8164e4e5e6052942ed5575f76a7e09129a077ae0 | [] | no_license | kazamari/CodeAbbey | 2e1f28a20d5f773fc08b5b20899d437d5ba420f2 | 4f5031585ddad8d8be71ee1f80872712b139051e | refs/heads/master | 2021-04-15T14:49:10.839383 | 2018-03-23T12:18:17 | 2018-03-23T12:18:17 | 126,477,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | '''
Input data will be in format close to the directions inscribed on a map:
The first line contains words Stand at the pole with the plaque START - you can safely ignore this.
Next lines contain words go X feet by azimuth Y - you are to extract numbers from them.
Last line contains phrase Dig here!
Answer should conta... | [
"maha_on@yahoo.com"
] | maha_on@yahoo.com |
c8220b0703907e73b3e3af7691c1499c8a6669c0 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_12_01_preview/operations/_access_review_instance_operations.py | 295b9c5e4f96bb4dc925b070d9fde191a99ae1ba | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 22,100 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
292c340769f27f5417e892b92e3128d026836005 | 7fb5a022b7e2e75ca2fea0b626bb751251225e56 | /bin/mcmc/test_pearce_mcmc_split_alpha.py | 5453b4e2653c81bb31ba2e693fd15e067a622fd0 | [
"MIT"
] | permissive | mclaughlin6464/pearce | c305d03e10dfe8af51aa75657182c61eef87f4e6 | 746f2bf4bf45e904d66996e003043661a01423ba | refs/heads/master | 2021-07-05T22:32:50.665309 | 2020-12-09T19:25:43 | 2020-12-09T19:25:43 | 66,886,175 | 0 | 3 | MIT | 2021-01-26T05:10:37 | 2016-08-29T22:47:36 | Jupyter Notebook | UTF-8 | Python | false | false | 4,545 | py | from pearce.emulator import OriginalRecipe, ExtraCrispy
from pearce.mocks.customHODModels import *
from pearce.mocks import cat_dict
from pearce.inference import run_mcmc
from halotools.mock_observables import wp
from astropy.table import Table
import numpy as np
from os import path
training_dir = '/u/ki/swmclau2/des/... | [
"mclaughlin6464@gmail.com"
] | mclaughlin6464@gmail.com |
e90c700939383a39e7e35ba912cf700953dea74e | bcfa2523c5bbdc50652d25be5311eeb0c8df02a3 | /ndb/src/google/cloud/ndb/key.py | bd99e3b3bb895d9659386890b3500b0c6fc0b6a4 | [
"Apache-2.0"
] | permissive | hrfuller/google-cloud-python | 1e03a3a7c4e9036e8f036f6f38f0d0a6014e3640 | d6bfb08ed3c5332d4bc91139c544c30d86019602 | refs/heads/master | 2020-04-01T21:43:26.596966 | 2018-10-18T14:23:20 | 2018-10-18T14:23:20 | 153,671,985 | 0 | 0 | null | 2018-10-18T18:49:09 | 2018-10-18T18:49:09 | null | UTF-8 | Python | false | false | 43,467 | py | # Copyright 2018 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, ... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
d87d4505178926625504f3d29ca273ff7cfee188 | 8c9a874a4869aa5afaa04b2ea58ffed5722901ed | /oh_my_toolkit/__init__.py | 2ce9c43d939e9ebc15d8bfac4a838ddfbcddf447 | [
"BSD-3-Clause"
] | permissive | adamchainz/oh-my-toolkit | 32c11069c712fd8f264098114e94800f40aad178 | c0e924547b10a5cf07e803b55b43332fbf257b34 | refs/heads/master | 2023-07-07T18:33:38.920651 | 2016-06-08T08:00:01 | 2016-06-08T08:00:01 | 36,362,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # -*- coding: utf-8 -*-
__author__ = 'Adam Johnson'
__email__ = 'me@adamj.eu'
__version__ = '0.1.0'
| [
"adam@adamj.eu"
] | adam@adamj.eu |
f177ba4dab84ad1ec86d4b5e028f59b6676e917a | cd84067d109f9f95bb259da4248ddafdf561c9a5 | /func_sig_registry/registry/migrations/0005_bytessignature_bytes4_signature.py | 7bda7d39d47d60fc4fe25b9bf74afb6e768aa49b | [] | no_license | Nurts/ethereum-function-signature-registry | 755b8f107c1f4c3347083fee607e88f76dec37d3 | f0219873c12f2f49b0c9374d8a43922bb0ea37a4 | refs/heads/master | 2023-01-05T00:40:25.591210 | 2020-10-27T13:24:20 | 2020-10-27T13:24:20 | 284,265,909 | 1 | 0 | null | 2020-08-15T13:03:38 | 2020-08-01T13:31:57 | Python | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-08-04 19:24
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registry', '0004_auto_20160804_1923'),
]
operations = ... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
6b7e309f4c77bcd1da3521a70095fe80c300c8eb | 6362d18d6aadefa9949d10eae31030b25ff46fd0 | /ndstats/loggers/generic.py | 46509e90519a259a958586456e8bab27bd496148 | [] | no_license | yedpodtrzitko/ndstats | 2ab3c0d389401b4c5e96f976b45f443f09057a70 | d59b6395729269e311119c6edae7577303ec5d1b | refs/heads/master | 2022-12-09T18:59:03.916427 | 2019-10-23T04:05:36 | 2019-10-23T04:05:36 | 40,006,216 | 0 | 0 | null | 2022-12-08T02:25:49 | 2015-07-31T13:19:30 | JavaScript | UTF-8 | Python | false | false | 625 | py | import re
from ndstats.loggers import UnknownLineError
re_ignore_line = re.compile((
'^('
'Log file|'
'Started map|'
'rcon from|'
'\[META\]|'
'server|'
'STEAMAUTH:|'
'"Console<\d+>"|'
'"(\w+)" = "(.*)"|'
'Team ".*?" scored|'
'Connection to Steam|'
'Public IP|'
'Assi... | [
"yed@vanyli.net"
] | yed@vanyli.net |
ca806bb85a2a6c8835d2c74078cbc23267b1e2fb | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/cr-buildbucket/appengine_config.py | 37938d4fdf4e50be847f5b64da6a199f99175fa2 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 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.
components_ereporter2_RECIPIENTS_AUTH_GROUP = 'buildbucket-ereporter2-reports'
components_ereporter2_VIEWERS_AUTH_GROUP = 'buildbucket-ereporter2-viewers'
c... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
1cdc966068d79671fd90877701679c708f390beb | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v3/services/campaign_feed_service_client.py | 4843c750100d99d76e9b4276cf1e14327310f247 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 13,370 | py | # -*- coding: utf-8 -*-
#
# Copyright 2019 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... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
8cb038e15ccfb7d3d40f0b7bc1f7b80aa9db6d20 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2G/2G-2F_MD_NVT_rerun/set_5.py | 082a4bf183d33fcd760212e46dcbb5935fab1cbf | [] | 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 | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2G/MD_NVT_rerun/ti_one-step/2G_2F/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.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 lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
779757059feb8dd1815130a5fd3cf6f806c01996 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/neuralnet/Keras_LSTM_prototype1_ozone.py | dc38973fe91ff1176e2057b3f4b6e1fe16aab5ff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 191 | py |
import Keras_LSTM_prototype1_gen as nntest
nntest.full_test('data/ozone-la.csv', 'Ozone', 24, 100)
#for ep in [10 , 40, 160, 640]:
# for lags in [8 ,32]:
# full_test(lags, ep)
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
44eac0681ec5e7832117e95ba78465a6c2ca0ec4 | cbb8fb2dd2de981e20f0f1e2f6ee0853c546446c | /clientes/urls.py | c59d96acbc4db0b829e654291d304f4eaebda95f | [] | no_license | BrunoVittor/Crud_completo_deploy_Heroku | 7424ecd9fcbafc382220a7710b0268b62c973cf3 | 1d7d497033b001ac770c98baed78e2fd8eb5adfa | refs/heads/master | 2023-04-01T02:26:49.618315 | 2021-04-04T16:51:19 | 2021-04-04T16:51:19 | 353,429,585 | 1 | 0 | null | 2021-04-04T16:51:19 | 2021-03-31T16:58:16 | Python | UTF-8 | Python | false | false | 542 | py | from django.urls import path, include
from .views import car_list, car_create, car_update, car_delete
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', car_list, name='car_list'),
path('new', car_create, name='car_create'),
... | [
"bv.everit@itmss.com.br"
] | bv.everit@itmss.com.br |
6d7ff38c4b752cd7ad6021a9ca176cafb07326a0 | 65a898537f04204108c17b1a715e69184f2699e7 | /tests_oval_graph/test_commands/test_command_line_client/test_client_arf_to_html.py | ebc95df711f1b59270fa7fe32a0522001ecc6fde | [
"Apache-2.0"
] | permissive | AutomateCompliance/openscap-oval-graph | 9fa544e956001ababb0831f997c2f074871e2025 | 4f986aa2e57291e5907e4250bca76d3c643b3e08 | refs/heads/master | 2023-07-25T01:18:17.807232 | 2021-08-31T07:59:16 | 2021-08-31T07:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import tempfile
import uuid
from pathlib import Path
import pytest
from oval_graph.command_line_client.arf_to_html import ArfToHtml
from ...test_tools import TestTools
from .constants_for_tests import (EXPECTED_RULES_ID,
EXPECTED_RULES_ID_WITH_ARGS,
... | [
"hony.com@seznam.cz"
] | hony.com@seznam.cz |
1e08d83cb7d81605f03e549d5b0c5417bf9e39c0 | bafd71480a139aec4cd3a870ae71c376cc3ba097 | /diofant/tensor/array/tests/test_immutable_ndim_array.py | 1611e604db4fe6ef516a0deffd5d843f2e73f9f9 | [
"BSD-3-Clause"
] | permissive | ankit213/diofant | bf02e0bf7b0f40b11b0bf17c854f05ce98b53d04 | 39c9b6ebee3d988a238f75e059f101b7ea3a6121 | refs/heads/master | 2021-01-11T18:22:17.534756 | 2017-01-18T14:27:15 | 2017-01-18T14:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,197 | py | from copy import copy
import pytest
from diofant.tensor.array.dense_ndim_array import ImmutableDenseNDimArray
from diofant import Symbol, Rational, SparseMatrix, Dict
from diofant.matrices import Matrix
from diofant.tensor.array.sparse_ndim_array import ImmutableSparseNDimArray
def test_ndim_array_initiation():
... | [
"skirpichev@gmail.com"
] | skirpichev@gmail.com |
8be39331e564fbb75efe51416669532027541708 | 3ebed5d25b0f325736e435f03fb7cbf027a18da4 | /emc/memberArea/tests/test_workflow.py | 1ec5b57be85e4d63200d4b744f75fd7bbfef717d | [] | no_license | adam139/emc.memberArea | 82950eca452c781d0976d5f1c5c3140526f5823e | a549074240d780933cb590ce46c78bdecdbda654 | refs/heads/master | 2022-05-31T18:44:58.841750 | 2020-09-29T12:59:16 | 2020-09-29T12:59:16 | 47,908,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | #-*- coding: UTF-8 -*-
from Products.CMFCore.utils import getToolByName
from emc.memberArea.testing import FUNCTIONAL_TESTING
from emc.memberArea.testing import INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID, login, TEST_USER_NAME, \
TEST_USER_PASSWORD, setRoles,logout
from plone.testing.z2 import B... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
6c92d64ed845ad92a3be266bf9f6391b27710317 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day03/递归.py | 475524ce03d8087fa206fa4fa46e8efa9ef54a85 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 193 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
def calc(n):
print(n)
if int(n/2) > 0:
n = calc(int(n/2))
return n
calc(10)
print("result:", calc(10)) | [
"284607860@qq.com"
] | 284607860@qq.com |
11865de8f4aaadb17f5817273fb348e07a2e40f4 | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /老男孩/装饰器/装饰器3.py | 858ef40d21f54e159ccfb444312446a9ecd5c05a | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 2,847 | py | """加上返回值:"""
# import time
# # 装饰器框架
# def timmer(func): # func = test
# def wrapper():
# start_time = time.time()
# res = func() # 就是在运行test()
# stop_time = time.time()
# print('run time', stop_time - start_time)
# return res
# return wrapper
#
#
# @timmer # 完成的操作是: test = timmer(test)
# def test():
# ... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
e2b1e305d1c68e15b565dca4cb996fa351dc2204 | f1b7edc2b5b47baa9dd116c49c49dcf2318ddb38 | /apps/works/templatetags/filename.py | b894ebeba1b966b8aa1cd222669a1aa4de0558e3 | [] | no_license | wd5/bellib | 3f3dd550dadc0981e274cc89bcef9ec7a8de65c6 | c7e9cd490bb755075c0b3b6cb656109e319820a5 | refs/heads/master | 2021-01-10T01:37:34.908838 | 2012-05-09T14:35:30 | 2012-05-09T14:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # -*- coding: utf-8 -*-
import os
from django import template
register = template.Library()
@register.filter
def filename(value):
try:
return os.path.basename(value.file.name)
except IOError:
return '' | [
"DrMartiner@GMail.Com"
] | DrMartiner@GMail.Com |
e8855a93428edb2f8190514c9dfa5e6acb44b1ec | 291ba018243613b621a1ae40a6b266392114a525 | /setup.py | 99dc247cd34eaffd1effdacf0fabb8b1d8790baf | [
"BSD-3-Clause"
] | permissive | flaviovdf/tag_assess | f7b72d70c0e2e262faee8c4190208d51d18414bb | 6955d968f3f4f01c33be2bb77fa5409648c2f89e | refs/heads/master | 2020-05-28T13:48:52.185591 | 2014-10-27T17:46:19 | 2014-10-27T17:46:19 | 1,523,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | #!/usr/bin/env python
# -*- coding: utf-8
'''
Setup script.
'''
import glob
import numpy
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
SOURCE = 'src/'
if sys.version_info[:2] < (2, 7):
print('Requires Python version 2.7 or... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
43aa14b6ea59ee2529fdd302755f055a3af90574 | fb4a589b87fde22d43fe4345794c00bbc3785085 | /resources/oci-lib/lib/python3.6/site-packages/services/apigateway/src/oci_cli_work_requests/generated/workrequests_cli.py | 45ad07eadf19084459f4e107e674dbc9208f7704 | [] | no_license | dickiesanders/oci-cli-action | a29ccf353a09cb110a38dc9c7f9ea76260c62a48 | ef409321a0b9bdbce37e0e39cfe0e6499ccffe1f | refs/heads/master | 2022-12-18T02:52:07.786446 | 2020-09-19T09:44:02 | 2020-09-19T09:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,112 | py | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | [
"bytesbay@icloud.com"
] | bytesbay@icloud.com |
f95455e71a413f0911341fcc952ac5868560b19b | 9b32771b7d1513ee37bc62dd347675abcfc1bfc9 | /example_snippets/multimenus_snippets/NewSnippets/NumPy/Vectorized (universal) functions/Rounding and clipping/rint Round elements of the array to the nearest integer.py | b5cbd19ebb4c14969630816adc64f45097689002 | [
"BSD-3-Clause"
] | permissive | listar0810/jupyterlab-snippets-multimenus | 44087ef1aeb030a3074862a337508b57d50072c6 | 477f51cfdbad7409eab45abe53cf774cd70f380c | refs/heads/master | 2022-12-12T18:19:25.221083 | 2020-09-08T01:11:01 | 2020-09-08T01:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10 | py | np.rint(a) | [
"kptan86@gmail.com"
] | kptan86@gmail.com |
54adfa3d2a8cfb4cebd8bf5366b1e3bb49f8a5cd | bc46b690a6a7c028e4ba37a4b3f34fcf57b97ec6 | /vectorbt/__init__.py | 30fbb490c88a7fc2fad1edaa7e3e5b9bef81b49d | [
"Apache-2.0"
] | permissive | AmandaRossimandi/vectorbt | 0bd5e9389f40f6547a92dcffaf9be24211fc57d4 | 140fbfa1aaaf6c9fc00f245289b2d03e1bbad7b3 | refs/heads/master | 2023-02-14T13:45:19.295651 | 2021-01-06T20:36:01 | 2021-01-06T20:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,070 | py | """Python library for backtesting and analyzing trading strategies at scale.
While there are many great backtesting packages for Python, vectorbt was designed specifically for data science:
it excels at processing performance and offers interactive tools to explore complex phenomena in trading.
With it you can traver... | [
"olegpolakow@gmail.com"
] | olegpolakow@gmail.com |
1b40484b3564b01561fe7dae1ffb9d5c24b1e8fb | fd01e75f6e5cb4544484bfba48cb307f0e712ab0 | /LC/509_입력_자가진단1.py | b40993d83044ac9ec4996f8fb46680e9a0d3b789 | [] | no_license | hybae430/Jungol | 2b30aae434f6cc54f2b03e5aa9e8a5d98dc7f170 | a11dae5e6043f37fc9802ba317159f528f92b9f7 | refs/heads/master | 2023-03-24T09:57:53.905035 | 2021-03-20T09:16:48 | 2021-03-20T09:16:48 | 328,375,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | i = -100
print(i) | [
"violet9643@naver.com"
] | violet9643@naver.com |
e6cbf63a0867ed1d47a04df33a4ae48d8c79a5e2 | 99ba551645dc9beed36f0478b396977c50c3e7ef | /程序员面试金典/面试题17.13.恢复空格.py | 997d751ef10d541c68476839cb0a7d87c1aac818 | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | # #!/usr/bin/python
# #coding:utf-8
#
# 面试题17.13.恢复空格
#
# https://leetcode-cn.com/problems/re-space-lcci/
#
# 哦,不!你不小心把一个长篇文章中的空格、标点都删掉了,并且大写也弄成了小写。像句子"I reset the computer. It still didn’t boot!"已经变成了"iresetthecomputeritstilldidntboot"。在处理标点符号和大小写之前,你得先把它断成词语。当然了,你有一本厚厚的词典dictionary,不过,有些词没在词典里。假设文章用sentence表... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
780207b383ac6b8bbf034abbca3c3de018efce17 | 25a3960f2d358d38cbd580b1e7d2b599793920a1 | /django_photo_gallery/settings.py | 0481ea3b74291af5a87ae056ea2bb82583d556b7 | [] | no_license | Adityaraj1711/django_image | 00d5ac244a1c310b616d90d73669d063582b752a | fe5b02726ff66c8ac2af375cafe3e3ec7e912d5e | refs/heads/master | 2022-11-08T19:24:27.885538 | 2018-09-19T22:05:28 | 2018-09-19T22:05:28 | 123,629,271 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | import os
#import posixpath
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '8ace3072-47a0-4910-b522-dc3601f38c35'
# SECURITY WARNING: don't r... | [
"adityamailbox0@gmail.com"
] | adityamailbox0@gmail.com |
2a198a54226dcf43342fccecdd1fd6e14a85a5e7 | 0f074e5adef64fa16e88dc2499e76f08b4c33c02 | /prj/idl/01_filter_p2p/02_调用_UI.py | 641719fdb02a24b925f211c29bb68a734da9cd25 | [] | no_license | guozhenjiang/Python | 0ac39adaf72df0bfee51795fabcfd959a69b1862 | 44b07bd767f3f2a947331111ab920200ac2412c6 | refs/heads/master | 2021-05-19T16:54:40.725132 | 2020-11-19T16:26:26 | 2020-11-19T16:27:11 | 252,035,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | from PySide2.QtWidgets import QApplication, QMessageBox
from PySide2.QtUiTools import QUiLoader
from PySide2.QtCore import QFile
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
import pyqtgraph.opengl as gl
import numpy as np
class DataFilter:
def __init__(self):
# ----... | [
"guo_zhen_jiang@163.com"
] | guo_zhen_jiang@163.com |
5c6447195d2d4c1096a93e65805eab3e3ecaf047 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00003/s671080158.py | 3dab648ff39ae8531a7f4cb7410108f585efc8a7 | [] | 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 | 404 | py | n=int(input())
a=[]
c=[]
for i in range(n):
a.append([])
for j in range(3):
a[i].append([])
for i in range(n):
#for j in range(3):
a[i][0], a[i][1], a[i][2]=map(int, input().split())
a[i].sort()
if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
k="YES"
c.appen... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38ce00bb0ed2b59c861cc25b241027084f171d2b | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_day_cq_dam_core_impl_jmx_asset_update_monitor_impl_properties.py | d592ef58f49481def29987365cb8f003d96b71b6 | [
"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 | 1,343 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
aee502628f12dada2685572449717b022bbeb4b7 | bd4bb67830d8275ecb73e0c16fd073bedf4398e7 | /src/logger.py | 98ba91506b69616bae86780e8f1850fcc424f9dd | [] | no_license | Ino-Ichan/Classification-Template | 2b852dade7a91c5ab2c1275abf10b960461a4225 | 326f7acb18b66464871859a5feae7d7344992f27 | refs/heads/main | 2023-03-05T14:06:34.038733 | 2021-02-16T12:13:33 | 2021-02-16T12:13:33 | 339,387,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import logging
import sys
LOGGER = logging.getLogger()
FORMATTER = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
def setup_logger(out_file=None, stderr=True, stderr_level=logging.INFO, file_level=logging.DEBUG):
LOGGER.handlers = []
LOGGER.setLevel(min(stderr_level, file_level))
if stde... | [
"sys.b11noway@gmail.com"
] | sys.b11noway@gmail.com |
7ea7b38ad2ee78f8971b8481274e32c42a1c68e6 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/ssh/azext_ssh/vendored_sdks/hybridconnectivity/_hybrid_connectivity_management_api.py | 7b1c37cd7eaa1636e5b084f5c7127f89c6a1685e | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 2,743 | 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"
] | VSChina.noreply@github.com |
c4ec1632014a42eed3b4267a5cbabce6a560ed23 | da229938296bff6c49fcc25cd75e3bb41dd0711b | /Coursera_Advanced_Techs/Course_4_GANs/face_generator.py | 758516e46732e53fbb8fd7415a2bd13f2252ca27 | [] | no_license | benjaminmace/Tensorflow_git | c88c8103458fc25b441da848e50ce0735cb25c6c | 8ed218233f61b56d1e5f20b29c35c920af496e5e | refs/heads/main | 2023-04-08T19:59:55.903288 | 2021-04-17T02:30:49 | 2021-04-17T02:30:49 | 358,766,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras import mixed_precision
import numpy as np
physical_devices = tf.config.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_device... | [
"mace.benjamin.e@gmail.com"
] | mace.benjamin.e@gmail.com |
5ca9c0d5859261a581031c8c3df899f949355464 | c48b05e48fa4bc114b57033bfba378d7b23e4edb | /lib/modules/powershell/management/wdigest_downgrade.py | 59f48f67a0c9326054fc6876afd6f620d44dc88a | [
"MIT"
] | permissive | swagkarna/invader | 39f14ed42c176caaf62b7c418e091ce426d87cfb | 3e4adf56e089bdd16f6950419db7a31428bce352 | refs/heads/master | 2020-09-25T06:24:42.066772 | 2019-12-04T17:41:37 | 2019-12-04T17:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-WdigestDowngrade',
'Author': ['Entynetproject'],
'Description': ("Sets wdigest on the machine to explicitly use "
"logon cr... | [
"noreply@github.com"
] | swagkarna.noreply@github.com |
a502906a01f53cbe8a3ed8a9bfa7e3c86fdfdec7 | 5016f2c14dbdf49968b1656a456c3ad8fec2db04 | /poem/filters.py | 3126c1dd013dd971df3dc37b0c655aaf226e8d5a | [] | no_license | OllyDorvelus/poetster-backend | 56d90af4243375f65e4a96267ebac4a5da46c80e | 9f58e22d055eaa9fda065a16b077a4e48c4afc4a | refs/heads/master | 2022-12-03T01:58:03.738153 | 2020-07-19T18:17:48 | 2020-07-19T18:17:48 | 231,968,435 | 0 | 0 | null | 2022-11-22T04:38:41 | 2020-01-05T19:57:19 | Python | UTF-8 | Python | false | false | 1,353 | py | from django.contrib.auth import get_user_model
import django_filters
from poem.models import Poem, Genre, Category
User = get_user_model()
class PoemFilter(django_filters.FilterSet):
"""Custom filter set for poem model"""
user = django_filters.ModelChoiceFilter(field_name='user__pen_name', to_field_name='p... | [
"ollydorvelus@gmail.com"
] | ollydorvelus@gmail.com |
8e3660735d962b0ddda7889b33aaf9c7c1bfa535 | 16ecabb5d9010c7fa4aebb8ab852f7c6a19193db | /src/0414.py | fb81c9fcda71d094703f425a09e2055fdfb089b6 | [] | no_license | LeeSM0518/OpenCV-python | 74ff0d899d291a35f9cd82d2ef37835a0c5ccdf2 | 46c234879f5d48876ca0888bdede8bfb347b7c30 | refs/heads/master | 2020-04-30T19:35:33.201278 | 2020-02-25T14:35:20 | 2020-02-25T14:35:20 | 177,043,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # 0414.py
import cv2
import numpy as np
src = cv2.imread('../data/lena.jpg', cv2.IMREAD_GRAYSCALE)
dst = cv2.resize(src, dsize=(320, 240))
dst2 = cv2.resize(src, dsize=(0,0), fx=1.5, fy=1.2)
cv2.imshow('dst', dst)
cv2.imshow('dst2', dst2)
cv2.waitKey()
cv2.destroyAllWindows()
| [
"nalsm98@naver.com"
] | nalsm98@naver.com |
bf2a72402e584ef7fb26b9da59e1eb607bc82af8 | 54e5753c3a6b89ddcf26709b9a2a60cd1826dcc5 | /video_classification/server/readers.py | 63745dab68cfa03b52f375ea48c7d520813c8f16 | [
"Apache-2.0"
] | permissive | ZouJoshua/cv | ba972cc873dc95708f148f028299df1217ac5888 | bf8fcac104d405654f50953373ef0b7d993dd5cc | refs/heads/master | 2022-12-12T14:05:28.174905 | 2019-09-12T10:59:21 | 2019-09-12T10:59:21 | 207,218,768 | 2 | 0 | null | 2022-12-08T02:34:43 | 2019-09-09T03:45:38 | Python | UTF-8 | Python | false | false | 12,174 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
fa29c126ae7a6d5d881eb0af559a1b3f4081365b | 6719aa2e0598ec5bb9bb6bfd47390583b91dd015 | /94/99b.py | 1d7dc246cd2176be21d9bd447bb2c5905964cce9 | [] | no_license | huangyuzhen/let | 2f8ed6f41792a4bedf1b808d6b1c21e99f406da9 | 653d8a5aee803d2b414d0135f791a8f9d83bb272 | refs/heads/master | 2020-09-05T05:22:50.220859 | 2020-02-16T12:15:39 | 2020-02-16T12:15:39 | 219,995,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def recoverTree(self, root):
"""
:type root: TreeNode
:rtype: None Do not return anything, modify root in-p... | [
"huangyuzhen@earch"
] | huangyuzhen@earch |
7e0ae0c710f7af1276d60c4511375ee106fbf93e | a3ba2914ba948eb869ab9ed2436dd509fff95d1c | /manage.py | 753a115f153f81344c9669840bfc73465822b850 | [] | no_license | phonxis/vk-api-wall | 538909e8a443a744ffcc8ccbf380e29aeb5a3d49 | 5533997a908e41eb29367abb38a9e33603f0433f | refs/heads/master | 2022-11-30T06:55:26.317193 | 2017-04-29T11:59:41 | 2017-04-29T11:59:41 | 89,450,944 | 0 | 0 | null | 2022-11-22T01:11:43 | 2017-04-26T07:23:41 | JavaScript | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vkwall.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"phonxis@gmail.com"
] | phonxis@gmail.com |
ab3336bb2769b0f3fce7cc6bcc2990d7a18a5f45 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile_py3.py | c276b221a9094a069b6f347af4dd2777b54c3b4c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 2,703 | 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"
] | VSChina.noreply@github.com |
efeb7515bfede26b769a321a8c2d73fa24daf2c9 | ee492e85f4aee88e51269fd2ae07ae4d26c1e89d | /modules/s3/s3survey.py | eb3ef0489c7cf8a72421e1ebc154d3585232dfc8 | [
"MIT"
] | permissive | flavour/lacity | 0fcd6c764b01305ced5e556adf37247bae6e2914 | fd1f1cccdcea64d07143b29d4f88996e3af35c4b | refs/heads/master | 2021-05-15T01:31:09.660355 | 2018-05-15T15:53:06 | 2018-05-15T15:53:06 | 18,290,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,444 | py | # -*- coding: utf-8 -*-
"""
Custom UI Widgets used by the survey application
@copyright: 2009-2011 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to... | [
"fran@aidiq.com"
] | fran@aidiq.com |
550a1cb5f104b451f4c7d839a206fcd62e9864e4 | 8e1851b462ad8ca364adceffef142cdfa407fb98 | /official/vision/detection/modeling/architecture/heads.py | b07033784eee861a9a8ef24c21d75f5cadcda69f | [
"Apache-2.0"
] | permissive | bleqdyce/models | 74d14c730133911e4faf0d4b3591dd82499182a0 | 245f66dd6304869c082840dedce2f45c6af4e78f | refs/heads/master | 2020-03-22T16:56:12.704437 | 2019-10-25T10:03:01 | 2019-10-25T10:03:01 | 140,361,753 | 0 | 1 | Apache-2.0 | 2019-10-17T16:43:59 | 2018-07-10T01:40:03 | Python | UTF-8 | Python | false | false | 39,517 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b0ed8810405992ee6b7f9f3108f83fbfe5c3788b | ca78f93ebd8d4a592558cd5b5bd92f1d67f09352 | /manage.py | 42e23556a42411f2d348ba22b7c08cb6fa8be9fc | [] | no_license | anthonylauly/Cabangku | dad662a9fc5eb855c854a070835bc32464b4b52b | 2207007dbef388f0897d7376f42b7e5b8f7c1bac | refs/heads/main | 2023-01-23T21:03:03.075335 | 2020-12-07T12:44:07 | 2020-12-07T12:44:07 | 315,690,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | 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', 'cabangku.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"anthony.lauly1833@gmail.com"
] | anthony.lauly1833@gmail.com |
9065f4bee2142e99d95dd6f0edd39ce4f8f1a576 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1045.py | c09cf595a9687715e86e56f7d9d1e5a21c771b6a | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | from collections import defaultdict
class Solution:
"""
@param S: a string
@return: a list of integers representing the size of these parts
"""
def partitionLabels(self, S):
# Write your code here
occ = defaultdict(list)
ssize = len(S)
for i, c in enumerate(S):
occ[c].append(i)
... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
5e506d7259beb1a0a05d6d9dbe32d0737fd9d870 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2718/60676/235624.py | 813c8ffd8a8ef9041a476f9c028561d03a55447a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | raw_str = input()
N = len(raw_str)
graph = [[] for i in range(N)]
for i in range(N):
graph[i].append(i)
# Function to add edge
def add_edge(u, v):
graph[u].append(v)
graph[v].append(u)
for item1 in graph[u]:
for item2 in graph[v]:
if item2 not in graph[item1]:
grap... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
88680b17bf228808080d1ead3b7d70131754603e | f6ea5b606b9c10327cacc00aea356b4b014199b5 | /week02/2020-12-09/206.reverse-linked-list.py | 9496030fe785adc723b9b5ea60ac13ba6e7c47d0 | [] | no_license | youwithouto/leetcode-practice | afd291104ed269cf4e9a3f7d00b33f4e13a1c446 | 024c83142d82ad3deae6682ab419b7ead349d3d0 | refs/heads/master | 2023-02-23T03:45:01.241800 | 2021-01-30T11:44:32 | 2021-01-30T11:44:32 | 325,770,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head:
return head
pre, curr = None, head
while curr:
... | [
"youwithouto.z@gmail.com"
] | youwithouto.z@gmail.com |
19047b325a640b0232553ab17d04e46a097dd080 | 67ac354a3c380980161598acff3665c99c799f0c | /envergo/evaluations/migrations/0003_rename_rr_mention_evaluation_rr_mention_html_and_more.py | 720ff367ccc4dba087a79faa2bce9d4498f27d23 | [
"MIT"
] | permissive | MTES-MCT/envergo | 0c03eef60d22a6910b407064b8bc32a672041edd | 3a08f780e149e900c9031f47e5e0aa983707e384 | refs/heads/main | 2023-08-31T04:43:56.731868 | 2023-08-25T09:49:44 | 2023-08-25T09:49:44 | 383,059,680 | 3 | 1 | MIT | 2023-09-11T12:55:49 | 2021-07-05T07:55:49 | Python | UTF-8 | Python | false | false | 642 | py | # Generated by Django 4.2 on 2023-06-06 08:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("evaluations", "0002_evaluation_rr_mention"),
]
operations = [
migrations.RenameField(
model_name="evaluation",
old_name... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
d26d07d1694ae5cd20b999fe34c3497ee353ff94 | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVsFilter3PFJetSequence_PbPb_data_cff.py | 12188422d4d81e49c13594b6eb6bd8384019409d | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 14,985 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
9fda9339279c8e639747c36d7de332412f3aeb14 | 9f2b07eb0e9467e17448de413162a14f8207e5d0 | /tests/pytests/materials/obsolete/TestElasticMaterial.py | 5903a9a2a151e3bb370310c654b8d45f0cd1c598 | [
"MIT"
] | permissive | fjiaqi/pylith | 2aa3f7fdbd18f1205a5023f8c6c4182ff533c195 | 67bfe2e75e0a20bb55c93eb98bef7a9b3694523a | refs/heads/main | 2023-09-04T19:24:51.783273 | 2021-10-19T17:01:41 | 2021-10-19T17:01:41 | 373,739,198 | 0 | 0 | MIT | 2021-06-04T06:12:08 | 2021-06-04T06:12:07 | null | UTF-8 | Python | false | false | 2,294 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
ea90cef0312601c5fc899e8c51c09a0590131504 | 981a006a2c63082e36e67d0a273d89698c910cb9 | /test/manual/models_classy_vision_model_test.py | b0e3a5168f4666401e924b9aa20c534743979693 | [
"MIT"
] | permissive | elrach/ClassyVision | 8d3aa5e431868dc3f657efa395ec7d67a72df0d2 | ac2993df04dcb85d1ad85cc020da1ac9cfa28066 | refs/heads/master | 2022-12-23T10:22:11.757461 | 2020-09-12T06:20:38 | 2020-09-12T06:23:14 | 295,558,705 | 0 | 0 | MIT | 2020-09-14T23:05:00 | 2020-09-14T23:04:59 | null | UTF-8 | Python | false | false | 3,853 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import copy
import unittest
from collections import defaultdict
from test.generic.config_utils import get_test_model_co... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
84a1de4e8208362cd7122fe2e5af88fe365c5a60 | 5f66f92c2dbfcee2460e79e43880c915210c2735 | /mytest/type_conversion/int2string.py | 788aa911dcc33a83073e7910ecca5cc259d43645 | [] | no_license | edu-athensoft/ceit4101python | 0bf7e8a3e06b4c54aabffac6777e8284e0593c0d | b6a63b489c8acf0f1d8e676d3f63c56c5897ab6d | refs/heads/master | 2023-08-31T02:59:12.044402 | 2023-08-25T06:22:54 | 2023-08-25T06:22:54 | 170,928,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # hex string to int
h = hex(15)
print(h, type(h))
a = int(h, 16)
print(a, type(a)) | [
"lada314@gmail.com"
] | lada314@gmail.com |
3a704f1aaf4727316d31bcbd105454e91223359f | 4c2466568dd3f702e99026fe7d1b47617aa498ee | /mailling/survey.py | 2084069b6243dba60329d75e8aa48ec2eaeaa683 | [
"MIT"
] | permissive | evhart/energyuse | 4c8cae80d2683090f2e5b45d4986d1c018f897f4 | be76bac535bfea33d30867e232c2dcb35e1c7740 | refs/heads/master | 2023-01-03T18:34:33.104523 | 2019-02-04T17:20:16 | 2019-02-04T17:20:16 | 167,557,294 | 0 | 0 | MIT | 2022-12-26T20:15:35 | 2019-01-25T14:08:06 | JavaScript | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(1,'/data/web/energyuse.eu/energyuse2')
sys.path.insert(1,'/data/web/energyuse.eu/energyuse2/mailling/')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "energyuse.settings")
import django
import energyuse.settings
energyuse.settings.TEMPLATE_DIRS = (os.path... | [
"evhart@users.noreply.github.com"
] | evhart@users.noreply.github.com |
5d5f57ccc35cc56ecd5057db62aea07ed9e183a2 | 0ba5622abc2125ac8a9907757680da4d7cb7b47e | /Knowrob/indigo/indigo-knowrob-dev/catkin_ws/devel/lib/python2.7/dist-packages/iai_control_msgs/msg/_PTUAction.py | 6bf11daf55300543f0c68cbf130eb8d4ed304fa7 | [] | no_license | IoT-Lab-Minden/docker-ros | c2a327117bdf1d0b861d4580156e595a079ec5d5 | 5c57c15717cbcae515d82c3dc75470587bb2508e | refs/heads/master | 2021-01-18T03:33:22.128596 | 2017-05-17T13:48:05 | 2017-05-17T13:48:05 | 85,809,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | /root/catkin_ws/devel/.private/iai_control_msgs/lib/python2.7/dist-packages/iai_control_msgs/msg/_PTUAction.py | [
"aljoscha.poertner@fh-bielefeld.de"
] | aljoscha.poertner@fh-bielefeld.de |
a898954d7cec13baa5965b25eab741bdb9a06bcb | bdc10ba57424040129cc72ad018ff26bc8bca66a | /ConfigDefinitions/UserConfigs/SMHTT_2018_MCOnly_Configs_Deep/VBFHWWConfig.py | a427a25e8e6b5cbe44bdfcd07367c384f2197eb0 | [] | no_license | aloeliger/Jesterworks | 61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe | 96a22bac4ce20b91aba5884eb0e5667fcea3bc9a | refs/heads/master | 2021-06-09T15:39:06.976110 | 2021-04-23T11:25:06 | 2021-04-23T11:25:06 | 157,698,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config
from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2018_MC_Collection import MCCollection as BranchCollection
from ConfigDefinitions.CuttingDefinitions.UserCutConfigs.SMHTT2018Cuts_MC_wDeep import SMHTT2018Cuts ... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
526e37403afcac523dda9065c9c6f7fe1142648d | f8da66ab1fe942e39dcdaf67ae3432ffff42decf | /sphinxcontrib/sadisp.py | d9a08c689fe3de03b6cc06bea66e0a811152bb76 | [] | no_license | Global-localhost/sadisplay | 523b5b2b7dfe420afcb5cca542cf2b2c7462b19e | dd0d979df2065b55eb71c5098557346f3e1b769f | refs/heads/master | 2022-12-03T23:14:45.711200 | 2020-07-19T21:30:02 | 2020-07-19T21:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | # -*- coding: utf-8 -*-
import os
import sys
import logging
import subprocess
try:
from hashlib import sha1
except ImportError: # Python<2.5
from sha import sha as sha1 # pyflakes:ignore
from docutils.parsers.rst import Directive
from docutils.parsers.rst import directives
from docutils import nodes
from s... | [
"tatarkin.evg@gmail.com"
] | tatarkin.evg@gmail.com |
422dca4e12aba57c37015f0fb2057642616276b2 | 71ec941712decba1f7326e83c02df998a55e8fb3 | /tensorflow_datasets/core/features/text_feature.py | 588e528ebec527bf261c7d018462de120f1f108a | [
"Apache-2.0"
] | permissive | temiafeye/datasets | 6c79d30a948c4bdac577dd2fe004aed51e079beb | 4d8c05c471c710aaf3302046b73e222a70d663c1 | refs/heads/master | 2020-04-20T18:03:50.609952 | 2019-03-11T06:27:14 | 2019-03-11T06:27:14 | 169,007,422 | 0 | 0 | null | 2019-02-03T23:57:17 | 2019-02-03T23:57:17 | null | UTF-8 | Python | false | false | 5,136 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets 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 appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
75d3d068b3ab6533db2f3cf5ae0ceb05de6ab1a3 | 39f817c236bf119145a315f4839c519f8d904e0a | /python problems/set problems/setMembership.py | e36de787953e745be049c3ffb52ca949d7cc80b6 | [] | no_license | tmnewt/hacker-rank-python-work | 350cafa2b073766e87888a749b97ed4b2fb4788c | 5c6eef15c2611c5f7a5b8b272b8e4191ce58ff24 | refs/heads/master | 2023-01-24T11:36:10.573113 | 2020-12-09T00:26:22 | 2020-12-09T00:26:22 | 270,749,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | '''Union'''
# https://www.hackerrank.com/challenges/py-set-union/problem
testS1 = set([1,2,3,4,5,6,7,8,9])
testS2 = set([10,1,2,3,11,21,55,6,8])
n1 = int(input())
s1 = set(map(int, input().split()))
n2 = int(input())
s2 = set(map(int, input().split()))
u = s1.union(s2)
print(len(u))
'''Intersection'''
# https://ww... | [
"timothy.newton.cma13@gmail.com"
] | timothy.newton.cma13@gmail.com |
e87a2941ac5c2bbe6ca85b62290c90c98e4ca597 | 21e6fd368aee8acb80747141291a00f83fb67d1e | /python/WoT/SourcesRes/9.10/client/gui/scaleform/daapi/view/meta/promopremiumigrwindowmeta.py | 2f60a52b8a8e717148583a2c651e0a66d6db1b2b | [] | no_license | Infernux/Projects | e7d1eab9b25471c543aa82985ec0bfcca2cfe05e | da7a9f71231b76dafbc4c7348065f1fc2dead854 | refs/heads/master | 2023-08-24T09:17:23.834855 | 2023-08-05T14:18:46 | 2023-08-05T14:18:46 | 23,395,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # 2015.01.14 22:24:30 CET
from gui.Scaleform.framework.entities.DAAPIModule import DAAPIModule
class PromoPremiumIgrWindowMeta(DAAPIModule):
def as_setTitleS(self, value):
if self._isDAAPIInited():
return self.flashObject.as_setTitle(value)
def as_setTextS(self, value):
if self.... | [
"mrnux@nux.com"
] | mrnux@nux.com |
a41c56cf148ef1f2e472cd7802c9f82f4f8eea61 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_snapshot_config_response.py | 8dc93a6a96a00d26ad66bc422dae0e4feee08ffb | [
"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 | 2,463 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateSnapshotConfigResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
an... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b72d635e69ef706a8db49cfc58aac5acceb085c5 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/third_party/google/api/logging_pb2.py | fdee8e4f5bc4f3c21ff72c883d64b531971d32ad | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 6,722 | py | # -*- coding: utf-8 -*-
# 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 o... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
92c6bf94a834cd1236a5fac735bb1e8c9bf44809 | 1d958cdaa3962f73b25086f042c21dfaec5d0a4b | /Algorytmy/unstructuredAlgorithms/_SPOJ/cyfrySilni.py | 82969bc31f22c484fdf0812e341868b7a72f28e5 | [] | no_license | kfigon/RandomCode | 6ed4e6d13e7c04e9ea75ba0cdaab6294f594d129 | 3925ccc8ae05faffc42890b3c69490dbaf552522 | refs/heads/master | 2023-08-07T23:43:23.232719 | 2023-07-30T18:01:25 | 2023-07-30T18:01:25 | 98,911,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import unittest
from typing import List, Tuple
def factorial(x: int) -> int:
if x == 0:
return 1
return x * factorial(x-1)
def factorialIter(x: int) -> int:
if x < 2:
return 1
out = 1
for i in range(1,x+1):
out *= i
return out
# zwroc cyfre dziesiatek i cyfre jednosci ... | [
"kamil.figon@gmail.com"
] | kamil.figon@gmail.com |
eb76e1d54133a6a75599e3cf36f7882ba290902c | fb8909f8ca2418e3ee25469073fa06636c3d294b | /src/unity/python/turicreate/toolkits/image_similarity/image_similarity.py | 804f0557c4bac6bff941dfdcf1569d7a28d6d704 | [
"BSD-3-Clause"
] | permissive | fossabot/turicreate | a1e9d95fc1f68e7074d1d8024ffd64de82463d39 | a500d5e52143ad15ebdf771d9f74198982c7c45c | refs/heads/master | 2020-12-02T21:45:09.045339 | 2019-12-31T17:50:02 | 2019-12-31T17:50:02 | 231,127,861 | 0 | 0 | BSD-3-Clause | 2019-12-31T17:50:01 | 2019-12-31T17:50:00 | null | UTF-8 | Python | false | false | 16,251 | py | # -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
"""
Class definition and utilities for the image similarity toolkit.
"""
from __futu... | [
"znation@apple.com"
] | znation@apple.com |
ddc4581f339a51c64e98322f5b20941e61fa54aa | 22903b998f7d981c93bf14c27f7ba71697cdd19d | /From_Scratch/03_PyORBIT_Sims/00_Split_HKICKER_With_MULTIPOLE/Plot_PTC_cf_MADX_Closed_Orbit.py | dbaa7d88f71f728e2f2bae1f0598795b2f3f003d | [] | no_license | HaroonRafique/PS-injection-bump | d062e96e6051090c59a09b34118803975c2baf9d | a751e2df42818f0de3ff2b158840eb6f5148da8b | refs/heads/master | 2023-01-19T18:47:48.313522 | 2020-11-26T23:10:34 | 2020-11-26T23:10:34 | 189,207,614 | 0 | 1 | null | 2019-05-29T10:55:43 | 2019-05-29T10:55:38 | null | UTF-8 | Python | false | false | 6,258 | py | # Script to read multiple PTC twiss files and plot the closed orbit
# Expects a PTC twiss created with the following command:
# select, flag=ptc_twiss, column=name, s, betx, px, bety, py, disp3, disp3p, disp1, disp1p, x, y;
# 26.08.19 Haroon Rafique CERN BE-ABP-HSI
import matplotlib.pyplot as plt
from matplotlib.line... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
f6a642c7d310cd1b2f6a9d6c27dc0515af8b2e93 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/aws/tests/integration/targets/s3_bucket_notification/files/mini_lambda.py | d0d08dae90f1d40c0e758842def42906a908d5f2 | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 328 | py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!'... | [
"sifang@cisco.com"
] | sifang@cisco.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.