seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
use std::fmt::Debug;
use crate::model::Settable;
#[derive(Debug, Deserialize, Serialize)]
pub struct PartialUser {
pub nickname: String,
pub email: String,
}
impl From<PartialUser> for User {
fn from(p_user: PartialUser) -> User {
Us... | ise-uiuc/Magicoder-OSS-Instruct-75K |
default_app_config = 'respa_exchange.apps.RespaExchangeAppConfig'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** Times the player has won. */
wins: number;
/** Times the player has lost. */
losses: number;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using PopForums.Repositories;
using PopForums.Services;
namespace PopForums.ExternalLogin
{
public class UserAssociationManager : IUserAssociationManager
{
public UserAssociationManager(IExternalUserAssociationRepository externalUserAssociationRepository, IUserRepository userRepository, ISecurityLogService securit... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
let bounds_text = Rectangle {
width: src_text_bounds.width,
height: src_text_bounds.height,
x: src_text_bounds.x + 1.,
y: src_text_bounds.y + 1.,
};
let prim_text = <Self as iced_native::widget::text::Renderer>::draw(
self,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
incorrect_vector_list.append(total_incorrect_vector)
incorrect_vector_mean = mean(incorrect_vector_list)
# plot
plt.title('incorrect vector NO. of all data')
plt.scatter(range(len(incorrect_vector_list)), incorrect_vector_list)
plt.axhline(incorrect_vector_mean, colo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self._prepare()
def _prepare(self):
if not self._params:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public double imageSpeed = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
running_loss_on_batch = running_loss_on_batch*0.9+loss_on_batch*0.1
running_reg_loss_on_batch = running_reg_loss_on_batch*0.9 + reg_loss_on_batch*0.1
loss_list.append(running_loss_on_batch)
print("\rloss now:%.4f,reg_loss_on_batch:%.4f,sum loss: %.4f"%(run... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let service = mock_service!(registry_dir);
let app_dir = TempDir::new().unwrap();
let app_bin = app_dir.path().join("dummy-app");
fs::create_dir(app_bin.clone()).unwrap();
// Create dummy app file
fs::File::create(app_bin.join("dummy")).unwrap();
// Create manifest file
let manifest ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return f"{self.__class__.__name__}<{token}>"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
email: true
},
MatKhau:{
required: true,
minlength: 8
},
MatKhau1:{
required: true,
equalTo: "#MatKhau"
},
SDT:{
required: true,
phoneVN: true
},
NgaySinh:{... | ise-uiuc/Magicoder-OSS-Instruct-75K |
CHINA_TZ = pytz.timezone("Asia/Shanghai")
symbol_exchange_map = {}
symbol_name_map = {}
symbol_size_map = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/utils/constants.ts
export const TITLE = 'useWeb3.xyz'
export const DESCRIPTION =
'A platform for developers to learn about Web3. Explore tutorials, guides, courses, challenges and more. Learn by building ⚒️ Find your job ✨ Start contributing'
export const SITE_URL = 'https://www.useweb3.xyz/'
export con... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn new(unit_ref: &'b Unit, t: String) -> Self {
WithLifetimeAndGenericParam { unit_ref, t }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let innerDecoder = try container.superDecoder(forKey: key!)
let inner = try Gauss.Inner(from: innerDecoder)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with col4:
Tt = st.selectbox('Tt', [0,1])
filter_densities = nu.densities.loc[(nu.densities['statei']==statei) & (nu.densities['statej']==statej) &\
(nu.densities['Jt']==Jt) & (nu.densities['Tt']==Tt)]
st.subheader('Non-zero elements')
st.markdown(hide_table_row_index, unsafe_allow_ht... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#Calling Function
userFunction()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @return {@code false} if this string's content is empty, otherwise {@code true}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = raw_input(query)
print response
while response.lower() == 'y':
answerQuery()
response = raw_input(query)
else:
print 'quitting'
exit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .train import Trainer
from .model import get_model
__all__ = ['get_dataloaders', 'Collator', 'Trainer', 'get_model'] | ise-uiuc/Magicoder-OSS-Instruct-75K |
def findPeakElement(self, nums: [int]) -> int:
return nums.index(max(nums)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
public static ThreadLocal<SimpleDateFormat> TIMESTAMP_FORMAT = new ThreadLocal<SimpleDateFormat> () {
@Override
protected SimpleDateFormat initialValue() {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", new Locale("eng"));
format.setTimeZone(TimeZon... | ise-uiuc/Magicoder-OSS-Instruct-75K |
f.write(".SPI_CS_PAD(SPI_CS_PAD), \n")
f.write(".ENABLE_DUMMY_RO_PAD(ENABLE_DUMMY_RO_PAD), \n")
f.write(".SPI_CTRL_PAD(SPI_CTRL_PAD), \n")
f.write(".SPI_MISO_PAD(SPI_MISO_PAD), \n")
f.write(".SPI_MOSI_UC(1'b1), \n")
f.write(".SPI_MISO_UC(), \n")
f.write(".SPI_CS_UC(1'b1), \n")
f.write(".SPI_CLK_UC(1'b1) \n")
f.write(")... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if arr[i] > arr[j] : # and lis_arr[i] < lis_arr[j]+1:
prev_lis_till_i = lis_arr[i]
curr_lis_till_i = lis_arr[j] + 1
if curr_lis_till_i > prev_lis_till_i:
# Update lis_till_i
lis_arr[i] = curr_lis_till_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
private Health health = null;
private Vector3 startPos;
[SerializeField]
private float _respawnDuration;
public float respawnDuration { get => _respawnDuration; set => _respawnDuration = value; }
private void Awake()
{
health = GetComponent<Health>()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* <p/>
* <pre>
* <Ref id="requestLog">
* <Set name="requestLog">
* <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl"></New>
* <Set name="fileName">path/to/logback.xml</Set>
* ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
log_folder = r"logs/"
os.makedirs(os.path.dirname(log_folder), exist_ok=True)
output_file = os.path.join(log_folder, datetime.now().strftime("%Y_%m_%d-%H_%M_%S"))
file_handler=logging.FileHandler(output_file + '.log', mode="w", encoding=None, delay=False)
form... | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert act_1.clean_stdout == act_1.clean_expected_stdout
| ise-uiuc/Magicoder-OSS-Instruct-75K |
glDeleteShader(vertexShader);
glDeleteShader(fragmentShader);
}
unsigned int Shader::compileSingleShader(const char* shaderStr, GLenum shaderEnum)
{
int success;
GL_CALL(unsigned int shader = glCreateShader(shaderEnum));
GL_CALL(glShaderSource(shader, 1, &shaderStr, NULL));
GL_CALL(glCompileS... | ise-uiuc/Magicoder-OSS-Instruct-75K |
r
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Test that installation works by running the unit tests.
optional arguments:
-h, --help show this help message and exit
--run-all By default, we skip tests that are slow or download
large files. This flag will run all tests.
--include-package... | ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor(public elementRef: ElementRef) { }
// Project content in `ngOnInit()` just like in `CodeExampleComponent`.
ngOnInit() {
// Security: This is a test component; never deployed.
this.contentRef.nativeElement.innerHTML = this.elementRef.nativeElement.aioEagerBarContent;
}
}
@Component({
sele... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_sex(data_source, array_type=None, verbose=False, plot=False, save=False,
on_lambda=False, median_cutoff= -2, include_probe_failure_percent=True,
poobah_cutoff=20, custom_label=None, return_fig=False, return_labels=False):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in dirListing:
msg = "Would you like to upload " + i + " (Y/N) ? "
upload = modified_input(msg).lower()
if upload == "y":
uploadListing.append(i)
if uploadListing == []:
print("No applicable files found. Aborting Upload."... | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert np.isclose(heaviside(-0.5), 0.0)
assert np.isclose(heaviside(-0.5, -1), 1.0)
assert np.isclose(heaviside(-2, -1), 0)
def test_highham_polynomial():
eigs = np.arange(10)
assert np.isclose(higham_polynomial(eigs, eigs[-1]), 0.0)
assert np.isclose(higham_polynomial(eigs, 0), sum(eigs))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if userInfo and userInfo[0] == line[0]:
new_line = []
new_line.extend(userInfo)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public LineAndNodeType getLineAndNodeType() {
return lineAndNodeType;
}
public void setLineAndNodeType(LineAndNodeType lineAndNodeType) {
this.lineAndNodeType = lineAndNodeType;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof SeedStatement))
return false;
SeedStatement ss = (SeedSta... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('survey', '0007_auto_20200513_0150'),
]
operations = [
migrations.CreateModel(
name='MonitoringReporting',
fields=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
}
public virtual ICommandField ExtractCommandField(ICommandScope scope, string group, string name)
{
return base.ExecuteFunction(nameof(ExtractCommandField), delegate ()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import tensorflow_federated as tff
ModelWeights = collections.namedtuple('ModelWeights', 'trainable non_trainable')
ModelOutputs = collections.namedtuple('ModelOutputs', 'loss')
def get_model_weights(
model: Union[tff.learning.Model, 'KerasModelWrapper']
) -> Union[tff.learning.ModelWeights, ModelWeights]:
"""... | ise-uiuc/Magicoder-OSS-Instruct-75K |
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(res.body).not.null()
expect(res.body.name).eql('richardwei')
})
// it('should retry if timeout', async () => {
// nock('https://blog.richardweitech.cn')
// .get('/test')
// .delay(200)
// .reply(200, {
// name: 'richardwei'
// })
// const client = new CSRClie... | ise-uiuc/Magicoder-OSS-Instruct-75K |
)
captured = capfd.readouterr()
assert captured.out == tip3boxbody
def test_tip_plainformat(capfd):
subprocess.check_call(["git-fortune", "--format", "plain", "--id", "1"])
tip1plainbody = fix_line_endings(
"Modify your last commit before pushing with `git commit --amend`.\n"
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.submitBtn.clicked.connect(self.addMember)
def layouts(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!DA.GetData(2, ref x))
{
// pass
}
bool y = true;
if (!DA.GetData(3, ref y))
{
// pass
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
didFinishWith result: MFMailComposeResult,
error: Error?) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let (is_unit, unit) = if resolution.target().module(0).is_unit() {
(true, Arc::clone(&resolution))
} else {
let module = Arc::new(
FDModule::new(
resolution.algebra(),
format!("S_{}", p),
bivec::BiVec::from_vec(0, vec![1]),
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
q = deque([root])
while q:
node = q.popleft()
if node.left:
if not node.left.left and not node.left.right:
res += node.left.val
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gf::reader::CncFun* AppResult::getConcreteFunction() const {
return cncFun;
}
CncType* AppResult::getConcreteType() const {
return cncType;
}
const std::vector<CncType*>& AppResult::getConcreteTypes() const {
return cncTypes;... | ise-uiuc/Magicoder-OSS-Instruct-75K |
break
winner = az_player.game().winner()
if winner == 2:
az_score = 0
elif (az_first and winner == 0) or ((not az_first) and winner == 1):
az_score = 1
else:
az_score = -1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Router::prefix('Admin', function (RouteBuilder $routes) {
$routes->fallbacks(DashedRoute::class);
});
Router::setRequest($request);
$result = $this->Html->link('Foo', ['prefix' => 'Admin', 'controller' => 'FooBar', 'action' => 'test']);
$expected = '<a href="/admin/foo-bar/test">Foo</a>';
$this->assertE... | ise-uiuc/Magicoder-OSS-Instruct-75K |
clearInterval(timer)
}
}, [])
return (
<div className="container">
<div className="heart register-content">
<header className="register-header">
<h3 className="register-header-title">注册用户</h3>
</header>
<List>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return bonding
def generate_bond(bond_num, slave_num, mac_list, mode):
bondCfg=[]
for i in range(bond_num):
ip = os.environ.get("bondip%d" % i)
netmask = os.environ.get("bondmask%d" % i)
name = os.environ.get("bondname%d" % i)
mode = mode
mac_list = mac_list[:slave_n... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setPlace_id(int place_id) {
this.place_id = place_id;
}
public String getPhoto() {
return photo;
}
public void setPhoto(String photo) {
this.photo = photo;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
# taken from sp_lib
def read_json_file(file_path):
try:
with open(file_path, 'r') as json_file:
readstr = json_file.read()
json_dict = json.loads(readstr)
return json_dict
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public EmpresaDbContext(DbContextOptions<EmpresaDbContext> options)
: base(options)
{
}
public virtual DbSet<Clientes> Clientes { get; set; }
public virtual DbSet<Tipos_Documento> Tipos_Documento { get; set; }
public virtual DbSet<Usuarios> Usuario... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public:
static primitive_impl* create(const reverse_sequence_node& arg) {
auto reverse_sequence_params = get_default_params<kernel_selector::reverse_sequence_params>(arg);
auto reverse_sequence_optional_params =
get_default_optional_params<kernel_selector::reverse_sequence_optiona... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo cp archlogo-full.svg /usr/share/icons/
mkdir -p ~/.config/xfce4
cp -rv xfconf panel terminal ~/.config/xfce4
if [ -e ~/.xinitrc ] ; then
mv ~/.xinitrc ~/.xinitrc.bak
fi
if [ -e ~/.conkyrc ] ; then
mv ~/.conkyrc ~/.conkyrc.bak
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# preactivation = self.last_fc(h)
# output = self.output_activation(preactivation)
# if return_preactivations:
# return output, preactivation
# else:
# return output | ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.name
class MirrorLog(models.Model):
mirror_site = models.ForeignKey(MirrorSite, related_name='logs')
created = models.DateTimeField(auto_now_add=True)
action = models.CharField(max_length=256)
def __unicode__(self):
return self.action
class Meta:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final class WorksViewController: UIViewController {
var viewModel: WorksViewModelProtocol!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
session(['language' => 'sr']);
}elseif(session('language') == 'sr'){
session()->forget('language');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// - Parameter viewController: Source view controller
func viewControllerDidRequestBICIBANValidation(_ viewController: UIViewController)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
stack.append("}")
elif c == "<":
stack.append(">")
else:
# Closing
if len(stack) == 0:
illegal.append(c)
break
expected = stack.pop()
if c != expected:
illegal.append(c)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Scanner:
_instance = None
def __init__(self):
crtl = pywpas.Control(sock_path=WPA_SOCKET_PATH)
interfaces = crtl.interface_names()
LOGGER.debug('Interfaces: %s', interfaces)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Персональные
from trml.shell import Shell # Работа с Shell
from filem.file_manager import FileManager # Работа с файлами
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endphp
@if ($addon != null)
@if($addon->activated)
@if(in_array(Auth::user()->user_type , ['admin','customer','branch']) || in_array('1001', json_decode(Auth::user()->staff->role->permissions ?? "[]")) || Auth::user()->user_type == 'branch' || Auth::user()->user_type == 'client')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def add_violin_trace(fig, y, name):
showlegend = False if name == "" else True
fig.add_trace(
go.Violin(
y=y,
name=name,
box_visible=True,
showlegend=showlegend,
)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except Exception as e:
print(e)
# When everything done, release the capture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</P>
<P>
When reminded that his "high note" is a 1-0 victory in the Toilet Bowl, the
former owner, who made <NAME> a #1 pick in the franchise's first draft,
got increasingly belligerent. "At least we WON the Toilet Bowl. Besides,
it's not about that one season, it's about being part of a great fantasy
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}, cls=LazyEncoder)
return HttpResponse(
data, content_type='application/json', status=405)
if image.size > settings.MAX_IMAGE_UPLOAD_SIZE:
# return error when the image size
# is over the setted MAX_IMAGE_UPLOAD_SIZE
to_MB = settings.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ $URL_REWRITE != [01] ]]; then
log_err "Invalid value for URL_REWRITE, expected 0|1"
return 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(1, len(relevance_id_features)):
label_id_feature.append(float(relevance_id_features[i].split(':')[1]))
if comm in ("non", "rel"):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install python2.7
#install gnome menu editor
sudo apt-get install alacarte
#don't forget where you came from
OLD_CWD=`pwd`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import models
from ipam.lookups import Host, Inet
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return false;
};
}
/**
* @param array $codes
*/
private function setHttpRetryCodes(array $codes)
{
$this->httpRetryCodes = $codes;
}
/**
* @param array $messages
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Nos permite encapsular un proyecto para poder instalar las versiones de los paquetes que se requieran sin tenerlos que instalar en todo el sistema operativo.
# Crear un entorno virtual
# Dentro de la carpeta de tu proyecto ejecutas
# virtualenv venv
# Encender un entorno virtual
# source venv/bin/activate
# Ver l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else: #long data point
queue = queue + [[i, j, data[0:2 + math.ceil(math.log(1801,2)) + math.ceil(math.log(maxBits,2))]]]
data = data[2 + math.ceil(math.log(1801,2)) + math.ceil(math.log(maxBits,2)):]
j = j + 2 + math.ceil(math.log(1801,2)) + math.ceil(math.log(maxBits,2))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gc.collect()
except ValueError:
print("This failed for particle " + str(particle_id))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Web;
using System.Web.Routing;
using Microsoft.Xrm.Portal.Configuration;
using Microsoft.Xrm.Portal.Web.Handlers;
using Microsoft.Xrm.Portal.Web.Modules;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Client;
namespace Microsoft.Xrm.Portal.Web.Routing
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
So far we only hit one file, so I am being a bad person and hard coding a resampling rate
that will get files like that one to match. If this does NOT fix future files, we'll have
to figure out how to get at the sample rate of the MNE Evoked lists, and do it dynamically.
Couldn't find i... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2018 Christopher Matsumoto. All rights reserved.
//
import UIKit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use objr::bindings::*;
objc_instance! {
pub struct MTLDrawable;
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
except XMLError, x:
self.log.error(u'Erro ao ler o XML da requisição.')
return self.response_error(3, x)
except EquipamentoNotFoundError:
return self.response_error(117, id_equipamento)
except TipoAcesso.DoesNotExist:
return self.response_error(171... | ise-uiuc/Magicoder-OSS-Instruct-75K |
config = configparser.RawConfigParser()
config.read("Configurations/config.ini")
class ReadConfig:
@staticmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log_path = os.path.join(settings['log_path'])
if not os.path.isdir(log_path):
os.mkdir(log_path)
try:
handlers = cfg['handlers']
except KeyError:
pass
else:
for handler in handlers.values():
try:
filename = handler['filename']
e... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'Year To Date': [moment().startOf('year'), moment()]
}
});
</script>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
waittime = 2 # default time to wait between images (in seconds)
use_prime = True # Set to true to show the prime slide, false if otherwise
prime_slide = '/home/pi/photobooth/projector.png' # image to show regularly in slideshow
prime_freq = 16 # how many pics to show before showing the prime slide again
| ise-uiuc/Magicoder-OSS-Instruct-75K |
backend = data._find_backend()
return type(backend).__module__ in cls.zero_indexed_backend_modules
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hr.AddrInfo(
family=socket.AF_INET,
type=socket.SOCK_STREAM,
proto=socket.IPPROTO_TCP,
sockaddr=hr.IPv4Sockaddr(address="10.0.0.42", port=6052),
),
hr.AddrInfo(
family=socket.AF_INET6,
type=socket.SOCK_STREAM,
pr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
async def lock_taker(lock):
await lock.acquire()
lock.release()
async def test_lock_fairness():
lock = trio.Lock()
await lock.acquire()
async with trio.open_nursery() as nursery:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
add = AddStartupTweak()
add.btn.connect("clicked", self._on_add_clicked)
tweaks.append(add)
ListBoxTweakGroup.__init__(self,
_("Startup Applications"),
*tweaks,
css_class='tweak-group-startup')
self.set_header_func(_list_header_func, None)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@CCD(label = "Social Worker PhoneNumber",
access = {DefaultAccess.class}
)
private String socialWorkerPhoneNumber;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
offline,
leave,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class TM7Validations
{
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest2 as unittest
from fetchman.processor.test_processor import Tuliu_Processor
from fetchman.spider.spider_core import SpiderCore
from fetchman.pipeline.console_pipeline import ConsolePipeline
from fetchman.pipeline.test_pipeline import TestPipeline
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_restore_runs_empty_list(mocker):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.