hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35deafd975317c421134eb40936909b54e0afa4b | 1,701 | py | Python | server/swagger_server/test/test_statements_controller.py | lhannest/pharos-beacon | 101da505203622a76882c1b21dc861a8143ed0d1 | [
"MIT"
] | null | null | null | server/swagger_server/test/test_statements_controller.py | lhannest/pharos-beacon | 101da505203622a76882c1b21dc861a8143ed0d1 | [
"MIT"
] | null | null | null | server/swagger_server/test/test_statements_controller.py | lhannest/pharos-beacon | 101da505203622a76882c1b21dc861a8143ed0d1 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from swagger_server.models.beacon_annotation import BeaconAnnotation # noqa: E501
from swagger_server.models.beacon_statement import BeaconStatement # noqa: E501
from swagger_server.test import BaseTestCase
clas... | 31.5 | 82 | 0.562022 | 1,315 | 0.773075 | 0 | 0 | 0 | 0 | 0 | 0 | 509 | 0.299236 |
35df05205df26d9b8705fd6ac8ad49277f753502 | 752 | py | Python | mailmerge/smtp_dummy.py | Denzeldeveloper/Python-Auto-MailMerge- | 4df95a67ef1b1c0f79a09f6c1c373b81d4220822 | [
"MIT"
] | null | null | null | mailmerge/smtp_dummy.py | Denzeldeveloper/Python-Auto-MailMerge- | 4df95a67ef1b1c0f79a09f6c1c373b81d4220822 | [
"MIT"
] | null | null | null | mailmerge/smtp_dummy.py | Denzeldeveloper/Python-Auto-MailMerge- | 4df95a67ef1b1c0f79a09f6c1c373b81d4220822 | [
"MIT"
] | null | null | null | """Dummy SMTP API."""
class SMTP_dummy(object): # pylint: disable=useless-object-inheritance
# pylint: disable=invalid-name, no-self-use
"""Dummy SMTP API."""
# Class variables track member function calls for later checking.
msg_from = None
msg_to = None
msg = None
def login(self, login... | 25.066667 | 71 | 0.606383 | 727 | 0.966755 | 0 | 0 | 0 | 0 | 0 | 0 | 286 | 0.380319 |
35dfaf06e8a5f5aaf7ae1089fe23e645c5b81780 | 3,395 | py | Python | steepshot_bot/steepshot_api.py | weyoume/wetelegrambot | fcee44a701319b190484e91b3ce444571a5bdd90 | [
"MIT"
] | null | null | null | steepshot_bot/steepshot_api.py | weyoume/wetelegrambot | fcee44a701319b190484e91b3ce444571a5bdd90 | [
"MIT"
] | null | null | null | steepshot_bot/steepshot_api.py | weyoume/wetelegrambot | fcee44a701319b190484e91b3ce444571a5bdd90 | [
"MIT"
] | null | null | null | import json
import logging
import requests
from requests.exceptions import RequestException
from steepshot_bot import settings
from steepshot_bot.exceptions import SteepshotServerError
from steepshot_bot.steem import get_signed_transaction
logger = logging.getLogger(__name__)
API_URLS = {
'posts_recent': setti... | 34.642857 | 110 | 0.648895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 728 | 0.214433 |
35e0f0d3502703e87d1e48941fca0756c0155a59 | 10,315 | py | Python | kernelized_correlation_filter.py | ElnuraMusaoglu/KernelizedCorrelationFilter | 78eab4297218b107cf7688e7e7c76d79b5609893 | [
"MIT"
] | null | null | null | kernelized_correlation_filter.py | ElnuraMusaoglu/KernelizedCorrelationFilter | 78eab4297218b107cf7688e7e7c76d79b5609893 | [
"MIT"
] | null | null | null | kernelized_correlation_filter.py | ElnuraMusaoglu/KernelizedCorrelationFilter | 78eab4297218b107cf7688e7e7c76d79b5609893 | [
"MIT"
] | null | null | null | '''
Elnura Musaoglu
2021
'''
import numpy as np
import cv2
from numpy.fft import fftn, ifftn, fft2, ifft2, fftshift
from numpy import conj, real
from utils import gaussian2d_rolled_labels, cos_window
from hog_cpp.fhog.get_hog import get_hog
vgg_path = 'model/imagenet-vgg-verydeep-19.mat'
def create_model():
fr... | 40.93254 | 136 | 0.575279 | 9,630 | 0.933592 | 0 | 0 | 0 | 0 | 0 | 0 | 1,742 | 0.16888 |
35e24c24b699b1a26e6f2ffbc1f1f23fc306cb6b | 3,839 | py | Python | sketches/demo_02a/editor.py | heerdyes/raspi-art | 2e38c1926b6a6f4c745e0629b193d9c3c15acc22 | [
"MIT"
] | 1 | 2021-02-02T12:36:07.000Z | 2021-02-02T12:36:07.000Z | sketches/demo_02a/editor.py | heerdyes/raspi-art | 2e38c1926b6a6f4c745e0629b193d9c3c15acc22 | [
"MIT"
] | null | null | null | sketches/demo_02a/editor.py | heerdyes/raspi-art | 2e38c1926b6a6f4c745e0629b193d9c3c15acc22 | [
"MIT"
] | null | null | null | from arch import *
from wnds import *
from helper import *
import os
class Ed(Wnd,Pub):
def __init__(self,x,y,w,h,nm):
Wnd.__init__(self,x,y,w,h,nm)
Pub.__init__(self)
self.txt=['']
self.r=0
self.c=0
self.mt=24
def rendercursor(self,c):
rowht=20
... | 28.021898 | 79 | 0.505079 | 3,768 | 0.981506 | 0 | 0 | 0 | 0 | 0 | 0 | 225 | 0.058609 |
35e6fd9082eae1ca801cddf99ab1c81fb1bb1309 | 23,626 | py | Python | app.py | Ator97/dataMiningDataviz | 0cf78b93c45ee08f73045b057f95290f8bf7d26e | [
"Apache-2.0"
] | null | null | null | app.py | Ator97/dataMiningDataviz | 0cf78b93c45ee08f73045b057f95290f8bf7d26e | [
"Apache-2.0"
] | null | null | null | app.py | Ator97/dataMiningDataviz | 0cf78b93c45ee08f73045b057f95290f8bf7d26e | [
"Apache-2.0"
] | null | null | null | import base64
import datetime
import io
import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
import dash_table
import pandas as pd
import plotly.express as px
from apyori import apriori
from scipy.spatial import distance
import plotly.gra... | 41.017361 | 206 | 0.526496 | 0 | 0 | 0 | 0 | 12,767 | 0.539717 | 0 | 0 | 7,107 | 0.300444 |
35e7e19298ec398add76703d93ea4b308eefc9cc | 3,394 | py | Python | pepys_import/file/highlighter/support/export.py | debrief/pepys-import | 12d29c0e0f69e1119400334983947893e7679b6b | [
"Apache-2.0"
] | 4 | 2021-05-14T08:22:47.000Z | 2022-02-04T19:48:25.000Z | pepys_import/file/highlighter/support/export.py | debrief/pepys-import | 12d29c0e0f69e1119400334983947893e7679b6b | [
"Apache-2.0"
] | 1,083 | 2019-11-06T17:01:07.000Z | 2022-03-25T10:26:51.000Z | pepys_import/file/highlighter/support/export.py | debrief/pepys-import | 12d29c0e0f69e1119400334983947893e7679b6b | [
"Apache-2.0"
] | 4 | 2019-11-06T12:00:45.000Z | 2021-06-09T04:18:28.000Z | import html
from tqdm import tqdm
from .color_picker import color_for, html_color_for, mean_color_for
def export_report(filename, chars, dict_colors, include_key=False):
"""
Export a HTML report showing all the extraction usages for the file.
:param filename: Output filename
:param chars: Character... | 32.634615 | 99 | 0.578079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,324 | 0.3901 |
35e8080312909f6045b82180fc2168f39798312c | 4,694 | py | Python | Task 4/scripts/utilities_activity7.py | gourab337/Technocolab_DL_Internship | 269c578b9eab5a02f65d9c0952e19db69bf9a1b0 | [
"MIT"
] | 1 | 2020-11-29T20:09:46.000Z | 2020-11-29T20:09:46.000Z | Task 4/scripts/utilities_activity7.py | gourab337/Technocolab_DL_Internship | 269c578b9eab5a02f65d9c0952e19db69bf9a1b0 | [
"MIT"
] | null | null | null | Task 4/scripts/utilities_activity7.py | gourab337/Technocolab_DL_Internship | 269c578b9eab5a02f65d9c0952e19db69bf9a1b0 | [
"MIT"
] | 1 | 2020-12-01T05:39:11.000Z | 2020-12-01T05:39:11.000Z | """Utility functions used in Activity 7."""
import random
import numpy as np
from matplotlib import pyplot as plt
from keras.callbacks import TensorBoard
def create_groups(data, group_size=7):
"""Create distinct groups from a continuous series.
Parameters
----------
data: np.array
Series of... | 27.290698 | 82 | 0.639966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,881 | 0.613762 |
ea0058bf191d7578f0be7e70bc2cea8837da26ba | 10,577 | py | Python | pygenenet/CausalNetwork.py | ttdtrang/pygenenet | 49cc0c088e4f633f18e0294e42a0603a7027f06d | [
"MIT"
] | null | null | null | pygenenet/CausalNetwork.py | ttdtrang/pygenenet | 49cc0c088e4f633f18e0294e42a0603a7027f06d | [
"MIT"
] | null | null | null | pygenenet/CausalNetwork.py | ttdtrang/pygenenet | 49cc0c088e4f633f18e0294e42a0603a7027f06d | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import itertools
__metaclass__ = type
def prob_incr(species, proj_compressed_data, min_occurences = 10):
p = proj_compressed_data['count_incr']/ proj_compressed_data['count']
p[proj_compressed_data['count'] < min_occurences] = -1
return p
def score(species,IV, G, ex... | 45.008511 | 143 | 0.525102 | 814 | 0.076959 | 0 | 0 | 0 | 0 | 0 | 0 | 2,647 | 0.25026 |
ea008637c73dda8e84514900695de29b3ed914c6 | 14,069 | py | Python | animation_retarget/animation_retarget_mh.py | curmil/makehuman-utils | 1e1a56479bc1deac613802e891abf440cbeb342e | [
"CC0-1.0"
] | 3 | 2018-04-16T15:14:54.000Z | 2021-08-11T16:00:58.000Z | animation_retarget/animation_retarget_mh.py | curmil/makehuman-utils | 1e1a56479bc1deac613802e891abf440cbeb342e | [
"CC0-1.0"
] | 1 | 2020-10-29T07:53:51.000Z | 2020-10-29T07:53:51.000Z | animation_retarget/animation_retarget_mh.py | curmil/makehuman-utils | 1e1a56479bc1deac613802e891abf440cbeb342e | [
"CC0-1.0"
] | 5 | 2019-08-09T15:21:50.000Z | 2022-02-21T14:02:45.000Z | #!/usr/bin/python
"""
**Project Name:** MakeHuman
**Product Home Page:** http://www.makehuman.org/
**Code Home Page:** https://bitbucket.org/MakeHuman/makehuman/
**Author:** Jonas Hauquier, Thomas Larsson
**Copyright(c):** MakeHuman Team 2001-2015
**Licensing:** AGPL3
This program... | 36.074359 | 157 | 0.665435 | 7,555 | 0.536996 | 0 | 0 | 546 | 0.038809 | 0 | 0 | 6,022 | 0.428033 |
ea01af5836b19c682f107e67a34eda620b66f4f3 | 1,376 | py | Python | Python/Config.py | mariocar/Nerf_Aimbot | 5afe56c9904b9facc59342e316e126dc11a1157b | [
"MIT"
] | 13 | 2020-10-19T15:16:34.000Z | 2021-12-13T19:20:17.000Z | Python/Config.py | mariocar/Nerf_Aimbot | 5afe56c9904b9facc59342e316e126dc11a1157b | [
"MIT"
] | 1 | 2022-03-14T18:45:56.000Z | 2022-03-20T00:04:04.000Z | Python/Config.py | DDeGonge/Nerf_Aimbot | 5afe56c9904b9facc59342e316e126dc11a1157b | [
"MIT"
] | 5 | 2020-10-16T17:27:12.000Z | 2022-03-18T17:52:39.000Z | """ MECHANICAL PARAMETERS """
s0_step_per_rev = 27106
s1_step_per_rev = 27106
pitch_travel_rads = 0.5
yaw_travel_rads = 1.2
pitch_center_rads = 0.21
yaw_center_rads = 0.59
default_vel_radps = 2.5
default_accel_radps2 = 20
trigger_min_pwm = 40
trigger_max_pwm = 120
trigger_hold_s = 0.5
""" PI PINOUTS """
half_press... | 18.849315 | 73 | 0.734012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 476 | 0.34593 |
ea030c574075dd05328271b1ccc630cdf7f9c443 | 1,303 | py | Python | solum-6.0.0/solum/objects/sqlalchemy/execution.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 39 | 2015-09-26T01:30:52.000Z | 2021-05-20T23:37:43.000Z | solum-6.0.0/solum/objects/sqlalchemy/execution.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | solum-6.0.0/solum/objects/sqlalchemy/execution.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 30 | 2015-10-25T18:06:39.000Z | 2020-01-14T12:14:06.000Z | # Copyright 2014 - 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 or agreed to in ... | 33.410256 | 75 | 0.744436 | 588 | 0.451266 | 0 | 0 | 109 | 0.083653 | 0 | 0 | 701 | 0.537989 |
ea045fe7b9c17066011316e1d2c7191ab7f63a8f | 5,143 | py | Python | cryptopunks/utils.py | tesla809/colorpunx | bee4557ab87a3804b249eaad4fb83fc96942fad7 | [
"Apache-2.0"
] | 1 | 2021-11-19T23:56:15.000Z | 2021-11-19T23:56:15.000Z | cryptopunks/utils.py | tesla809/colorpunx | bee4557ab87a3804b249eaad4fb83fc96942fad7 | [
"Apache-2.0"
] | null | null | null | cryptopunks/utils.py | tesla809/colorpunx | bee4557ab87a3804b249eaad4fb83fc96942fad7 | [
"Apache-2.0"
] | null | null | null | """Tools for working with Cryptopunk NFTs; this includes utilities for data analysis and image preparation for training machine learning models using Cryptopunks as training data.
Functions:
get_punk(id)
pixel_to_img(pixel_str, dim)
flatten(img)
unflatten(img)
sort_dict_by_function_of_value(d, f)
... | 27.356383 | 180 | 0.614816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,163 | 0.420572 |
ea058d42499e1a5f03be44819e5b160692dcae59 | 307 | py | Python | newspaper/articles/admin.py | Krishna-Patil/Newspaper_app | 2cf209899c00bb6a086aacb0dff4767f75226cb7 | [
"MIT"
] | null | null | null | newspaper/articles/admin.py | Krishna-Patil/Newspaper_app | 2cf209899c00bb6a086aacb0dff4767f75226cb7 | [
"MIT"
] | null | null | null | newspaper/articles/admin.py | Krishna-Patil/Newspaper_app | 2cf209899c00bb6a086aacb0dff4767f75226cb7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
class CommentInLine(admin.TabularInline):
model = Comment
class ArticleAdmin(admin.ModelAdmin):
inlines = [
CommentInLine,
]
admin.site.register(Article, ArticleAdmin)
admin.site.register(Comment)
| 17.055556 | 42 | 0.736156 | 143 | 0.465798 | 0 | 0 | 0 | 0 | 0 | 0 | 28 | 0.091205 |
ea06238c6c6f8de7ed088df9c80dadbb3372a8f9 | 1,277 | py | Python | GUI/Generic/GTasks.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Generic/GTasks.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Generic/GTasks.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #
# PyGUI - Tasks - Generic
#
from GUI.Properties import Properties, overridable_property
class Task(Properties):
"""A Task represents an action to be performed after a specified
time interval, either once or repeatedly.
Constructor:
Task(proc, interval, repeat = False, start = True)
Creates a task to cal... | 33.605263 | 83 | 0.740799 | 1,182 | 0.925607 | 0 | 0 | 0 | 0 | 0 | 0 | 930 | 0.728269 |
ea06d13a5da8e06d3e01f08a6a3425f88f182886 | 755 | py | Python | presentingfeatures/forms.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | null | null | null | presentingfeatures/forms.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | 5 | 2021-03-18T20:13:38.000Z | 2022-01-13T00:35:37.000Z | presentingfeatures/forms.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | null | null | null | from django import forms
from presentingfeatures.models import Status, Investigation
class StatusForm(forms.ModelForm):
class Meta:
model = Status
fields = ('details', 'advice')
class UploadForm(forms.ModelForm):
type_choice = [
('Others', 'Others'), ('Marker', 'Marker'),
('... | 26.034483 | 71 | 0.545695 | 663 | 0.878146 | 0 | 0 | 0 | 0 | 0 | 0 | 225 | 0.298013 |
ea088f92e58e2a58e35be9d342ed82158fd80454 | 209 | wsgi | Python | generators/app/templates/settings/apache/backend.wsgi | hallucino5105/generator-my-react-project | 18a7fbe70d1c847df8a043e1f8845e63938dadd4 | [
"Apache-2.0"
] | null | null | null | generators/app/templates/settings/apache/backend.wsgi | hallucino5105/generator-my-react-project | 18a7fbe70d1c847df8a043e1f8845e63938dadd4 | [
"Apache-2.0"
] | 5 | 2020-02-26T11:29:36.000Z | 2020-02-26T11:30:05.000Z | generators/app/templates/settings/apache/backend.wsgi | hallucino5105/generator-my-react-project | 18a7fbe70d1c847df8a043e1f8845e63938dadd4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from app.app import application
| 16.076923 | 59 | 0.77512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 36 | 0.172249 |
ea08f7de993fe4b0b5eb995cb3bc781d63e74534 | 582 | py | Python | mundo2/parte3/partea/ex058.py | fcdennis/CursoPython | 485ef7e706af74eae9ee336714ddd8b493bd8e5d | [
"MIT"
] | null | null | null | mundo2/parte3/partea/ex058.py | fcdennis/CursoPython | 485ef7e706af74eae9ee336714ddd8b493bd8e5d | [
"MIT"
] | null | null | null | mundo2/parte3/partea/ex058.py | fcdennis/CursoPython | 485ef7e706af74eae9ee336714ddd8b493bd8e5d | [
"MIT"
] | null | null | null | from random import randint
computador = randint(0, 10)
print('Sou seu computador...\nAcabei de pensar e um número entre 0 e 10.')
print('Será que você consegue adivinhar qual foi?')
palpite = int(input('Qual é o seu palpite? '))
contador = 1
while palpite != computador:
contador += 1
if palpite > computador:
... | 36.375 | 74 | 0.656357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 294 | 0.499151 |
ea0bc106c32b9bce7d4aafa4b320fbbe8499e3bd | 3,215 | py | Python | June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py | Nirothipan/labs | 1cdd27dae1b03b78686037ed1bbc69ade3b44f33 | [
"Apache-2.0"
] | 2 | 2020-06-25T08:28:33.000Z | 2022-02-17T14:12:43.000Z | June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py | Nirothipan/labs | 1cdd27dae1b03b78686037ed1bbc69ade3b44f33 | [
"Apache-2.0"
] | 4 | 2020-04-30T18:25:31.000Z | 2020-07-15T21:36:41.000Z | June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py | Nirothipan/labs | 1cdd27dae1b03b78686037ed1bbc69ade3b44f33 | [
"Apache-2.0"
] | 13 | 2020-04-30T18:19:53.000Z | 2020-07-21T16:27:51.000Z | #!/usr/bin/env python3
import json
from http import server, HTTPStatus
import socketserver
import ssl
import datetime
import uuid
import time
class EndpointHandler(server.BaseHTTPRequestHandler):
def do_GET(self):
self.common_handler()
def do_POST(self):
self.common_handler()
def common_h... | 31.519608 | 109 | 0.434215 | 2,930 | 0.911353 | 0 | 0 | 657 | 0.204355 | 0 | 0 | 782 | 0.243235 |
ea0d7555db6e36c6d337cec2eb924498e3225c71 | 259 | py | Python | tilemapbase/__init__.py | Simage/TileMapBase | 85665c24a372028e327396a4b0feaca22c67d3ce | [
"MIT"
] | null | null | null | tilemapbase/__init__.py | Simage/TileMapBase | 85665c24a372028e327396a4b0feaca22c67d3ce | [
"MIT"
] | null | null | null | tilemapbase/__init__.py | Simage/TileMapBase | 85665c24a372028e327396a4b0feaca22c67d3ce | [
"MIT"
] | null | null | null | __version__ = "0.4.6"
from .tiles import init, get_cache
from .mapping import project, to_lonlat, Extent, Plotter, extent_from_frame
from .utils import start_logging
from . import tiles
from . import mapping
from . import utils
from . import ordnancesurvey
| 23.545455 | 75 | 0.787645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0.027027 |
ea0e70ed7f48b9ea77840bcc6953a91b092a58f3 | 1,166 | py | Python | src/bpp/migrations/0232_auto_20210101_1751.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/migrations/0232_auto_20210101_1751.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/migrations/0232_auto_20210101_1751.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.11 on 2021-01-01 16:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bpp", "0231_ukryj_status_korekty"),
]
operations = [
migrations.AlterField(
model_name="autor",
name="pseudonim",
... | 36.4375 | 297 | 0.608919 | 1,091 | 0.920675 | 0 | 0 | 0 | 0 | 0 | 0 | 583 | 0.491983 |
ea112a6e9b0c0b4d5227f718d1442eae696135fa | 2,251 | py | Python | Tensorflow_2X_PythonFiles/demo51_texttokenizer.py | mahnooranjum/Tensorflow_DeepLearning | 65ab178d4c17efad01de827062d5c85bdfb9b1ca | [
"MIT"
] | null | null | null | Tensorflow_2X_PythonFiles/demo51_texttokenizer.py | mahnooranjum/Tensorflow_DeepLearning | 65ab178d4c17efad01de827062d5c85bdfb9b1ca | [
"MIT"
] | null | null | null | Tensorflow_2X_PythonFiles/demo51_texttokenizer.py | mahnooranjum/Tensorflow_DeepLearning | 65ab178d4c17efad01de827062d5c85bdfb9b1ca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Demo51_TextTokenizer.ipynb
# **Spit some [tensor] flow**
We need to learn the intricacies of tensorflow to master deep learning
`Let's get this over with`
## So we OHE the last NLP problem, why not do the same and feed it to the neural network? Well because, features in a language, are no... | 24.467391 | 149 | 0.665038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,083 | 0.48112 |
ea12cb6de419df1a315ae612d46dcba363f94b68 | 5,472 | py | Python | floodsystem/flood.py | Manz2TheMax/1A_FloodWarning_Group2 | cce498c69daf7ea409463e39aa6beda19203c155 | [
"MIT"
] | null | null | null | floodsystem/flood.py | Manz2TheMax/1A_FloodWarning_Group2 | cce498c69daf7ea409463e39aa6beda19203c155 | [
"MIT"
] | null | null | null | floodsystem/flood.py | Manz2TheMax/1A_FloodWarning_Group2 | cce498c69daf7ea409463e39aa6beda19203c155 | [
"MIT"
] | null | null | null | """This module provides tools for assessing flood risk
"""
from datetime import timedelta
from floodsystem.datafetcher import fetch_measure_levels
import numpy as np
from floodsystem.analysis import polyfit
from matplotlib import dates as date
def stations_level_over_threshold(stations, tol):
"""For a list of Mon... | 38 | 126 | 0.701389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,819 | 0.515168 |
ea13103cadb7d3efae73e9bac04af504790aa183 | 3,349 | py | Python | Visualization_with_PyGal.py | rocketpy/data_profiling | 83ac32c50a5d5589769a342b945673e8403f3fed | [
"MIT"
] | null | null | null | Visualization_with_PyGal.py | rocketpy/data_profiling | 83ac32c50a5d5589769a342b945673e8403f3fed | [
"MIT"
] | null | null | null | Visualization_with_PyGal.py | rocketpy/data_profiling | 83ac32c50a5d5589769a342b945673e8403f3fed | [
"MIT"
] | 1 | 2021-09-04T13:58:53.000Z | 2021-09-04T13:58:53.000Z | # A python svg graph plotting library and creating interactive charts !
# PyPi: https://pypi.org/project/pygal/
# Docs: http://www.pygal.org/en/stable/index.html
# Chart types: http://www.pygal.org/en/stable/documentation/types/index.html
# Maps: http://www.pygal.org/en/stable/documentation/types/maps/pygal_maps_wor... | 25.761538 | 94 | 0.654225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,469 | 0.438638 |
ea13756a0ffd8a68a14fc4db2d7499ba93d9435e | 17,663 | py | Python | robogen/rgkit/backup bots/Dulladob01.py | andrewgailey/robogen | 7e96cfa26d2e6dc383c5d205816ddd98f8f100d7 | [
"Unlicense"
] | null | null | null | robogen/rgkit/backup bots/Dulladob01.py | andrewgailey/robogen | 7e96cfa26d2e6dc383c5d205816ddd98f8f100d7 | [
"Unlicense"
] | null | null | null | robogen/rgkit/backup bots/Dulladob01.py | andrewgailey/robogen | 7e96cfa26d2e6dc383c5d205816ddd98f8f100d7 | [
"Unlicense"
] | null | null | null | # Dulladob 0.1 by Camelot Chess
# http://robotgame.net/viewrobot/7641
import rg
spawn_param = 8 #which turn to we begin bouncing?
suicide_param = 6 #when to blow ourselves up (param*surrounders>hp)?
suicide_fear_param = 6 #which to fear enemies blowing up?
staying_still_bonus = 0.34 #points for staying put
best_cen... | 39.16408 | 135 | 0.628885 | 96 | 0.005435 | 0 | 0 | 0 | 0 | 0 | 0 | 1,627 | 0.092113 |
ea1590334af24435c30185a2cb73b1bcb47990a6 | 12,795 | py | Python | telestream_cloud_qc_sdk/test/test_video_config.py | pandastream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | null | null | null | telestream_cloud_qc_sdk/test/test_video_config.py | pandastream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | 2 | 2016-07-06T14:13:31.000Z | 2018-03-07T12:54:58.000Z | telestream_cloud_qc_sdk/test/test_video_config.py | Telestream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import telestream_cloud_qc
from telestream_cl... | 47.040441 | 132 | 0.511059 | 12,314 | 0.962407 | 0 | 0 | 0 | 0 | 0 | 0 | 951 | 0.074326 |
ea181d806b5b9dbcd288d38db58d0fa940f79080 | 223 | py | Python | topics/topic_1/9square_of_number.py | VladBaryliuk/my_trainings | 10c4bf2147c361ab918c591577a076b0d276ede0 | [
"Apache-2.0"
] | null | null | null | topics/topic_1/9square_of_number.py | VladBaryliuk/my_trainings | 10c4bf2147c361ab918c591577a076b0d276ede0 | [
"Apache-2.0"
] | null | null | null | topics/topic_1/9square_of_number.py | VladBaryliuk/my_trainings | 10c4bf2147c361ab918c591577a076b0d276ede0 | [
"Apache-2.0"
] | null | null | null | def square_of_number():
number = "179"
number_for_sum = "179"
for i in range (49):
number = number + number_for_sum
number = int(number)
number = number ** 2
print(number)
square_of_number()
| 22.3 | 40 | 0.623318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.044843 |
ea1a1e4df5ca384ebf5252f38a1f95b8bff9c295 | 6,275 | py | Python | scannerProyecto2Tejada.py | tej17584/proyecto2DisenoLenguajes | a8aead2908eb4e87c8b7d9d373690766d6dfcd9c | [
"MIT"
] | null | null | null | scannerProyecto2Tejada.py | tej17584/proyecto2DisenoLenguajes | a8aead2908eb4e87c8b7d9d373690766d6dfcd9c | [
"MIT"
] | null | null | null | scannerProyecto2Tejada.py | tej17584/proyecto2DisenoLenguajes | a8aead2908eb4e87c8b7d9d373690766d6dfcd9c | [
"MIT"
] | null | null | null |
# Nombre: Alejandro Tejada
# Curso: Diseño lenguajes de programacion
# Fecha: Abril 2021
# Programa: scannerProyecto2Tejada.py
# Propósito: Este programa tiene como fin leer el file de entrada
# V 1.0
# imports
import pickle
from pprint import pprint as pp
class Scanner():
def __init__(self) -> None:
se... | 33.55615 | 80 | 0.508526 | 5,988 | 0.953807 | 0 | 0 | 0 | 0 | 0 | 0 | 764 | 0.121695 |
ea1c12db4d5af227141198911161b74bbd00e24e | 1,271 | py | Python | .tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py | bdrich/neutron-lbaas | b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd | [
"Apache-2.0"
] | null | null | null | .tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py | bdrich/neutron-lbaas | b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd | [
"Apache-2.0"
] | null | null | null | .tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py | bdrich/neutron-lbaas | b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 39.71875 | 78 | 0.739575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 682 | 0.536585 |
ea1c349d5a962884cd1e7e0a9b53304ae80ef64b | 648 | py | Python | programmers/lv2_review/openchat.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv2_review/openchat.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv2_review/openchat.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | # [카카오] 오픈채팅방
def solution(record):
answer = []
id_dict = {}
for query in record:
q = query.split(" ")
if len(q) >= 3:
id_dict[q[1]] = q[2]
for query in record:
q = query.split(" ")
if q[0] == "Enter":
answer.append(f"{id_dict[q[1]]}님이 들어왔습니다.")
... | 23.142857 | 55 | 0.498457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 242 | 0.348703 |
ea1c8dc482231f31a61b11ef7f70060a085b4cca | 227 | py | Python | chanjet_openapi_python_sdk/exception/serialize_response_exception.py | Chanjet/chanjet-openapi-python-sdk- | a076ce11d6d1789e657b96d72bbbcff594dbb4e9 | [
"MIT"
] | 2 | 2021-08-12T05:22:56.000Z | 2021-09-08T09:03:38.000Z | chanjet_openapi_python_sdk/exception/serialize_response_exception.py | Chanjet/chanjet-openapi-python-sdk | a076ce11d6d1789e657b96d72bbbcff594dbb4e9 | [
"MIT"
] | null | null | null | chanjet_openapi_python_sdk/exception/serialize_response_exception.py | Chanjet/chanjet-openapi-python-sdk | a076ce11d6d1789e657b96d72bbbcff594dbb4e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/8/6 15:01
# @Author : zc
# @Desc : json格式的response序列化成实例对象异常
class SerializeResponseException(Exception):
def __init__(self, err_msg):
super().__init__(self, err_msg)
| 22.7 | 44 | 0.647577 | 117 | 0.462451 | 0 | 0 | 0 | 0 | 0 | 0 | 129 | 0.509881 |
ea1cac9b8b5465978251233d73081760528adcd8 | 17,699 | py | Python | scrud_django/decorators.py | Django-Stack-Backend/Django-backend-React-frontend | 4c814ab9b97d70a259d4b93e30d118deba9831fd | [
"BSD-3-Clause"
] | 1 | 2021-11-22T20:39:26.000Z | 2021-11-22T20:39:26.000Z | scrud_django/decorators.py | Django-Stack-Backend/Django-backend-React-frontend | 4c814ab9b97d70a259d4b93e30d118deba9831fd | [
"BSD-3-Clause"
] | null | null | null | scrud_django/decorators.py | Django-Stack-Backend/Django-backend-React-frontend | 4c814ab9b97d70a259d4b93e30d118deba9831fd | [
"BSD-3-Clause"
] | null | null | null | from datetime import timezone
from functools import partial, update_wrapper
from django.utils.cache import get_conditional_response
from django.utils.http import http_date, quote_etag
from rest_framework import status
from rest_framework.metadata import BaseMetadata
from rest_framework.response import Response
from re... | 37.818376 | 87 | 0.611277 | 11,928 | 0.673936 | 0 | 0 | 0 | 0 | 0 | 0 | 1,967 | 0.111136 |
ea1ddd5fb3b7764b25bce86e343d6fc2d860a274 | 670 | py | Python | cloud/scripts/estudos/fiis_ifix_gestores.py | codennine/trendfii | d13ee68ddcf80b0d58384c2c1f5972f210ae9d04 | [
"MIT"
] | null | null | null | cloud/scripts/estudos/fiis_ifix_gestores.py | codennine/trendfii | d13ee68ddcf80b0d58384c2c1f5972f210ae9d04 | [
"MIT"
] | 4 | 2019-06-19T20:25:43.000Z | 2021-06-02T03:43:05.000Z | cloud/scripts/estudos/fiis_ifix_gestores.py | codennine/trendfii | d13ee68ddcf80b0d58384c2c1f5972f210ae9d04 | [
"MIT"
] | null | null | null | #coding=utf-8
import os
from bs4 import BeautifulSoup
files = []
gestores = {
'EDY11': {'fiis': [], 'vacancia':0}
}
for r,d,f in os.walk('../gestores_ifix'):
for file in f:
handle = open(os.path.join(r, file), 'r')
html = handle.read()
soup = BeautifulSoup(html, 'html.parser')
... | 23.103448 | 66 | 0.51194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 111 | 0.165672 |
ea1e3a374da6546ba9cfee034f40a9ff5ef3cbde | 86 | py | Python | RL/Custom-env/Custom-env/envs/__init__.py | Poppins001/Projects | 386b741c2a8361289d73af658c8c6779ec8315b2 | [
"MIT"
] | 1 | 2018-06-01T14:40:49.000Z | 2018-06-01T14:40:49.000Z | RL/Custom-env/Custom-env/envs/__init__.py | Poppins001/Projects | 386b741c2a8361289d73af658c8c6779ec8315b2 | [
"MIT"
] | null | null | null | RL/Custom-env/Custom-env/envs/__init__.py | Poppins001/Projects | 386b741c2a8361289d73af658c8c6779ec8315b2 | [
"MIT"
] | null | null | null | from Custom-env.envs.Env1 import ENV1_NAME
from Custom-env.envs.Env2 import ENV2_NAME
| 28.666667 | 42 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea1fff46a82c83c0a760acd9e59925eaa45ebb42 | 1,176 | py | Python | Trie/14. Longest Common Prefix/solution.py | Shalini180/LeetCode-Solutions | 0ea364fa40b69dd129230903a0bdbe0fc116db08 | [
"Unlicense"
] | 9 | 2021-03-24T11:21:03.000Z | 2022-02-14T05:05:48.000Z | Trie/14. Longest Common Prefix/solution.py | Shalini180/LeetCode-Solutions | 0ea364fa40b69dd129230903a0bdbe0fc116db08 | [
"Unlicense"
] | 38 | 2021-10-07T18:04:12.000Z | 2021-12-05T05:53:27.000Z | Trie/14. Longest Common Prefix/solution.py | Shalini180/LeetCode-Solutions | 0ea364fa40b69dd129230903a0bdbe0fc116db08 | [
"Unlicense"
] | 27 | 2021-10-06T19:55:48.000Z | 2021-11-18T16:53:20.000Z | '''
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string "".
Example 1:
Input: strs = ["flower","flow","flight"]
Output: "fl"
Constraints:
1 <= strs.length <= 200
0 <= strs[i].length <= 200
strs[i] consists of only lower-case En... | 23.52 | 86 | 0.547619 | 824 | 0.70068 | 0 | 0 | 0 | 0 | 0 | 0 | 357 | 0.303571 |
ea20af329182c07294d2c1bbed18aee79997d85a | 32 | py | Python | uresnet/iotools/__init__.py | NuTufts/uresnet_pytorch | 3a05f2349ae1e9601d05a80384920d8a22b4bc34 | [
"MIT"
] | null | null | null | uresnet/iotools/__init__.py | NuTufts/uresnet_pytorch | 3a05f2349ae1e9601d05a80384920d8a22b4bc34 | [
"MIT"
] | null | null | null | uresnet/iotools/__init__.py | NuTufts/uresnet_pytorch | 3a05f2349ae1e9601d05a80384920d8a22b4bc34 | [
"MIT"
] | null | null | null | from .iotools import io_factory
| 16 | 31 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea210e1e988d4d420b55731b7d3f040fb88524e4 | 11,867 | py | Python | model_selection.py | elalamik/Regression_Project_Predicting_Age_of_Abalones | f3123ee7ae96fa963d7db7c75699779fd03cd05f | [
"MIT"
] | null | null | null | model_selection.py | elalamik/Regression_Project_Predicting_Age_of_Abalones | f3123ee7ae96fa963d7db7c75699779fd03cd05f | [
"MIT"
] | null | null | null | model_selection.py | elalamik/Regression_Project_Predicting_Age_of_Abalones | f3123ee7ae96fa963d7db7c75699779fd03cd05f | [
"MIT"
] | null | null | null | import statsmodels.api as sm
import statsmodels.formula.api as smf
import numpy as np
import pandas as pd
from mlxtend.feature_selection import ExhaustiveFeatureSelector as EFS
from sklearn.linear_model import LinearRegression
import sys; import re
def AIC(data,model,model_type,k=2):
if model_type=='linear':
return... | 34.397101 | 162 | 0.720317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,768 | 0.317519 |
ea2175fd92a81a7aa44dc7fd222cd723428cd81c | 1,972 | py | Python | play.py | amm042/pyMonty | eb4400d179a73571c02c5bf2b0793bff4a488092 | [
"MIT"
] | null | null | null | play.py | amm042/pyMonty | eb4400d179a73571c02c5bf2b0793bff4a488092 | [
"MIT"
] | null | null | null | play.py | amm042/pyMonty | eb4400d179a73571c02c5bf2b0793bff4a488092 | [
"MIT"
] | null | null | null | """
Montey hall client
Alan Marchiori 2019
"""
import logging
import socket
import time
import argparse
def main(addr, port, delay):
log = logging.getLogger()
server_port = (addr, port)
log.info("Starting game with {}".format(server_port))
#for k in range(10):
while True:
with socket.sock... | 30.338462 | 80 | 0.559838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 506 | 0.256592 |
ea21bdaf4495b9f91ab1a9b78ddc86efc5c91b1c | 687 | py | Python | publishing_boy/tests/utils.py | przemekkot/publishing-boy | 7ed069ab2393d684057ddad196c49a58101e9fda | [
"MIT"
] | null | null | null | publishing_boy/tests/utils.py | przemekkot/publishing-boy | 7ed069ab2393d684057ddad196c49a58101e9fda | [
"MIT"
] | 7 | 2020-02-12T02:27:28.000Z | 2022-02-10T08:54:02.000Z | publishing_boy/tests/utils.py | przemekkot/publishing-boy | 7ed069ab2393d684057ddad196c49a58101e9fda | [
"MIT"
] | null | null | null | import os
import tempfile
from django.core.files.storage import FileSystemStorage
import django.core.files.storage
# dummy django.conf.settings
class Settings():
MEDIA_ROOT = os.path.dirname(os.path.abspath(__file__))
MEDIA_URL = 'http://local/'
FILE_UPLOAD_PERMISSIONS = 0o777
FILE_UPLOAD_DIRECTORY_PE... | 24.535714 | 64 | 0.751092 | 210 | 0.305677 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 0.09607 |
ea2206dfae42e6d124e7e16bb3567b4adca04132 | 1,070 | py | Python | app/report/models/call_table_model.py | michaelscales88/mWreporting_final | b0399fb32fd594c2f5a20d47c2c0dceaecb6f326 | [
"MIT"
] | 2 | 2019-06-10T21:15:03.000Z | 2020-01-02T13:12:45.000Z | app/report/models/call_table_model.py | michaelscales88/python-reporting-app | b0399fb32fd594c2f5a20d47c2c0dceaecb6f326 | [
"MIT"
] | 14 | 2018-01-18T19:07:15.000Z | 2018-05-16T18:44:55.000Z | app/report/models/call_table_model.py | michaelscales88/mWreporting_final | b0399fb32fd594c2f5a20d47c2c0dceaecb6f326 | [
"MIT"
] | null | null | null | # data/models.py
import datetime
from sqlalchemy.ext.hybrid import hybrid_property
from app.extensions import db
class CallTableModel(db.Model):
__tablename__ = 'c_call'
__repr_attrs__ = ['call_id', 'calling_party_number', 'dialed_party_number',
'start_time', 'end_time', 'caller_id']
... | 31.470588 | 79 | 0.694393 | 953 | 0.890654 | 0 | 0 | 249 | 0.23271 | 0 | 0 | 135 | 0.126168 |
ea22bbec328c45633bc90472df085445b7749a42 | 342 | py | Python | dataentry/models.py | abrehman90/Integrate-SummerNote-in-Django | a588578f007e153b85e1b18e71fa37d05bdef7ef | [
"MIT"
] | 1 | 2021-12-15T03:47:19.000Z | 2021-12-15T03:47:19.000Z | dataentry/models.py | abrehman90/Integrate-SummerNote-in-Django | a588578f007e153b85e1b18e71fa37d05bdef7ef | [
"MIT"
] | null | null | null | dataentry/models.py | abrehman90/Integrate-SummerNote-in-Django | a588578f007e153b85e1b18e71fa37d05bdef7ef | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class user(models.Model):
name = models.CharField(max_length=25)
phone = models.CharField(max_length=25,default='+92')
email = models.EmailField()
city = models.CharField(max_length=20)
content = models.TextField()
def __str__(self):
... | 24.428571 | 57 | 0.695906 | 283 | 0.827485 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 0.090643 |
ea230ac82e5bb4386e749cb1be502c5bdba91b6d | 76 | py | Python | dotfiles/common/.gdbinit.d/eigen.py | HaoZeke/Dotfiles | f4ac24b0d7e08d87b1f402af67e463c528b1b69d | [
"Unlicense"
] | 14 | 2018-10-29T18:54:25.000Z | 2021-12-21T00:22:52.000Z | dotfiles/common/.gdbinit.d/eigen.py | HaoZeke/Dotfiles | f4ac24b0d7e08d87b1f402af67e463c528b1b69d | [
"Unlicense"
] | 1 | 2018-08-20T17:41:10.000Z | 2018-08-20T17:42:23.000Z | dotfiles/common/.gdbinit.d/eigen.py | HaoZeke/Dotfiles | f4ac24b0d7e08d87b1f402af67e463c528b1b69d | [
"Unlicense"
] | 3 | 2018-08-20T17:36:29.000Z | 2021-01-23T05:18:30.000Z | # Eigen pretty printer
__import__('eigengdb').register_eigen_printers(None)
| 25.333333 | 52 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0.421053 |
ea23411116c11712b8563c0700e8c3b9b69e0e40 | 1,055 | py | Python | sv/loading.py | thalesians/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 18 | 2017-03-07T19:13:18.000Z | 2021-01-05T00:35:30.000Z | sv/loading.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | null | null | null | sv/loading.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 14 | 2016-12-27T00:09:40.000Z | 2020-12-27T19:23:53.000Z | from collections import OrderedDict
import numpy as np
from pandas import DataFrame
from sv import SVData, CorTiming
def loadSVDataFromBUGSDataset(filepath, logreturnforward, logreturnscale, dtfilepath=None):
dts = None
if dtfilepath is not None:
with open(dtfilepath) as f:
content = f.re... | 31.029412 | 92 | 0.629384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 0.032227 |
ea26327ae6b47dd4a986055221217b74fe00a65e | 3,741 | py | Python | sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # 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 ... | 45.621951 | 139 | 0.654103 | 3,218 | 0.860198 | 0 | 0 | 0 | 0 | 0 | 0 | 2,953 | 0.789361 |
ea26c82baaca0ecaf568c61b139222fcd9a4d7cf | 2,986 | py | Python | 13_while_loops_challenges/58_guess_my_word.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | 13_while_loops_challenges/58_guess_my_word.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | 13_while_loops_challenges/58_guess_my_word.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | import random
print('Welcome to the GUESS MY WORD APP.')
game_dict = {"sports": ['basketball', 'baseball', 'soccer', 'football', 'tennis',
'curling'],
"colors": ['orange', 'yellow', 'purple', 'aquamarine', 'violet', 'gold'],
"fruits": ['apple', 'banana', 'watermelon', 'peach', 'mango', 'strawberry'],
"classes": ['eng... | 35.129412 | 123 | 0.673141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,643 | 0.550234 |
ea26f9c2bf7b019ef8aa7a75cd7953f9dff2b3d1 | 5,247 | py | Python | crunch-shake/parse.py | zhiyanfoo/crunch-shake | ff2bc24615ad037601e912b1b8b3905e4f9d3540 | [
"MIT"
] | 1 | 2019-02-22T19:30:42.000Z | 2019-02-22T19:30:42.000Z | crunch-shake/parse.py | zhiyanfoo/crunch-shake | ff2bc24615ad037601e912b1b8b3905e4f9d3540 | [
"MIT"
] | null | null | null | crunch-shake/parse.py | zhiyanfoo/crunch-shake | ff2bc24615ad037601e912b1b8b3905e4f9d3540 | [
"MIT"
] | null | null | null | from utils import get_matcher
from lookup import ROMAN_TO_INT
from lines import Dialogue, Character, Instruction, Act, Scene
def get_speaking_characters(raw_play_lines, character_matcher):
""" Return a set of all character names
Parameters
----------
raw_play_lines : list of str
lines of th... | 37.212766 | 79 | 0.61559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,784 | 0.340004 |
ea281895334d9f6eb2e1d0053bb87208fe4b79cf | 428 | py | Python | backend/schemas/comment.py | golani04/bug-tracker | a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872 | [
"MIT"
] | null | null | null | backend/schemas/comment.py | golani04/bug-tracker | a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872 | [
"MIT"
] | 1 | 2021-05-21T16:15:52.000Z | 2021-05-21T16:15:52.000Z | backend/schemas/comment.py | golani04/bug-tracker | a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872 | [
"MIT"
] | null | null | null | from datetime import datetime
from uuid import UUID
from typing import Optional
from pydantic import BaseModel, Field
class CommentBase(BaseModel):
text: str
commenter: UUID
reply_to: Optional[int] = Field(None, description="Replying to the previous comment")
class CommentCreate(CommentBase):
pass
... | 20.380952 | 89 | 0.75 | 301 | 0.703271 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 0.079439 |
ea2a96d721e0464fc48d0be7b3b409eb02575d4c | 1,216 | py | Python | videos_to_images.py | hikaruya8/dimotion | 68c1e561e2d26f49ada59a82ed9faae373718033 | [
"MIT"
] | null | null | null | videos_to_images.py | hikaruya8/dimotion | 68c1e561e2d26f49ada59a82ed9faae373718033 | [
"MIT"
] | null | null | null | videos_to_images.py | hikaruya8/dimotion | 68c1e561e2d26f49ada59a82ed9faae373718033 | [
"MIT"
] | null | null | null | import os
import subprocess # ターミナルで実行するコマンドを実行できる
# 動画が保存された「MELD.Raw」内にある、train_splits, test_splits, dev_splitsそれぞれで実行
dir_path = './MELD/MELD.Raw/dev_splits/'
# class_list = os.listdir(path=dir_path)
# print(class_list)
# 各クラスの動画ファイルを画像ファイルに変換する
# for class_list_i in (class_list): # クラスごとのループ
# クラスのフォルダへのパ... | 27.636364 | 89 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,252 | 0.694784 |
ea2b625a6e5ae7073ed5a6fd9af95fcd3ef81b59 | 15,396 | py | Python | ur_driver/src/ur_driver/deserializeRT.py | Hugal31/universal_robot | 06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e | [
"Apache-2.0",
"BSD-3-Clause"
] | 749 | 2015-01-20T22:14:20.000Z | 2022-03-31T07:31:51.000Z | ur_driver/src/ur_driver/deserializeRT.py | Hugal31/universal_robot | 06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e | [
"Apache-2.0",
"BSD-3-Clause"
] | 431 | 2015-01-05T02:02:45.000Z | 2022-03-07T15:18:51.000Z | ur_driver/src/ur_driver/deserializeRT.py | Hugal31/universal_robot | 06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e | [
"Apache-2.0",
"BSD-3-Clause"
] | 788 | 2015-01-12T08:11:21.000Z | 2022-03-30T11:53:01.000Z | from __future__ import print_function
import struct
import copy
#this class handles different protocol versions
class RobotStateRT(object):
@staticmethod
def unpack(buf):
rs = RobotStateRT()
(plen, ptype) = struct.unpack_from("!IB", buf)
if plen == 756:
return RobotStateRT_V... | 36.657143 | 115 | 0.58067 | 14,987 | 0.973435 | 0 | 0 | 13,304 | 0.864121 | 0 | 0 | 4,390 | 0.285139 |
ea2b8336beb92adf459272aedc193a552076d2fb | 1,457 | py | Python | Data-Science/code.py | shikharratna/ga-learner-dsmp-repo | a852a8759679dddcab3e59930240d22fcab9ba73 | [
"MIT"
] | null | null | null | Data-Science/code.py | shikharratna/ga-learner-dsmp-repo | a852a8759679dddcab3e59930240d22fcab9ba73 | [
"MIT"
] | null | null | null | Data-Science/code.py | shikharratna/ga-learner-dsmp-repo | a852a8759679dddcab3e59930240d22fcab9ba73 | [
"MIT"
] | null | null | null | # --------------
#Header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data=pd.read_csv(path)
#path of the data file- path
#Code starts here
data.Gender.replace('-','Agender',inplace=True)
gender_count=data.Gender.value_counts()
gender_count.plot(kind='bar')
# ----------... | 21.746269 | 59 | 0.710364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 324 | 0.222375 |
ea2b8e4736bc02950c2c39a75c6d5d79e88d9882 | 14,205 | py | Python | stupidb/core.py | mrcrnkovich/stupidb | 4274f60b7f8f2455c0031c73e053964d4d3e3e1d | [
"Apache-2.0"
] | 43 | 2018-12-29T22:14:55.000Z | 2022-03-17T03:38:16.000Z | stupidb/core.py | mrcrnkovich/stupidb | 4274f60b7f8f2455c0031c73e053964d4d3e3e1d | [
"Apache-2.0"
] | 102 | 2021-07-19T21:20:22.000Z | 2022-03-22T02:57:02.000Z | stupidb/core.py | mrcrnkovich/stupidb | 4274f60b7f8f2455c0031c73e053964d4d3e3e1d | [
"Apache-2.0"
] | 3 | 2021-12-04T19:14:33.000Z | 2022-01-08T17:28:36.000Z | """StupiDB. The stupidest database you'll ever come across.
This is project designed to illustate the concepts that underly a typical
relational database implementation, starting at naive execution of table-stakes
features up to rule-based query optimization.
.. warning::
Please do not use this for any other reaso... | 28.930754 | 88 | 0.612672 | 13,192 | 0.928687 | 1,566 | 0.110243 | 812 | 0.057163 | 0 | 0 | 3,191 | 0.224639 |
ea2bb80a4845b58954c6062cd938e68d554b3abd | 169 | py | Python | www/aeki/cgi/aeki_config.py | otuk/aeki | 6de9629a74698737e07ae86650925e3051ead5ee | [
"MIT"
] | null | null | null | www/aeki/cgi/aeki_config.py | otuk/aeki | 6de9629a74698737e07ae86650925e3051ead5ee | [
"MIT"
] | null | null | null | www/aeki/cgi/aeki_config.py | otuk/aeki | 6de9629a74698737e07ae86650925e3051ead5ee | [
"MIT"
] | null | null | null | aeki_config = {
"AEKI_HOST": "localhost", # rename to hostname for cgi if you like
"IOT_HOST":"localhost" # assumes iot test device is also on local host
}
| 24.142857 | 75 | 0.674556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 132 | 0.781065 |
ea2bf117e4da0f0fabb4774dddd8eef0987316da | 6,540 | py | Python | Baseline/NABA/naba.py | sarthak-chakraborty/PARIMA | c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1 | [
"MIT"
] | 13 | 2021-03-06T16:53:33.000Z | 2022-02-04T20:28:13.000Z | Baseline/NABA/naba.py | sarthak-chakraborty/Adaptive-360-video | c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1 | [
"MIT"
] | 6 | 2021-06-02T08:08:09.000Z | 2022-03-12T00:58:26.000Z | Baseline/NABA/naba.py | sarthak-chakraborty/Adaptive-360-video | c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1 | [
"MIT"
] | 3 | 2021-05-26T03:32:04.000Z | 2021-07-17T14:34:20.000Z | import numpy as np
import math
import pickle
def get_data(data, frame_nos, dataset, topic, usernum, fps, milisec, width, height, view_width, view_height):
"""
Read and return the viewport data
"""
VIEW_PATH = '../../Viewport/'
view_info = pickle.load(open(VIEW_PATH + 'ds{}/viewport_ds{}_topic{}_user... | 29.459459 | 146 | 0.669266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 831 | 0.127064 |
ea2cea171e2a0a408098703594d6df6015c2788a | 333 | py | Python | python/primes.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | python/primes.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | python/primes.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | """
User picks number n and program returns all prime number from 0 until n.
"""
def is_prime(num):
for i in range(2, num):
if (num % i) == 0:
return False
return True
number_picked = int(raw_input("Pick a number: "))
print 2
for i in range(3, number_picked, 2):
if is_prime(i):
... | 17.526316 | 72 | 0.600601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97 | 0.291291 |
ea2d0db0e5013c516e20cfd3f224e6f24b6a4de8 | 9,331 | py | Python | gateway/settings.py | 42cc/dashr-gw | 45ec8f99a730b97b80a4068a0e9ae8991904038e | [
"MIT"
] | 2 | 2018-02-06T12:18:49.000Z | 2018-02-08T08:26:56.000Z | gateway/settings.py | 42cc/dashr-gw | 45ec8f99a730b97b80a4068a0e9ae8991904038e | [
"MIT"
] | null | null | null | gateway/settings.py | 42cc/dashr-gw | 45ec8f99a730b97b80a4068a0e9ae8991904038e | [
"MIT"
] | 3 | 2018-02-12T02:14:11.000Z | 2020-05-21T19:25:41.000Z | """
Django settings for gateway project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | 27.606509 | 79 | 0.647305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,090 | 0.545494 |
ea2f6cab964b758bde6ba04ace1b9ebcbb9b589e | 1,961 | py | Python | basics-data-structure/array/processQueries.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | null | null | null | basics-data-structure/array/processQueries.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | null | null | null | basics-data-structure/array/processQueries.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | 1 | 2020-08-25T19:05:19.000Z | 2020-08-25T19:05:19.000Z | """
Given the array queries of positive integers between 1 and m, you have to process all queries[i] (from i=0 to i=queries.length-1) according to the following rules:
In the beginning, you have the permutation P=[1,2,3,...,m].
For the current i, find the position of queries[i] in the permutation P (indexing from 0) ... | 33.810345 | 221 | 0.63284 | 520 | 0.265171 | 0 | 0 | 0 | 0 | 0 | 0 | 1,412 | 0.720041 |
ea3096bc5a6227f2c2556b76f3b507bcc714068c | 1,876 | py | Python | setup.py | david26694/sktools | 28cb8179b4c895cf00aea1399b2677158bd35bd8 | [
"MIT"
] | 10 | 2020-05-03T09:52:06.000Z | 2021-11-30T07:38:27.000Z | setup.py | david26694/sktools | 28cb8179b4c895cf00aea1399b2677158bd35bd8 | [
"MIT"
] | 7 | 2020-11-19T16:08:09.000Z | 2021-06-17T11:37:31.000Z | setup.py | david26694/sktools | 28cb8179b4c895cf00aea1399b2677158bd35bd8 | [
"MIT"
] | 3 | 2020-06-21T08:46:31.000Z | 2021-08-17T11:32:20.000Z | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['scikit-learn', 'pandas', 'scipy', 'numpy', 'category_encoder... | 26.8 | 80 | 0.624733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 847 | 0.451493 |
ea319b174e521eedd1eb8788136bfce6b273b847 | 1,982 | py | Python | test_autogalaxy/util/test_error_util.py | caoxiaoyue/PyAutoGalaxy | ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05 | [
"MIT"
] | 7 | 2021-05-29T08:46:29.000Z | 2022-01-23T14:06:20.000Z | test_autogalaxy/util/test_error_util.py | caoxiaoyue/PyAutoGalaxy | ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05 | [
"MIT"
] | 3 | 2021-01-06T09:42:44.000Z | 2022-03-10T15:52:23.000Z | test_autogalaxy/util/test_error_util.py | caoxiaoyue/PyAutoGalaxy | ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05 | [
"MIT"
] | 3 | 2021-02-10T07:45:16.000Z | 2022-01-21T17:36:40.000Z | from autofit.non_linear.samples.pdf import quantile
import autogalaxy as ag
import numpy as np
def test__quantile_1d_profile():
profile_1d_0 = np.array([1.0, 2.0, 3.0])
profile_1d_1 = np.array([1.0, 2.0, 3.0])
profile_1d_list = [profile_1d_0, profile_1d_1]
median_profile_1d = ag.util.er... | 27.527778 | 73 | 0.617558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea3310d718c746d6f372cb145583373a0ec60324 | 5,967 | py | Python | src/whereshallwemeet/caller.py | bizzinho/whereShallWeMeet | 449cc1aeb9334688392b8b3ffa4b6def1f308bc5 | [
"MIT"
] | null | null | null | src/whereshallwemeet/caller.py | bizzinho/whereShallWeMeet | 449cc1aeb9334688392b8b3ffa4b6def1f308bc5 | [
"MIT"
] | null | null | null | src/whereshallwemeet/caller.py | bizzinho/whereShallWeMeet | 449cc1aeb9334688392b8b3ffa4b6def1f308bc5 | [
"MIT"
] | null | null | null | import os
import pathlib
import sys
import googlemaps
from datetime import datetime as dt
from typing import Union, Tuple, List
class WhereShallWeMeet:
def __init__(self, configPath: str = None, friendsFile: str = None):
self.configPath = configPath
self._gmaps = None
self.friendsFile ... | 28.6875 | 79 | 0.537121 | 5,835 | 0.977878 | 0 | 0 | 321 | 0.053796 | 0 | 0 | 1,016 | 0.17027 |
ea332701c21bd1585589dad2180e6c25dfdb1886 | 4,451 | py | Python | iCount/plotting/plot_rnamap.py | genialis/iCount | 80dba0f7292a364c62843d71e76c1b22e6268e14 | [
"MIT"
] | null | null | null | iCount/plotting/plot_rnamap.py | genialis/iCount | 80dba0f7292a364c62843d71e76c1b22e6268e14 | [
"MIT"
] | 1 | 2021-09-30T12:55:37.000Z | 2021-09-30T12:55:37.000Z | iCount/plotting/plot_rnamap.py | ulelab/iCount | b9dc1b21b80e4dae77b3ac33734514091fbe3151 | [
"MIT"
] | 4 | 2021-03-23T12:38:55.000Z | 2021-05-14T10:10:00.000Z | """.. Line to protect from pydocstyle D205, D400.
Plot distribution RNA-map
-------------------------
Plot distribution of crosslinks relative to landmark of specific type.
"""
import os
import pandas as pd
import iCount
# pylint: disable=wrong-import-order
import matplotlib
# Force matplotlib to not use any Xwind... | 28.350318 | 109 | 0.625253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,789 | 0.401932 |
ea33e9758376d259b5c2e71586d76551a1685aa4 | 7,772 | py | Python | search_and_change/search_and_change_num.py | physics-sp/frida-tools | 8ae44d041417152f0717f48513043a320649e9e9 | [
"MIT"
] | 5 | 2020-02-08T12:25:40.000Z | 2021-08-25T16:49:59.000Z | search_and_change/search_and_change_num.py | physics-sp/frida-tools | 8ae44d041417152f0717f48513043a320649e9e9 | [
"MIT"
] | null | null | null | search_and_change/search_and_change_num.py | physics-sp/frida-tools | 8ae44d041417152f0717f48513043a320649e9e9 | [
"MIT"
] | 4 | 2020-06-03T04:27:02.000Z | 2021-06-07T15:16:20.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import time
try:
import frida
except ImportError:
sys.exit('install frida\nsudo pip3 install frida')
# number of times that 'old_value' was find in memory
matches = None
def err(msg):
sys.stderr.write(msg + '\n')
def read(msg): # read input from user
de... | 30.478431 | 151 | 0.634328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,067 | 0.651956 |
ea35cc90fef2c59b54455f8db397478309f4335a | 17,435 | py | Python | text_extensions_for_pandas/jupyter/span.py | ZachEichen/text-extensions-for-pandas | b3132c26806d57ec168818e43138e55e2583acdf | [
"Apache-2.0"
] | 193 | 2020-05-11T21:15:57.000Z | 2022-03-23T09:59:32.000Z | text_extensions_for_pandas/jupyter/span.py | ZachEichen/text-extensions-for-pandas | b3132c26806d57ec168818e43138e55e2583acdf | [
"Apache-2.0"
] | 207 | 2020-05-07T17:38:13.000Z | 2022-02-11T18:02:13.000Z | text_extensions_for_pandas/jupyter/span.py | ZachEichen/text-extensions-for-pandas | b3132c26806d57ec168818e43138e55e2583acdf | [
"Apache-2.0"
] | 28 | 2020-05-07T16:43:52.000Z | 2022-02-25T15:21:18.000Z | #
# Copyright (c) 2021 IBM Corp.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 40.735981 | 220 | 0.562604 | 108 | 0.006194 | 0 | 0 | 0 | 0 | 0 | 0 | 10,130 | 0.581015 |
ea371b2906f6a90db71a9dd98eef0ab8bb4b4389 | 243 | py | Python | Comprehensions/05. Filter Numbers.py | milenpenev/Python_Advanced | 2f32012dd682fa9541bbf5fa155f6bdbcfa946de | [
"MIT"
] | null | null | null | Comprehensions/05. Filter Numbers.py | milenpenev/Python_Advanced | 2f32012dd682fa9541bbf5fa155f6bdbcfa946de | [
"MIT"
] | null | null | null | Comprehensions/05. Filter Numbers.py | milenpenev/Python_Advanced | 2f32012dd682fa9541bbf5fa155f6bdbcfa946de | [
"MIT"
] | null | null | null | def is_divisible(number):
divisible = [num for num in range(2, 11) if number % num == 0]
return True if divisible else False
start = int(input())
end = int(input())
print([int(_) for _ in range(start, end + 1) if is_divisible(_)])
| 22.090909 | 66 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea37e30aaa000862cd2a845865431af3031ecbc6 | 188 | py | Python | src/plugins/hk_reporter/platform/__init__.py | panda361/nonebot-hk-reporter | b94f6cc31844e9307e355fc81f387ea42501a014 | [
"MIT"
] | null | null | null | src/plugins/hk_reporter/platform/__init__.py | panda361/nonebot-hk-reporter | b94f6cc31844e9307e355fc81f387ea42501a014 | [
"MIT"
] | null | null | null | src/plugins/hk_reporter/platform/__init__.py | panda361/nonebot-hk-reporter | b94f6cc31844e9307e355fc81f387ea42501a014 | [
"MIT"
] | null | null | null | from .bilibili import Bilibili
from .rss import Rss
from .weibo import Weibo
from .utils import check_sub_target
from .platform import PlatformNoTarget
from .utils import platform_manager
| 26.857143 | 38 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea384cdec08dafa6c13c92feb566f42fb716a71c | 13,837 | py | Python | Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py | cantiusdeepan/Cadrea | bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81 | [
"MIT"
] | null | null | null | Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py | cantiusdeepan/Cadrea | bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81 | [
"MIT"
] | null | null | null | Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py | cantiusdeepan/Cadrea | bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81 | [
"MIT"
] | null | null | null | ####### File will publish a score between 0-5 on how good an idea
# (0- Don't open, 5 - Very good conditions for opening window)
# it is to open the window to clear the room given the current internal and external weather conditions
# Factors considered - ________
# Internal temperature
# External Temperature (Effect ... | 42.185976 | 152 | 0.627376 | 13,040 | 0.942401 | 0 | 0 | 0 | 0 | 0 | 0 | 4,949 | 0.357664 |
ea38f8206042b01f8b467e0f3e3183966c12c73d | 6,538 | py | Python | pynagios/perf_data.py | jimbrowne/pynagios | f144b5507b1b3966a8f587bd07d0c7845db90182 | [
"MIT"
] | null | null | null | pynagios/perf_data.py | jimbrowne/pynagios | f144b5507b1b3966a8f587bd07d0c7845db90182 | [
"MIT"
] | null | null | null | pynagios/perf_data.py | jimbrowne/pynagios | f144b5507b1b3966a8f587bd07d0c7845db90182 | [
"MIT"
] | 1 | 2022-02-11T09:27:21.000Z | 2022-02-11T09:27:21.000Z | """
Tools for creating performance data for Nagios plugin responses.
If you're adding performance data to a :py:class:`~pynagios.response.Response`
object, then :py:func:`~pynagios.response.Response.set_perf_data` can be
called instead of having to create an entire :py:class:`PerfData` object.
"""
import re
from pynag... | 33.701031 | 91 | 0.599725 | 6,192 | 0.947079 | 0 | 0 | 2,511 | 0.384062 | 0 | 0 | 3,974 | 0.607831 |
ea3a1bdee6e7843b3236745c73bb61d6e0e2dd05 | 354 | py | Python | py/priq.py | frasertweedale/drill | 4e71b5348b633fd9beecb243c046f19ddfe131fe | [
"MIT"
] | 1 | 2020-09-02T17:25:26.000Z | 2020-09-02T17:25:26.000Z | py/priq.py | frasertweedale/drill | 4e71b5348b633fd9beecb243c046f19ddfe131fe | [
"MIT"
] | null | null | null | py/priq.py | frasertweedale/drill | 4e71b5348b633fd9beecb243c046f19ddfe131fe | [
"MIT"
] | null | null | null | import heap
class _PriQ(object):
def insert(self, x):
self.heap.insert(x)
def delete(self):
return self.heap.delete()
def __nonzero__(self):
return bool(self.heap)
class Max(_PriQ):
def __init__(self):
self.heap = heap.Max()
class Min(_PriQ):
def __init__(self... | 15.391304 | 33 | 0.59322 | 333 | 0.940678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea3a5b10c9e85e5dacebb77bf4f8cac72e39e843 | 3,249 | py | Python | report/api/app.py | Aaron-DH/openstack_sample_project | 711a56311806d52b632e4394743bd4bdbacb103a | [
"Apache-2.0"
] | null | null | null | report/api/app.py | Aaron-DH/openstack_sample_project | 711a56311806d52b632e4394743bd4bdbacb103a | [
"Apache-2.0"
] | null | null | null | report/api/app.py | Aaron-DH/openstack_sample_project | 711a56311806d52b632e4394743bd4bdbacb103a | [
"Apache-2.0"
] | null | null | null | from wsgiref import simple_server
import os
from oslo_config import cfg
from oslo_log import log as logging
from paste import deploy
import pecan
from report.api import hooks
from report.agent import rpcapi
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
pecan_opts = [
cfg.StrOpt('root',
defaul... | 25.382813 | 75 | 0.596183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 749 | 0.230532 |
ea3b4a5064c4a8a783500e634bbd859b7a0ab263 | 2,318 | py | Python | cahoots/parsers/email.py | SerenitySoftwareLLC/cahoots | 866336c51436343ff5e56f83f89dddc82a5693a3 | [
"MIT"
] | 8 | 2015-03-24T15:34:40.000Z | 2016-12-24T22:09:47.000Z | cahoots/parsers/email.py | hickeroar/cahoots | 8fa795d7d933507c6cbf490bd20c1b3562689c5a | [
"MIT"
] | 34 | 2015-03-06T06:27:54.000Z | 2015-05-27T05:23:27.000Z | cahoots/parsers/email.py | hickeroar/cahoots | 8fa795d7d933507c6cbf490bd20c1b3562689c5a | [
"MIT"
] | 4 | 2015-04-05T06:24:50.000Z | 2015-05-30T02:40:21.000Z | """
The MIT License (MIT)
Copyright (c) Serenity Software, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | 35.661538 | 78 | 0.716566 | 1,085 | 0.468076 | 468 | 0.201898 | 321 | 0.138481 | 0 | 0 | 1,687 | 0.727783 |
ea3cf21c67467cbaac5cfdc96125b0af5671f94a | 326 | py | Python | src/praxxis/model/update_model.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 9 | 2019-07-31T23:50:16.000Z | 2021-08-21T00:43:44.000Z | src/praxxis/model/update_model.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 22 | 2019-08-01T00:37:53.000Z | 2020-03-31T05:01:57.000Z | src/praxxis/model/update_model.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 7 | 2020-01-03T02:28:36.000Z | 2021-05-13T20:59:19.000Z | """
This file requests a new model from the storage pool.
"""
import os
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import requests
from requests.auth import HTTPBasicAuth
from src.praxxis.sqlite import sqlite_telemetry
def update_model():
"""TODO: implement this"""
... | 16.3 | 67 | 0.776074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 87 | 0.266871 |
ea3d55b836b67869362d50e8f2439e202c28d2d7 | 40,516 | py | Python | Process_Data/audio_processing.py | Wenhao-Yang/DeepSpeaker-pytorch | 99eb8de3357c85e2b7576da2a742be2ffd773ead | [
"MIT"
] | 8 | 2020-08-26T13:32:56.000Z | 2022-01-18T21:05:46.000Z | Process_Data/audio_processing.py | Wenhao-Yang/DeepSpeaker-pytorch | 99eb8de3357c85e2b7576da2a742be2ffd773ead | [
"MIT"
] | 1 | 2020-07-24T17:06:16.000Z | 2020-07-24T17:06:16.000Z | Process_Data/audio_processing.py | Wenhao-Yang/DeepSpeaker-pytorch | 99eb8de3357c85e2b7576da2a742be2ffd773ead | [
"MIT"
] | 5 | 2020-12-11T03:31:15.000Z | 2021-11-23T15:57:55.000Z | #!/usr/bin/env python
# encoding: utf-8
import os
import pathlib
import traceback
<<<<<<< HEAD
=======
import random
>>>>>>> Server/Server
import librosa
import numpy as np
import soundfile as sf
import torch
import torch.nn.utils.rnn as rnn_utils
from pydub import AudioSegment
from python_speech_features import fbank... | 34.718081 | 197 | 0.626518 | 17,471 | 0.431212 | 0 | 0 | 0 | 0 | 0 | 0 | 12,473 | 0.307854 |
ea3f6b2815870dddcf136d6b81a2a73d2ad33c33 | 3,822 | py | Python | gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | 1 | 2022-03-15T13:05:40.000Z | 2022-03-15T13:05:40.000Z | gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | """ Stockgrid View """
__docformat__ = "numpy"
import logging
from typing import List, Tuple
import pandas as pd
import requests
from gamestonk_terminal.decorators import log_start_end
logger = logging.getLogger(__name__)
@log_start_end(log=logger)
def get_dark_pool_short_positions(sort_field: str, ascending: boo... | 25.144737 | 94 | 0.599686 | 0 | 0 | 0 | 0 | 3,584 | 0.937729 | 0 | 0 | 2,163 | 0.565934 |
ea410dc0122ec7353bc207c7a8f3f53b18676252 | 2,918 | py | Python | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | 1 | 2019-03-08T18:41:26.000Z | 2019-03-08T18:41:26.000Z | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | null | null | null | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | null | null | null | item: event({channel_index: indexed(uint256), reply_to_index: indexed(uint256), metadata: indexed(uint256)})
# item_index is the index of the sent item in C.N.
# TODO: Implement channeling
# Channel management
struct channel:
owner: address
name_display: bytes32
name_unique: bytes32 # TODO: finish impleme... | 39.972603 | 207 | 0.765593 | 0 | 0 | 0 | 0 | 1,693 | 0.580192 | 0 | 0 | 1,079 | 0.369774 |
ea4135e0971c3f38be4f8fa5f8203ba013d2457e | 2,414 | py | Python | floodsystem/geo.py | Ericsong2333/partia-flood-warning-system | 545a257f601535c62b3341059fdf2203e06c8e17 | [
"MIT"
] | null | null | null | floodsystem/geo.py | Ericsong2333/partia-flood-warning-system | 545a257f601535c62b3341059fdf2203e06c8e17 | [
"MIT"
] | null | null | null | floodsystem/geo.py | Ericsong2333/partia-flood-warning-system | 545a257f601535c62b3341059fdf2203e06c8e17 | [
"MIT"
] | null | null | null | # Copyright (C) 2018 Garth N. Wells
#
# SPDX-License-Identifier: MIT
"""This module contains a collection of functions related to
geographical data.
"""
from floodsystem.utils import sorted_by_key # noqa
import math
def hav(theta):
return math.sin(theta*0.5)**2
def r(theta):
return math.radian... | 28.4 | 130 | 0.609776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 524 | 0.217067 |
ea4292de7cf5cedb5b3ae53916a825188ffc20c5 | 852 | py | Python | codes/Constant.py | YasserDaho/Saliency-3DSal | 4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1 | [
"MIT"
] | 2 | 2020-04-19T13:25:47.000Z | 2020-05-08T17:14:38.000Z | codes/Constant.py | YasserDaho/Saliency-3DSal | 4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1 | [
"MIT"
] | null | null | null | codes/Constant.py | YasserDaho/Saliency-3DSal | 4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1 | [
"MIT"
] | 1 | 2019-09-24T17:42:08.000Z | 2019-09-24T17:42:08.000Z | """""
Path to the Image Dataset directories
"""""
TR_IMG_DIR = './WORKSPACE/DATASET/annotation/'
GT_IMG_DIR = './WORKSPACE/DATASET/annotation/'
"""""
Path to Numpy Video directories
"""""
TR_VID_DIR = './WORKSPACE/DATA/TR_DATA/'
GT_VID_DIR = './WORKSPACE/DATA/GT_DATA/'
"""""
Path to Numpy batches directories
""""... | 17.75 | 57 | 0.676056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 647 | 0.75939 |
ea436f37e311aec310471106ec69e43fc23e41c4 | 1,152 | py | Python | cannlytics/lims/qc.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 7 | 2021-05-31T15:30:22.000Z | 2022-02-05T14:12:31.000Z | cannlytics/lims/qc.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 17 | 2021-06-09T01:04:27.000Z | 2022-03-18T14:48:12.000Z | cannlytics/lims/qc.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 5 | 2021-06-07T13:52:33.000Z | 2021-08-04T00:09:39.000Z | """
Quality Control Tools | Cannlytics
Author: Keegan Skeate <keegan@cannlytics.com>
Created: 2/6/2021
Updated: 6/23/2021
License: MIT License <https://opensource.org/licenses/MIT>
Perform various quality control checks and analyses to ensure
that your laboratory is operating as desired.
TODO:
- Trend an... | 24.510638 | 69 | 0.737847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 764 | 0.663194 |
ea43b6473a80169e05c17d102859f981a7b958d9 | 76 | py | Python | containershare/validator/__init__.py | vsoch/containershare-python | 9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392 | [
"BSD-3-Clause"
] | null | null | null | containershare/validator/__init__.py | vsoch/containershare-python | 9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392 | [
"BSD-3-Clause"
] | 1 | 2018-07-30T22:11:56.000Z | 2018-07-30T22:11:56.000Z | containershare/validator/__init__.py | vsoch/containershare-python | 9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392 | [
"BSD-3-Clause"
] | null | null | null | from .library import LibraryValidator
from .runtime import RuntimeValidator
| 25.333333 | 37 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea442c2de4ff492dd4374c04a850d9f728259783 | 343 | py | Python | packages/pyright-internal/src/tests/samples/genericTypes1.py | sransara/pyright | 4e117682c946b60f2b24fd75a07736954b21f158 | [
"MIT"
] | 1 | 2020-12-28T16:58:24.000Z | 2020-12-28T16:58:24.000Z | packages/pyright-internal/src/tests/samples/genericTypes1.py | sransara/pyright | 4e117682c946b60f2b24fd75a07736954b21f158 | [
"MIT"
] | 1 | 2021-08-31T20:37:43.000Z | 2021-08-31T20:37:43.000Z | packages/pyright-internal/src/tests/samples/genericTypes1.py | sransara/pyright | 4e117682c946b60f2b24fd75a07736954b21f158 | [
"MIT"
] | null | null | null | # This sample tests that the type analyzer flags as an error
# an attempt to assign to or delete a generic type.
from typing import Dict
# This should generate an error because assignment
# of generic types isn't allowed.
Dict[str, int] = {}
# This should generate an error because deletion
# of generic types isn't a... | 24.5 | 60 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 275 | 0.801749 |
ea4430c870df5f7cb35f3b4eb8439be6a855324e | 770 | py | Python | extras/scripts/test-client.py | claudiosv/unisparks | 6215faddbc5a656c7f387c3bea811d435b122042 | [
"Apache-2.0"
] | null | null | null | extras/scripts/test-client.py | claudiosv/unisparks | 6215faddbc5a656c7f387c3bea811d435b122042 | [
"Apache-2.0"
] | 3 | 2022-01-26T22:55:56.000Z | 2022-02-04T18:41:54.000Z | extras/scripts/test-client.py | claudiosv/unisparks | 6215faddbc5a656c7f387c3bea811d435b122042 | [
"Apache-2.0"
] | 1 | 2021-10-05T17:42:55.000Z | 2021-10-05T17:42:55.000Z | #!/usr/bin/python
import socket
import sys
import time
import struct
MCADDR = '239.255.223.01'
PORT = 0xDF0D
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((MCADDR, PORT))
mreq = struct.pack("4sl", socket.inet_aton(MCADDR), socket.INADDR_ANY)
s.sets... | 33.478261 | 157 | 0.697403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 144 | 0.187013 |
ea49cec9477540e45ca7a41005246f0770863e18 | 925 | py | Python | algorithms/bfs/levelorder.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | 10 | 2020-09-21T22:23:09.000Z | 2022-01-25T16:58:44.000Z | algorithms/bfs/levelorder.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | algorithms/bfs/levelorder.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | """
Breadth-First Search - Implemented using queues
This can be implemented for both Trees / Graphs
Here, we will use Trees as examples.
"""
from collections import deque
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.ri... | 23.717949 | 54 | 0.505946 | 734 | 0.793514 | 0 | 0 | 0 | 0 | 0 | 0 | 181 | 0.195676 |
ea4a0594644cef9b0c271ea046c042822efb0f38 | 1,065 | py | Python | setup.py | mariocesar/boot.py | a75098759e91e4fb6be15ccab3745de13840d8d2 | [
"MIT"
] | 2 | 2018-02-16T01:26:50.000Z | 2021-10-31T09:50:50.000Z | setup.py | mariocesar/boot.py | a75098759e91e4fb6be15ccab3745de13840d8d2 | [
"MIT"
] | null | null | null | setup.py | mariocesar/boot.py | a75098759e91e4fb6be15ccab3745de13840d8d2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from setuptools import find_packages, setup
if sys.version_info < (3, 6):
sys.exit('Python 3.6 is the minimum required version')
description, long_description = (
open('README.rst', 'rt').read().split('\n\n', 1))
setup(
name='boot.py',
author='Mario César Señoranis ... | 30.428571 | 71 | 0.634742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 552 | 0.517338 |
ea4b5a3f51b0afdbeab25267ee595b2878076d5e | 132 | py | Python | salesforce_api/models/__init__.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 25 | 2019-05-20T06:38:45.000Z | 2022-02-22T02:10:37.000Z | salesforce_api/models/__init__.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 19 | 2019-07-02T10:12:09.000Z | 2022-01-09T23:33:21.000Z | salesforce_api/models/__init__.py | octopyth/python-salesforce-api | 3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d | [
"MIT"
] | 16 | 2019-12-04T20:45:16.000Z | 2021-12-17T23:29:29.000Z | from . import bulk, deploy, retrieve, tooling
__all__ = [
'bulk',
'deploy',
'retrieve',
'tooling',
'shared'
]
| 12 | 45 | 0.55303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 41 | 0.310606 |
ea4b8753181269244e4522f00e994e35347590a8 | 5,470 | py | Python | radioactivedecay/plots.py | BGameiro2000/radioactivedecay | 98a84345b9f15001dd99b177e131cfa17714804d | [
"MIT"
] | 16 | 2020-09-06T13:33:31.000Z | 2021-10-17T19:05:45.000Z | radioactivedecay/plots.py | BGameiro2000/radioactivedecay | 98a84345b9f15001dd99b177e131cfa17714804d | [
"MIT"
] | 14 | 2020-11-13T18:44:18.000Z | 2021-10-08T23:39:43.000Z | radioactivedecay/plots.py | BGameiro2000/radioactivedecay | 98a84345b9f15001dd99b177e131cfa17714804d | [
"MIT"
] | 5 | 2021-02-16T03:26:45.000Z | 2021-07-20T19:23:04.000Z | """
The plots module defines functions used for creating decay chain diagrams via the Nuclide
class ``plot()`` method, and activity decay graphs via the Inventory class ``plot()`` method.
"""
from typing import List, Set, Optional, Tuple
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
# pylint:... | 27.766497 | 93 | 0.619378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,386 | 0.618787 |
ea4b8a09282f55e57d81cc0d165e7b33f0d9e90a | 8,006 | py | Python | quests/models.py | donvvo/questr-master | 6363ffb4c11ef61f3b6976e75c86a5cbc7f38590 | [
"MIT"
] | null | null | null | quests/models.py | donvvo/questr-master | 6363ffb4c11ef61f3b6976e75c86a5cbc7f38590 | [
"MIT"
] | null | null | null | quests/models.py | donvvo/questr-master | 6363ffb4c11ef61f3b6976e75c86a5cbc7f38590 | [
"MIT"
] | null | null | null |
#All Django Imports
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
#All local imports (libs, contribs, models)
from users.models import *
#All external imports (libs, packages)
import hashlib
i... | 29.433824 | 80 | 0.635648 | 6,357 | 0.794029 | 0 | 0 | 0 | 0 | 0 | 0 | 1,758 | 0.219585 |
ea4b97e6ac91091a8e88abbbe3bf71c11b15a7ef | 9,436 | py | Python | game/base_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | game/base_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | 3 | 2021-10-03T08:46:08.000Z | 2021-10-04T18:14:56.000Z | game/base_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | import time
import random
from enum import Enum
from dataclasses import dataclass
from .gameobject import Action, GameObject, Player, Weapon
from .map import Cell, Map
class Direction(Enum):
LEFT = 1
RIGHT = 2
UP = 3
DOWN = 4
def to_action(self):
if self is self.UP:
return Act... | 34.312727 | 78 | 0.533171 | 9,200 | 0.974989 | 0 | 0 | 1,115 | 0.118164 | 0 | 0 | 221 | 0.023421 |
ea4c18689ee08c3f8d8b39e185c87dfd9d7065ed | 10,313 | py | Python | AgendaContato/lib.py | jooaomarcos/Projeto-Agenda-de-Contato-em-Python | 18b4aba4c5b5232951d8861fd67e7562160165c3 | [
"MIT"
] | null | null | null | AgendaContato/lib.py | jooaomarcos/Projeto-Agenda-de-Contato-em-Python | 18b4aba4c5b5232951d8861fd67e7562160165c3 | [
"MIT"
] | null | null | null | AgendaContato/lib.py | jooaomarcos/Projeto-Agenda-de-Contato-em-Python | 18b4aba4c5b5232951d8861fd67e7562160165c3 | [
"MIT"
] | null | null | null | from banco import con
from time import sleep
import os
# Validação de Valor Inteiro
def leiaint(valor):
while True:
try:
ent = int(input(valor))
except:
print('\033[1;33mDigite um valor inteiro\033[m')
else:
break
return ent
# Validação ... | 36.441696 | 283 | 0.456511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,585 | 0.346042 |
ea4c67653d6bf178d84a235b1ed66aa70ed28be1 | 519 | py | Python | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 17 | 2020-08-29T18:45:51.000Z | 2022-03-02T19:37:13.000Z | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 29 | 2020-07-18T04:34:03.000Z | 2021-07-06T09:42:36.000Z | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 1 | 2022-03-14T08:41:42.000Z | 2022-03-14T08:41:42.000Z | import unittest
from app import main
from wheezy.http.functional import WSGIClient
path_for = main.options["path_for"]
class HelloTestCase(unittest.TestCase):
def setUp(self):
self.client = WSGIClient(main)
def tearDown(self):
self.client = None
def path_for(self, name, **kwargs):
... | 23.590909 | 63 | 0.666667 | 395 | 0.761079 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.084778 |
ea4caab7d834c695bbaddfe9cef2659ee71e7d1c | 713 | py | Python | support/distribute/binbuild/build/make_cert_links.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 131 | 2015-06-04T09:06:57.000Z | 2022-02-01T12:11:29.000Z | support/distribute/binbuild/build/make_cert_links.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 690 | 2015-10-17T12:18:08.000Z | 2022-03-31T16:15:58.000Z | support/distribute/binbuild/build/make_cert_links.py | rieder/amuse | 3ac3b6b8f922643657279ddee5c8ab3fc0440d5e | [
"Apache-2.0"
] | 102 | 2015-01-22T10:00:29.000Z | 2022-02-09T13:29:43.000Z | import os
import os.path
import subprocess
import sys
if __name__ == "__main__":
dirname = sys.argv[1]
for x in os.listdir(dirname):
if x.endswith('.crt'):
try:
filename = os.path.join(dirname, x)
filehash = subprocess.check_output(['openssl', 'x509', '-noout... | 33.952381 | 115 | 0.530154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.112202 |
ea4cdc13bf9b75390076a5ba97dd800d3216b133 | 2,525 | py | Python | tests/pipeline/nodes/augment/test_contrast.py | ericleehy/PeekingDuck | 8cf1be842235fa60bac13bc466cac09747a780ea | [
"Apache-2.0"
] | 1 | 2021-12-02T05:15:58.000Z | 2021-12-02T05:15:58.000Z | tests/pipeline/nodes/augment/test_contrast.py | ericleehy/PeekingDuck | 8cf1be842235fa60bac13bc466cac09747a780ea | [
"Apache-2.0"
] | null | null | null | tests/pipeline/nodes/augment/test_contrast.py | ericleehy/PeekingDuck | 8cf1be842235fa60bac13bc466cac09747a780ea | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 AI Singapore
#
# 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... | 36.071429 | 81 | 0.662574 | 1,557 | 0.616634 | 0 | 0 | 246 | 0.097426 | 0 | 0 | 930 | 0.368317 |
ea4dead28982f46428283499653ee29c5df82988 | 5,343 | py | Python | DeformationLearningSolver/scripts/DLS/core/fnData.py | WebberHuang/DeformationLearningSolver | c58f2c7eb8e4f172948de9acd2b3e6cb39bb8bc2 | [
"BSD-3-Clause"
] | 160 | 2015-12-29T15:11:36.000Z | 2022-02-22T11:40:11.000Z | DeformationLearningSolver/scripts/DLS/core/fnData.py | wentingwei/DeformationLearningSolver | 9c9f42678f2fb1c7a0318527a616b171064130b5 | [
"BSD-3-Clause"
] | 2 | 2016-08-05T10:54:31.000Z | 2017-09-04T21:34:42.000Z | DeformationLearningSolver/scripts/DLS/core/fnData.py | wentingwei/DeformationLearningSolver | 9c9f42678f2fb1c7a0318527a616b171064130b5 | [
"BSD-3-Clause"
] | 51 | 2015-12-29T16:03:38.000Z | 2022-01-03T15:02:24.000Z | __author__ = "Webber Huang"
__contact__ = "xracz.fx@gmail.com"
__website__ = "http://riggingtd.com"
import maya.cmds as cmds
import maya.OpenMaya as om
import maya.OpenMayaAnim as oma
from DLS.core import utils
class FnSkinCluster(object):
def __init__(self, skinCluster=None):
"""
Args:
... | 32.381818 | 102 | 0.546509 | 5,128 | 0.95976 | 0 | 0 | 0 | 0 | 0 | 0 | 1,553 | 0.290661 |
ea4f5bbe5c9fe40d0892aa0b04a02c7abbbc8a2d | 64 | py | Python | src/dump1090exporter/__init__.py | bgulla/dump1090-exporter | 147f23451a0607b72a320e2901160f3f747b3a56 | [
"MIT"
] | 60 | 2016-10-26T11:11:40.000Z | 2022-03-06T14:32:44.000Z | src/dump1090exporter/__init__.py | bgulla/dump1090-exporter | 147f23451a0607b72a320e2901160f3f747b3a56 | [
"MIT"
] | 20 | 2017-06-14T06:09:17.000Z | 2022-03-16T01:20:59.000Z | src/dump1090exporter/__init__.py | bgulla/dump1090-exporter | 147f23451a0607b72a320e2901160f3f747b3a56 | [
"MIT"
] | 14 | 2017-07-03T19:18:38.000Z | 2022-02-04T14:38:54.000Z | from .exporter import Dump1090Exporter
__version__ = "21.10.0"
| 16 | 38 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0.140625 |
ea4f94dc62eb152286ddb45f21d8cbc92ac2d88f | 1,697 | py | Python | sample_data/make_sample_data.py | mhernan88/reshape_tools | e08de72629079457f4194a8a14dbb8641b5b0a13 | [
"MIT"
] | null | null | null | sample_data/make_sample_data.py | mhernan88/reshape_tools | e08de72629079457f4194a8a14dbb8641b5b0a13 | [
"MIT"
] | null | null | null | sample_data/make_sample_data.py | mhernan88/reshape_tools | e08de72629079457f4194a8a14dbb8641b5b0a13 | [
"MIT"
] | null | null | null | import pandas as pd
from datetime import datetime
def sample_data1() -> pd.DataFrame:
times = [
datetime(year=2020, month=11, day=1),
datetime(year=2020, month=11, day=2),
datetime(year=2020, month=11, day=3),
datetime(year=2020, month=11, day=4),
datetime(year=2020, month=... | 37.711111 | 75 | 0.5769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 0.038892 |
ea5034df827000a7c021ce8d10922be02ea67910 | 70 | py | Python | chatrender/celery.py | The-Politico/django-politico-slackchat-renderer | adb3ed2ba5039a97ee7b021d39aa40cab11e5661 | [
"MIT"
] | 2 | 2018-07-02T16:49:35.000Z | 2018-07-09T03:52:28.000Z | chatrender/celery.py | The-Politico/django-politico-slackchat-renderer | adb3ed2ba5039a97ee7b021d39aa40cab11e5661 | [
"MIT"
] | 42 | 2018-02-14T21:28:54.000Z | 2022-02-10T18:30:58.000Z | chatrender/celery.py | The-Politico/django-politico-slackchat-renderer | adb3ed2ba5039a97ee7b021d39aa40cab11e5661 | [
"MIT"
] | null | null | null | # flake8: noqa
from chatrender.tasks.publish import publish_slackchat
| 23.333333 | 54 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.2 |
ea507ff5ce0b048fae3891ba72d4dee04d5ab84a | 5,242 | py | Python | disentanglement_lib/methods/unsupervised/unsupervised_train.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | disentanglement_lib/methods/unsupervised/unsupervised_train.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | disentanglement_lib/methods/unsupervised/unsupervised_train.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The DisentanglementLib 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
#
# Un... | 38.262774 | 91 | 0.689432 | 3,213 | 0.612934 | 0 | 0 | 3,253 | 0.620565 | 0 | 0 | 1,488 | 0.283861 |
ea50fbdd5b47c4790c000e6a763c6ba66c891802 | 763 | py | Python | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import Model, TextField, DateTimeField, ForeignKey, CASCADE
from accounts.models import User
from rooms.models import Room
# Create your models here.
class MessageModel(Model):
"""
This class represents a chat message. It has a owner (user), timestamp and
... | 40.157895 | 81 | 0.671035 | 560 | 0.733945 | 0 | 0 | 0 | 0 | 0 | 0 | 187 | 0.245085 |
ea528f46ed31b6469c3c5eda3e10a9823f9f1742 | 1,088 | py | Python | tests/test_replica/test_factory.py | maxipavlovic/django-cqrs | d401819b5bca7c2e833d44e8426251fdd4b6b8b9 | [
"Apache-2.0"
] | 52 | 2020-05-28T13:25:36.000Z | 2022-03-05T12:31:45.000Z | tests/test_replica/test_factory.py | maxipavlovic/django-cqrs | d401819b5bca7c2e833d44e8426251fdd4b6b8b9 | [
"Apache-2.0"
] | 26 | 2020-07-30T08:17:13.000Z | 2022-02-18T12:54:38.000Z | tests/test_replica/test_factory.py | maxipavlovic/django-cqrs | d401819b5bca7c2e833d44e8426251fdd4b6b8b9 | [
"Apache-2.0"
] | 15 | 2020-05-28T13:25:40.000Z | 2022-03-07T04:14:36.000Z | # Copyright © 2021 Ingram Micro Inc. All rights reserved.
from dj_cqrs.constants import SignalType
from dj_cqrs.controller.consumer import route_signal_to_replica_model
from dj_cqrs.mixins import ReplicaMixin
import pytest
def test_bad_model(caplog):
route_signal_to_replica_model(SignalType.SAVE, 'invalid', {}... | 31.085714 | 74 | 0.769301 | 0 | 0 | 0 | 0 | 692 | 0.635445 | 0 | 0 | 216 | 0.198347 |
ea52a83735f5ee01c90e086d751f1daff7428111 | 56,867 | py | Python | openff/interchange/components/smirnoff.py | openforcefield/openff-interchange | 275bd4146dd2724c5eeb2b52d3177b53371edb7c | [
"MIT"
] | 10 | 2021-06-17T20:10:53.000Z | 2022-02-24T15:43:25.000Z | openff/interchange/components/smirnoff.py | openforcefield/openff-interchange | 275bd4146dd2724c5eeb2b52d3177b53371edb7c | [
"MIT"
] | 198 | 2021-06-11T19:49:08.000Z | 2022-03-31T13:33:12.000Z | openff/interchange/components/smirnoff.py | openforcefield/openff-interchange | 275bd4146dd2724c5eeb2b52d3177b53371edb7c | [
"MIT"
] | 7 | 2021-06-18T18:17:32.000Z | 2022-01-25T18:40:52.000Z | """Models and utilities for processing SMIRNOFF data."""
import abc
import copy
import functools
from collections import defaultdict
from typing import (
TYPE_CHECKING,
Any,
DefaultDict,
Dict,
List,
Tuple,
Type,
TypeVar,
Union,
)
import numpy as np
from openff.toolkit.topology impor... | 37.760292 | 112 | 0.60441 | 53,922 | 0.948212 | 0 | 0 | 20,036 | 0.352331 | 0 | 0 | 13,019 | 0.228938 |
ea52d5083a4473548f4cfa6f4f7011c183c68791 | 15,926 | py | Python | homeworks/HW5/task1_tkinter_sympy.py | vzavadskyi/made-robotics | 5bd913bcf26f5a35ee42348e636b7f8fde5d35f8 | [
"Apache-2.0"
] | null | null | null | homeworks/HW5/task1_tkinter_sympy.py | vzavadskyi/made-robotics | 5bd913bcf26f5a35ee42348e636b7f8fde5d35f8 | [
"Apache-2.0"
] | null | null | null | homeworks/HW5/task1_tkinter_sympy.py | vzavadskyi/made-robotics | 5bd913bcf26f5a35ee42348e636b7f8fde5d35f8 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
import math
import heapq
from sympy import Point, Polygon
# from shapely.geometry import Point, Polygon
'''================= Your classes and methods ================='''
ids = []
class PriorityQueue:
def __init__(self):
self.heap = []
self.count = 0
def push(self, item... | 33.599156 | 133 | 0.545649 | 14,207 | 0.890609 | 0 | 0 | 0 | 0 | 0 | 0 | 913 | 0.057234 |
ea52ff82a564cab19ee80cfe0f0d2458594e285e | 6,035 | py | Python | net/views/enhance.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | 1 | 2020-03-06T05:15:07.000Z | 2020-03-06T05:15:07.000Z | net/views/enhance.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | null | null | null | net/views/enhance.py | spake/astrometry.net | 12c76f4a44fe90a009eeb962f2ae28b0791829b8 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import pylab as plt
import numpy as np
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, QueryDict
from django.shortcuts import render_to_response, get_object_or_404, redirect, render
from django.template import Context, RequestContext, loader
fr... | 31.432292 | 93 | 0.565866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,265 | 0.209611 |
ea53a2f6728326b1b36786fedcd4897662372db2 | 1,636 | py | Python | libpycr/editor.py | JcDelay/pycr | f729e003473b421b76bc49c5d55d06d7086d63cc | [
"Apache-2.0"
] | 1 | 2015-03-12T10:34:38.000Z | 2015-03-12T10:34:38.000Z | libpycr/editor.py | JcDelay/pycr | f729e003473b421b76bc49c5d55d06d7086d63cc | [
"Apache-2.0"
] | null | null | null | libpycr/editor.py | JcDelay/pycr | f729e003473b421b76bc49c5d55d06d7086d63cc | [
"Apache-2.0"
] | null | null | null | """This module provides convenient use of EDITOR"""
import os
import subprocess
import tempfile
from libpycr.config import Config
def get_editor():
"""Return the user's editor, or vi if not defined
:rtype: str
"""
return os.environ.get('EDITOR') or os.environ.get('VISUAL') or 'vi'
def strip_comm... | 25.5625 | 79 | 0.654034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 830 | 0.507335 |